aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim/.vimrc7
1 files changed, 7 insertions, 0 deletions
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
+