Last Updated: February 25, 2016
·
849
· tonatiuh

VIM: Going to previous - next file on the same split

I guess many of you guys already know this, but this is for those who don't know it.

When you are in a vim split with one opened file, and then you open other in the same split (it will replace the last file in the current split):

  • you can press Ctrl+O to go to the previous opened file
  • and once you are in the previous one you can press Ctrl+I for going to the next one.

This works in the same way for both two files and for many files.