Skip to content

Instantly share code, notes, and snippets.

@iTrauco
Forked from BastianHofmann/mad_vim_skills_1.md
Created August 2, 2020 12:13
Show Gist options
  • Select an option

  • Save iTrauco/522daa4cd30a0b22d8a6ca5df8c2637a to your computer and use it in GitHub Desktop.

Select an option

Save iTrauco/522daa4cd30a0b22d8a6ca5df8c2637a to your computer and use it in GitHub Desktop.
Mad VIM Skills #1

Easy Split Navigation

Use :sp to split the current window in two (:vs for vertical split).

Add the following mapping commands to your .vimrc for easier split navigation.

"easy split navigation
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>

You can now use ctrl+j to navigate to the split below, ctrl+l to navigate to the split on to your right and so on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment