"set encoding=japan
:set number
:set backup
:set backupdir=~/bak/vim
:set directory=/tmp,.
:set list
:set expandtab
:set shiftwidth=4
:set tabstop=4
:set autoindent
:set showmatch
:set ruler
set rulerformat=%f\ %l(%p%%)
":syntax on

filetype plugin on

hi Pmenu ctermbg=8
hi PmenuSel ctermbg=1
hi PmenuSbar ctermbg=0

":command -range Copy :<line1>, <line2> write! ~/.vimclip
":command -range Cut :<line1>, <line2> write! ~/.vimclip | :<line1>, <line2> delete
":command Past :read ~/.vimclip

map <silent> sy :call YanktmpYank() <CR>
map <silent> sp :call YanktmpPaste_p() <CR>
map <silent> sP :call YanktmpPaste_P() <CR>

highlight ZenkakuSpace guibg=white
"match ZenkakuSpace /　/

autocmd BufReadPost * 
\ if line("'\"") > 0 && line("'\"") <= line("$") | 
\   exe "normal g`\"" | 
\ endif 
augroup END 

" see :help ft-t-omni
"set tags+=$HOME/.vim/systags
"source /root/opt/vim/share/vim/vim70aa/autoload/syntaxcomplete.vim

"set fileencodings=utf-8,euc-jp,iso-2022-jp,cp932,japan

set encoding=euc-jp
set encoding=utf-8
set fileencodings=euc-jp,utf-8,iso-2022-jp,cp932,japan
set tenc=euc-jp
set tenc=utf-8
set visualbell

set cscopequickfix=s-,c-,d-,i-,t-,e-
