This is my current "draft", and I might change it later (I'll update this thread if I do).
Code: Select all
syntax on
filetype indent on
set nowrap
set number
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
autocmd FileType php set omnifunc=phpcomplete#CompletePHP
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
autocmd FileType css set omnifunc=csscomplete#CompleteCSS
autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags
autocmd FileType python set omnifunc=pythoncomplete#Complete
autocmd FileType c set omnifunc=ccomplete#Complete
Code: Select all
gg=G
I was writing an HTML document while doing this, so all I did was
Code: Select all
set ft=html