Skip to content

Commit fc79e6e

Browse files
committed
Merge pull request spf13#299 from jamestomasino/easyWindows
Add option to skip window navigation mappings and keep digraph key
2 parents 3b3bdab + 182afa3 commit fc79e6e

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.vimrc

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,16 @@
200200
endif
201201

202202
" Easier moving in tabs and windows
203-
map <C-J> <C-W>j<C-W>_
204-
map <C-K> <C-W>k<C-W>_
205-
map <C-L> <C-W>l<C-W>_
206-
map <C-H> <C-W>h<C-W>_
203+
" The lines conflict with the default digraph mapping of <C-K>
204+
" If you prefer that functionality, add let g:spf13_no_easyWindows = 1
205+
" in your .vimrc.bundles.local file
206+
207+
if !exists('g:spf13_no_easyWindows')
208+
map <C-J> <C-W>j<C-W>_
209+
map <C-K> <C-W>k<C-W>_
210+
map <C-L> <C-W>l<C-W>_
211+
map <C-H> <C-W>h<C-W>_
212+
endif
207213

208214
" Wrapped lines goes down/up to next row, rather than next line in file.
209215
nnoremap j gj

0 commit comments

Comments
 (0)