Monday, November 10, 2014

Re: Changing line numbers from normal to relative

On Monday, November 10, 2014 12:41:06 PM UTC-6, Christian Brabandt wrote:
> Hi Ben!
>
> On Mo, 10 Nov 2014, Ben Fritz wrote:
>
> > On Monday, November 10, 2014 10:25:55 AM UTC-6, Christian Brabandt wrote:
> > > Am 2014-11-10 14:51, schrieb Ben Fritz:
> > > > I've noticed this myself over the last few years I've been using the
> > > > mapping. Especially this is apparent in operator-pending mode. It
> > > > looks like some sort of bug in Vim. I thought I reported it before but
> > > > I can't find it now.
> > >
> > > I think the explicit redraw causes this. I think you might get around
> > > this,
> > > by not redrawing explicitly and using the <silent> flag for the
> > > mappings.
> >
> > Without the explicit redraw, sometimes the line number column does not update. I think the main problem was in operator pending mode.
>
> I haven't seen that, when using the <silent> flag, but I haven't tested
> it heavily.
>

Thanks! I removed the redraw, and added <silent> to each mapping, and now the line numbers update properly and the cursor stays put!

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

No comments: