kba wrote: > On Wed, Mar 11, 2009 at 03:47:28PM -0500, Harry Putnam wrote: >> >> Shawn Walker <[email protected]> writes: >> >> >> What might cause ~/.vimrc to be ignored on vim start >> > >> > It works fine on my system, but the file is owned by me, and it's not >> > a symlink. >> >> It worked for me for a while too. But now it doesn't. To test, I >> moved the actual actual file into ~/ and as I showed in OP it belongs >> to me. >> >> ls -l .vimrc: >> -rw-r--r-- 1 reader staff 8649 2009-03-11 15:43 .vimrc >> >> But still it does not get sourced when I start vim on a file. > > 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' You may also try "strace vim 2> strace.log" so see whether vim is at least opening/reading your ~/.vimrc file. Your version of Vim is a bit strange: VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Feb 3 2009 02:11:30) Included patches: 1-6, 8-35, 37-40, 42-48, 50-70, 73, 75-84 Why include patches up to 84 but include all of them. Patch 7, 37, 41, 49, 71, 72, 74 are not included?! It seems dangerous to me if one patch happens to depend on a previous patch. You may want to download/compile/install a more recent version. Latest version of Vim as of today is Vim-7.2.141. Cheers -- Dominique --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
