" Vim filetype plugin file " Language: Mail " Maintainer: Lubomir Host 'rajo' " License: GNU GPL " Version: $Platon: vimconfig/vim/ftplugin/mail.vim,v 1.9 2005/01/13 11:32:19 rajo Exp $ " Only do this when not done yet for this buffer if exists("b:did_ftplugin") finish endif let b:did_ftplugin = 1 " Don't use modelines in e-mail messages, avoid trojan horses setlocal nomodeline " many people recommend keeping e-mail messages 72 chars wide setlocal textwidth=72 " Set 'formatoptions' to break text lines and keep the comment leader ">". setlocal formatoptions=crqt12 setlocal autoindent " Replace with 4 spaces setlocal tabstop=4 setlocal shiftwidth=4 setlocal expandtab " let b:input_method = "iso8859-2" let b:input_method = &encoding " Add mappings, unless the user didn't want this. if !exists("no_plugin_maps") && !exists("no_mail_maps") " Quote text by inserting "> " if !hasmapto('MailQuote') vmap q MailQuote nmap q MailQuote endif vnoremap MailQuote :s/^/> /:noh`` nnoremap MailQuote :.,$s/^/> /:noh`` " Ctrl-F reformat paragraph if !hasmapto('MailFormat') imap MailFormat map MailFormat endif inoremap MailFormat gqapi noremap MailFormat gqap vnoremap MailFormat gq endif " Modeline {{{ " vim:set ts=4: " vim600:fdm=marker fdl=0 fdc=3 " }}}