Главная
Transfer the Power of Vim Editor to Thunderbird for Composing Email
четверг, 02 апреля 2009
This article is written by SathiyaMoorthy.   This article is part of the on-going Vi / Vim Tips and Tricks Series.  In this article, let us review how to use Vim Editor for composing email in Thunderbird.     External editor Plugin does the magic of composing email in Vi/Vim editor easily, allowing us to utilize all the features of [...]

Другие новости IT

Thunderbird Email LogoThis article is written by SathiyaMoorthy.
 
This article is part of the on-going Vi / Vim Tips and Tricks Series.  In this article, let us review how to use Vim Editor for composing email in Thunderbird.
 
 
External editor Plugin does the magic of composing email in Vi/Vim editor easily, allowing us to utilize all the features of the vim editor without compromising a single thing.
 
 

3 Steps to Install and Configure Thunderbird External editor Plugin

Step 1: Download the thunderbird external editor plugin

Download the thunderbird external editor plugin from globs.org
 
Go to the globs.org download page, click on the external editor which will show the available two versions. Download the right version for you.

  • select & download the version 0.7.4 if you are using thunderbird 2.0.*
  • select & download the version 0.8.0 if you are using thunderbird 3.0.*

Step 2: Install the external editor plugin

Open the Thunderbird, Click on Tools menu, and then select the Add ons and then click the Install button. This will open the local file browser window, select the downloaded file. It will do the installation.

Step 3: Select/Enabling the external editor as VIM

Click on Tools menu, and then select Add Ons, and then select the Preferences of External editor in Add ons Extension window.
 
Enter the “xterm -e vim” in the Text editor input box.

Use the Vi/Vim editor for composing e-mail

Now you are ready to compose your email in vim editor.
 
When you are in the compose window, press CTRL + E it will open the VIM editor as shown in the figure 1. After completing the editing, if you close the editor the content will be shown in the compose window as shown in the figure 3.

Vim Compose Email - Plain Content

 

Fig 1: Press Ctrl-E to Launch Vim to compose email

Vim External Editor - Compose Email

Fig 2: Thunderbird - Composing an email in Vim Editor

 
So after completing composing the mail, save and quit it by :wq , then the edited content will be placed in the compose window as shown in this figure 3.

Vim Compose Email in Thunderbird Editor

Fig 3: Email body from Vim transferred to Thunderbird compose window automatically

 
Note: Until you close the vim editor your compose window will be disabled, and you will be able to work in VIM editor.
 
There are two alternate ways to invoke the vim editor for composing the email:

  1. Select Tools in compose window and then click on External editor which will take you to the vim compose window.
  2. Click on the VIM icon in the compose window. To make the icon available in the compose window, right click on the tool bar, and select customize. Drag and drop the external editor.

Editing the Email Headers

You can toggle between enable/disable header editing by selecting the option in the preferences
window of the external editor.

1. Disable the Header Editing.

Unmark the Edit headers check box in the preferences window.

Vim External Editor Settings Window

Fig 4: Un-check the “Edit headers” check-box to disable editing headers

 
So if you invoke the compose the window, VIM editor will be shown without the mail header as shown in the figure 5.

Vim - Compose Email without external editor

Fig 5: Use VIM editor without the email header

2. Enable the Header Editing.

Select the “Edit headers” check-box option in the Preferences window.
 
By default the header will be enabled. If you invoke the vim editor from compose window you will be able to edit header also.
 
This article is part of the ongoing Vi / Vim Tips and Tricks series. Please subscribe to TheGeekStuff and don’t miss any future Vi and Vim editor tips and tricks.
 
This article was written by SathiyaMoorthy, author of 15 Practical Linux Find Command Examples article. The Geek Stuff welcomes your tips and guest articles

Post from: The Geek Stuff

Linux 101 Hacks eBook password: linux-is-awesome

Transfer the Power of Vim Editor to Thunderbird for Composing Email


Оригинальная дата: 2009-04-02 19:31:45

Прочитать полностью
Комментарии (0)add comment

Написать комментарий
Заблокировано. Комментарии не принимаются.

busy
 
< Пред.   След. >
Joomla Templates