Ron89 / thesaurus_query.vim

Multi-language Thesaurus Query and Replacement plugin for Vim/NeoVim
http://www.vim.org/scripts/script.php?script_id=5341
Apache License 2.0
220 stars 23 forks source link

Set buffer name after turning off swap file #39

Closed idbrii closed 5 years ago

idbrii commented 5 years ago

Prevent E325 (existing swap file) when using the :Thesaurus command by renaming the buffer after we configure the buffer (including noswapfile).

Issue was easily triggered 100% by running vim (8.1.527 on Windows10) like so:

gvim +"Thesaurus hero"

And resulted in error:

vim.error: Vim(file):E325: ATTENTION
Ron89 commented 5 years ago

Merged. Thank you for the PR~