Note: If you have just installed ubuntu, you must install it vim: apt-get intall vim
sudo vim /etc/vim/vimrc
set nu // line number on the left
set tabstop // tab length is set to 4
set nobackup // overwrite files without backup
set cursorline // highlight the current line
set ruler // display position of the cursor in the lower right status line
set autoindent // auto-indentation
set mouse = a // Use the mouse
syntax highlighting syntax on //
set backspace = 2 // use backspace to delete
Use the arrow keys to set nocompatible //