sponsor Vim development Vim logo Vim Book Ad

RelOps : Relative line numbers for pending operations

 script karma  Rating 19/11, Downloaded by 1926  Comments, bugs, improvements  Vim wiki

created by
Mohammed Chelouti
 
script type
utility
 
description
Vim 7.3 introduced an interesting functionality: relative line numbers.

The problem with Vim‘s implementation is that you have to decide between relative and absolute line numbers;
you can‘t have both of them at the same time and manual switching is a nuisance.
Moreover on some computers relative line numbers might cause the screen to flicker when moving the cursor.

RelOps gives you the best of both worlds. This plugin enables relative line numbering
when it is most useful: in operator-pending mode
As soon as a motion is passed or the operation is canceled, relative line numbers
are disabled again (unless 'rnu' is set by hand).
 
install details
Extract into ~/.vim
Run :helptags ~/.vim/doc in vim

Or use a plugin manager (Vundle, Pathogen, vim-addon-manager)
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
relops.zip 1.1 2012-09-23 7.3 Mohammed Chelouti - Add support for user mappings.
- Add mapping to temporarily enable rnu.
- Fixed some bugs.
relops.zip 1.0 2012-09-12 7.3 Mohammed Chelouti Initial upload
ip used for rating: 44.205.3.18

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github