See a post.
I love vim but it is not a email client. To write my email in vim on Windows devices, I created a tiny vimscript code to transfer selected texts to Thunderbird.
- Paste the code into your
vimrc
. - Modify
Path-To-Temp-File
andPath-To-Thunderbird-Exe
as you wish - I've tested on the following environment
- Windows 10 (10.0.18363.1082)
- Thunderbird 78.3.1 (32-bit)
- NVIM v0.5.0-416-g2b00d1d09 (-acl +iconv +tui)
Select the text you wrote in visual mode, type ,th
, then a composing window of Thunderbird will be appeared.
Currently, only Thunderbird is supported.
Mail format is as follows:
Subject: A test mail
Dear John Doe,
...
If subject:XXX
line is set on the top of your selected area, the line is set as the subject of your message.
- Extract to and cc lines from vim's buffer and fill those fields on the composing window based on the extracted info
- Delete the temporary file after composing finished (currently I tried it but removed before the file passed to a mailer)