Loading ...
Sorry, an error occurred while loading the content.
 

Problem running gvim from command line in OS X Tiger

Expand Messages
  • Unnsse Khan
    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
    Message 1 of 5 , Sep 21, 2005
      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
    • Tony Mechelynck
      ... From: Unnsse Khan To: Cc: Sent: Thursday, September 22, 2005 8:07 AM Subject: Problem running gvim from
      Message 2 of 5 , Sep 22, 2005
        ----- Original Message -----
        From: "Unnsse Khan" <untz@...>
        To: <vim@...>
        Cc: <vim-mac@...>
        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.
      • Zdenek Sekera
        ... Well, couldn t it simply be that simply he *does not* have gvim installed *or* it is not in his PATH?
        Message 3 of 5 , Sep 22, 2005
          > -----Original Message-----
          > From: Tony Mechelynck [mailto:antoine.mechelynck@...]
          > Sent: 22 September 2005 14:30
          > To: Unnsse Khan; vim@...
          > Cc: vim-mac@...
          > Subject: Re: Problem running gvim from command line in OS X Tiger
          >
          > ----- Original Message -----
          > From: "Unnsse Khan" <untz@...>
          > To: <vim@...>
          > Cc: <vim-mac@...>
          > 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
        • Tony Mechelynck
          ... From: Zdenek Sekera To: Tony Mechelynck ; Unnsse Khan ; Cc:
          Message 4 of 5 , Sep 22, 2005
            ----- Original Message -----
            From: "Zdenek Sekera" <Zdenek.Sekera@...>
            To: "Tony Mechelynck" <antoine.mechelynck@...>; "Unnsse Khan"
            <untz@...>; <vim@...>
            Cc: <vim-mac@...>
            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:antoine.mechelynck@...]
            >> Sent: 22 September 2005 14:30
            >> To: Unnsse Khan; vim@...
            >> Cc: vim-mac@...
            >> Subject: Re: Problem running gvim from command line in OS X Tiger
            >>
            >> ----- Original Message -----
            >> From: "Unnsse Khan" <untz@...>
            >> To: <vim@...>
            >> Cc: <vim-mac@...>
            >> 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.
          • Tim Chase
            ... 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
            Message 5 of 5 , Sep 22, 2005
              > 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
            Your message has been successfully submitted and would be delivered to recipients shortly.