Page 1 of 1

[SOLVED] Vim only works via terminal

Posted: Fri Aug 17, 2018 4:21 pm
by Huxley
Within Caja file manager I can't open any files with Vim. Neither double left clicking (after setting vim as preferred application) or

Code: Select all

right click > open with vim
, have any effect, not even an error. From the terminal vim works as expected. The only way I can open a text file with the mouse is to use xed text editor. I'm also using Ranger which opens files in Vim without any problem.

I recently migrated from Ubuntu MATE and preserved my old /home during install, so perhaps there could be some conflict within my ~/.config folder? Any ideas on how to resolve the issue would be much appreciated.

Huxley

Re: Vim only works via terminal

Posted: Fri Aug 17, 2018 8:28 pm
by Flemur
Try something like this:

Code: Select all

xfce4-terminal --command="vim $1"
I called the one-line script "Vim" and then thunar -> "open [text file] with Vim" worked.

Re: Vim only works via terminal

Posted: Fri Aug 17, 2018 9:05 pm
by Huxley
Nope, the only thing that changed was that

Code: Select all

Ctrl-Alt-T
caused terminal to open directly into vim.

P.s I'm using mate-terminal and caja. They're the same applications I was using with Ubuntu MATE, but I can't get it working. It's really annoying.

Re: Vim only works via terminal

Posted: Sat Aug 18, 2018 8:25 am
by Huxley
Can't get vim to work, but installed gvim which does the job. Looks like the problem is with opening a file into a terminal based editor, as I couldn't click to open files in nano either.