4 ms·
Nicely done. A new or returning vimmer will profit from following his advice. His best recommendation is at the top: don't configure a lot of settings and plug
by xer0 15y ago
Nicely done. A new or returning vimmer will profit from following his advice.
His best recommendation is at the top: don't configure a lot of settings and plugins at first. Start with a minimal setup, and slowly work up from there when needed. In particular, don't copy someone's huge .vimrc.
In fact, that's good advice for any tool or technology: start minimal, and only add what you need, when you know you need it.
To his minimal initial configuration, I would suggest one addition: set a colorscheme that looks good to you in the terminal/gui environment you normally use, and choose from the default schemes rather than downloading a pack of them. I like elflord (it doesn't use a lot of red, which is hard to read on a black background), YMwillcertainlyV.
To see which scheme you're currently using, open an existing file in your favorite language and then:
:colorscheme
To cycle through the available schemes:
:colorscheme<space><tab>
Each tab will show you the next scheme's name; hit enter to try one.
- pyre 15y agoAlso, colorschemes are supposed to set the colors_name variable: :let colors_name Though this doesn't always happen.
- MrScruff 15y agoOut of curiosity, why would you suggest choosing from the default schemes? I picked my scheme from a downloaded bundle and then installed a plugin to make it work on a 256 colour terminal.
- xer0 15y agoBecause that minimizes futzing around. Certainly if the colorscheme makes a difference to you, and you can't find one that satisfies you in the defaults, then you should try to find a better one, but I think you should try the defaults first. Trying to use what's already there is in keeping with minimizing the urge to "install all the things!"
- MrScruff 15y agoFair enough. I'm currently using Freya since I have a love of low contrast dark schemes with muted colours. http://www.vim.org/scripts/script.php?script_id=1651 http://www.vim.org/scripts/script.php?script_id=1651
- sickill 15y agoAnd if you're not satisfied by any of existing Vim color schemes you can always convert bunch of Textmate ones here: http://ku1ik.com/2011/10/22/coloration-vim-256-colors.html http://ku1ik.com/2011/10/22/coloration-vim-256-colors.html