Skip to content
Tags

,

Commenting blocks of code in vim

March 27, 2012

Go to the starting line number, add then type the number of lines that need tone commented out and vim command for substitute. of commuting 16 lines from the current line follow:

16:s/^/#/

Advertisements

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: