r00k / AMA

Ask Me Anything

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Thoughtbot Dotfiles magic: Vim versions

maxcodes opened this issue · comments

Hey Ben! I hope you're having a great day today.

I've run the dotfiles script and have been extremely happy with my newly found webdev machine. Only one issue is still bugging me:

It seems like my default vim is an older one, and I have the new one installed. I know because I want to run hybrid mode (both relativenumber and number enabled), which is supported only by >= 7.4, and I can't get it to work.

However, whenever I try to git commit -v, Vim 7.4 pops up (in hybrid number mode!) And if I type vim --version, it says I do have 7.4 installed.

What am I missing?

Not sure!

Maybe check which vim you're pointing at using which vim. You're probably
sometimes calling the old one, sometimes the new, based on what your
$PATH is at the time.

On Wed, Mar 25, 2015 at 1:46 PM, Max Holzheu notifications@github.com
wrote:

Hey Ben! I hope you're having a great day today.

I've run the dotfiles script and have been extremely happy with my newly
found webdev machine. Only one issue is still bugging me:

It seems like my default vim is an older one, and I have the new one
installed. I know because I want to run hybrid mode (both relativenumber
and number enabled), which is supported only by >= 7.4, and I can't get
it to work.

However, whenever I try to git commit -v, Vim 7.4 pops up (in hybrid
number mode!) And if I type vim --version, it says I do have 7.4
installed.

What am I missing?


Reply to this email directly or view it on GitHub
#37.

-Ben

which vim gives me /usr/local/bin/vim. Which I guess is expected? How can I make sure to always have the correct vim in $PATH? Can this be a "bug" in the dotfiles script?

Can this be a "bug" in the dotfiles script?

Don't think so.

For your other questions, I'm not totally sure. This would probably be a good Stack Overflow question.