Another Japan in the World

Jun Aruga's blog, who lived in Japan, Singapore, live in Czech Republic. Mainly about IT and travel.


Here is my .vimrc file for vim.
I am using it with simple way.

" base
set tabstop=4
set showmode
syntax on
set showmatch

" search
set hlsearch
nmap <Esc><Esc> :nohlsearch<CR><Esc>
set nowrapscan

" Japanese
set termencoding=utf-8
set encoding=japan
set fileencodings=utf-8,iso-2022-jp,cp932,euc-jp
set fenc=utf-8
set enc=utf-8

" status line
set laststatus=2
set statusline=[%L]\ %t\ %y%{'['.(&fenc!=''?&fenc:&enc).':'.&ff.']'}%r%m%=%c:%l/%L

" 全角スペースを視覚化 
highlight ZenkakuSpace cterm=underline ctermfg=lightblue guibg=#666666
au BufNewFile,BufRead * match ZenkakuSpace / /
Remove all ads