Today I Learned

hashrocket A Hashrocket project

Next file or next search result in Vim

We can jump to next file just typing:

  • ]f => go to next file in the same folder, or next folder
  • [f => go to previous file in the same folder, or previous folder

We can also jump to next search results, for example after a :grep my-search-text .

  • ]q => go to next search result
  • [q => go to previous search result
See More #vim TILs
Every developer at Hashrocket is a Vim expert. Check out our development environment, Dotmatrix, and if you are in Chicago, come to the Vim Chicago Meetup hosted at our Chicago office.