Last active
April 18, 2016 04:38
-
-
Save galch/7922602cf067edc66f17 to your computer and use it in GitHub Desktop.
my vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'L9' | |
Plugin 'git://git.wincent.com/command-t.git' | |
Plugin 'file:///home/gmarik/path/to/plugin' | |
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'} | |
call vundle#end() " required | |
filetype plugin indent on " required | |
"filetype plugin on | |
" Brief help | |
" :PluginList - lists configured plugins | |
" :PluginInstall - installs plugins; append `!` to update or just | |
" :PluginUpdate | |
" :PluginSearch foo - searches for foo; append `!` to refresh local cache | |
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal | |
" see :h vundle for more details or wiki for FAQ | |
" Vim에서 파일 탐색기를 사용할 수 있게 한다. - Nerd Tree | |
Plugin 'The-NERD-tree' | |
" Vim에서 자동완성 기능(Ctrl + P)을 키입력하지 않더라도 자동으로 나타나게 - AutoComplPop | |
Plugin 'AutoComplPop' | |
" NERD Tree를 왼쪽에 생성 | |
let NERDTreeWinPos = "left" | |
" NERD Tree는 F7키. Tag List는 F8키에 매칭. | |
nmap <F7> :NERDTree<CR> | |
filetype on | |
set hlsearch " 검색어 하이라이팅 | |
set nu " 줄번호 | |
set autoindent " 자동 들여쓰기 | |
set scrolloff=2 | |
set wildmode=longest,list | |
set ts=4 "tag select | |
set sts=4 "st select | |
set sw=1 " 스크롤바 너비 | |
set autowrite " 다른 파일로 넘어갈 때 자동 저장 | |
set autoread " 작업 중인 파일 외부에서 변경됬을 경우 자동으로 불러옴 | |
set cindent " C언어 자동 들여쓰기 | |
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\ | |
" 마지막으로 수정된 곳에 커서를 위치함 | |
au BufReadPost * | |
\ if line("'\"") > 0 && line("'\"") <= line("$") | | |
\ exe "norm g`\"" | | |
\ endif | |
" 파일 인코딩을 한국어로 | |
if $LANG[0]=='k' && $LANG[1]=='o' | |
set fileencoding=korea | |
endif | |
" 구문 강조 사용 | |
if has("syntax") | |
syntax on | |
endif | |
"folding settings | |
set foldmethod=syntax "fold based on syntax | |
set foldnestmax=10 "deepest fold is 10 levels | |
set nofoldenable "dont fold by default | |
set foldlevel=0 "this is just what i use | |
hi Folded ctermbg=242 | |
autocmd BufWinLeave *.* mkview " save folding status | |
autocmd BufWinEnter *.* silent loadview " load folding status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +PluginInstall +qall