Unfortunately this does not work when the foldmethod is being set on modelines (which is often the case for me). Thus I resorted to BufWinEnter, which the docs explicitly say happens after modeline processing:
http://vimdoc.sourceforge.net/htmldoc/autocmd.html#BufWinEnter On Wed, Jan 21, 2015 at 05:54:37PM -0500, Salman Halim wrote:
This won't solve everything, but you could hook into BufReadPost, I think, to cause it to only happen once: au BufReadPost * normal zR
-- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: PGP signature
