본문 바로가기
관리자 기고

vi vim vimrc 편집기 설정 파일

by 와이즈캣 2019. 3. 29.
728x90
반응형
set hlsearch
set nu
set autoindent
set scrolloff=2
set wildmode=longest,list
set ts=4
set sts=4
set sw=1
set autowrite
set autoread
set cindent
set bs=eol,start,indent
set history=256
set laststatus=2
""set paste
set shiftwidth=4
set showmatch
set smartcase
set smarttab
set smartindent
set softtabstop=4
set tabstop=4
set ruler
set incsearch
set statusline=\ %<%l:%v\ [%P]%=%a\ %h%m%r\ %F\
set mouse-=a

au BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "norm g`\"" |
\ endif

if $LANG[0]=='k' && $LANG[1]=='o'
set encoding=utf-8
set fileencodings=utf-8,cp949
"set fileencoding=korea
endif

if has("syntax")
	syntax on
endif

highlight Comment term=bold ctermfg=2
highlight Constant term=bold ctermfg=3
728x90