I have a plugin (a unite sub-module) that filters extremely large textfiles down to generate a helpful 'table of contents'. I would like to provide the user with the ability to enable/disable many of the filters... and I would like that setting to persist through each vim invocation. (instant updates across concurrent sessions is not necessarily needed)
Is there a mechanism for doing this built into vim? Or do I need to create and manage a "dot file" in the user's $HOME? Or is there an accepted standard way of handling this?
EDIT: I can't really just let the user set a global variable in the vimrc, because the list of options is currently several hundred entries long, and the current interface is simply "type d with the index open" to remove from the list.
viminfo
includes!
, and then certain types of g:variables will be stored persistently in the viminfo file, but it's not reasonable for most plugins to modify viminfo on users.g:boolVariable
and then directed the user to set it in his ownvimrc
. Then you can just check the options the user has set and work from there.