(Created page with "The 2.0.0 version(current at the time of writting) is flawed for linux/unix, because its format is for DOS. To fix this unzip the LineCommenter.vim and run dos2unix on the file t...") |
JohnBeckett (talk | contribs) (standard format) |
||
Line 1: | Line 1: | ||
+ | {{ScriptComments|2428|LineCommenter: toggle comment/uncomment of current line}} |
||
− | The 2.0.0 version(current at the time of writting) is flawed for linux/unix, because its format is for DOS. |
||
+ | |||
− | To fix this unzip the LineCommenter.vim and run dos2unix on the file to convert the newlines to Unix format. |
||
+ | ==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}}. |
||
+ | |||
+ | To fix, unzip the script and use the advice at [[file format]] (or use <tt>dos2unix</tt>) to fix the line endings. |
||
+ | |||
+ | ==Comments== |
Revision as of 23:43, 26 September 2011
Use this page to discuss script 2428 2428
- 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.