[SOLVED] Vim only works via terminal

Forum rules
Before you post please read how to get help
Post Reply
Huxley
Level 1
Level 1
Posts: 3
Joined: Fri Aug 17, 2018 3:54 pm

[SOLVED] Vim only works via terminal

Post by Huxley » Fri Aug 17, 2018 4:21 pm

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
Last edited by Huxley on Sat Aug 18, 2018 10:05 am, edited 2 times in total.

User avatar
Flemur
Level 16
Level 16
Posts: 6271
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Vim only works via terminal

Post by Flemur » Fri Aug 17, 2018 8:28 pm

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.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

Huxley
Level 1
Level 1
Posts: 3
Joined: Fri Aug 17, 2018 3:54 pm

Re: Vim only works via terminal

Post by Huxley » Fri Aug 17, 2018 9:05 pm

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.

Huxley
Level 1
Level 1
Posts: 3
Joined: Fri Aug 17, 2018 3:54 pm

Re: Vim only works via terminal

Post by Huxley » Sat Aug 18, 2018 8:25 am

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.

Post Reply

Return to “MATE”