From 6f578d013b5a2e53991c07bdeb9ae6caa28fa417 Mon Sep 17 00:00:00 2001 From: xero Date: Fri, 29 May 2015 23:58:47 -0400 Subject: add vim cleanup aliases --- vim/.vimrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vim/.vimrc b/vim/.vimrc index a7ccc6f..01385a5 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -92,6 +92,12 @@ nnoremap ; : " json pretty print command J :%!python -mjson.tool +" remove trailing white space +command Nows :%s/\s\+$// + +" remove blank lines +command Nobl :g/^\s*$/d + " enable file type detection and do language-dependent indenting if has("autocmd") filetype on @@ -165,3 +171,4 @@ endfunction au InsertEnter * call Colorize(v:insertmode) au InsertLeave * hi StatColor guibg=#3a3a3a guifg=#ffffff ctermbg=237 ctermfg=255 + -- cgit v1.2.1