set backupcopy=yes set softtabstop=4 set autoindent syn on set cindent set shiftwidth=4 set shiftround set expandtab set formatoptions=t set textwidth=0 set mouse=a set bg=dark map <f5> :set hls!<bar>set hls?<CR> map <f6> :set paste!<bar>set paste?<CR>
Auto indent and auto syntax highlighting. I use a black background terminal, so the “set bg=dark” optimizes the colors for a dark background. I like 4 spaces for my indenting, no tabs. I use the F5 key to toggle search result highlighting, and F6 to toggle between paste mode (no auto-indent) and no-paste mode.