Kunaljain’s Weblog

January 22, 2008

Usefull Vi Tricks

Filed under: Linux Tips & Tricks — Kunal Jain @ 6:10 am
map <F6> :s.^#.. <CR> :noh <CR>
map <F5> :s.^.#. <CR> :noh <CR>

add the above two lines in vimrc file which is generally located in /etc/vim
now use a visual line select(shift-v) to select what you want to comment
press F5 to comments the lines and F6 for uncommenting the lines

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.