"[UPDATED] 9 Jun 05
"Convert text file to html
":runtime! syntax/2html.vim
"--- Options
set softtabstop=4
set shiftwidth=4
set expandtab
set autoindent
set smartindent
set ignorecase
set background=dark
set ruler
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
"change to directory of current file automatically
autocmd BufEnter * lcd %:p:h
"--- Map keys
"javadoc comment template, a space at end of line below
map <F3> <Esc>O/**<Esc>o *<Esc>o*/<Esc>ka
"if statement template
"map <F4> <Esc>oif () {<Esc>o}<Esc>k^f(a
"foreach statement template
map <F5> <Esc>oforeach ($ as $k => $v) {<Esc>o}<Esc><<k9la
"indent a Block {}
map <F6> =aB
"Fold a Block
map <F7> zfaB
"check php syntax
map <F8> :!php -l %<CR>
" Command-line editing
" back one word
cnoremap <Esc><C-B> <S-Left>
" forward one word
cnoremap <Esc><C-F> <S-Right>
set tags=~/tags
"Buffer explorer. Place at ~/.vim/plugin.
"http://vim.sourceforge.net/scripts/script.php?script_id=158
"let g:miniBufExplVSplit = 20
"let g:miniBufExplModSelTarget = 1