I would like to start editing some files in dir to which I've switched in internal vim terminal. But I do not like to open nested vim inside this term.

If I work in same dir in which I've opened vim, I can use gf, but I can't do this if I've switched.

So I want to change my current vim dir to dir opened in term. Is there a way to do it?

  • 3
    If your terminal is still running, you can use xclip or similar tool to copy full path to clipboard, otherwise check this question and it's answer. – dedowsdi Jan 23 at 8:55

Browse other questions tagged or ask your own question.