sponsor Vim development Vim logo Vim Book Ad

line number yank : yank lines with line number

 script karma  Rating 2/4, Downloaded by 247    Comments, bugs, improvements  Vim wiki

created by
Zhang Huicong
 
script type
utility
 
description
The script is used for yank lines with their line number.
You can yank lines for specific range with their line number by key map \ny
For example, the text from line 9 to 12 is like the follow:

line9
line10
line11
line12

if you specified text from line 9 to line 12 under visual mode, press `\ny'. Then if you press `p', it would paste:

  9  line9
10  line10
11  line11
12  line12

If the line number is larger than 999, the format would not that tidy.
 
install details
Just simply copy lnyank.vim into you plugin directory($HOME/.vim/plugin for unix)
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
lnyank.vim 0.1 2010-02-06 6.0 Zhang Huicong Initial upload
ip used for rating: 54.196.159.11

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo