vimrc

メモ

syntax on
set ignorecase
set smartcase
set termencoding=utf-8
set fileencodings=utf-8,euc-jp,cp932
set autoindent
set smartindent
set cindent
set showmatch
set ruler
set fdm=marker
set shiftwidth=4
set tabstop=4
" カーソル行をハイライト
set cursorline
" カレントウィンドウにのみ罫線を引く
augroup cch
autocmd! cch
autocmd WinLeave * set nocursorline
autocmd WinEnter,BufRead * set cursorline
autocmd InsertChange * :echo "insert change"
autocmd InsertLeave,CursorMoved * :echo "auto save exec event in leave"
autocmd CmdwinEnter,CmdwinLeave * :echo "auto save exec event"
augroup END
"highlight CursorLine ctermbg=white guibg=white
"highlight CursorLine ctermbg=white guibg=white
highlight CursorLine ctermbg=black guibg=black
""
highlight ZenkakuSpace cterm=underline ctermfg=lightblue guibg=lightblue
match ZenkakuSpace / /
" 
set laststatus=2 " 常にステータスラインを表示

set history=100

nnoremap ;b
nnoremap ;f
nnoremap ;o o
nnoremap ;r
"nnoremap lp $
"nnoremap i// {{{ dust
"nnoremap ; i// }}}
nnoremap ;j /^[^0-9*\/]
nnoremap ;h :s/,/---/g
nnoremap ;k /^[^0-9*\/]:s/,/---/g

nnoremap pa yypl