Thanks for this one:
"Store temporary files in a central spot
Swap files and backups are annoying but can save you a lot of trouble. Rather than spreading them all around your filesystem, isolate them to a single directory"
Tim Pope, author of Rails.vim, surround.vim and a bunch of other Vim Scripts has his config files at http://git.tpope.net/ he has some stuff I've never seen anywhere else.
I know this is way off on a tangent, but as a guy who keeps trying to pick up emacs and ends up going back to Vim; I really wish there was a place out there where people had their .emacs posted with comments so I could see some ways that people are configuring their emacs.
I have copied full .emacs files previously, but it'd be cool to see some snippets somewhere.
I'm giving emacs a valuation right now. I mostly code very short numerics things up that don't really take much keyboard-fu, but i've always thought a lot about the editor I use. I used to use Vim, but I figured I'd give emacs a try and see if I like it. I get pretty annoyed with the weirdness of the different keyboard shortcut combos, but I'm getting used to them slowly but surely. I kinda miss Vim though..i've been thinking of jumping ship back to Vim and spend some more time making it really customized for myself.
Nice tips. As a side note - in my opinion, finding a good color scheme can also improve your enjoyability and even usability of vim. I was surprised at how much easier on the eyes some color schemes were versus the default. In addition, if you like having a default terminal look that doesn't quite transfer well to vim (such as a terminal with a little transparency which can be helpful on smaller screens since you can effectively "share" some space between your terminal and whatever you might be reading off of), having a default colorscheme will fix that too.
Quick question to the Vim experts here at HN but why is it when I start vim from the terminal (Ubuntu) it does not apply the color schemes I downloaded from Vim.org, yet when I start GVim I can see the color schemes applied?
In your terminal Vim session, type :echo g:colors_name to find out if you have a colour scheme set.
Also what version of Vim are you using? If you are using Vim-Tiny for example, it is not compiled with syntax highlighting support. Type :version to see the list of compiled features and look for '+syntax'.
Otherwise it could be your terminal emulator playing up.
Try :set t_Co to see how many colours Vim can recognise in your terminal. Ideally this should return at least '8'. If it doesn't there may be some tips in :h xterm-color.
Also, check whether you're applying the color scheme in .vimrc or .gvimrc, and check where you're turning on syntax highlighting. Remember some color schemes just look different depending whether you're in the terminal or the full GUI.
i wish the matchit thing would work with ruby; i've been annoyed that % on if/do/end/etc. doesn't work like it does with languages using brackets around blocks.