Problem running gvim from command line in OS X Tiger

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem running gvim from command line in OS X Tiger

Unnsse Khan-2
Hello again,

I was forced to re-install OS X Tiger, after, an unexpected  
mishap... :-)

For some reason or another everything seems intact (my .gvimrc  
and .vimrc files are still present), but when I try to type "gvim"  
from the command line, I receive an error message...

This is the contents of my .gvimrc file:

Raven:~ untz$ cat .gvimrc
set nocompatible
set backspace=indent,eol,start
set ts=4
set keymodel=startsel
set nu
set autoindent
set ruler
syntax on
colorscheme torte
set gfn=Anonymous:h12
set anti
imap <D-Z> u
imap <D-z> <C-O>u

This is the contents of my .vimrc file:

Raven:~ untz$ cat .vimrc
set nocompatible
set ts=4
set keymodel=startsel
set nu
set autoindent
set ruler
set backspace=indent,eol,start
syntax on
colorscheme torte
set gfn=Anonymous:h12
imap <D-Z> u
imap <D-z> <C-O>u

This is the contents of my .profile file:

Raven:~ untz$ cat .profile
alias vim="/Applications/Vim.app/Contents/MacOS/Vim"
alias gvim="/Applications/Vim.app/Contents/MacOS/Vim -g"
test -r /sw/bin/init.sh && . /sw/bin/init.sh

This is the contents of my .bash_profile:

Raven:~ untz$ cat .bash_profile
JAVA_HOME="/System/Library/frameworks/JavaVM.framework/Versions/1.5.0/
Home";
J2EE_HOME="/Developer/JavaTools/j2sdkee1.3.1";
J2ME_HOME="/Developer/JavaTools/j2me_wireless_toolkit2.2";
CATALINA_HOME="/Developer/JavaTools/tomcat/jakarta-tomcat-5.5.9";
CLASSPATH=.:"$J2EE_HOME/lib/j2ee.jar":"$CATALINA_HOME/common/lib/
servlet-api.jar":"$CATALINA_HOME/common/lib/jsp-api.jar":"/Developer/
Database/hsqldb/lib/hsqldb.jar";
PATH=$PATH:$JAVA_HOME/bin:$J2EE_HOME/bin:$J2ME_HOME/bin:/usr/local/
bin:/opt/local/bin;
VIMRUNTIME="/Applications/Vim.app/runtime";
export JAVA_HOME J2ME_HOME J2EE_HOME CATALINA_HOME PATH VIMRUNTIME bash

When I try to launch gvim by typing in "gvim" from the command line,  
this is what I get:

Raven:~ untz$ gvim Hello.cpp
-bash: gvim: command not found
Raven:~ untz$

I am using gvim 7.0aa ALPHA from http://macvim.org/

Any advice, suggestions, and tips will be greatly appreciated...

Many, many, thanks!

-Unnsse







Reply | Threaded
Open this post in threaded view
|

Re: Problem running gvim from command line in OS X Tiger

A.J.Mechelynck
----- Original Message -----
From: "Unnsse Khan" <[hidden email]>
To: <[hidden email]>
Cc: <[hidden email]>
Sent: Thursday, September 22, 2005 8:07 AM
Subject: Problem running gvim from command line in OS X Tiger


> Hello again,
>
> I was forced to re-install OS X Tiger, after, an unexpected  mishap... :-)
>
> For some reason or another everything seems intact (my .gvimrc  and .vimrc
> files are still present), but when I try to type "gvim"  from the command
> line, I receive an error message...
>
> This is the contents of my .gvimrc file:
[...]
> This is the contents of my .vimrc file:
[...]

> This is the contents of my .profile file:
>
> Raven:~ untz$ cat .profile
> alias vim="/Applications/Vim.app/Contents/MacOS/Vim"
> alias gvim="/Applications/Vim.app/Contents/MacOS/Vim -g"
> test -r /sw/bin/init.sh && . /sw/bin/init.sh
>
> This is the contents of my .bash_profile:
>
> Raven:~ untz$ cat .bash_profile
> JAVA_HOME="/System/Library/frameworks/JavaVM.framework/Versions/1.5.0/
> Home";
> J2EE_HOME="/Developer/JavaTools/j2sdkee1.3.1";
> J2ME_HOME="/Developer/JavaTools/j2me_wireless_toolkit2.2";
> CATALINA_HOME="/Developer/JavaTools/tomcat/jakarta-tomcat-5.5.9";
> CLASSPATH=.:"$J2EE_HOME/lib/j2ee.jar":"$CATALINA_HOME/common/lib/
> servlet-api.jar":"$CATALINA_HOME/common/lib/jsp-api.jar":"/Developer/
> Database/hsqldb/lib/hsqldb.jar";
> PATH=$PATH:$JAVA_HOME/bin:$J2EE_HOME/bin:$J2ME_HOME/bin:/usr/local/
> bin:/opt/local/bin;
> VIMRUNTIME="/Applications/Vim.app/runtime";
> export JAVA_HOME J2ME_HOME J2EE_HOME CATALINA_HOME PATH VIMRUNTIME bash
>
> When I try to launch gvim by typing in "gvim" from the command line,  this
> is what I get:
>
> Raven:~ untz$ gvim Hello.cpp
> -bash: gvim: command not found
> Raven:~ untz$
>
> I am using gvim 7.0aa ALPHA from http://macvim.org/
>
> Any advice, suggestions, and tips will be greatly appreciated...
>
> Many, many, thanks!
>
> -Unnsse

Are you sure your .profile was read? Type "alias" at the bash command-line
to check it. You should still be able to run gvim by invoking it as
"/Applications/Vim.app/Contents/MacOS/Vim -g" (without the quotes) or as
gvim after using "source ~/.profile" in bash.

Best regards,
Tony.


Reply | Threaded
Open this post in threaded view
|

RE: Problem running gvim from command line in OS X Tiger

Zdenek Sekera
In reply to this post by Unnsse Khan-2
> -----Original Message-----
> From: Tony Mechelynck [mailto:[hidden email]]
> Sent: 22 September 2005 14:30
> To: Unnsse Khan; [hidden email]
> Cc: [hidden email]
> Subject: Re: Problem running gvim from command line in OS X Tiger
>
> ----- Original Message -----
> From: "Unnsse Khan" <[hidden email]>
> To: <[hidden email]>
> Cc: <[hidden email]>
> Sent: Thursday, September 22, 2005 8:07 AM
> Subject: Problem running gvim from command line in OS X Tiger
>
>
> > Hello again,
> >
> > I was forced to re-install OS X Tiger, after, an unexpected
>  mishap... :-)
> >
> > For some reason or another everything seems intact (my
> .gvimrc  and .vimrc
> > files are still present), but when I try to type "gvim"  
> from the command
> > line, I receive an error message...
> >
> > This is the contents of my .gvimrc file:
> [...]
> > This is the contents of my .vimrc file:
> [...]
> > This is the contents of my .profile file:
> >
> > Raven:~ untz$ cat .profile
> > alias vim="/Applications/Vim.app/Contents/MacOS/Vim"
> > alias gvim="/Applications/Vim.app/Contents/MacOS/Vim -g"
> > test -r /sw/bin/init.sh && . /sw/bin/init.sh
> >
> > This is the contents of my .bash_profile:
> >
> > Raven:~ untz$ cat .bash_profile
> >
> JAVA_HOME="/System/Library/frameworks/JavaVM.framework/Version
> s/1.5.0/
> > Home";
> > J2EE_HOME="/Developer/JavaTools/j2sdkee1.3.1";
> > J2ME_HOME="/Developer/JavaTools/j2me_wireless_toolkit2.2";
> > CATALINA_HOME="/Developer/JavaTools/tomcat/jakarta-tomcat-5.5.9";
> > CLASSPATH=.:"$J2EE_HOME/lib/j2ee.jar":"$CATALINA_HOME/common/lib/
> >
> servlet-api.jar":"$CATALINA_HOME/common/lib/jsp-api.jar":"/Developer/
> > Database/hsqldb/lib/hsqldb.jar";
> > PATH=$PATH:$JAVA_HOME/bin:$J2EE_HOME/bin:$J2ME_HOME/bin:/usr/local/
> > bin:/opt/local/bin;
> > VIMRUNTIME="/Applications/Vim.app/runtime";
> > export JAVA_HOME J2ME_HOME J2EE_HOME CATALINA_HOME PATH
> VIMRUNTIME bash
> >
> > When I try to launch gvim by typing in "gvim" from the
> command line,  this
> > is what I get:
> >
> > Raven:~ untz$ gvim Hello.cpp
> > -bash: gvim: command not found
> > Raven:~ untz$
> >
> > I am using gvim 7.0aa ALPHA from http://macvim.org/
> >
> > Any advice, suggestions, and tips will be greatly appreciated...
> >
> > Many, many, thanks!
> >
> > -Unnsse
>
> Are you sure your .profile was read? Type "alias" at the bash
> command-line
> to check it. You should still be able to run gvim by invoking it as
> "/Applications/Vim.app/Contents/MacOS/Vim -g" (without the
> quotes) or as
> gvim after using "source ~/.profile" in bash.

Well, couldn't it simply be that simply he *does not*
have gvim installed *or* it is not in his PATH?

---Zdenek
Reply | Threaded
Open this post in threaded view
|

Re: Problem running gvim from command line in OS X Tiger

Tim Chase-2
> Well, couldn't it simply be that simply he *does not*
> have gvim installed *or* it is not in his PATH?

If it's installed, it doesn't seem to be in his PATH.  To find
gvim, it's pretty easy to just do

        find / -name gvim

and see what turns up.  If it returns results, then it's likely
installed, but not in the path.  If nothing comes back, then he's
likely just got vim, not gvim.

-tim



Reply | Threaded
Open this post in threaded view
|

Re: Problem running gvim from command line in OS X Tiger

A.J.Mechelynck
In reply to this post by Zdenek Sekera
----- Original Message -----
From: "Zdenek Sekera" <[hidden email]>
To: "Tony Mechelynck" <[hidden email]>; "Unnsse Khan"
<[hidden email]>; <[hidden email]>
Cc: <[hidden email]>
Sent: Thursday, September 22, 2005 2:35 PM
Subject: RE: Problem running gvim from command line in OS X Tiger


>> -----Original Message-----
>> From: Tony Mechelynck [mailto:[hidden email]]
>> Sent: 22 September 2005 14:30
>> To: Unnsse Khan; [hidden email]
>> Cc: [hidden email]
>> Subject: Re: Problem running gvim from command line in OS X Tiger
>>
>> ----- Original Message -----
>> From: "Unnsse Khan" <[hidden email]>
>> To: <[hidden email]>
>> Cc: <[hidden email]>
>> Sent: Thursday, September 22, 2005 8:07 AM
>> Subject: Problem running gvim from command line in OS X Tiger
>>
>>
>> > Hello again,
>> >
>> > I was forced to re-install OS X Tiger, after, an unexpected
>>  mishap... :-)
>> >
>> > For some reason or another everything seems intact (my
>> .gvimrc  and .vimrc
>> > files are still present), but when I try to type "gvim"
>> from the command
>> > line, I receive an error message...
>> >
>> > This is the contents of my .gvimrc file:
>> [...]
>> > This is the contents of my .vimrc file:
>> [...]
>> > This is the contents of my .profile file:
>> >
>> > Raven:~ untz$ cat .profile
>> > alias vim="/Applications/Vim.app/Contents/MacOS/Vim"
>> > alias gvim="/Applications/Vim.app/Contents/MacOS/Vim -g"
>> > test -r /sw/bin/init.sh && . /sw/bin/init.sh
>> >
>> > This is the contents of my .bash_profile:
>> >
>> > Raven:~ untz$ cat .bash_profile
>> >
>> JAVA_HOME="/System/Library/frameworks/JavaVM.framework/Version
>> s/1.5.0/
>> > Home";
>> > J2EE_HOME="/Developer/JavaTools/j2sdkee1.3.1";
>> > J2ME_HOME="/Developer/JavaTools/j2me_wireless_toolkit2.2";
>> > CATALINA_HOME="/Developer/JavaTools/tomcat/jakarta-tomcat-5.5.9";
>> > CLASSPATH=.:"$J2EE_HOME/lib/j2ee.jar":"$CATALINA_HOME/common/lib/
>> >
>> servlet-api.jar":"$CATALINA_HOME/common/lib/jsp-api.jar":"/Developer/
>> > Database/hsqldb/lib/hsqldb.jar";
>> > PATH=$PATH:$JAVA_HOME/bin:$J2EE_HOME/bin:$J2ME_HOME/bin:/usr/local/
>> > bin:/opt/local/bin;
>> > VIMRUNTIME="/Applications/Vim.app/runtime";
>> > export JAVA_HOME J2ME_HOME J2EE_HOME CATALINA_HOME PATH
>> VIMRUNTIME bash
>> >
>> > When I try to launch gvim by typing in "gvim" from the
>> command line,  this
>> > is what I get:
>> >
>> > Raven:~ untz$ gvim Hello.cpp
>> > -bash: gvim: command not found
>> > Raven:~ untz$
>> >
>> > I am using gvim 7.0aa ALPHA from http://macvim.org/
>> >
>> > Any advice, suggestions, and tips will be greatly appreciated...
>> >
>> > Many, many, thanks!
>> >
>> > -Unnsse
>>
>> Are you sure your .profile was read? Type "alias" at the bash
>> command-line
>> to check it. You should still be able to run gvim by invoking it as
>> "/Applications/Vim.app/Contents/MacOS/Vim -g" (without the
>> quotes) or as
>> gvim after using "source ~/.profile" in bash.
>
> Well, couldn't it simply be that simply he *does not*
> have gvim installed *or* it is not in his PATH?
>
> ---Zdenek

His .profile creates a shell alias for gvim, defining it as vim -g with a
full path. However his shell doesn't know about gvim. Therefore the alias
seems not to have been created.


Best regards,
Tony.