Question

I want to be able to double click a file and have it open in vim inside the terminal.

I can change the default application by right clicking and selecting "Open with another application" then "Use A custom command", and then using a shell script in a file I wrote... which is this

terminal -e vim

It works in that it opens vim in a terminal, but not the file i was selecting.

So how can I change the script so that it opens the files I select?

Was it helpful?

Solution

You could simply create a vim.desktop file.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top