LoginSignup
5
7

More than 5 years have passed since last update.

Vundle.vim (とか) をインストールする

Last updated at Posted at 2012-12-26

vundle.vim はプラグインを管理するためのプラグインで、
.vimrc に欲しいプラグインを書けばインストールしてくれる。
プラグインは github にあるものをインストールできる。

https://github.com/vim-scripts/repositories にたくさんあるので検索してみたらどうかな。

Vundle.git を .vim/bundle/vundle に clone する

git clone http://github.com/VundleVim/Vundle.Vim.git ~/.vim/bundle/vundle

欲しいプラグインなどを .vimrc に書く

設定部分は、
1. nerdcommenter はカンマ連打でコメントをトグルするようにしている
2. Powerline というステータス行がおしゃれになるものを設定している

filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'vim-ruby/vim-ruby'
Bundle 'tpope/vim-rails.git'
Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-cucumber'
Bundle 'tpope/vim-endwise'
Bundle 'tpope/vim-vividchalk'
Bundle 'Lokaltog/vim-powerline'
Bundle 'scrooloose/nerdcommenter'
Bundle 'nginx.vim'
Bundle 'css.vim'                                                                                                               
Bundle 'php.vim'                                                                                                               
Bundle 'L9'                                                                                                                    
Bundle 'FuzzyFinder' 
filetype plugin indent on " required! 

let NERDSpaceDelims = 1                                                                                                        
nmap ,, <Plug>NERDCommenterToggle                                                                                              
vmap ,, <Plug>NERDCommenterToggle                                                                                              
nmap ,a <Plug>NERDCommenterAppend                                                                                              
vmap ,p <Plug>NERDCommenterSexy                                                                                                

let g:Powerline_symbols = 'fancy'                                                                                              

" FuzzyFinder                                                                                                                  
let g:fuf_modesDisable = ['mrucmd']                                                                                            
let g:fuf_keyOpenSplit = '<CR>'                                                                                                


nnoremap <silent> ff :<C-u>FufFile!<C-r>=expand('%:~:.')[:-1-len(expand('%:~:.:t'))]<CR><CR>                                   
nnoremap <silent> fb :<C-u>FufBuffer!<CR>                                                                                      
nnoremap <silent> fm :<C-u>FufMruFile!<CR>                                                                                     

augroup FufAutoCommand                                                                                                         
  autocmd!                                                                                                                     
  autocmd FileType fuf :imap <buffer> <Tab>   <C-n><C-@>                                                                       
  autocmd FileType fuf :imap <buffer> <S-Tab> <C-p><C-@>                                                                       
augroup END 


インストール する

vim -c "BundleInstall" -c "q" -c "q"
5
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
7