Originally Posted by PACMANchasingme
Currently I have to open a terminal and type vim /path/ but I'd like to just do this by double clicking.
Either use the graphical version GVim or right-click on the text file and choose the “open with“ option. There, define your own command with the last option in the context-menu. The command must call a terminal-application which must execute vim:
or any other terminal emulator.
In both cases do not forget to check the option where you are asked if the file-type shall permanently be associated with the set command.