vim-abolish icon indicating copy to clipboard operation
vim-abolish copied to clipboard

Saved abbreviations are not loaded

Open gegnew opened this issue 5 years ago • 5 comments

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 to abolish_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?

gegnew avatar Nov 09 '20 22:11 gegnew

You're not passing -buffer?

tpope avatar Nov 10 '20 00:11 tpope

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.

gegnew avatar Dec 08 '20 09:12 gegnew

What does "as long as the buffer is open" mean?

tpope avatar Dec 08 '20 16:12 tpope

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

gegnew avatar Dec 11 '20 08:12 gegnew

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.

tpope avatar Dec 11 '20 14:12 tpope