X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/7f7cfff9495f7ae1f362286b1f763b27bbbb391f..31709000e699fab4086d5a7dddfcdb1b63460bc3:/.vimrc?ds=sidebyside diff --git a/.vimrc b/.vimrc index 66cb4ff..91a3b66 100644 --- a/.vimrc +++ b/.vimrc @@ -1441,6 +1441,10 @@ set vi=<1000,'1000,\"1000,:100,/100,@100,f1,%,!,h,n$VARDIR/vim/viminfo " set to "msg" to see all error messages " set debug= +if &cp | set nocp | endif +let s:cpo_save=&cpo +set cpo&vim + filetype plugin indent on syntax on colorscheme madduck @@ -1448,12 +1452,6 @@ colorscheme madduck " leave the w mark whenever a file is written autocmd BufWrite * normal mw -" keep an extra backup of vimperator's ctrl-i -autocmd BufWritePost */vimperator-*.tmp exe 'write ' . fnameescape((exists('$TMPDIR') ? $TMPDIR : '/tmp') . '/vimperator.ctrl-i.' . strftime('%Y.%m.%d.%H%M%S')) -autocmd BufWritePost */pentadactyl.*.txt exe 'write ' . fnameescape((exists('$TMPDIR') ? $TMPDIR : '/tmp') . '/pentadactyl.ctrl-i.' . strftime('%Y.%m.%d.%H%M%S')) - -autocmd BufRead *.vcf set filetype=vcard - " leave the i mark whenever we go idle (after updatetime) "augroup markidle "autocmd CursorHold * normal mi @@ -1472,10 +1470,6 @@ augroup tsperrorinsert autocmd InsertLeave * match Error /\s\+$/ augroup end -if &cp | set nocp | endif -let s:cpo_save=&cpo -set cpo&vim - " treat wrapped lines normally nnoremap k gk nnoremap gk @@ -1540,6 +1534,8 @@ iab mk Martin Krafft iab mfk Martin F. Krafft iab addr Hanfstaenglstraße 15 D–80638 München +let g:is_posix = 1 + let &cpo=s:cpo_save unlet s:cpo_save @@ -1547,5 +1543,3 @@ source $HOME/.vim/macros/table.vim let g:SuperTabMappingForward = '' let g:SuperTabMappingBackward = '' - -let g:is_posix = 1