On Tue, Jul 13, 2010 at 08:28:27AM -0400, Reid Thompson wrote:
> On Tue, Jul 13, 2010 at 02:56:43PM +1000, John Beckett wrote:
> > Linda W wrote:
> > > Is there a 'quick & easy' way to copy the line numbers from
> > > gvim into a copy buffer? (vs. the slow way of creating a copy
> > > of the file with the same numbering and copyying that)...
> >
> > No, I don't think so. However, in many terminal Vims, you can
> > use the operating system to copy the text, including the line
> > numbers.
> >
> > If desperate, you could try inserting line numbers into the
> > buffer with some ideas from:
> > http://vim.wikia.com/wiki/Insert_line_numbers_2
> >
> > John
>
> I use this one, also found somewhere on the wiki i think
>
> :%s/^/\=line('.') . '. '/
putting this
function! LineIt()
:%s/^/\=line('.') . '. '/
endfunction
in .vimrc
allows calling
:call LineIt()
to add numbers, then q quick command mode u will undo it.
--
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