Ask HN: A better Vim distribution?
I'm trying to change my development workflow. Currently I find myself in graphical editors, writing C++ and I dont feel the workflow is great. Mouse to Keyboard, back again.
Ideally I'd like to end up with split screen editing, left hand file navigation, tabs. Do everything from the keyboard. This is going to take some practice getting used to.
So I downloaded the spf13 vim distro: https://github.com/spf13/spf13-vim
But now I am realizing I need a lot more knowledge to customize it. I cant just hop in and use it. Things like NERDTree persisting across all tabs. Setting up split screen from the start. Tabs.
Where do I find the balance between becoming productive in vim and learning to customize it to actually continuing to code and make progress as I can with my graphical editors?
7 comments
[ 0.22 ms ] story [ 28.9 ms ] threadI'm using the Command-T plugin to navigate the file system (to open files) and to change between opened files (i.e. buffers). I usually work on a single tab, splitting windows when needed, and alternating between buffers with ",b" (Command-T to show current buffers and select one) or "]b" (next buffer).
If I need to work in two different window layouts, I can open a separate tab. That is rare, though.
Additionally, I'm using the Ag plugin to search in files and the qargs plugin to replace text in the searched files.
spf13, which has a lot of great plugins, probably started as someone's personal collection of plugins at some point. As such, the author had a lot of time to muse on what her/his current vim set up was missing. Sharing someone else's vim distribution, you miss out on the motivation behind including things (and also on the opportunity to pick alternatives more suited to your needs).
I would start with stock vim and spend a few minutes outlining the features you need. I recommend, as a minimal set, a couple of plugins I think most people are happy about:
https://github.com/gmarik/Vundle.vim [https://github.com/tpope/vim-pathogen] https://github.com/tpope/vim-sensible https://github.com/tpope/vim-fugitive