my .vimrc

syntax on set nocompatible set autoindent set smartindent set tabstop=4 set shiftwidth=4 set expandtab set showmatch

# map F2 key to toggle auto indent while pasting indented code.
nnoremap :set invpaste paste?
set pastetoggle=
set showmode