を何故か載せておく。
" How vim works set incsearch set nohlsearch set ignorecase set smartcase set hidden set tabstop=4 set expandtab autocmd FileType html :set indentexpr= autocmd FileType xhtml :set indentexpr= autocmd BufEnter * if bufname("") !~ "^\[A-Za-z0-9\]*://" | lcd %:p:h | endif " MiniBufferWindow plugin let g:miniBufExplMapWindowNavVim = 1 let g:miniBufExplMapWindowNavArrows = 1 let g:miniBufExplMapCTabSwitchBufs = 1 let g:miniBufExplModSelTarget = 1 " MRU let MRU_Max_Entries = 20 " Key map nmap <Space> :MBEbn<CR> nmap <F3> :MBEbp<CR> nmap <F4> :MBEbn<CR> nmap <F5> :bd<CR> " How GUI looks like highlight Normal guibg=lightgrey guifg=black set guioptions= colorscheme desert set guifont=osaka_unicode:h11 " Size of GUI winpos 220 10 set lines=55 set columns=100 set cmdheight=1 au GUIEnter * simalt ~x " Statusline function! GetB() let c = matchstr(getline('.'), '.', col('.') - 1) let c = iconv(c, &enc, &fenc) return String2Hex(c) endfunction " :help eval-examples " The function Nr2Hex() returns the Hex string of a number. func! Nr2Hex(nr) let n = a:nr let r = "" while n let r = '0123456789ABCDEF'[n % 16] . r let n = n / 16 endwhile return r endfunc " The function String2Hex() converts each character in a string to a two " character Hex string. func! String2Hex(str) let out = '' let ix = 0 while ix < strlen(a:str) let out = out . Nr2Hex(char2nr(a:str[ix])) let ix = ix + 1 endwhile return out endfunc set laststatus=2 set statusline=%<[%n]%m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).':'.&ff.']'}%y\ %F%=[%{GetB()}]\ %l,%c%V%8P " tags files set tags=C:\Program\\\ Files\Apache\\\ Group\Tomcat\\\ 4.1\webapps\tags,C:\Program\\\ Files\eclipse\workspace\tags,C:\j2sdk1.4.2_12\src\tags,.\tags