2015년 4월 10일 금요일

[VIM] Vundle 을 이용한 Plugin 확장하기

Vundle 이란  Ruby 의 Gem 플러그인 패키지(Bundle)와 동일한 개념으로 Bundle 은 루비 기반의 프로젝트(레일즈 등)의 수많은 Gem 들을 관라하는 Gem Manager라고 볼수 있음.


Vundle은 VIM Bundle의 줄임말로 VIM 사용자를 위한 플러그인 매니저라 볼수 있음...



**** 설차하기 ***

~/.vim/bundle/ 폴더 안에 소스를 복사하여 넣어주면 작업이 완료.

git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim  


이 후 vimrc 파일 수정 (아래 url 참조)
https://gist.github.com/dobestan/8e3eac9781baf2e4bd3e#file-vimrc

참 쉽다... 이 후 필요한 번들 검색 후 설치하면 된다.


현제 나가 사용하는 번들리스트는 다음과 같다.

Plugin 'ctrlp.vim'  => 컨트롤 피 만 눌르면 이름 검색으로 파일찾기가 가능하다.
Plugin 'fugitive.vim'  => 빔에서 깃을 쉽게 사용하기 위한 번들
Plugin 'Gundo'  => 언두 번들
Plugin 'NERD_tree-Project'  => 프로젝트 트리 윈도우를 보여주는 번들
Plugin 'The-NERD-tree'
Plugin 'highlight.vim'

NERD 와 Gundo 를 위한 단축키는 아래와 같이 등록하여 사용하고 있다.
map <F2> :NERDTreeToggle<CR>
map <F4> :GundoToggle<CR>
" Press F4 to toggle highlighting on/off, and show current value.
noremap <F3> :set hlsearch! hlsearch?<CR>


secureCRT 터미널을 사용하는 경우 키보드 를 리눅스로 이용해여 위 단축키가 설정가능 함...

================
Vundle Use Guid
================
Install and Update Plugins with Vundle
  • This will open a new split window in vim and run through the installation of each of the new plugins.
:PluginInstall

  • If you wish to update your plugins, you can use one of these two commands:
 :PluginUpdate
or 
:PluginInstall! 

Acquiring New Plugins
  • We can list every plugin that vundle can find on the Vim Scripts site by typing.
:Plugins
or
:PluginSearch!

  • If we want to search for a specific plugin, we can use this same syntax like this:
:PluginSearch! <plugin_query>

Managing Installed Plugins

  • To see all of your installed plugins, type this:
:PluginList

  • deletes any plugins that are not in your ~/.vimrc 

:PluginClean


댓글 없음:

댓글 쓰기