Ruby Adam
Wednesday, October 27, 2010
Ruby comments in vim
Put this in your .vimrc
- will now comment a visual block, _ will uncomment the entire visual block. Enjoy.
map _ :s/^\/\/\\|^--\\|^> \\|^[#"%!;]//
:nohlsearch
map - :s/^/#/
:nohlsearch
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment