I'm not quite sure what you want here. gvim won't run in the Terminal. It always opens a separate window (gvim is gui vim). vim is the non-gui terminal version.Thanks.
I compiled the latest source of VIM, moved it to the Applications folder and added gvim to the local path.
However when i type gvim in the terminal it opens VIM instead of running in the terminal.
I'm not quite sure what you want here. gvim won't run in the Terminal. It always opens a separate window (gvim is gui vim). vim is the non-gui terminal version.
Ok, so you type vim in Terminal, exactly what happens?I just want the vim command to use an updated version of vim.
that's expected. The gvim script included with the MacVIM (that's the one you're using, right?) does different things depending on what name you give it on the command line.However when i type gvim in the terminal it opens VIM instead of running in the terminal.
I renamed the file and still no cookie i guess the global path takes priority over the local path...
echo $PATH
# First, check "All the Usual Suspects" for the location of the Vim.app
# bundle. You can short-circuit this by setting the VIM_APP_DIR environment
# variable or by un-commenting and editing the following line:
# VIM_APP_DIR=/Applications
I just aliased vim to /Applications/Vim.app/Contents/MacOS/Vim, which I compiled and installed from source. Because argv[0] is vim, it knows to run in the terminal instead of as a separate application.
Thanks.
I compiled the latest source of VIM, moved it to the Applications folder and added gvim to the local path.
However when i type gvim in the terminal it opens VIM instead of running in the terminal.
Make an alias in your profile that points at the vim you want to use.
Ooops, you already did that.
Make sure it's executable?
If this is relevant: i created th alias with the finder.
cd /wherever/the/gvim/script/lives
ln -s gvim vim
That means u replaced vim in the usr/bin folder?
I tried to add an alias with a nome other than vim pointing to /Applications/Vim.app/Contents/MacOS/Vim but when i run the command terminal shows permission dennied.
No, I created a shell alias. I guess I wasn't specific enough. So in my .tcshrc files, there's a command "alias vim /Applications/Vim.app/Contents/MacOS/Vim". I'm not sure what the equivalent command would be in bash.
Yeah, that is relevant. While symbolic links look just like aliases when viewed in the Finder, aliases created through the Finder are not symlinks.
To get what you need, delete that alias, then (from Terminal):
Code:cd /wherever/the/gvim/script/lives ln -s gvim vim
(may need sudo for that, depending on where you put stuff)
What does your PATH environment variable look like? Type the command "printenv PATH"
/usr/bin is ahead of /usr/local/bin, so it's finding the 6.3 version of vim before it finds your local one. you need to put /usr/local/bin ahead of /usr/bin. Or you can do the alias thing.