set nocompatible " vim의 기능 사용(vi와 구분) if has("clipboard") set clipboard=unnamed " copy to the system clipboard if has("unnamedplus") " X11 support set clipboard+=unnamedplus endif endif set number " 줄 번호 set cindent " C/C++ indent set ruler " 우측 하단 커서 위치 표시 set tabstop=4 " tab 4 set shiftwidth=4 " 들여쓰기 set expandtab " tab을 공백으로 set showmatch " 괄호 짝 표시 set title " 상단 편집 중인 파일 표시 set hlsearch " 검색 강조 set wrap " 줄이 길어지면 다음 줄로 set cursorline " 커서 있는 줄 강조 set noimd " 한글을 쓰다가도 NORMAL에서 영어로 변경됨 set dir=/tmp// " 스왑 파일 경로 set bdir=/tmp// " 백업 파일 경로 " UTF-8 or EUC-KR set encoding=utf-8 set fileencodings=utf-8,cp949,euc-kr " 공백문자 화면에 표시 set list listchars=tab:»-,trail:·,extends:»,precedes:« " 줄의 끝, 시작, 들여쓰기에서 이전 줄로 set backspace=eol,start,indent if has('syntax') syntax on endif " Set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " let Vundle manage Vundle, required Plugin 'VundleVim/Vundle.vim' " 상태바 Plugin 'vim-airline/vim-airline' " theme Plugin 'dracula/vim' " 자동완성 추천 Plugin 'Valloric/YouCompleteMe' call vundle#end() " 강제 저장 cmap w!! w !sudo tee % > /dev/null