X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/9074e06b3288e90fc7c9640fa9b64cdd1c043018..cdaa27f1decaaa2fcc12aea15dbe7fb2ed2c0a64:/.vimrc diff --git a/.vimrc b/.vimrc index 176cf78..27aeeb4 100644 --- a/.vimrc +++ b/.vimrc @@ -1450,14 +1450,19 @@ autocmd BufNewFile,BufRead /etc/logcheck/*.d*/* set tw=0 autocmd BufNewFile,BufRead /home/madduck/debian/pkg/logcheck/*/rulefiles/linux/*.d*/* set tw=0 " jump to last known position in file (:he last-position-jump) -autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"zz" | endif +autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g`\"zz" | endif " disable list mode when inserting stuff, otherwise keep it enabled, it's -" useful +" useful (see also setting lcs) augroup listinsert autocmd InsertEnter * set nolist autocmd InsertLeave * set list augroup end +" flag trailing spaces as error only when not inserting +augroup tsperrorinsert + autocmd InsertEnter * match none /\s\+$/ + autocmd InsertLeave * match Error /\s\+$/ +augroup end if &cp | set nocp | endif let s:cpo_save=&cpo @@ -1495,6 +1500,11 @@ map sy :echo synIDattr(synID(line("."), col("."), 1), "name") map / :nohlsearch +omap [{ :normal {jj +nmap [{ :normal {jj +omap ]} :normal }kk +nmap ]} :normal }kk + iab sgf Sehr geehrte Frau iab sgh Sehr geehrter Herr iab lf Liebe Frau @@ -1509,6 +1519,10 @@ iab mbbg Mit bundesbrüderlichen Grüßen iab mvbg Mit verbandsbrüderlichen Grüßen iab vd Vielen Dank iab vld Vielen lieben Dank +iab email e-mail +iab emails e-mails +iab Email E-mail +iab Emails E-mails let &cpo=s:cpo_save unlet s:cpo_save