X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fskel%2F.vimrc;h=7ef9a4297533d3bacea07836a0068542bd875857;hb=20aa536b5cef0cef7cdd11842426af40f6686c02;hp=99c5a0d8922893af9612d9b3060a76f1e1b854c9;hpb=76706fcdd9c160d7f3212e597d2139f45531da72;p=grml-etc-core.git diff --git a/etc/skel/.vimrc b/etc/skel/.vimrc index 99c5a0d..7ef9a42 100644 --- a/etc/skel/.vimrc +++ b/etc/skel/.vimrc @@ -25,10 +25,12 @@ " autocommands: " when the file type is "mail" then set the textwidth to "70": - au FileType mail set tw=70 + if has("autocmd") + au FileType mail set tw=70 " When editing a file, always jump to the last cursor position " au BufReadPost * if line("'\"") | exe "'\"" | endif - autocmd BufReadPost * if line("'\"") && line("'\"") <= line("$") | exe "normal `\"" | endif + autocmd BufReadPost * if line("'\"") && line("'\"") <= line("$") | exe "normal `\"" | endif + endif " some colors - as an example "white on black" [use bold fonts]: " hi normal ctermfg=white ctermbg=black guifg=white guibg=black