Skip to content

Instantly share code, notes, and snippets.

@franciscoj
Created October 11, 2017 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save franciscoj/e4415daa1887ea8ee9fb1a846514393b to your computer and use it in GitHub Desktop.
Save franciscoj/e4415daa1887ea8ee9fb1a846514393b to your computer and use it in GitHub Desktop.
Better moving around on vim
-" Window move around
-nnoremap <silent><C-j> :wincmd j<CR>
-nnoremap <silent><C-k> :wincmd k<CR>
-nnoremap <silent><C-l> :wincmd l<CR>
-nnoremap <silent><C-h> :wincmd h<CR>
+" Move between windows
+nnoremap <silent><leader>j :wincmd j<CR>
+nnoremap <silent><leader>k :wincmd k<CR>
+nnoremap <silent><leader>l :wincmd l<CR>
+nnoremap <silent><leader>h :wincmd h<CR>
+
+" Move windows around
+nnoremap <silent><leader><leader>j :wincmd J<CR>
+nnoremap <silent><leader><leader>k :wincmd K<CR>
+nnoremap <silent><leader><leader>l :wincmd L<CR>
+nnoremap <silent><leader><leader>h :wincmd H<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment