Thursday, April 8, 2010

Re: common vimrc for users and super user

On Thursday 08 April 2010 21:06:09 joy c wrote:

> How can I have a command .vimrc , plugins and other vim
> settings common to both users and root user?
>
> Currently I have everything set up with my username when I su
> to root all my vim settings are gone.

it may not be the approved way, but the way i do it is to
create symbolic links to my user stuff:

su -
<password>
cd
ln -s /home/<me>/.vimrc ./.vimrc
ln -s /home/<me>/.vim ./.vim
exit

or something along those lines should do the trick for you

sc

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe, reply using "remove me" as the subject.

No comments: