That said, it's going to take real vim bindings for me to actually switch. Of all the amazing features ST2 has been adding, none of them increase my productivity while programming more than vim's modes right now.
That said, it's going to take real vim bindings for me to actually switch. Of all the amazing features ST2 has been adding, none of them increase my productivity while programming more than vim's modes right now.
The biggest change (other than the fact that it's now primarily vi modal behavior rather than MacOS) is the missing find in project command. I get by with the find cli command, but it would be great if vico had a dialog-driven Find command as well.
Bonus is I'm becoming much more fluid at vi/vim which pays off just about everywhere.
I use bufexplorer[1]. There's something about minbufexpl's list that seems unappealing to me when it spans multiple lines. I also have CTRL-j/CTRL-k mapped to :bnext/:bprev. As for closing a buffer, my main window generally has a single vertical split, so I have the following kludge:
map <C-Q> :vert split<CR>:bnext<CR>:wincmd l<CR>:bdelete<CR>
This creates another vertical window temporarily, advances to the next buffer in that window, activates the window to the right (which still shows the buffer I'm trying to kill), and then deletes that buffer leaving me with two windows again. Amusingly, my older machines were slow enough to catch a glimpse of the third window, but it disappears too quickly to see on my new machine.[1] http://vim.sourceforge.net/scripts/script.php?script_id=42
edit: described kludge a bit better
I am using Janus, so maybe it overwrites this.
I have been looking for the equivalent of CommandT for buffers for a while, and the closest I've found is this: http://www.vim.org/scripts/script.php?script_id=1890
Unfortunately it's fuzzy file matcher is nowhere near as useful as CommandT's, so you'll have to use them in conjunction.
:help CommandT
...
*:CommandTBuffer*
|:CommandTBuffer|Brings up the Command-T buffer window.
This works exactly like the standard file window,
except that the selection is limited to files that
you already have open in buffers.
and then later... MAPPINGS *command-t-mappings*
By default Command-T comes with only two mappings:
<Leader>t bring up the Command-T file window
<Leader>b bring up the Command-T buffer window
Note that this is only available since 1.1b which was released in March.