Skip to content

Commit 4b3bba2

Browse files
committed
Navigate windows without <C-w>
Hat tip to Zach McAuliffe[1]. [1]: https://github.com/PayPal-Braintree/nvim/blob/main/init.lua#L6
1 parent f78edc6 commit 4b3bba2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

vimrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,3 +625,10 @@ endif
625625
if filereadable(expand('~/.vimrc_local'))
626626
source ~/.vimrc_local
627627
end
628+
629+
" Navigate windows without <C-w>
630+
631+
nmap <silent> <C-h> <C-w><C-h>
632+
nmap <silent> <C-j> <C-w><C-j>
633+
nmap <silent> <C-k> <C-w><C-k>
634+
nmap <silent> <C-l> <C-w><C-l>

0 commit comments

Comments
 (0)