+++ Ajitabh Pandey [linux-india] <25/09/01 07:23 +0530>:
> But your muttrc already have set editor used.
> I tried putting 
> set editor="mutt.ed" and then in mutt.ed file I put
> EDITOR="/usr/bin/vim ........."
> but it didn't work as it awk was considered an invalid command.

Eh?  See if the spacing etc in that command is correct ...

"vim +':set tw=77' +':set wrap' +\`awk '/^$/ {print i+2; exit} {i++}' %s\` %s" 

        -suresh

-- 
####[ Linux One Stanza Tip (LOST) ]###########################
Sub : Word wrapping with mutt and vim                LOST #053
To set wordwrap on in mutt (if vim is used as the editor)  the
following setting needs to be put in your .muttrc
set editor="vim +':set textwidth=77' +':set wrap' +\`awk '/^$/
 {print i+2; exit} {i++}' %s\` %s" 
Join above lines with a space between last "/" and "{print"
####<[EMAIL PROTECTED]>##########################################

PGP signature

Reply via email to