Skip to content

To write my email in vim on Windows devices, I created a tiny vimscript code to transfer selected texts to Thunderbird.

Notifications You must be signed in to change notification settings

bakedroy/vim-mail-composer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

vim-mail-composer

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.

Installation

  • Paste the code into your vimrc.
  • Modify Path-To-Temp-File and Path-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)

Usage

Select the text you wrote in visual mode, type ,th, then a composing window of Thunderbird will be appeared. Currently, only Thunderbird is supported.

Format

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.

ToDo

  • 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)

About

To write my email in vim on Windows devices, I created a tiny vimscript code to transfer selected texts to Thunderbird.

Topics

Resources

Stars

Watchers

Forks