language C set nocompatible syntax enable filetype plugin indent on set encoding=utf-8 set fileformat=unix fileformats=unix,dos,mac set fileencoding=utf-8 fileencodings=utf-8,cp932,sjis,euc-jp,ucs-2le set ruler number set list listchars=tab:/.,trail:-,extends:>,precedes:< set smarttab expandtab set tabstop=4 shiftwidth=4 set backspace=indent,eol,start set hidden set iminsert=0 imsearch=-1 set incsearch hlsearch ignorecase smartcase set backup backupdir^=~/.vim_backup directory^=~/.vim_backup noremap gk noremap gj noremap g0 noremap g$ nnoremap k nnoremap j nnoremap h nnoremap l nnoremap :bp nnoremap :bn autocmd FileType xml,html,xhtml call s:FileTypeXml() autocmd FileType css,php,perl,javascript call AssistCoding() function AssistCoding() inoremap ' '' inoremap " "" inoremap ( () inoremap [ [] inoremap { {} inoremap ; endfunction function s:FileTypeXml() inoremap =" ="" setlocal tabstop=2 shiftwidth=2 if !exists('*XmlAttribCallback') function XmlAttribCallback(tagName) setlocal iminsert=0 return 0 endfunction endif endfunction " vim: tabstop=2 shiftwidth=2