Hacker News new | ask | show | jobs
by sstanfie 4510 days ago
Another tip, and this one doesn't need a plug-in:

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>