Benjamin Esham wrote: 
 > fREW wrote:
 
 >> On 5/12/07, Troy Piggins <[EMAIL PROTECTED]> wrote:
 >>
 >>> * Timothy Knox is quoted & my replies are inline below :
 >>>
 >>>> I use vim to write my outgoing email, and for the most part, it
 >>>> rocks. Thanks to all the folks who have written modules and
 >>>> provided tips that make it the best thing for writing email
 >>>> since mailx <grin>.
 >>>
 >>> What tips/scripts are you using and what are your favourites?
 >>
 >> Yeah, I am interested as well.  What do you use to do all of this?
 > 
 > I use the non-Vim-friendly Apple Mail for my e-mail, but I use pan  
 > and Vim for Usenet; here is the function that's called whenever I set  
 > filetype=usenet:
 > 
 > " :: set us up for usenet-article editing
 > function! UsenetSetup()
 >      setl textwidth=75                " wrap at 75 columns
 >      setl comments=n:>,n:\|,n:%       " recognize [>|%] as quote  
 > indicators
 >      setl formatoptions=qn            " allow formatting with 'gq';  
 > recognize lists (q.v.)
 >      " the unholy mess on the next line recognizes lists with "1.",  
 > "-", and "*" as bullets,
 >      setl flp=^\\(\\d\\+[.\\t\ ]\\\|[-*•]\ \\\|\ \ \\)\\s*    " and  
 > also recognizes two-space blockquoting
 >      setl expandtab                   " use spaces instead of tabs  
 > (eugh)
 > 
 >      nmap <Leader>s :call InsertSpoilerSpace()<CR>
 >      nmap <Leader>f :call FormatUsenetParagraph()<CR>
 >      " insert a randomly-chosen signature and turn on spell checking
 >      nmap <Leader>g :r !~/.vim/usenet/sig.pl ~/.vim/usenet/ 
 > sigs<CR>:setl spell<CR>
 > 
 >      setl encoding=utf-8
 >      setl fileencoding=utf-8
 > endfunction
 > 
 > function! FormatUsenetParagraph()
 >      sil '{,'}s/\%(^[|>% \t]*\)\@<=\([|>%]\)\s*/\1 /ge
 >      normal gqip
 > endfunction
 > 
 > The second function does a beautiful job of reflowing
 > paragraphs to  take up the entire textwidth; it was
 > devised by Peppe on  comp.editors.  (If anyone has
 > questions about how any of this works,  please ask!)
   
 Please explain FormatUsenetParagraph().
 Also, where is InsertSpoilerSpace()?

 Thanks,

 --Suresh
 

Reply via email to