X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/cf64700550e4c1345d2b7e9cfe73ca07b3a65135..966b9444bb93aab229e2b6b03d183fed700e1762:/.vimrc?ds=inline diff --git a/.vimrc b/.vimrc index 27f219e..1030ac6 100644 --- a/.vimrc +++ b/.vimrc @@ -1453,11 +1453,16 @@ autocmd BufNewFile,BufRead /home/madduck/debian/pkg/logcheck/*/rulefiles/linux/* 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 @@ -1521,5 +1531,3 @@ source $HOME/.vim/macros/table.vim let g:SuperTabMappingForward = '' let g:SuperTabMappingBackward = '' - -match Error /\s\+$/