화요일, 11월 15, 2005

_vimrc (vim)


if has("autocmd")
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") | \ exe "normal g`\"" | \ endif endif " has("autocmd")
set nocompatible
"source $VIMRUNTIME/vimrc_example.vim
"source $VIMRUNTIME/mswin.vim
source $VIMRUNTIME/colors/pablo.vim
behave mswin
set nocindent " C 프로그래밍을 할때 자동으로 들여쓰기를 한다.
set noautoindent " 자동으로 들여쓰기를 한다.
set nosmartindent " 좀더 똑똑한 들여쓰기를 위한 옵션이다.
"set textwidth=79 " 만약 79번째 글자를 넘어가면
"set wrap " 자동으로 를 삽입하여 다음 줄로 넘어간다.
"set nowrapscan " 검색할 때 문서의 끝에서 다시 처음으로 돌아가지 않는다.
"set nobackup " 백업 파일을 만들지 않는다.
set visualbell " 키를 잘못눌렀을 때 삑 소리를 내는 대신 번쩍이게 한다.
set ruler " 화면 우측 하단에 현재 커서의 위치(줄,칸)를 보여준다.
set tabstop=8 " Tab을 눌렀을 때 8칸 대신 4칸 이동하도록 한다.
set shiftwidth=4 " 자동 들여쓰기를 할때 4칸 들여쓰도록 한다.

set viminfo='20,\"50 " read/write a .viminfo file, don't store more
set ruler " show the cursor position all the time

"문법 강조 기능을 사용한다.
if has("syntax")
syntax on " Default to no syntax highlightning
set hlsearch
endif

set nobackup

" 마우스로 복사하는 기능
set go+=a
"noremap

set guifont=굴림체:h12:cHANGEUL
set guioptions=gmrLtTa

댓글 없음: