사이드바 열기

'vi'에 해당되는 글 1건


" 환경설정 --------------------------------------------------------------------
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin

set diffexpr=MyDiff()
function MyDiff()
let opt = '-a --binary '
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
let arg1 = v:fname_in
if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
let arg2 = v:fname_new
if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
let arg3 = v:fname_out
if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
let eq = ''
if $VIMRUNTIME =~ ' '
if &sh =~ '\<cmd'
let cmd = '""' . $VIMRUNTIME . '\diff"'
let eq = '"'
else
let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
endif
else
let cmd = $VIMRUNTIME . '\diff'
endif
silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq
endfunction
" 환경설정 --------------------------------------------------------------------

"파일형식에 따른 Syntax highlighting 기능 On.
syntax on

" 오리지널 VI와의 호환성을 없애고, VIM만의 기능을 쓸 수 있게함.
set nocp

" cident를 끈다. (sw가 space만 입력한다. ident로 tab를 사용하려면 꺼야함)
set cindent

"탭 크기 설정, 탭 길이, 들여쓰기탭 간격
set ts=4
set sts=0
set sw=4

"탭을 스페이스로 바꿈.
set et

" 커서 위츠를 항상 보이게 함.
set ru

" Line 표현
set nu

"좌표 표시
set ruler

" 파일 저장인코딩을 utf-8로 한다.
set tenc=korea
set encoding=cp949
set fileencoding=utf-8
set fileencodings=ucs-bom,utf-8,euc-kr,latin1

" 자동 띄워쓰기를 한다.
set autoindent

" C 스타일 띄워쓰기를 한다.
set cindent

" 텍스트 가로폭을 80으로 제한한다.
set textwidth=80

" 백업파일을 생성하지 않음
set nobackup

" ColorScheme is Matrix
colorscheme matrix

" Font
set guifont=나눔고딕코딩:h12:cHANGEUL

" start Size
set lines=80
set co=100

" 파일 확장자에 따른 옵션
filetype on
filetype plugin indent on




Posted by LaLuna
이전페이지 1 다음페이지
위로

사이드바 열기