Commenting in Visual mode

Commenting with #:

  • :norm i#

Uncommenting # if first in line:

  • :norm x

or if further in line (simply deleting first character):

  • :norm ^x
  • faq/vim.txt
  • Last modified: 13 months ago
  • by Dr Serge Victor