On Thu, Apr 13, 2006 at 04:48:22AM -0700, linda.s wrote: > On 4/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > linda.s <[EMAIL PROTECTED]> wrote on 2006.04.13 16:02:44: > > > > > I have both vim and gvim app under my applications in the Mac. Both work > > fine. > > > I typed vim in the terminal and it successfully went yo VIM interface. > > > However, if I typed gvim, there came an error message "-bash: gvim: > > > command not found". If I want to launch gvim from the terminal, what > > > to do > > > > try: vim -g > > > vim -g > E25: GUI cannot be used: Not enabled at compile time
This is probably the version of vim installed with the OS. To confirm: $ which vim $ vim --version If I am right, the first will tell you /usr/bin/vim and the second will show (among other things) that it is vim 6.2 (Normal version without GUI). There are several ways to start Vim.app from the command line. See http://macvim.org/OSX/index.php#FAQ I suggest using the gvim shell script (included with the binaries from macvim.org or separately as http://macvim.org/OSX/files/gvim ) . If you do not already have a personal bin/ directory, then do something like this: $ mkdir ~/bin $ cd ~/bin $ curl -O http://macvim.org/OSX/files/gvim $ ln gvim vim $ ./vim ~/.bashrc and add a line or two to your .bashrc file (assuming you use bash) something like this: # Add my own stuff to the path: export PATH=~/bin:$PATH If you keep Vim.app somewhere unusual, see the comments in the shell script. (The $ curl line is one way to get the gvim shell script from macvim.org ; if you already have a local copy, you can use that.) HTH --Benji Fisher