Sunday, March 25, 2012

Re: :set nu -> how to copy lines with line numbers?

hi, I thought I'd contribute my 2 cents. I've used VIM for umpteen years,
and have found that if the solution to a VIM issue is too complex, I might
use it once or twice but then forget it. I've developed many scripts,
plugins, and methods, only to find that...........they become forgotten
after some time if I don't use them regularly.

Alas, I have the answer to your question, and stumbled on it by accident:

On my Windows VIM GUI, :set nu, and then hold down Ctrl-Shift while
highlighting the desired text with the mouse. This yanks the line numbers
into the buffer.

--
View this message in context: http://vim.1045645.n5.nabble.com/set-nu-how-to-copy-lines-with-line-numbers-tp1186325p5594374.html
Sent from the Vim - General mailing list archive at Nabble.com.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment