diff --git a/.vimrc b/.vimrc index a25eebd..b4861c3 100755 --- a/.vimrc +++ b/.vimrc @@ -166,6 +166,8 @@ nmap /g /[<=>]\{7,}.*$ " Toggle wrapping of long lines nmap l :set wrap! +" Strip trailing whitespace +nmap :TrailWhitespace " Scroll window while keeping cursor on same line with shift nmap nmap @@ -175,4 +177,5 @@ vmap " Misc. map n :noh vmap T :'<,'> Tabularize / +nnoremap c :execute "set colorcolumn=" . (&colorcolumn == "" ? "120" : "") noremap :