News for hackers. Stuff that matters.
Re:What is in your .vimrc by cpeterso on Monday August 22, 2011 @01:42AM (#2911455)

  " 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>

There are no comments on this comment yet.