0

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?

Community
  • 1
  • 1
Floegipoky
  • 3,087
  • 1
  • 31
  • 47
  • possible duplicate of [Change default location of vimrc](http://stackoverflow.com/questions/7109667/change-default-location-of-vimrc) – Floegipoky Sep 24 '14 at 19:27

1 Answers1

4

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.

romainl
  • 186,200
  • 21
  • 280
  • 313