Thursday, April 12, 2012

Re: Temporary stop Relative Line number where it is.

On 01:48 Thu 12 Apr , rameo wrote:
> I like Relative Line number (rnu) and use it often.
> But when something is not visible in my vim window I have to scroll down and Relative Line numbers changes with it.
>
> Sometimes when I write functions I receive error messages; error at line .. and I have to count how many lines are between the top of the function to the line of the error message.
>
> It would be nice to temporary hold/stop Relative Line numbers where it is.
> p.e. to set line "0" at the top of the function and keep it there till I need it.
>
> Is there a way to hold on Relative Line number temporary?
> (Hope I made myself clear)
>
> --
> 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

I can share how I deal with this: vim.vim plugin has [[ motion to the
beginning of a function, then the error shows you in which line of the
function the error occurs, let say 50, so I use 50j to get there from
":function " declaration.

Best,
Marcin Szamotulski

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