tpope / vim-rails

rails.vim: Ruby on Rails power tools
http://www.vim.org/scripts/script.php?script_id=1567
4.1k stars 383 forks source link

`:Clog` is trying to redefine the function `reload_log` #537

Closed teoljungberg closed 5 years ago

teoljungberg commented 5 years ago

Reproduction steps:

When I have opened my test log to debug a failure I do so with :Clog test after having cleared out the logs. I then scroll to the top and work my way down the list, when I want to navigate with G to get me to the bottom of the list an error is thrown:

Error detected while processing
/Users/teo/.vim/pack/bundle/start/vim-rails/ftplugin/railslog.vim|17| 
E127: Cannot redefine function <SNR>96_reload_log: It is in use

I see we override the maps for G and R, and R raises the same error as G does when I invoke it.

I'm on the latest vim-rails version, and my vim version is 8.1.1005.