]> git.rmz.io Git - dotfiles.git/commitdiff
vim: add custom mappings for GoldenView
authorSamir Benmendil <samir.benmendil@gmail.com>
Fri, 7 Mar 2014 00:11:55 +0000 (00:11 +0000)
committerSamir Benmendil <samir.benmendil@gmail.com>
Fri, 7 Mar 2014 00:11:55 +0000 (00:11 +0000)
vim/vimrc

index 5ca9cfd5841c6465f88a8da8bd9b2077aee829a6..7d3cabbbedb553354c30bc24f71260aa5682f493 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -128,11 +128,6 @@ set previewheight=20            " default height for the preview window
 
 set splitright                  " a new window is put right of the current one
 
 
 set splitright                  " a new window is put right of the current one
 
-nmap <C-J> <C-W>j
-nmap <C-K> <C-W>k
-nmap <C-H> <C-W>h
-nmap <C-L> <C-W>l
-
 map <F1> :ls<CR>:b<space>
 
 " using the mouse {{{1
 map <F1> :ls<CR>:b<space>
 
 " using the mouse {{{1
@@ -257,6 +252,14 @@ let g:airline_left_sep = '▶'
 let g:airline_right_sep = '◀'
 let g:airline#extensions#tabline#enabled = 1
 
 let g:airline_right_sep = '◀'
 let g:airline#extensions#tabline#enabled = 1
 
+" GoldenView {{{2
+let g:goldenview__enable_default_mapping = 0
+nmap <silent> <C-N>   <Plug>GoldenViewSplit
+nmap <silent> <C-L>   <Plug>GoldenViewNext
+nmap <silent> <C-H>   <Plug>GoldenViewPrevious
+nmap <silent> <C-M>   <Plug>GoldenViewSwitchMain
+nmap <silent> <C-S-M> <Plug>GoldenViewPrevious
+
 " Gundo {{{2
 nnoremap <F7> :GundoToggle<CR>
 " fugitive {{{2
 " Gundo {{{2
 nnoremap <F7> :GundoToggle<CR>
 " fugitive {{{2
@@ -281,7 +284,7 @@ let g:syntastic_always_populate_loc_list=1
 nmap <silent> <leader>y :SyntasticCheck<cr>
 
 if ! &diff
 nmap <silent> <leader>y :SyntasticCheck<cr>
 
 if ! &diff
-   let g:syntastic_check_on_open=1
+  let g:syntastic_check_on_open=1
 endif
 
 " tagbar {{{2
 endif
 
 " tagbar {{{2