Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Relative line numbers for pending operations
VimL
Branch: master

Version 1.1

- Add support for user mappings.
- Add mapping to temporarily enable rnu.
- Fixed some bugs.
latest commit 1cf372ff6a
Mohammed Chelouti authored committed
Failed to load latest commit information.
after/plugin Version 1.1
doc Version 1.1
plugin Version 1.1
README Version 1.1

README

This is a mirror of http://www.vim.org/scripts/script.php?script_id=4212

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).
Something went wrong with that request. Please try again.