XFCE - can't set Vim as default text editor
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
XFCE - can't set Vim as default text editor
Hi everyone, I am using Linux Mint 17 XFCE, and I have an annoying problem: I can't seem to get Vim to be the default text editor. Every time I double click on a file after setting "Vim" as default in the "Open with..." menu, I get an error: "Failed to execute child process "xterm" (No such file or directory)." This happens only if I double click: I can open the vile and edit it without problems if I run "vim (filename)" in the terminal. I had no problems in Cinnamon, why does this happen in XFCE? Any help will be appreciated.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: XFCE - can't set Vim as default text editor
What happens if you type in terminal:
$ xterm
? IOW, do you have xterm? IIRC, I had to install it.
I don't have vim, but use vi all the time, and just tried opening a text file thru thunar;
Open with -> other app -> "vi" made a vi process and created the .swp file, but no GUI!
Open with -> other app -> "xterm -e vi" opened an xterm with vi editing the file.
$ xterm
? IOW, do you have xterm? IIRC, I had to install it.
I don't have vim, but use vi all the time, and just tried opening a text file thru thunar;
Open with -> other app -> "vi" made a vi process and created the .swp file, but no GUI!
Open with -> other app -> "xterm -e vi" opened an xterm with vi editing the file.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Your data and OS are backed up....right?
Re: XFCE - can't set Vim as default text editor
Well, of course i don't have it installed, I'm using the default xfce4-terminal, but I would like to avoid to install ANOTHER terminal just for the sake of using Vim, if possible! Isn't there any way to force Vim to use xfce4-terminal instead of xterm? Oh, and in case I didn't mention it, the problem happens only if I try to open a file by double clicking it, every other way (vim namefile, or NERDTree) works perfectly. Anyway, thank you for your reply!
Re: XFCE - can't set Vim as default text editor
Force the menueditor to open the text editor as
Sheng-Chieh
Code: Select all
xfce4-terminal --command vi
Re: XFCE - can't set Vim as default text editor
Sorry for the delay (due to Thanksgiving). Open up a terminal and type
A new terminal running vi should pop up.
If so, something fishy w/ your menu editor. Leave text editor alone and use the menu editor to add a new one say, vi editor. And see what happens.
If not, what error mesage do you see?
Sheng-Chieh
Code: Select all
xfce4-terminal --command vi
If so, something fishy w/ your menu editor. Leave text editor alone and use the menu editor to add a new one say, vi editor. And see what happens.
If not, what error mesage do you see?
Sheng-Chieh