문제

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?

도움이 되었습니까?

해결책

You could simply create a vim.desktop file.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top