우선조건 : git
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
설치가 끝나면
~/.vimrc 수정
( vim으로 들어가서 :e ~/.vimrc)
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
call vundle#end()
이렇게 작성하고 저장하면 Vundle 사용가능
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/'}
Plugin 'user/L9', {'name': 'newL9'}
call vundle#end()
filetype plugin indent on
위의 소스를 추가하면 된다
(필요한 부분만 놔두고 주석은 삭제함. 주석이 포함되어있는 소스는 밑의 더보기 클릭)
더보기
(티스토리의 단점인데, 복붙하면.. 이상하다. 그래서 주석부분은 다 제외하고 필요한부분만 올린것.
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
Plugin 'L9'
" Git plugin not hosted on GitHub
Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
Plugin 'file:///home/gmarik/path/to/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Avoid a name conflict with L9
Plugin 'user/L9', {'name': 'newL9'}
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"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
" Put your non-Plugin stuff after this line
수정이 완료 되었다면 vim을 실행한 후 명령 모드에서 :PluginInstall 혹은
vim +PluginInstall + qall
를 하면 플러그인들이 인스톨된다.
(플러그인 서치) : vim 명령모드 > :PluginSearch NERD
(플러그인 추가) : (터미널) echo "Plugin 'The-NERD-Tree'" >> ~/.vimrc
(그냥 쉽게 /.vimrc에 The-NERD-Tree를 추가해주는것)
(따라서, 다시한번 vim에서 :PluginInstall를 해주어야한다.)
'Server > Linux_centos' 카테고리의 다른 글
Tmux 티먹스 사용 (1) | 2018.02.21 |
---|---|
C컴파일 / Java 컴파일 (0) | 2018.02.20 |