Floegipoky
Floegipoky

Reputation: 3273

Change location of vimrc

I'm trying to unclutter $HOME, and want to move my .vimrc into ~/.vim. I've already looked at this and this, but none of the solutions presented are what I'm looking for.

I do not want to alias vim with the -u flag because it won't be appropriately set if it is opened in some other way than from the shell.

I do not want to use a symbolic link because it still shows up in $HOME.

I will not compile it from source, I'd rather just use a symlink (which is what I'm currently doing) than deal with that mess.

Can anyone offer some new ideas?

Upvotes: 0

Views: 400

Answers (1)

romainl
romainl

Reputation: 196886

If you are using 7.4, you can simply move your ~/.vimrc file into your ~/.vim/ directory:

~/.vim/vimrc    <--- "vimrc", not ".vimrc"

Try this method if you don't use 7.4.

Upvotes: 4

Related Questions