Monday, November 1, 2010

RE: line number non copyable

statquant2 wrote:
> silly question, is it possible to set the line numbers such
> that you cannot copy them ?
> I like to have the line number but I am fed up with having to
> set nonu each time I want to copy with the mouse.
> In most editors I know, line numbers are visible but you
> cannot copy them ...

Presumably you are using console/terminal Vim, and the mouse
copying that you refer to is NOT done by Vim, but is done by the
shell.

One solution would be to use gvim (GUI Vim), and use its ability
to copy with the mouse. Another approach for any Vim compiled
with clipboard support would be to copy using Vim's commands:

"+yip
copy inner paragraph to clipboard

:12,345y +
copy lines 12..345 inclusive to the clipboard

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