I always put a .vimrc in my home folder for turning
:syntax on. But in OS X Lion it seems that
sudo vi foo.txt ignore or can't find this vim configuration anymore.
Has anyone experiences the same thing?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
I usually have use the same .vimrc and .vim folders as my main users and link them to a safe backupped place on Dropbox - wich btw is awesome for this kind of task.
The location of the home folder for your su is
/var/root. Therefore .vimrc and the .vim folder belong there.