oversky 写道: > 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.
for the first case, it should work, ubuntu by default will setup sudo to use the user environment. but ubuntu by default do *not* have the proper version of vim installed, you need to :sudo apt-get install vim before you can use vim. for the second case, you are using root environment, so you can do under your user account: sudo ln -s ~/.vim /root/.vim sudo ln -s ~/.vimrc /root/.vimrc then use your su and you can get the same vim env. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
