Paul Jolly wrote:

> FYI - I implemented this for govim and it's working rather well:
> 
> https://github.com/myitcv/govim/blob/5a5f92f0433c07b2aa48a81e7285590f06eb12e7/autoload/govim/config.vim
> 
> With the one exception of when govim is loaded as a Vim8 package,
> because (and this is a detail I only just came across) packages are
> loaded _after_ the .vimrc.
> 
> A workaround for this is to do a packloadall at the end of the .vimrc,
> followed by calls to the config functions.
> 
> Is there perhaps a cleaner solution?

If someone wants to use the config functions, it should be
straightforward to first to "packadd govim".  That also keeps it
together with the settings, thus I would think it is a good solution.
Even better than using some plugin manager where loading the plugin and
doing the settings would be in separate places.

-- 
hundred-and-one symptoms of being an internet addict:
168. You have your own domain name.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201906131840.x5DIeRma017543%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui