From 20f65a0c35c641bdbaf93a92d499f01874211feb Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 12 Nov 2017 21:35:18 +1300 Subject: Complete mail_mutt.vim documentation --- vim/doc/mail_mutt.txt | 74 ++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 65 insertions(+), 9 deletions(-) diff --git a/vim/doc/mail_mutt.txt b/vim/doc/mail_mutt.txt index dbaf72ac..bf86a57f 100644 --- a/vim/doc/mail_mutt.txt +++ b/vim/doc/mail_mutt.txt @@ -1,13 +1,69 @@ -*mail_mutt.txt* Start a mutt(1) email message with a range of lines +*mail_mutt.txt* For Vim version 7.0 Last change: 2017 November 12 -Author: Tom Ryder -License: Same terms as Vim itself (see |license|) +DESCRIPTION *mail_mutt* -This plugin provides a :MailMutt command which accepts a range of lines -defaulting to the entire buffer, writing these lines to a temporary file that -is then provided to the -i option of the mutt(1) MUA as the initial content of -a new message. +This plugin allows you to quickly start writing an email message in Mutt with +a range of lines from the current buffer as the initial mail content. -This plugin lives in Tom Ryder's "dotfiles" suite, and will eventually be spun +REQUIREMENTS *mail_mutt-requirements* + +This plugin is only available if 'compatible' is not set. + +You will want to have the mutt(1) command from the Mutt distribution installed +to use this plugin. Mutt is available from . + +COMMANDS *mail_mutt-commands* *:MailMutt* + +This plugin provides a single command `:MailMutt` command which accepts a line +range prefix defaulting to the entire buffer, writing these lines to a +temporary file that is then provided to the -i option of the Mutt mail user +agent, as the initial content of a new message. +> + :MailMutt + :.MailMutt + :3,6MailMutt + :95,$MailMutt + +MAPPINGS *mail_mutt-mappings* + +Three mapping targets are also provided for convenience. No attempt is +made to map key sequences to these mappings within the plugin; you must do +this explicitly in your |vimrc|. + +CURRENT LINE *MailMuttLine* + +Th MailMuttLine mapping runs `:MailMutt` on the current line in normal +mode. For example: +> + :nmap ml MailMuttLine +< +WHOLE BUFFER *MailMuttBuffer* + +The MailMuttBuffer mapping runs `:MailMutt` on the whole buffer in +normal mode. For example: +> + :nmap mb MailMuttBuffer +< +SELECTED LINES *MailMuttSelected* + +The MailMuttSelected mapping runs `:MailMutt` on the selected lines in +visual or selection mode. For example: +> + :vmap ms MailMuttSelected +< +AUTHOR *mail_mutt-author* + +Written and maintained by Tom Ryder . + +LICENSE *mail_mutt-license* + +Licensed for distribution under the same terms as Vim itself (see |license|). + +DISTRIBUTION *mail_mutt-distribution* + +This plugin lives in Tom Ryder's "dotfiles" suite, and may eventually be spun off into a separate distribution as it solidifies and this documentation -improves. +improves. See for more +information. + + vim:tw=78:ts=8:ft=help:norl: -- cgit v1.2.3