In Neovim it's good to have a terminal window open amongst the other windows (which are displaying regular buffers). Sometimes, in the terminal, I'll want to edit another file. Ordinarily you'd just vim filename but I'd like that file to be opened as another window in the same tab. Perhaps, for example, there some way of replacing the vim in vim filename so that this can be achieved?

It would be easier to do this than to use :e filename because in the terminal I might have changed folder to somewhere rather tedious to type.


2 Answers 2


I would just use a split, so it is effectively in the same "tab". You just have to type :split or :vsplit, depending on whether you want it split vertically or horizontally. you can then specify the file you want to open like this (say you want a vertical split) :vsplit e foo.txt

  • I stated in the question that I didn't want to use :e.
    – user859
    Jul 5, 2017 at 9:58

I wrote a plugin some time ago for Vim to enable client server communications without +clientserver.


You can try if it works for NeoVim: install the plugin and run Please. In another terminal run ./please FILE (in the scripts folder). The FILE should be opened in the original Vim instance.

@justin suggested that nvr does the same for neovim:

It basically does two things:

    adds back the --remote family of options (see man vim)
    helps controlling the current nvim from within :terminal
  • The plugin installs but running :Please produces errors pastebin.com/xLTpdyRm (nvim v0.2.1-182-g6e4e70f on redhat linux 7)
    – user859
    Jul 6, 2017 at 10:56
  • Apparently neovim does not support the jobs api. You could test it in Vim to see if this is what you want.
    – laktak
    Jul 6, 2017 at 11:53
  • @laktak +clientserver is not related to "jobs api". nvr mimics the +clientserver features perfectly. Jul 6, 2017 at 13:58
  • @JustinM.Keyes I guess you misunderstood my comment - the please plugin needs the jobs api.
    – laktak
    Jul 6, 2017 at 15:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.