tpope / vim-tbone

tbone.vim: tmux basics
http://www.vim.org/scripts/script.php?script_id=4488
397 stars 17 forks source link

Confused about autocmd in plugin/tbone.vim #16

Closed benknoble closed 5 years ago

benknoble commented 5 years ago

There is an autocmd in plugin/tbone.vim that has been there since the very first commit that confuses me a bit.

The plugin script sets up a command name Tmux. The autocmd does the same thing at VimEnter event: save command name, same definition, &c.

It seems redundant to me; is there something I'm missing?

tpope commented 5 years ago

It was to override an identically named command from some other plugin, which I believe I felt confident doing because it was strictly inferior.