Index: trunk/debs/wikimedia-base/vimrc.local |
— | — | @@ -0,0 +1,19 @@ |
| 2 | +if &t_Co > 2 || has("gui_running") |
| 3 | + syntax on |
| 4 | + set hlsearch |
| 5 | +endif |
| 6 | + |
| 7 | +colo murphy |
| 8 | +set viminfo='50,%,:50 |
| 9 | +set backup writebackup |
| 10 | +filetype plugin indent on |
| 11 | + |
| 12 | +" Only do this part when compiled with support for autocommands |
| 13 | +if has("autocmd") |
| 14 | + " When editing a file, always jump to the last cursor position |
| 15 | + autocmd BufReadPost * |
| 16 | + \ if line("'\"") > 0 && line ("'\"") <= line("$") | |
| 17 | + \ exe "normal! g'\"" | |
| 18 | + \ endif |
| 19 | +endif |
| 20 | + |