How do I setup a Vimrc file?
Answer
Vim Configuration Files:
Answer
Vim Configuration Files:
- $ sudo vim /etc/vim/vimrc.local. CentOS 7 and RHEL 7:
- $ sudo vim /etc/vimrc. You can also do user specific configuration of Vim. …
- $ touch ~/.vimrc. Then, open .vimrc file with vim with the following command:
- $ vim ~/.vimrc. …
- set number. …
- set tabstop=4. …
- set tabstop=2. …
- set autoindent.