local_vimrc
local_vimrc copied to clipboard
the plugin does not remember security settings for a folder
Hello,
I created _vimrc_local.vim in the project folder. then, when I open a file for edit using vim, I see the question: Do you want to recognize a local vimrc at "/home/semenov/work/nginx-se-key-caching/_vimrc_local.vim"? Always at the bottom.
- the answer is not modifiable. it's hardcoded to Always and I cannot type anything else there.
- that 'Always' response seems to be not remembered by the plugin - I exit vim, then open a file again, and again I see the same question and have to hit 'enter' before actually start editing the file.
is this configurable without black/white lists? I mean the question for loading local vimrc and make it remember my answer for a path?
Thank you
Hello Roman,
- the answer is not modifiable. it's hardcoded to Always and I cannot type anything else there
Normally you should see 4 possible answers and be able to navigate among them thanks to the cursor (right and left), tab, shift-tab (it may require gvim), or if you type the related hot keys: o
, a
, n
, v
. You can check the UI with
:echo lh#ui#confirm('Do you want to blah blah?', "&Once\n&No\n&Always\nNe&ver", 3)
- that 'Always' response seems to be not remembered by the plugin
Indeed, the name of the choice is not very well thought I must admit. Another issue was opened on the subject last year: #19. So far "always" doesn't record your choice in any configuration file. "always" and "never" choices could be extended to do so. I'll have to choose a place where to save that choice...
To save the always
choice would make this plugin a lot more usable in practice!
Would it maybe make sense to put a file at ${XDG_DATA_HOME:-$HOME/.local/share}/local_vimrc/security_settings.txt
?
When I open vim, it asks me to confirm loading the local vimrc, even when I've previously responded with "Always". Is this expected behavior? If so, what's the difference between "Once" and "Always"?