Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed trailing whitespaces on save action

  • Loading branch information...
commit 8fe735b2f3d685003ae79de708ec63b503c73226 1 parent 558df50
Sandro Munda authored
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>
Please sign in to comment.
Something went wrong with that request. Please try again.