3 ms·
" Automagically save files when focus is lost autocmd BufLeave,FocusLost silent! wall " Highlight whitespace at the end of a line highlight ExtraWhitespa
by cpeterso 15y ago
" Automagically save files when focus is lost
autocmd BufLeave,FocusLost silent! wall
" Highlight whitespace at the end of a line
highlight ExtraWhitespace ctermbg=Black guibg=Black
match ExtraWhitespace /\s\+$/
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
autocmd BufWinLeave * call clearmatches()
" Disable man key
nnoremap K <nop>