Vim
Changing the color scheme
Reading comments in vim can be difficult as the default color of comments is dark blue. We can change the default color scheme by doing the following:
- Copy the /etc/vimrc file to the home directory.
You can view the color schemes available in the following path. The elflord color scheme works quite well.
sudo cp /etc/vimrc /home/pacman/.vimrc
sudo vim /usr/share/vim/vim70/colors/
- Open up your .vimrc file using vim
sudo vim /home/pacman/.vimrc
- Add in the the :color definition below the set ruler entry in the .vimrc file. The :color entry will change the default color scheme that pacman will have when using vim.
Example:
:color [color_scheme]
Note that the .vim part is not necessary when setting the color scheme.:color elflord
- You can verify that the color scheme has changed by simply opening up the .vimrc file again using vim.
sudo vim /home/pacman/.vimrc