mlsamuelson.com

Comments in Vim

Prerequisite: install the comments plugin available at http://www.vim.org/scripts/script.php?script_id=1528

CTRL+c

comment a single line or multiple selected lines* of code

CTRL+x

uncomment a single line or multiple selected lines* of code

* Select multiple lines by entering visual line mode with V and then using j or k to make the selection.

No comments

Add your comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

Find Me Around

User login