Browse files

stripping whitespace of python and ruby files

  • Loading branch information...
pellegrino committed Aug 8, 2012
1 parent 7e47c2b commit 6fdcbbae923e8d572c825638b8e5fea02e860927
Showing with 6 additions and 1 deletion.
  1. +6 −1 vim/vim
@@ -120,6 +120,11 @@ map <Down> <c-w>-
map <Left> <c-w><
map <Right> <c-w>>
" " Stripping trailing whitespace of ruby and python files
autocmd BufWritePre *.py :%s/\s\+$//e
autocmd BufWritePre *.rb :%s/\s\+$//e
" " Vim buffers resizing
"" No remapping ESC for the same reason above
@@ -128,6 +133,6 @@ inoremap jj <Esc>
"" Giving my arrow keys back while on tmux
map <Esc>[B <Down>
"" Copy and paste using the system xclip
"" Copy and paste using the system xclip (linux)
vmap <C-c> y:call system("xclip -i -selection clipboard", getreg("\""))<CR>:call system("xclip -i", getreg("\""))<CR>
nmap <C-t> :call setreg("\"",system("xclip -o -selection clipboard"))<CR>p

0 comments on commit 6fdcbba

Please sign in to comment.