Hacker News new | ask | show | jobs
by lelanthran 1094 days ago
I use Vim for development with multiple files; I find that up to 9-12 open files are manageable, but more than that and the lack of a file browser impedes me[1].

Example usage:

Open files in vertical splits:

    vim -O src1.j src1.c src2.c
Open files as I need them in new tab:

    :tabe src3.c
In new tab, open two more files (as I need them):

    :vsplit src3.h
    :vsplit CHANGELOG
I've mapped Ctrl-PageUp/Down to next previous tab/next tab.

When I want to exit, I save the session:

    :mks!
When I want to restart that session:

    vim -S Session.vim
Like I said, it gets unwieldy after around 9-12 files open (typically 3 in a tab).

[1] Nerdtree messes up my splits so I don't use it.

1 comments

FZF.vim is what you need, both for opening files and switching buffers.