On Sun, 01 Nov 2009, James Michael Fultz wrote:
> 
> * sc <[email protected]> [2009-11-01 13:27 -0600]:
> > > 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
> 
> I think that a better way is to setup environment:
> 
> # ~/.profile, ~/.bashrc, ~/.zshenv, etc.
> EDITOR=vim
> VISUAL=$EDITOR
> export EDITOR VISUAL
> 
> and:
> 
> $ sudoedit file

or 

$ sudo -e file

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to