syntax on set background=dark if has("autocmd") au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") \| exe "normal g'\"" | endif endif if has("autocmd") filetype indent on endif function! Mosh_Tab_Or_Complete() if col('.')>1 && strpart( getline('.'), col('.')-2, 3 ) =~ '^\w' return "\" else return "\" endfunction :inoremap =Mosh_Tab_Or_Complete() :set ts=4 sts=4 sw=4 noexpandtab