I'm trying to get two different vim setups to load based on who is using it.
- two users use the 'root' user regularly
- each of us prefers different setup in vim.
- He uses a simple .exrc file
- I have a much more complicated .vimrc that uses pathogen#infect and loads a bunch of plugins.
I'd like to set something up so that if we type
vi somefile it loads his config and
vim somefile loads my config.
I've experimented with an alias for vim that loads the .vimrc from my user's home directory but then it throws an error trying to load the plugins, etc. It's like it still expects the plugins to be in the root user's home directory instead of where the .vimrc was loaded from?
Looking for guidance on the best way to set this up.