diff vim/vimrc @ 443:4ca0b1413199

Some new cool Vim things.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 06 May 2018 21:56:43 -0700
parents decee05a5595
children 71d7734148ed
line wrap: on
line diff
--- a/vim/vimrc	Sun Apr 29 22:54:31 2018 -0700
+++ b/vim/vimrc	Sun May 06 21:56:43 2018 -0700
@@ -140,7 +140,7 @@
 set wildignore+=*.pyc,*.pyo
 set wildignore+=*.swp
 
-set formatoptions=croqn1
+set formatoptions=croqn1j
 
 " Always display the tab-page line.
 set showtabline=2
@@ -554,6 +554,7 @@
 " NERDTree.
 nnoremap <F2> :call <SID>ToggleNERDTree()<cr>
 nnoremap <C-F2> :call <SID>FindInNERDTree()<cr>
+nnoremap <leader>e :e %:h<cr>
 
 " Tagbar.
 nnoremap <F3> :TagbarToggle<cr>
@@ -637,6 +638,8 @@
 nnoremap <leader>cf :let @+ = expand('%:h')<cr>:echo @+<cr>
 nnoremap <leader>cw :let @+ = getcwd()<cr>:echo @+<cr>
 
+nnoremap F <Plug>(easymotion-prefix)s
+
 " Make the diff navigation also center things.
 nnoremap ]c ]czvzz
 nnoremap [c [czvzz