vim-abolish
vim-abolish copied to clipboard
Saved abbreviations are not loaded
It's possible I've missed something in reading the docs, but I can only get buffer-local abbreviations.
I.e.:
- if I run
:Abolish foo bar, it works as expected. - if I run
:Abolish! foo bar, the rule is appended toabolish_save_file, and the modification works as long as the buffer is open - however, saved rules are not loaded when opening a new buffer
Am I missing something?
You're not passing -buffer?
I was not. Passing -buffer appears to have precisely the same functionality as without.
I'm using neovim, so I explicitly added .vim/after/plugin/abolish.vim to the runtimepath, but this also didn't seem to work. I also tried setting abolish_save_file to a path in neovim's existing runtimepath. Also no go.
Any more troubleshooting ideas? If I can provide more specific information, I'm happy to.
What does "as long as the buffer is open" mean?
The Abolish settings persist for a single buffer, but not in any other buffer or any other instance of neovim. So as long as a buffer exists, it will contain the settings from running i.e. :Abolish foo bar
Defining "as long as the buffer open" using "as long as the buffer exists" isn't very illuminating. Please provide specific instructions to reproduce in the same instance.