tomtom / tlib_vim

Some utility functions for VIM
http://www.vim.org/scripts/script.php?script_id=1863
GNU General Public License v3.0
173 stars 43 forks source link

Fix error E1208 raised by vim >=8.2.3141 #30

Closed stac47 closed 3 years ago

stac47 commented 3 years ago

Hello,

Starting vim 8.2.3141 with the tlib_vim plugin will raised the following error message at startup:

Error detected while processing .vim/pack/stac/start/tlib_vim/plugin/02tlib.vim:
line   77: E1208: -complete used without -nargsPress ENTER or type command to continue

The reason is the following change in vim:

https://github.com/vim/vim/commit/de69a7353e9bec552e15dbe3706a9f4e88080fce

Which forbid the com[mand] command with the combination of -nargs=0 and -complete options.

More context can be found there: https://github.com/vim/vim/issues/8541.

floatingatoll commented 3 years ago

This suggested fix seems to match the one for vim-fugitive in tpope/vim-fugitive@4cdeff8c33ec2fe0686324bf1846ce158c452754, and tab-completion for TBrowseScriptnames continues to work after the removal in 8.2.3141.

gonzaloserrano commented 3 years ago

Worked for me too.

antenore commented 3 years ago

It works for me too.

@tomtom can you kindly merge this?

tomtom commented 3 years ago

Thank you very much! You are right in that the complete argument should be removed.