javascriptvimvim-plugintern

TernRename creates a new split in vim


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...


Solution

  • 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.