Vim Tips Wiki
Register
(Change to TipImported template + severe manual clean)
(Move categories to tip template)
Line 9: Line 9:
 
|version=6.0
 
|version=6.0
 
|rating=8/2
 
|rating=8/2
  +
|category1=
  +
|category2=
 
}}
 
}}
 
<pre>
 
<pre>

Revision as of 03:51, 25 April 2008

Tip 569 Printable Monobook Previous Next

created September 30, 2003 · complexity basic · author mosh · version 6.0


" Create a menu item to call Perl on the file.
" Edit the -e "script" before pressing return to filter thru Perl.
" Script below works shell=sh, and add line numbers to the file.
:amenu Mo1.Format.NumberLines<TAB>:!perl :1,$!perl -ne \"printf(\\"\%3d:\%s\\",\$.,\$_);\"

See Insert line numbers for other methods.

Comments