mathiasbynens/dotfiles — pull request #88 by knutwalker (2012-07-19 10:23:31+00:00)
Title: save and restore last cursor position in vim

This sets vim to save the cursor position on close/write and restores it on re-opening.

* The set viminfo part is to unify and explicitly declare the .viminfo file (~/.viminfo is the default though)
* The augroup cursor part restores the cursor

The additional check is to ensure, that the restoring works properly on files with only one line