Skip to content
Browse files

Removed trailing whitespaces on save action

  • Loading branch information...
1 parent 558df50 commit 8fe735b2f3d685003ae79de708ec63b503c73226 Sandro Munda committed Jul 13, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 vimrc
View
3 vimrc
@@ -72,6 +72,9 @@ set guicursor=n-v-c:block-Cursor-blinkon0,ve:ver35-Cursor,o:hor50-Cursor,i-ci:ve
" Status line
set laststatus=2
+" Remove trailing whitespace on save
+autocmd BufWritePre * :%s/\s\+$//e
+
" ------ Command-T ------
noremap <leader>o <Esc>:CommandT<CR>
noremap <leader>O <Esc>:CommandTFlush<CR>

0 comments on commit 8fe735b

Please sign in to comment.
Something went wrong with that request. Please try again.