LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-03-2018, 04:01 AM   #1
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622
Blog Entries: 40

Rep: Reputation: Disabled
[Mutt] is it impossible to use GVim as editor?


Good morning, again.

My editor for the Mutt mail-client is set to vim:
Code:
set editor="vim '+set spell spelllang=fr,en'"
I appear to be unable to replace vim by GVim. Not that it mattered much, but there appears to be no logical explanation: No matter how I set the editor to GVim and even though a mail can be composed in GVim by hitting 'm' from Mutt, both programs do not understand each other and no mail is created.

Currently, a statement like “It is not you, this is just impossible” could suffice to have me mark this as solved...

But I doubt it.
 
Old 04-03-2018, 07:48 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
mutt is a CLI based mail tool. vim is a CLI editor that would work with mutt. Gvim is a GUI version of vim. While you can launch Gvim and use it to read text files there would be no reason to have mutt itself launch a GUI editor. The session you start mutt in is CLI so it wouldn't know you meant to do a GUI.

If you want a GUI mail tool use something like Evolution and launch it from your GUI window.

P.S. I did a search for graphic mutt and found a thread where they basically lambasted the person who asked. My favorite response the question, is there a grahic editor for mutt, was "Yes. Its called Netscape".
 
Old 04-03-2018, 08:03 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,889

Rep: Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317
gvim will return immediately, mutt will not wait until you close the editor. You might want to try the -f flag:
set editor="vim -f -g '+set spell spelllang=fr,en'"
 
2 members found this post helpful.
Old 04-03-2018, 11:35 AM   #4
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622

Original Poster
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
You might want to try the -f flag:
... I might.
Quote:
-f Foreground. For the GUI version, Vim will not fork and detach from the shell it was started in. On the Amiga, Vim is not
restarted to open a new window. This option should be used when Vim is executed by a program that will wait for the edit ses‐
sion to finish (e.g. mail). On the Amiga the ":sh" and ":!" commands will not work
 
1 members found this post helpful.
  


Reply

Tags
gvim, mutt, muttrc



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Proposed enhancement for gvim.desktop (package xap/vim-gvim). Didier Spaier Slackware 3 10-02-2016 11:48 AM
[SOLVED] [Mutt] Can I process a current mail in a shell command from Mutt? Michael Uplawski Linux - Software 5 06-21-2016 02:56 AM
mutt does not honour mutt.rc 'use_from' entry when accepting piped input davidchall Linux - Software 0 05-28-2012 02:13 AM
Mutt experts - Mutt won't use the Maildir I specify in .muttrc moistTowelette Debian 2 08-24-2009 08:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration