On Sun, Apr 07, 2019 at 10:40:44PM +1000, Erik Christiansen wrote:
>
> No experience with plugins, but just this in .vimrc does it for me:
>
> noremap <F1> :call Rnu_toggle()<CR> " Toggle relative line numbering.
> "
> " Toggle relative line numbering.
> function! Rnu_toggle()
> if &rnu == 1
> set nornu
> else
> set rnu
> endif
> endfun
hmm, this looks like an even better solution! I don't know of any speed
differences between a function in .vimrc and a plugin, but I somehow
prefer less extra frills.
I'll try this one, Erik -- TNX
//meine
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sunday, April 7, 2019
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment