vundle 플러그인 관리자 설치 및 유용한 플러그인
Vundle 설치
vim 의 plugin manager 인 vundle 설치 방법 정리. 사전에 git과 curl 이 설치되어 있어야 합니다.
Linux
vundle 플러그인을 clone 합니다.
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
BASH플러그인 설정을 ~/.vimrc 의 최상단에 추가합니다.
set nocompatible " be iMproved, required filetype off " required " set the runtime path to include Vundle and initialize 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 'VundleVim/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/'} " Install L9 and avoid a Naming conflict if you've already installed a " different version somewhere else. " Plugin 'ascenator/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
Window
vim 이 설치된 경로로 이동후 cmd.exe 실행. 해당 폴더에는 vimfiles 폴더가 있어야 함
Vundle clone
cd %USERPROFILE% git clone https://github.com/VundleVim/Vundle.vim.git %USERPROFILE%/.vim/bundle/Vundle.vim gvim .vimrc
POWERSHELL_vimrc 에 플러그인 설정 추가(Linux 2번 항목 참고)
Plugin
http://vimawesome.com/ 에서 전체 플러그인 검색 가능
- .vimrc 에 플러그인 추가
설치
:source % :PluginInstall
CODE
syntastic
syntax checking hack
Plugin 'scrooloose/syntastic'
VIM
Vim-Vue
Plugin 'posva/vim-vue'
CODE
vim-colors-solarized
Plugin 'altercation/vim-colors-solarized'
syntax enable
set background=dark
colorscheme solarized
VIM
vim airline
Plugin 'bling/vim-airline'
CODE
Linux 에서 split 하지 않는 이상 상태바가 표시되지 않을 경우 다음 내용을 .vimrc 에 추가 - https://github.com/vim-airline/vim-airline/wiki/FAQ
set laststatus=2
CODE