Where Is Vimrc in Ubuntu?
Contents

Vim can be configured system wide (globally) via the /etc/vim/vimrc. local file on Ubuntu/Debian based operating systems. On CentOS 7 and RHEL 7, the system wide configuration file for Vim is in /etc/vimrc. You can also do user specific configuration of Vim.

Where is vimrc located?

The user vimrc file often does not exist until created by the user. If you cannot find $HOME/. vimrc (or $HOME/_vimrc on Windows) then you can, and probably should, just create it. The system vimrc should normally be left unmodified and is located in the $VIM * directory.

How do I enable vimrc?

1 Answer. Open vim and type “:version” and hit Enter. You will get paths to your vimrc files. Make sure that your vimrc file is not overwritten by another one (with a higher priority).

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest