X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=5bc0894bb96d27f5a174276aa8c84b13c7b57ec1;hb=35f1d8f86e839023a837fe978cd219fba168ff95;hp=63b4acf96795907bdaad54f3fbf5f44daddac2a2;hpb=55d1fc84f5ccf450bcca9407baa9dec64cd70b6a;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index 63b4acf..5bc0894 100644 --- a/vimrc +++ b/vimrc @@ -408,20 +408,20 @@ if has('statusline') set statusline= " on the left - set statusline+=%02n " buffer number - set statusline+=%{SBC()} " highest buffer number + set statusline+=%02n " buffer number + set statusline+=%{SBC()} " highest buffer number set statusline+=: if has('modify_fname') && v:version >= 700 " some functions need 7.0 - set statusline+=%{SRF()} " path to current file - set statusline+=\ " space after path + set statusline+=%{SRF()} " path to current file + set statusline+=\ " space after path else - set statusline+=%f\ " path to current file in buffer + set statusline+=%f\ " path to current file in buffer endif - set statusline+=%h " [help] if buffer is help file - set statusline+=%w " [Preview] if buffer is preview buffer - set statusline+=%m " [+] if buffer was modified, - " [-] if 'modifiable' is off - set statusline+=%r " [RO] if buffer is read only + set statusline+=%h " [help] if buffer is help file + set statusline+=%w " [Preview] if buffer is preview buffer + set statusline+=%m " [+] if buffer was modified, + " [-] if 'modifiable' is off + set statusline+=%r " [RO] if buffer is read only " on the right set statusline+=%= " right align @@ -901,10 +901,10 @@ if has('autocmd') autocmd InsertLeave * set nopaste endif -" Write file when running :mak[e] before 'makeprg' is called. QuickFixCmdPre -" doesn't exist in older Vims. +" Write all files when running :mak[e] before 'makeprg' is called. +" QuickFixCmdPre doesn't exist in older Vims. if exists('##QuickFixCmdPre') - autocmd QuickFixCmdPre * write + autocmd QuickFixCmdPre * wall endif " Don't ignore case while in insert mode, but ignore case in all other modes. @@ -927,9 +927,7 @@ if has('autocmd') return endif - echohl WarningMsg - echo 'Do not edit this file! (Maybe a template file.)' - echohl None + echoerr 'Do not edit this file! (Maybe a template file.)' endfunction autocmd BufRead * call SearchForDoNotEditHeader()