Bug 388015 - Kmail doesn't get content from GVim
Summary: Kmail doesn't get content from GVim
Status: RESOLVED NOT A BUG
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: 5.7.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-18 18:39 UTC by Konstantin Kharlamov
Modified: 2017-12-19 13:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Kharlamov 2017-12-18 18:39:51 UTC
Steps to reproduce:

1. Open plugins settings, and set as an external editor "gvim %f".
2. Save the settings and restart KMail.
3. Press Ctrl+n to open a new mail; it should trigger the editor.
4. Type "test" in the editor, save, and quit.

Expected:
The "test" text should appear in the mail
Actual:
The typed content never appears.

Additional info:
It's a pretty important functional because typing a text in KMail natively is annoying due to this qt bug https://bugreports.qt.io/browse/QTBUG-64360
Comment 1 Laurent Montel 2017-12-19 05:57:13 UTC
it seems that kwrite %f work fine.
Comment 2 Laurent Montel 2017-12-19 06:01:44 UTC
it's a problem with gvim...
Comment 3 Laurent Montel 2017-12-19 06:04:33 UTC
yep gedit works/ kate works/kwrite works

so indeed I don't know if we need to add a special flag to gvim if we want that it works.
Comment 4 Laurent Montel 2017-12-19 06:10:28 UTC
Ok you need to use "gvim -f %f"
it avoids that gvim forks

So it was not a kmail bug but a missing gvim option
Comment 5 Konstantin Kharlamov 2017-12-19 13:47:02 UTC
(In reply to Laurent Montel from comment #4)
> Ok you need to use "gvim -f %f"
> it avoids that gvim forks
> 
> So it was not a kmail bug but a missing gvim option

Thanks! I changed the title "Kmail doesn't get content from the external editor" → "Kmail doesn't get content from GVim" so that it would be easier to find from google.