From: Colin Patrick McCabe Date: Mon, 15 Feb 2010 21:57:56 +0000 (-0800) Subject: colin's auto-commenter: implement vim comments X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3df0006f5cfa5a311cf48eb56a66d8619f1bc35;p=cmccabe-etc colin's auto-commenter: implement vim comments colin's auto-commenter: implement vim comments. Also spruce up the comment removal stuff a bit. --- diff --git a/.vimrc b/.vimrc index 5b879b0..a08a22f 100644 --- a/.vimrc +++ b/.vimrc @@ -47,6 +47,8 @@ set laststatus=2 "*************** colin's auto-commenter *************** map ,/ :s/^/\/\//:nohlsearch -map ,,/ :s/\/\///:nohlsearch +map ,,/ :s/^\/\///:nohlsearch map ,# :s/^/#/:nohlsearch -map ,,# :s/#//:nohlsearch +map ,,# :s/^#//:nohlsearch +map ," :s/^/\"/:nohlsearch +map ,," :s/^\"//:nohlsearch