Here I post a small snippet with the vimrc I am using.
" Syntax highlighting
syntax on
" Use spaces instead of tabs
set expandtab
" Set numbering
set numberwidth=5
set number
" Set autoindentation with 4 space indentation
set autoindent
set shiftwidth=4
" Set the ruler
set ruler
" Set the CUDA filetype
au BufNewFile,BufRead *.cu set ft=cu
"au BufNewFile,BufRead *.gnu set ft=gnuplot
" Set the searc highlight
set hlsearch
" Set syntax automatic folding
set foldmethod=syntax
" Set foldcolumns
set foldcolumn=3
" Set colorscheme to desert
colorscheme desert
" Instructions to print
" Courtesy of http://vim.wikia.com/wiki/Print_to_a_Postscript_file
let &printexpr="(v:cmdarg=='' ? ".
\"system('lpr' . (&printdevice == '' ? '' : ' -P' . &printdevice)".
\". ' ' . v:fname_in) . delete(v:fname_in) + v:shell_error".
\" : system('mv '.v:fname_in.' '.v:cmdarg) + v:shell_error)"