While VI has been used for years, in current Linus & iOS systems a lot of people have resorted to using Vim.
There are a lot of tricks to Vim that can make it easier to use. Some may not be active by default and I wanted a chance to introduce some of them to you. One in general that I have found very useful.
set background=dark
Lets start by making sure that you have the packaged “vim-enhanced” installed on your system. Use one of these steps from a terminal prompt to install it.
Mint/Ubuntu (Debian) sudo apt-get install vim-enhanced
Fedora (redhat, centOS) sudo yum -y install vim-enhanced
OpenSuse (Suse) sudo zypper install vim-enhanced
If one of these does not work or your operating systems is different, there are several other options for installing packages. Try the GUI option as well.
The best way to modify settings in Vim is to have the .vimrc file (Vim Run Command file) in your home directory.
cp etc/vimrc ~/.vimrc
Open the file,
vim ~/.vimrc
From here you can fix all sorts of text editor effects in Vim.
Just remove the ” from the comment in order to use it.
The one that made a difference for me was.
set background=dark
This is a GREAT setting if you are working in Vim and have a dark background.
It will change what you see from this:
To this:
set background=dark
Making it very easy to see commenting, now there are several ways to change the config file and in the last image you can read some of the ones in the file we copied (cp) over.
Besides being able to read things better know I also like it when the cursor is in t he same place from the last time I was in the file. Another on on the top of the list is the ability to scroll the cursor with me mouse.
Play around with the file, you can always delete it and start from the beginning again if you mess it up to bad.[/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]