0

I'm using tern_for_vim and trying to rename a variable. When I run :TernRename I get asked for the new name of the variable. After I provide that and press Enter, the variable gets renamed and then I get a new split with all the references where the variable was found. How can I get rid of that? It's annoying to have to close that after each rename...

Foryah
  • 193
  • 2
  • 11
  • Read the plugin's documentation and use the plugin's issue tracker. – romainl Sep 04 '17 at 18:45
  • Their documentation is basically the `README` which I already read and I usually only use the issue tracker to report a issue (bug/problem) not to ask questions about how to use the plugin when there's no documentation... Isn't that what SO is for? So experienced users can give answers when there's no documentation? :) – Foryah Sep 05 '17 at 07:26
  • First, that plugin has documentation (lightweight but still). Second, the option you "found in a closed PR" happens to be [documented](https://github.com/ternjs/tern_for_vim/blob/master/doc/tern.txt#L171). Third, SO is not a support desk. – romainl Sep 05 '17 at 07:37
  • Thank you for your acid but accurate comment. I did not know to check the `doc` folder... Looks like lack of knowledge is a capital offence in the IT industry and people are getting worked up about it. And sorry for miss-using Stack Overflow... – Foryah Sep 05 '17 at 10:02

1 Answers1

0

If anyone has this problem, I did a little digging and I found a closed PR that allows you to change the default behavior.

So, adding this to your .vimrc will disable the 'show-location-after-rename' behavior:

let g:tern_show_loc_after_rename=0

EDIT: Looks like this is documented here as @romainil mentioned.

Foryah
  • 193
  • 2
  • 11