set ignorecase set smartcase set tabstop=4 set showmode set autoindent set number set showmatch set nocompatible set nowrap set ruler set whichwrap=11 set fileencoding=japan set backspace=2 set list set listchars=tab:>- set title set laststatus=2 set visualbell syntax on
set nocompatible set statusline=[%n]\ %f\ %(\ %M%R%H)%)\=Pos=<%l\,%c%V>\ ASCII=%b\ HEX=%B set backspace=2 set nobackup set viminfo='20,\"50 set autoindent set smartindent set autowrite set showmatch set wrap set wrapscan set noerrorbells set wildmenu set warn set nolist set listchars=tab:>- set noexpandtab set tabstop=8 set shiftwidth=4 set softtabstop=4 set smarttab set backspace=2 set updatecount=0 set scrolloff=2 set ignorecase set smartcase set title set cmdheight=1 set mouse=a set mousefocus set mousehide
if version >= 600 set charcode=japan set linespace=0 else set fileencoding=japan endif
" Don't use Ex mode, use Q for formatting map Q gq
" Set the colors for vim on "xterm" if &term=="xterm" || &term=="kterm" set t_Co=8 set t_AB=[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm set t_AF=[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm endif
" Set syntax highlighiting if has("gui_running") || &t_Co > 2 syntax on set hlsearch endif
" Set fonts, window size / syntax highligting color if has("gui_running") hi Comment guifg=DarkGreen hi PreProc guifg=DarkMagenta hi Constant guifg=Magenta hi Statement guifg=Blue gui=none hi Type guifg=Blue gui=none if has("win32") set guifont=MS_明朝:h10 else set guifontset=r14,k14 endif set columns=102 set lines=48 else hi Normal gui=none guifg=White guibg=Black cterm=none ctermfg=White term=none hi Comment gui=none guifg=Green cterm=none ctermfg=Green term=none hi PreProc gui=none guifg=Magenta cterm=none ctermfg=Magenta term=none hi Constant gui=none guifg=Magenta cterm=none ctermfg=Magenta term=none hi Special gui=none guifg=Magenta cterm=none ctermfg=Magenta term=none hi Identifier gui=none guifg=Cyan cterm=none ctermfg=Cyan term=none hi Statement gui=none guifg=Cyan cterm=none ctermfg=Cyan term=none hi Type gui=none guifg=Cyan cterm=none ctermfg=Cyan term=none endif
" Set IME cursor color if has('multi_byte_ime') highlight CursorIM guibg=Purple guifg=NONE endif
augroup cprog " Remove all cprog autocommands au! autocmd BufRead * set formatoptions=tcql nocindent comments& autocmd BufRead *.c,*.h,*.cc,*.cpp,*.mak,*.pc,*.mk,*.java set ts=4 sw=4 number cindent formatoptions=croql cindent comments=sr:/*,mb:*,el:*/,:// augroup END
autocmd BufRead *.txt set tw=78
" Any script files, set shiftwidth autocmd BufReadPost * if &ft=='vim' | set sw=2 number | endif autocmd BufReadPost * if &ft=='sh' | set sw=2 number | endif autocmd BufReadPost * if &ft=='rc' | set sw=2 number | endif