Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I run vim from the start menu, it opens up an xfce terminal window and runs vim. However, when I set vim to be my default text editor and double-click a file, it runs in xterm instead of the xfce terminal for some reason. I'd rather have it run in the xfce terminal all the time because xterm's text size is too small on my screen.

I tried changing the vim.desktop file to try to force vim to start in xfce4-terminal:

Exec=vim %F

to:

Exec=xfce4-terminal -e vim %F

but when I double clicked a file, it just started in xterm again before immediately closing. Can someone offer insight?

Here's the rest of the vim.desktop:

[Desktop Entry]
Version=1.0
Type=Application
Name=Vim
GenericName=Text Editor
Comment=Edit text files
Icon=vim
TryExec=vim
Exec=xfce4-terminal -e vim %F
NoDisplay=false
Categories=TextEditor;Utility;
MimeType=text/plain;
StartupNotify=false
Terminal=true
share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.