On Thursday, April 12, 2012 3:48:07 AM UTC-5, 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 can scroll the window without moving the cursor if it helps. See :help scroll-down :help scroll-up :help scroll-cursor If you're looking for a line number within a function it's probably most useful to place the cursor at the function definition and then press zt to place that line at the top of the window without moving the cursor. -- 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
