Blog Archives

Vim Trick: Use your user’s .vimrc even when you sudo

I have a huuuuuuuge .vimrc configuration file. When I need to edit an /etc file, for example, I use sudo. like: sudo vim /etc/passwd But, using sudo I loose my user’s ~/.vimrc file, as vim uses it’s default. I have

Tagged with: , , , , , ,
Posted in The Linux and Unix Articles!
Subscribe

  

Subscribe to get the latest Linux news and how to guides directly on your e-mail!