On Fri, Feb 1, 2013 at 8:42 AM, Charles E Campbell
<[email protected]> wrote:
> When some users of some simulation s/w I helped write have a problem, I
> usually end up with 10-150G long debugging traces; I usually break these up
> into 1G chunks and "edit" (more usually, examine) these.  So I often end up
> with files having considerably more than 10,000 lines in them.  Since the
> patch has been accepted which installs the current line number, I'll
> probably just use my RltvNmbr plugin instead.

I can understand the problem. But hey this vim, the editor that lets you
customize a thousand things with its myriad of options, so here's a toy
patch that attempts to combine the number/relative number option into
a single option called 'linenumber'. Here's the relevant part in
options.txt:

-->8--
'linenumber' 'lnr'      string  (default "none")
                        local to window
                        {not in Vi}
        Controls how line numbers are shown:
        value           effect
        none            No line numbers are shown
        number          Same as ":set number"
        relative        Same as ":set relativenumber"
        numrel          Same as ":set relativenumber", but instead of
                        showing '0' for the current line, show the actual
                        line number instead. The actual line number is
                        left-aligned to differentiate it from the relative
                        line number.
--8<--

The patch do not include Christian's fix for the problem
reported by François Ingelrest.

Nazri

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Attachment: lnr.diff
Description: Binary data

Raspunde prin e-mail lui