<p>Vi and Vim allow for really awesome customization, typically stored inside a <code>.vimrc</code> file. Typical features for a programmer would be syntax highlighting, smart indenting and so on.</p>

<p><strong>What other tricks for productive programming have you got, hidden in your .vimrc?</strong></p>

<p>I am mostly interested in refactorings, auto classes and similar productivity macros, especially for C#.</p>

This isn't in my .vimrc file, but yesterday I learned about the
```
]p
```
command. This pastes the contents of a buffer just like
```
p
```
does, but it automatically adjusts the indent to match the line the cursor is on! This is excellent for moving code around.