Comment Especially useful for PERL (Score 2, Informative) 702
To create a comment block:
move cursor to the start of the comment block
ma - creates a mark called "a"
scroll down to the end of the comment block
:'a,.s/^/#/ - to create comment block
:'a,.s/^#// - to remove comment block
basically puts # at the start of every line from mark a to your current cursor position. You can get creative and use this method for tons of things, indenting, substituting words within a given scope, comment blocks, etc.
move cursor to the start of the comment block
ma - creates a mark called "a"
scroll down to the end of the comment block
basically puts # at the start of every line from mark a to your current cursor position. You can get creative and use this method for tons of things, indenting, substituting words within a given scope, comment blocks, etc.