Vim Tips Wiki
Register
(standard format)
(Change <tt> to <code>, perhaps also minor tweak.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{ScriptComments|2428|LineCommenter: toggle comment/uncomment of current line}}
+
{{ScriptComments|LineCommenter: toggle comment/uncomment of current line}}
   
 
==Fix for Linux==
 
==Fix for Linux==
The 2.0.0 version of the script does not work on Unix-based systems because it uses CRLF line endings (DOS file format) which cause errors like {{tt|E492: Not an editor command: ^M}}.
+
The 2.0.0 version of the script does not work on Unix-based systems because it uses CRLF line endings (DOS file format) which cause errors like <code>E492: Not an editor command: ^M</code>.
   
To fix, unzip the script and use the advice at [[file format]] (or use <tt>dos2unix</tt>) to fix the line endings.
+
To fix, unzip the script and use the advice at [[file format]] (or use <code>dos2unix</code>) to fix the line endings.
   
 
==Comments==
 
==Comments==

Latest revision as of 09:45, 14 July 2012

Use this page to discuss script 2428 LineCommenter: toggle comment/uncomment of current line

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

Fix for Linux[]

The 2.0.0 version of the script does not work on Unix-based systems because it uses CRLF line endings (DOS file format) which cause errors like E492: Not an editor command: ^M.

To fix, unzip the script and use the advice at file format (or use dos2unix) to fix the line endings.

Comments[]