Vim Tips Multiline Comment
I ran across this hidden gem today in Vim.
- Enter visual mode by pressing Ctrl-v.
- Next select the lines you want then press Shift-i.
- After that insert the comment character(s). I use Ruby so I entered '#'.
- Finally press escape and you will have a nice block of comments inserted.