Monday, March 26, 2012

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

Paul Nguyen wrote:
> 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.

:help gui-mouse-modeless

Never heard of that, although it turns out that I do use it when
output is displayed. For example, after :g/pattern/ in gvim it
is possible to drag the mouse to select the output (no need for
Ctrl or Shift) then press Ctrl-Y to copy the text to the
clipboard.

In a Vim window, Ctrl-Shift is required, but then you have to
get into the command line (:) and press Ctrl-Y.

John

--
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