어쩌라구..?? ㅡㅡa..

Posted
Filed under Linux/vi
원래 소스는 다른데서 업어와서
내 필요와 기호에 따라 이리저리 선택하고 설정해서 쓰는 파일이다.

실제로 내가 안 쓰는 옵션도 있지만 주석으로 막혀있고,
그것들도 언젠가 필요할때가 올 것이다.

set nocompatible
" source $VIMRUNTIME/vimrc_example.vim

" set nu
syntax on
filetype on

"set tabstop=2
set shiftwidth=2
set softtabstop=2
set backspace=indent
set expandtab

au BufNewFile,BufReadPost Makefile set sw=4 sts=0 noexpandtab
au BufNewFile,BufReadPost *.py set ts=4 sw=4 sts=0 noexpandtab

set nowrap
"set cinoptions=>s:0=s(0W0g0hsi2s
set cindent
set ignorecase
set smartcase
set nohlsearch
set incsearch

colo pablo
"colo koehler
"colo elflord
"colo torteiocharset=utf8
"colo delek

"colo billw
"colo darkblack
"colo dante
"colo sean

"set bg=dark
" set backupdir=~/.vim.backup
" set tw=72
" set fileencodings=utf8
"set csprg=/usr/bin/cscope
" set path=.,~/
" set path=.,~/data,~/data/ani
" lang ko_KR

" let g:winManagerWindowLayout = 'TodoList,FileExplorer|BufExplorer'

" runtime ftplugin/man.vim

" if has("cscope")
" set csprg=/usr/bin/cscope
" set csto=0
" set cst
" set nocsverb
" add any database in current directory
" if filereadable(".cscope.out")
   " cs add .cscope.out
" else add database pointed to by environment
" elseif $CSCOPE_DB != ""
   " cs add $CSCOPE_DB
" endif
" set csverb
" endif

"set tags+=./.tags
"set tags+=/usr/include/GL/tags
"set tags+=/usr/src/linux-source-2.6.15/tags
"/usr/include/linux/tags


" ctags commands
if version >= 500

func! Sts()
     let st = expand("<cword>")
     exe "sts ".st
endfunc
nmap ,st :call Sts()<CR>

func! Tj()
     let st = expand("<cword>")
     exe "tj ".st
endfunc
nmap ,tj :call Tj()<CR>

endif


" Java commands
func! Jc()
     let jc = expand("%")
     exe "!javac ".jc
endfunc
nmap ,jc :call Jc()<CR>

func! Jr()
     let jr = expand("%:r")
     exe "!java ".jr
endfunc
nmap ,jr :call Jr()<CR>



nmap ,b1 :b!1<CR>
nmap ,b2 :b!2<CR>
nmap ,b3 :b!3<CR>
nmap ,b4 :b!4<CR>
nmap ,b5 :b!5<CR>
nmap ,b6 :b!6<CR>
nmap ,b7 :b!7<CR>
nmap ,b8 :b!8<CR>
nmap ,b9 :b!9<CR>
nmap ,bn :bn!<CR>
nmap ,bp :bp!<CR>

map ,n :cn<CR>
map ,p :cp<CR>
map ,l :cl<CR>
map ,w :cw<CR>

map ,ma :w<CR>:make<CR>

"set gfn=curier\ 10
set gfn=Bitstream\ Vera\ Sans\ Mono\ 10
set nohls
set nobackup
set noswapfile


2009년 9월 21일 수정
2006/02/23 17:37 2006/02/23 17:37