Jun's Blog

Output, activities, memo and etc.

vimrc

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 / /