On Sat, Mar 24, 2001 at 01:06:22AM -0800, Jason Helfman wrote:
> I'd like to use this setting, too, but right now I have:
>
> set editor="vim -c 'set tw=72 et'"
>
> Can I incorporate this into it??
>
> set editor="vim -c ':0;/^$'"
>From the vim manpage:
-c {command}
{command} will be executed after the first
file has been read. {command} is interpreted
as an Ex command. If the {command} contains
spaces it must be enclosed in double quotes
(this depends on the shell that is used).
Example: Vim "+set si" main.c
Note: You can use up to 10 "+" or "-c" com-
mands.
According to the note, it would be OK to do something like:
set editor="vim -c 'set tw=72 et' -c ':0;/^$'
G'luck,
Peter
--
I had to translate this sentence into English because I could not read the original
Sanskrit.
> On Sat, Mar 24, 2001 at 02:31:29AM -0600, Timothy Legant muttered:
> | On Sat, Mar 24, 2001 at 09:59:45AM +0200, Peter Pentchev wrote:
> | > On Sat, Mar 24, 2001 at 07:35:12AM +0000, Viktor Lakics wrote:
> | > > Hi All,
> | > >
> | > > I have an autocommand for temporary mutt files. I want to move the
> | > > cursor down 6 positions automatically when I start a new mail (this
> | > > would move the cursor right under the headers (i use edit headers). > But i
>can't seem to figure out how to do this from a vimrc file...
> | >
> | > You could try setting the mutt 'editor' variable to something like
> | >
> | > /usr/local/bin/vim +6j
> | >
> | > This shall affect editing old messages, too, but it will probably
> | > do what you want.
> |
> | You might not always want to move down 6 lines. Perhaps in the future
> | you will add a new header (using my_hdr) to certain messages. You might
> | want to consider the following instead:
> |
> | set editor="vim -c ':0;/^$'"
> |
> | which will search for and move to the first blank line. In an email
> | message that should be the first line after all the headers, no matter
> | how many header lines there are.