I would like to open a (text) file with Vim in nautilus. This part is easy:
Right-Click -> Open With Vim starts a terminal with vim inside running, file open already.
When I close vim, the terminal closes too. I would like the terminal to remain open, with the working directory set to the directory the file is in.
I'm sure there is a simple way to achieve this by creating a custom bash script and adding it to the context menu (or even as the default action on Enter when the file is selected) but I don't know how. So, How to do this?
I am on ubuntu 18.04 but I hope it is similar for later versions.