愛用のvimrc

なくすと面倒だ…というメモ。
qbuf.vimってプラグインも使ってた。
~/.vim/plugins/qbuf.vimとして、let g:qb_hotkey = ""をlet g:qb_hotkey = ";"に変更してた。

colorscheme delek
nohlsearch
syntax on
set nolist
set nocursorline
set guicursor=a:blinkon0
set guifont=Osaka−等幅:h12
set lines=46
set columns=80

set nobackup

set fileformat=unix

set laststatus=2
set statusline=%<%f\ %m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']'}%=%l,%c%V%8P

set tabstop=2 expandtab shiftwidth=2
set autoindent

autocmd FileType python setl textwidth=80
autocmd FileType python setl smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class

autocmd FileType html setl autoindent
autocmd FileType html setl smartindent

function! s:Exec()
  exe "!" . &ft . " %"
:endfunction
command! Exec call <SID>Exec()
map <silent> <C-P> :call <SID>Exec()<CR>