This tutorial has been written for both vi and vim. It starts with real basics, such as cursor navigation and ends with more advanced techniques like merging files.
For every section of this tutorial there is a short video with hints to help you understand how vim / vi works. Even that I have divided this tutorial into parts from novice to the expert user, there is plenty more what vim can do to make your work with vim editor easier and more efficient.
However completing this tutorial you will give sufficient knowledge about vim / vi and its features for your daily tasks.
In vim you can move cursor around with following keys h, l, k, j which is left, right, up and down respectively.
You can move cursor around also with arrow keys, however this is possible only if they are available.
Vim was designed for all kinds of terminals where arrow keys may not be available for you. Moreover, once you get used to using vim with h, l, k, j you will move more quickly than using arrow keys.
Open some text file and try use above keys now:
NOTE: You do not have to create a file prior to execution of the above command. If the file does not exists it will be created. If the file does exists it will be opened.
Virtualbox installation on Fedora Linux This short howto will guide a Fedora user with a steps on howto install VirtualBox on a Fedora linux system.
System: Fedora 14 Laughlin , i386
Virtualbox Version: 3.2.12 for Linux
First, become a root and install all required prerequisites:
# yum install SDL make automake autoconf gcc kernel-devel dkms
Download RPM binary package of Virtualbox:
# wget http://download.virtualbox.org/virtualbox/3.2.12/VirtualBox-3.2-3.2.12_68302_fedora14-1.i686.rpm
Next install a downloaded RPM package with rpm command:
# rpm -i VirtualBox-3.2-3.2.12_68302_fedora14-1.i686.rpm
Recompile vboxdrv modules:
# /etc/init.d/vboxdrv setup
Make your self belong to a group vboxusers:
# usermod -G vboxusers -a username
Now, you need to log out and log in to apply the above group changes. Once you log in into the system again you should have a working version of Virtualbox on your Fedora Linux.
After power up my vmware virtual machines on the Ubuntu I have had a problems using arrow keys when my mouse pointer was captured by the console. Could not move at all and I had to use a Num pad on my keyboard to move around which was really annoying since I could not type a numbers because I had to keep my Num Lock OFF. The solution to this problem is simple:
echo 'xkeymap.nokeycodeMap = true' >> ~/.vmware/config