Re: mutt and vi

2001-09-17 Thread Danie Roux
On Fri, Sep 14, 2001 at 06:46:35PM -0500, [EMAIL PROTECTED] wrote:
 On Fri, Sep 14, 2001 at 08:34:45AM +0200, Danie Roux wrote:
  On Thu, Sep 13, 2001 at 11:40:17PM -0500, [EMAIL PROTECTED] wrote:
   hi all...  is there a way to get mutt to load vi using a different rc 
   file?
   
  Yes, but if you by vi mean Vim, then the best way to do this is with
  autocmds.
  
 
 Is autocmds a vi thing or a mutt thing?
 
It's a Vim thing. You can have commands being executed on certain
events, like before writing the file. One of the autocmds is FileType.
So on FileType mail you can change everything you want for email.

-- 
Danie Roux *shuffle* Adore Unix



Re: mutt and vi

2001-09-15 Thread Martin F Krafft
also sprach [EMAIL PROTECTED] (on Fri, 14 Sep 2001 06:46:35PM -0500):
 Is autocmds a vi thing or a mutt thing?

neither. it's vim.

martin;  (greetings from the heart of the sun.)
  \ echo mailto: !#^.*|tr * mailto:; [EMAIL PROTECTED]
-- 
anyone around? -- no, we're all irregular polygons.



Re: mutt and vi

2001-09-14 Thread Danie Roux
On Thu, Sep 13, 2001 at 11:40:17PM -0500, [EMAIL PROTECTED] wrote:
 hi all...  is there a way to get mutt to load vi using a different rc file?
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 
Yes, but if you by vi mean Vim, then the best way to do this is with
autocmds.

-- 
Danie Roux *shuffle* Adore Unix



Re: mutt and vi

2001-09-14 Thread Thomas J. Hamman
On Thu, Sep 13, 2001 at 11:40:17PM -0500, [EMAIL PROTECTED] wrote:
 hi all...  is there a way to get mutt to load vi using a different rc file?

In your .muttrc:

set editor=vim -u .rc

With '.rc' being replaced whatever the rc file is, of course.  Vim's -u
option can be found in the manpage.

-- 
Thomas J. Hamman
The chief danger in life is that you may take too may precautions.
-Alfred Adler



Re: mutt and vi

2001-09-14 Thread dman
On Thu, Sep 13, 2001 at 11:40:17PM -0500, [EMAIL PROTECTED] wrote:
| hi all...  is there a way to get mutt to load vi using a different rc file?

You probably want this so that you can have different settings for
writing mail messages than when you edit other files.  If you use vim,
you can add a section to your .vimrc like this :


augroup Mail
au!
au FileType mail set tw=70 fo=tcrq
au FileType mail set comments+=n:\|
augroup END


Vim knows how to detect when it is wrting a mail message and set's the
filetype to 'mail'.  Then it runs any autocommands associated with the
filetype which in my case adjusts the text width, formatting options
and adds my quote leader to the comments field (so it is colored
properly).

HTH,
-D



Re: mutt and vi

2001-09-14 Thread xucaen
On Fri, Sep 14, 2001 at 08:34:45AM +0200, Danie Roux wrote:
 On Thu, Sep 13, 2001 at 11:40:17PM -0500, [EMAIL PROTECTED] wrote:
  hi all...  is there a way to get mutt to load vi using a different rc file?
  
  
  -- 
  To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
  with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
  
 Yes, but if you by vi mean Vim, then the best way to do this is with
 autocmds.
 

Is autocmds a vi thing or a mutt thing?



mutt and vi

2001-09-13 Thread xucaen
hi all...  is there a way to get mutt to load vi using a different rc file?



Re: mutt and vi

2001-09-13 Thread Josh McKinney
On approximately Thu, Sep 13, 2001 at 11:40:17PM -0500, [EMAIL PROTECTED] wrote:
 hi all...  is there a way to get mutt to load vi using a different rc file?

Look in your muttrc file and find the 'editor=vim' line or whatever and make it
'editor=vim -u /patch/to/vimrc'

I think that should do the trick, I think.

 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 

-- 
Linux, the choice | You know it's going to be a bad day when
of a GNU generation-o)| you want to put on the clothes you wore
Kernel 2.4.9-ac10   /\| home from the party and there aren't any. 
on a i586  _\_v   | 
  |