by sstanfie · 12y ago · 0 comments
If your cursor is on a file name, like "foo.js", you can type gf to "go to that file" for editing.
Going back isn't as easy to remember. It's Control-O. So I map that in my .vimrc to gb like this:
" gf is built in and will "Goto File"
" gb is the opposite, will "Go Back"
nnoremap gb <C-o>No comments yet.