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!

Set A Backup Folder For Vim

As I have mentioned here, Vim creates backups for the files edited everywhere. To avoid this, you can set the backupdir or bdir variable to tell Vim where to put its backups. The default path for the backupdir is the

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!