Hello Mutt Users!
On pon 14 sie 2000 11:13:40 GMT Michael Elkins wrote:

> It sets $editor to gvim and then tries to set
> the variable -c, which of course does not exist.

Oh, I see. I wrote a shell script which I set as my $editor (set
editor="my_script") and it works (the script calls the editor). However
now when I know what was wrong I put into my .muttrc:

set editor=`if test $DISPLAY ; then echo '"gvim -f -c \":normal 2/^$/\"
+nohlsearch $1"' ; else echo '"vim -c \":normal 2/^$/\" +nohlsearch $1"'
; fi`

Works perfectly :)

THX

Bob Bell wrote:

> Try a short shell script that basically does the above and then call
> that shell script.

Well, I was thinking about that and even done it, but I was still hoping
for an inline solution. And I found it. Thanks too :)

[EMAIL PROTECTED] wrote:

> [about adding -f to gvim's call parameters]

Thanks (again ;)), I just forgot about gvim's forking.

-- 
Tomasz Olszewski
[EMAIL PROTECTED]

PGP signature

Reply via email to