On Thu, Mar 12, 2009 at 12:00:38AM +0100, Dominique Pelle wrote:
> 
> kba wrote:
> 
> >
> > Maybe you are using a shell alias/wrapper script and not aware of it?
> > Check `which vim` and make sure that 'vim' is not an alias for 'vim -u
> > /non/exsistant/vimrc' or 'vim -C' or something like that. If 'vim' is an
> > executable in your path, check if it's really the binary and not a shell
> > script wrapper.
> 
> Or better use "type vim"  rather than "which vim" since 'type'
> is a shell builtin command (at least in bash) so it knows about
> aliases or shell functions, whereas 'which' is a mere external
> command so it knows nothing about aliases.
> 
> Here is a tongue-in-cheek example showing why it matters:
> 
>   $ alias vim=emacs
> 
>   $ which vim
>   /usr/local/bin/vim
> 
>   $ type vim
>   vim is aliased to `emacs'

In zsh, 'which' is a builtin, e.g.

$ which which
which: shell built-in command

;-) Good to know how it works the bash-way though, thanks.

-kba

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to