On Sunday 01 November 2009, oversky wrote: > When I use $sudo vim file, vim uses ~/.vimrc, but not the > color template in ~/.vim/colors. > When I change to super user by su, vim uses some initial > vimrc and color. > How do I apply the user vimrc, color template and plugin > for the above two situations? > I just start using Ubuntu 9.10, and have not used linux > before.
what worked for me is this: as root i changed directory to /root -- there i created symbolic links to my ~/.vimrc, ~/.gvimrc, and ~/.vim path, where '~' means the home path of my normal user sc --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
