Bug 388015

Summary: Kmail doesn't get content from GVim
Product: [Applications] kmail2 Reporter: Konstantin Kharlamov <Hi-Angel>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: montel
Priority: NOR    
Version: 5.7.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

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.