Wednesday, October 8, 2014

Re: "vim +n" trigger

On Mi, 08 Okt 2014, Tim Chase wrote:

> Truth be told, if I'm using them in my vimrc at all, I just use the
> raw "au BuffEnter * norm zz" style commands rather than wrapping them
> in a augroup. 'cuz I'm lazy like that.

While it is perfectly okay to do it like this, one should keep in mind,
that whenever you re-source your .vimrc, the autocommand will be added
at the existing BufEnter autocommand so if you do re-source it several
times, that autocommand will be triggered several times (and therefore
might slow down Vim considerably).

I used to do have a lot of those autocommands in my .vimrc, because I
usually do not reload it, but because of that problem, I started
converting all of them to use augroups.

Mit freundlichen Grüßen
Christian
--
Der Ehehafen ist wie alle anderen Häfen. Je länger die Schiffe in
ihnen liegen, um so größer ist die Gefahr, daß sie rosten.
-- George Bernard Shaw

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