Vundle syntax update [Fix #578]

This commit is contained in:
Nikolai Berkoff 2015-01-04 14:06:25 -06:00 committed by Yan Pritzker
parent 81f89e64d1
commit a5fccb9f17
10 changed files with 100 additions and 98 deletions

View File

@ -6,15 +6,15 @@ module Vundle
return if contains_vundle? plugin_repo return if contains_vundle? plugin_repo
vundles = vundles_from_file vundles = vundles_from_file
last_bundle_dir = vundles.rindex{ |line| line =~ /^Bundle / } last_bundle_dir = vundles.rindex{ |line| line =~ /^Plugin / }
last_bundle_dir = last_bundle_dir ? last_bundle_dir+1 : 0 last_bundle_dir = last_bundle_dir ? last_bundle_dir+1 : 0
vundles.insert last_bundle_dir, "Bundle \"#{plugin_repo}\"" vundles.insert last_bundle_dir, "Plugin \"#{plugin_repo}\""
write_vundles_to_file vundles write_vundles_to_file vundles
end end
def self.remove_plugin_from_vundle(plugin_repo) def self.remove_plugin_from_vundle(plugin_repo)
vundles = vundles_from_file vundles = vundles_from_file
deleted_value = vundles.reject!{ |line| line =~ /Bundle "#{plugin_repo}"/ } deleted_value = vundles.reject!{ |line| line =~ /Plugin "#{plugin_repo}"/ }
write_vundles_to_file vundles write_vundles_to_file vundles
@ -22,11 +22,11 @@ module Vundle
end end
def self.vundle_list def self.vundle_list
vundles_from_file.select{ |line| line =~ /^Bundle .*/ }.map{ |line| line.gsub(/Bundle "(.*)"/, '\1')} vundles_from_file.select{ |line| line =~ /^Plugin .*/ }.map{ |line| line.gsub(/Plugin "(.*)"/, '\1')}
end end
def self.update_vundle def self.update_vundle
system "vim --noplugin -u #{ENV['HOME']}/.vim/vundles.vim -N \"+set hidden\" \"+syntax on\" +BundleClean +BundleInstall +qall" system "vim --noplugin -u #{ENV['HOME']}/.vim/vundles.vim -N \"+set hidden\" \"+syntax on\" +PluginClean +PluginInstall +qall"
end end

View File

@ -4,18 +4,18 @@
" "
" This file contains the list of plugin installed using vundle plugin manager. " This file contains the list of plugin installed using vundle plugin manager.
" Once you've updated the list of plugin, you can run vundle update by issuing " Once you've updated the list of plugin, you can run vundle update by issuing
" the command :BundleInstall from within vim or directly invoking it from the " the command :PluginInstall from within vim or directly invoking it from the
" command line with the following syntax: " command line with the following syntax:
" vim --noplugin -u vim/vundles.vim -N "+set hidden" "+syntax on" +BundleClean! +BundleInstall +qall " vim --noplugin -u vim/vundles.vim -N "+set hidden" "+syntax on" +PluginClean! +PluginInstall +qall
" Filetype off is required by vundle " Filetype off is required by vundle
filetype off filetype off
set rtp+=~/.vim/bundle/vundle/ set rtp+=~/.vim/bundle/vundle/
set rtp+=~/.vim/vundles/ "Submodules set rtp+=~/.vim/vundles/ "Submodules
call vundle#rc() call vundle#begin()
" let Vundle manage Vundle (required) " let Vundle manage Vundle (required)
Bundle "gmarik/vundle" Plugin 'gmarik/vundle'
" YADR's vundles are split up by category into smaller files " YADR's vundles are split up by category into smaller files
" This reduces churn and makes it easier to fork. See " This reduces churn and makes it easier to fork. See
@ -35,5 +35,7 @@ if filereadable(expand("~/.yadr/vim/.vundles.local"))
source ~/.yadr/vim/.vundles.local source ~/.yadr/vim/.vundles.local
endif endif
call vundle#end()
"Filetype plugin indent on is required by vundle "Filetype plugin indent on is required by vundle
filetype plugin indent on filetype plugin indent on

View File

@ -1,10 +1,10 @@
Bundle "chrisbra/color_highlight.git" Plugin 'chrisbra/color_highlight.git'
Bundle "skwp/vim-colors-solarized" Plugin 'skwp/vim-colors-solarized'
Bundle "itchyny/lightline.vim" Plugin 'itchyny/lightline.vim'
Bundle "jby/tmux.vim.git" Plugin 'jby/tmux.vim.git'
Bundle "morhetz/gruvbox" Plugin 'morhetz/gruvbox'
Bundle "xsunsmile/showmarks.git" Plugin 'xsunsmile/showmarks.git'
Bundle "chriskempson/base16-vim" Plugin 'chriskempson/base16-vim'
" Required for Gblame in terminal vim " Required for Gblame in terminal vim
Bundle "godlygeek/csapprox.git" Plugin 'godlygeek/csapprox.git'

View File

@ -1,4 +1,4 @@
Bundle "gregsexton/gitv" Plugin 'gregsexton/gitv'
Bundle "mattn/gist-vim" Plugin 'mattn/gist-vim'
Bundle "tpope/vim-fugitive" Plugin 'tpope/vim-fugitive'
Bundle "tpope/vim-git" Plugin 'tpope/vim-git'

View File

@ -1,15 +1,15 @@
Bundle "briancollins/vim-jst" Plugin 'briancollins/vim-jst'
Bundle "pangloss/vim-javascript" Plugin 'pangloss/vim-javascript'
Bundle "rodjek/vim-puppet" Plugin 'rodjek/vim-puppet'
Bundle "othree/javascript-libraries-syntax.vim" Plugin 'othree/javascript-libraries-syntax.vim'
Bundle "digitaltoad/vim-jade.git" Plugin 'digitaltoad/vim-jade.git'
Bundle "groenewege/vim-less.git" Plugin 'groenewege/vim-less.git'
Bundle "itspriddle/vim-jquery.git" Plugin 'itspriddle/vim-jquery.git'
Bundle "jtratner/vim-flavored-markdown.git" Plugin 'jtratner/vim-flavored-markdown.git'
Bundle "kchmck/vim-coffee-script" Plugin 'kchmck/vim-coffee-script'
Bundle "scrooloose/syntastic.git" Plugin 'scrooloose/syntastic.git'
Bundle "garbas/vim-snipmate.git" Plugin 'garbas/vim-snipmate.git'
Bundle "nelstrom/vim-markdown-preview" Plugin 'nelstrom/vim-markdown-preview'
Bundle "skwp/vim-html-escape" Plugin 'skwp/vim-html-escape'
Bundle "tpope/vim-haml" Plugin 'tpope/vim-haml'
Bundle "honza/vim-snippets" Plugin 'honza/vim-snippets'

View File

@ -1,5 +1,5 @@
Bundle "jistr/vim-nerdtree-tabs.git" Plugin 'jistr/vim-nerdtree-tabs.git'
Bundle "scrooloose/nerdtree.git" Plugin 'scrooloose/nerdtree.git'
Bundle "kien/ctrlp.vim" Plugin 'kien/ctrlp.vim'
Bundle "xolox/vim-misc" Plugin 'xolox/vim-misc'
Bundle "xolox/vim-session" Plugin 'xolox/vim-session'

View File

@ -1,10 +1,10 @@
Bundle "ecomba/vim-ruby-refactoring" Plugin 'ecomba/vim-ruby-refactoring'
Bundle "tpope/vim-rails.git" Plugin 'tpope/vim-rails.git'
Bundle "tpope/vim-rake.git" Plugin 'tpope/vim-rake.git'
Bundle "tpope/vim-rvm.git" Plugin 'tpope/vim-rvm.git'
Bundle "vim-ruby/vim-ruby.git" Plugin 'vim-ruby/vim-ruby.git'
Bundle "Keithbsmiley/rspec.vim" Plugin 'Keithbsmiley/rspec.vim'
Bundle "skwp/vim-iterm-rspec" Plugin 'skwp/vim-iterm-rspec'
Bundle "skwp/vim-spec-finder" Plugin 'skwp/vim-spec-finder'
Bundle "ck3g/vim-change-hash-syntax" Plugin 'ck3g/vim-change-hash-syntax'
Bundle "tpope/vim-bundler" Plugin 'tpope/vim-bundler'

View File

@ -1,6 +1,6 @@
Bundle "justinmk/vim-sneak" Plugin 'justinmk/vim-sneak'
Bundle "rking/ag.vim" Plugin 'rking/ag.vim'
Bundle "vim-scripts/IndexedSearch" Plugin 'vim-scripts/IndexedSearch'
Bundle "nelstrom/vim-visual-star-search" Plugin 'nelstrom/vim-visual-star-search'
Bundle "skwp/greplace.vim" Plugin 'skwp/greplace.vim'
Bundle "Lokaltog/vim-easymotion" Plugin 'Lokaltog/vim-easymotion'

View File

@ -1,15 +1,15 @@
" These bundles introduce new textobjects into vim, " These bundles introduce new textobjects into vim,
" For example the Ruby one introduces the 'r' text object " For example the Ruby one introduces the 'r' text object
" such that 'var' gives you Visual Around Ruby " such that 'var' gives you Visual Around Ruby
Bundle "austintaylor/vim-indentobject" Plugin 'austintaylor/vim-indentobject'
Bundle "bootleq/vim-textobj-rubysymbol" Plugin 'bootleq/vim-textobj-rubysymbol'
Bundle "coderifous/textobj-word-column.vim" Plugin 'coderifous/textobj-word-column.vim'
Bundle "kana/vim-textobj-datetime" Plugin 'kana/vim-textobj-datetime'
Bundle "kana/vim-textobj-entire" Plugin 'kana/vim-textobj-entire'
Bundle "kana/vim-textobj-function" Plugin 'kana/vim-textobj-function'
Bundle "kana/vim-textobj-user" Plugin 'kana/vim-textobj-user'
Bundle "lucapette/vim-textobj-underscore" Plugin 'lucapette/vim-textobj-underscore'
Bundle "nathanaelkane/vim-indent-guides" Plugin 'nathanaelkane/vim-indent-guides'
Bundle "nelstrom/vim-textobj-rubyblock" Plugin 'nelstrom/vim-textobj-rubyblock'
Bundle "thinca/vim-textobj-function-javascript" Plugin 'thinca/vim-textobj-function-javascript'
Bundle "vim-scripts/argtextobj.vim" Plugin 'vim-scripts/argtextobj.vim'

View File

@ -1,29 +1,29 @@
Bundle "AndrewRadev/splitjoin.vim" Plugin 'AndrewRadev/splitjoin.vim'
Bundle "Raimondi/delimitMate" Plugin 'Raimondi/delimitMate'
Bundle "Shougo/neocomplete.git" Plugin 'Shougo/neocomplete.git'
Bundle "briandoll/change-inside-surroundings.vim.git" Plugin 'briandoll/change-inside-surroundings.vim.git'
Bundle "godlygeek/tabular" Plugin 'godlygeek/tabular'
Bundle "tomtom/tcomment_vim.git" Plugin 'tomtom/tcomment_vim.git'
Bundle "vim-scripts/camelcasemotion.git" Plugin 'vim-scripts/camelcasemotion.git'
Bundle "vim-scripts/matchit.zip.git" Plugin 'vim-scripts/matchit.zip.git'
Bundle "kristijanhusak/vim-multiple-cursors" Plugin 'kristijanhusak/vim-multiple-cursors'
Bundle "Keithbsmiley/investigate.vim" Plugin 'Keithbsmiley/investigate.vim'
Bundle "chrisbra/NrrwRgn" Plugin 'chrisbra/NrrwRgn'
Bundle "christoomey/vim-tmux-navigator" Plugin 'christoomey/vim-tmux-navigator'
Bundle "MarcWeber/vim-addon-mw-utils.git" Plugin 'MarcWeber/vim-addon-mw-utils.git'
Bundle "bogado/file-line.git" Plugin 'bogado/file-line.git'
Bundle "mattn/webapi-vim.git" Plugin 'mattn/webapi-vim.git'
Bundle "sjl/gundo.vim" Plugin 'sjl/gundo.vim'
Bundle "skwp/YankRing.vim" Plugin 'skwp/YankRing.vim'
Bundle "tomtom/tlib_vim.git" Plugin 'tomtom/tlib_vim.git'
Bundle "tpope/vim-abolish" Plugin 'tpope/vim-abolish'
Bundle "tpope/vim-endwise.git" Plugin 'tpope/vim-endwise.git'
Bundle "tpope/vim-ragtag" Plugin 'tpope/vim-ragtag'
Bundle "tpope/vim-repeat.git" Plugin 'tpope/vim-repeat.git'
Bundle "tpope/vim-surround.git" Plugin 'tpope/vim-surround.git'
Bundle "tpope/vim-unimpaired" Plugin 'tpope/vim-unimpaired'
Bundle "vim-scripts/AnsiEsc.vim.git" Plugin 'vim-scripts/AnsiEsc.vim.git'
Bundle "vim-scripts/AutoTag.git" Plugin 'vim-scripts/AutoTag.git'
Bundle "vim-scripts/lastpos.vim" Plugin 'vim-scripts/lastpos.vim'
Bundle "vim-scripts/sudo.vim" Plugin 'vim-scripts/sudo.vim'
Bundle "goldfeld/ctrlr.vim" Plugin 'goldfeld/ctrlr.vim'