Wednesday, September 09, 2015

Vim tips

How to navigate between split windows in vim editor

I felt it was time irritating to press ctr+ww to navigate between two split windows in vi editor, I wanted to find a short cut for this as usual I found one from stackoverflow, for other's benefit I am posting here

Basically you need to have a mapping in your .vimrc (which will be in your home directory)

file : .vimrc









These lines maps our ctr+ to up/down/left/right respectively, if you don't like using control you can define your own mappings with single key stroke.