aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxero <x@xero.nu>2015-05-29 23:58:47 -0400
committerxero <x@xero.nu>2015-05-29 23:58:47 -0400
commit6f578d013b5a2e53991c07bdeb9ae6caa28fa417 (patch)
treebc2de4d419b819c608fb715daf1d4ef3b948a3a1
parente45f7aa1bb0ddefb36aa04eba8bc5a326a462fae (diff)
downloaddotfiles_ascii-6f578d013b5a2e53991c07bdeb9ae6caa28fa417.tar.xz
dotfiles_ascii-6f578d013b5a2e53991c07bdeb9ae6caa28fa417.zip
add vim cleanup aliases
-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
+