I made the amazing realization the other day, that since 'number' and
'relativenumber' are both window-local options, I can do this:

:aboveleft vsp | setl nu scrollbind cursorbind | exec 'vert resize'
&numberwidth | setl winfixwidth | wincmd p | setl rnu scrollbind
cursorbind

Now I have BOTH relative and normal line numbering! Awesome!

But this gets messed up if I start opening or closing folds, or
creating new folds if my fdm supports it.

Is there a good way to keep folds in sync between two windows? I
cannot even think of a good way to do it manually. When fdm=diff, Vim
automatically keeps the folds in sync, I want something similar for
other fold methods.

Possibly I can use :mkview in a mapping and/or a cursorhold event, but
this seems a little heavy-handed.

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

Reply via email to