Tuesday, November 26, 2013

Re: vim rpn calculator

On 2013-11-26, Nikolay Pavlov wrote:
>
> On Nov 26, 2013 10:11 PM, "Gary Johnson" <garyjohn@spocom.com> wrote:
> >
> > On 2013-11-26, Bee wrote:
> > > Gary, thank you for the comments about my code comments.
> >
> > You're welcome.
> >
> > > Is there a way to disable redraw until the end of the mapping?
> >
> > Try setting 'lazyredraw' at the start and 'nolazyredraw' at the end.
> > See ":help 'lazyredraw'".
>
> Second part (at the end) is not good: you should save &lazyredraw value and
> restore it and NOT ignore user settings like you do.

Good point, and that's what I actually do in my mappings. In this
case, I was trying to keep it simple and I thought it was rare that
anyone would have 'lazydraw' set.

Regards,
Gary

--
--
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/groups/opt_out.

No comments: