summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2024-10-16 09:50:22 -0500
committerluxagraf <sng@luxagraf.net>2024-10-16 09:50:22 -0500
commit5bbe6a566b85ad838a31ea8ee0d120bbeb460a1e (patch)
tree74222e47e408937dbe93640c956378f6c1d7002a /.vimrc
parentd2e87e2d9f8ee2fd014087dafdc8c7cbd229a088 (diff)
added jrnl shortcuts
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc42
1 files changed, 26 insertions, 16 deletions
diff --git a/.vimrc b/.vimrc
index ac4da84..950c7aa 100644
--- a/.vimrc
+++ b/.vimrc
@@ -12,7 +12,9 @@ Bundle 'tpope/vim-surround'
Bundle 'vim-scripts/multvals.vim'
Bundle 'altercation/vim-colors-solarized'
Bundle 'vim-scripts/django.vim'
-Bundle 'tpope/vim-markdown'
+"Bundle 'tpope/vim-markdown'
+Plugin 'godlygeek/tabular'
+Plugin 'preservim/vim-markdown'
Bundle 'amperser/proselint'
Bundle 'jgdavey/tslime.vim'
Bundle 'christoomey/vim-tmux-navigator'
@@ -98,6 +100,10 @@ nnoremap <leader>- :%s/ -- /—/g<cr>
nnoremap <leader>cd :lcd %:p:h<cr>
+
+nmap <leader>nw :.w! >> $NOTES \| echo "Line written to notes"<CR>
+vmap <leader>nw :w! >> $NOTES \| echo "Selection written to notes"<CR>
+
" sane spelling options
nnoremap <leader>sp :set spell! spelllang=en_us spell?<CR>
set spellfile=~/.vim/dict.add
@@ -353,21 +359,6 @@ augroup END
noremap zE <Nop>
" }}}
" Plugins {{{
-"FZF {{{
-let g:fzf_preview_window='right:60%'
-let g:fzf_history_dir = '~/.local/share/fzf-history'
-
-set grepprg=rg\ --vimgrep\ --smart-case\ --hidden\ --follow
-
-nnoremap <leader>r :History<cr>
-nnoremap <leader>l :Rg<cr>
-nnoremap <leader>g :BLines<cr>
-nnoremap <leader>n :FZF ~/notes/<cr>
-"}}}
-" FZF Notational Velocity plugin {{{
-let g:nv_search_paths = ['~/notes', '~/writing/luxagraf/', '~/documents/bookmarks/']
-"}}}
-"
" SimpylFold Python folding plugin {{{
let g:SimpylFold_docstring_preview = 0
"}}}
@@ -379,9 +370,28 @@ let g:SuperTabDefaultCompletionType = '<C-n>'
nnoremap <silent> <c-s> :NV<CR>
let g:markdown_folding = 1
let g:markdown_fold_style = 'nested'
+let g:vim_markdown_folding_style_pythonic = 1
nmap <leader>i :%s/ //g
nmap <leader># :%s/### /###/g
imap jj <Esc>
vmap <silent> <leader>r <esc>:'<,'>:w !espeak &> /dev/null <CR>
+
+
+"FZF {{{
+let g:fzf_preview_window='right:60%'
+let g:fzf_history_dir = '~/.local/share/fzf-history'
+
+set grepprg=rg\ --vimgrep\ --smart-case\ --hidden\ --follow
+
+nnoremap <leader>r :History<cr>
+nnoremap <leader>l :Rg<cr>
+nnoremap <leader>f :Files<cr>
+nnoremap <leader>g :BLines<cr>
+nnoremap <leader>n :FZF ~/notes/<cr>
+"}}}
+" FZF Notational Velocity plugin {{{
+let g:nv_search_paths = ['~/notes', '~/writing/luxagraf/', '~/documents/bookmarks/']
+"}}}
+"