Merge branch 'master' of git.barakmich.com:barak/dotfiles
This commit is contained in:
commit
d97e001b89
53 changed files with 2020 additions and 191 deletions
|
|
@ -9,8 +9,8 @@ theme = {}
|
|||
|
||||
theme.font = "Ubuntu 10"
|
||||
|
||||
theme.bg_normal = "#222222"
|
||||
theme.bg_focus = "#535d6c"
|
||||
theme.bg_normal = "#222222c0"
|
||||
theme.bg_focus = "#535d6ca0"
|
||||
theme.bg_urgent = "#ff0000"
|
||||
theme.bg_minimize = "#444444"
|
||||
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ mysystray = widget({ type = "systray" })
|
|||
-- CPU usage widget
|
||||
cpuwidget = awful.widget.graph()
|
||||
cpuwidget:set_width(50)
|
||||
cpuwidget:set_height(30)
|
||||
cpuwidget:set_height(24)
|
||||
cpuwidget:set_background_color("#494B4F")
|
||||
cpuwidget:set_color("#FF5656")
|
||||
cpuwidget:set_gradient_colors({ "#FF5656", "#88A175", "#AECF96" })
|
||||
|
|
@ -153,7 +153,7 @@ cpuwidget_t = awful.tooltip({ objects = { cpuwidget.widget },})
|
|||
-- Initialize widget
|
||||
batwidget = awful.widget.progressbar()
|
||||
batwidget:set_width(8)
|
||||
batwidget:set_height(30)
|
||||
batwidget:set_height(24)
|
||||
batwidget:set_vertical(true)
|
||||
batwidget:set_background_color("#494B4F")
|
||||
batwidget:set_border_color(nil)
|
||||
|
|
@ -186,7 +186,7 @@ vicious.register(cpuwidget, vicious.widgets.cpu,
|
|||
-- RAM usage widget
|
||||
memwidget = awful.widget.progressbar()
|
||||
memwidget:set_width(15)
|
||||
memwidget:set_height(30)
|
||||
memwidget:set_height(24)
|
||||
memwidget:set_vertical(true)
|
||||
memwidget:set_background_color('#494B4F')
|
||||
memwidget:set_color('#AECF96')
|
||||
|
|
|
|||
99
.gitmodules
vendored
99
.gitmodules
vendored
|
|
@ -1,99 +0,0 @@
|
|||
[submodule ".vim/bundle/vim-less"]
|
||||
path = .vim/bundle/vim-less
|
||||
url = git://github.com/lunaru/vim-less.git
|
||||
[submodule ".vim/bundle/vim-unimpaired"]
|
||||
path = .vim/bundle/vim-unimpaired
|
||||
url = git://github.com/tpope/vim-unimpaired.git
|
||||
[submodule ".vim/bundle/vim-fugitive"]
|
||||
path = .vim/bundle/vim-fugitive
|
||||
url = git://github.com/tpope/vim-fugitive.git
|
||||
[submodule ".vim/bundle/NrrwRgn"]
|
||||
path = .vim/bundle/NrrwRgn
|
||||
url = git://github.com/chrisbra/NrrwRgn.git
|
||||
[submodule ".vim/bundle/ack.vim"]
|
||||
path = .vim/bundle/ack.vim
|
||||
url = git://github.com/mileszs/ack.vim.git
|
||||
[submodule ".vim/bundle/VimOrganizer"]
|
||||
path = .vim/bundle/VimOrganizer
|
||||
url = git://github.com/hsitz/VimOrganizer.git
|
||||
[submodule ".vim/bundle/lusty"]
|
||||
path = .vim/bundle/lusty
|
||||
url = git://github.com/sjbach/lusty.git
|
||||
[submodule ".vim/bundle/vim-coffee-script"]
|
||||
path = .vim/bundle/vim-coffee-script
|
||||
url = git://github.com/kchmck/vim-coffee-script.git
|
||||
[submodule ".vim/bundle/nerdtree"]
|
||||
path = .vim/bundle/nerdtree
|
||||
url = git://github.com/scrooloose/nerdtree.git
|
||||
[submodule ".vim/bundle/nerdcommenter"]
|
||||
path = .vim/bundle/nerdcommenter
|
||||
url = git://github.com/scrooloose/nerdcommenter.git
|
||||
[submodule ".vim/bundle/EasyGrep"]
|
||||
path = .vim/bundle/EasyGrep
|
||||
url = https://github.com/vim-scripts/EasyGrep.git
|
||||
[submodule ".vim/bundle/syntastic"]
|
||||
path = .vim/bundle/syntastic
|
||||
url = https://github.com/scrooloose/syntastic.git
|
||||
[submodule ".vim/bundle/vim-gitgutter"]
|
||||
path = .vim/bundle/vim-gitgutter
|
||||
url = git://github.com/airblade/vim-gitgutter.git
|
||||
[submodule ".vim/bundle/DrawIt"]
|
||||
path = .vim/bundle/DrawIt
|
||||
url = https://github.com/vim-scripts/DrawIt.git
|
||||
[submodule ".vim/bundle/vim-multiple-cursors"]
|
||||
path = .vim/bundle/vim-multiple-cursors
|
||||
url = https://github.com/terryma/vim-multiple-cursors
|
||||
[submodule ".vim/bundle/fish-syntax"]
|
||||
path = .vim/bundle/fish-syntax
|
||||
url = https://github.com/vim-scripts/fish-syntax
|
||||
[submodule ".vim/bundle/calendar-vim"]
|
||||
path = .vim/bundle/calendar-vim
|
||||
url = https://github.com/mattn/calendar-vim
|
||||
[submodule ".vim/bundle/vim-puppet"]
|
||||
path = .vim/bundle/vim-puppet
|
||||
url = https://github.com/rodjek/vim-puppet.git
|
||||
[submodule ".vim/bundle/vim-angry"]
|
||||
path = .vim/bundle/vim-angry
|
||||
url = https://github.com/b4winckler/vim-angry.git
|
||||
[submodule ".vim/bundle/YouCompleteMe"]
|
||||
path = .vim/bundle/YouCompleteMe
|
||||
url = https://github.com/Valloric/YouCompleteMe.git
|
||||
[submodule ".vim/bundle/vim-sparkup"]
|
||||
path = .vim/bundle/vim-sparkup
|
||||
url = git://github.com/tristen/vim-sparkup.git
|
||||
[submodule ".vim/bundle/vim-gocode"]
|
||||
path = .vim/bundle/vim-gocode
|
||||
url = https://github.com/Blackrush/vim-gocode.git
|
||||
[submodule ".vim/bundle/vim-airline"]
|
||||
path = .vim/bundle/vim-airline
|
||||
url = https://github.com/bling/vim-airline
|
||||
[submodule ".vim/bundle/ctrlp"]
|
||||
path = .vim/bundle/ctrlp
|
||||
url = https://github.com/kien/ctrlp.vim.git
|
||||
[submodule ".vim/bundle/vim-bufferline"]
|
||||
path = .vim/bundle/vim-bufferline
|
||||
url = https://github.com/bling/vim-bufferline
|
||||
[submodule ".vim/bundle/tagbar"]
|
||||
path = .vim/bundle/tagbar
|
||||
url = git://github.com/majutsushi/tagbar
|
||||
[submodule ".vim/bundle/delimitMate"]
|
||||
path = .vim/bundle/delimitMate
|
||||
url = https://github.com/Raimondi/delimitMate/
|
||||
[submodule ".vim/bundle/neco-ghc"]
|
||||
path = .vim/bundle/neco-ghc
|
||||
url = http://github.com/eagletmt/neco-ghc
|
||||
[submodule ".vim/bundle/ghcmod-vim"]
|
||||
path = .vim/bundle/ghcmod-vim
|
||||
url = https://github.com/eagletmt/ghcmod-vim
|
||||
[submodule ".vim/bundle/vimproc"]
|
||||
path = .vim/bundle/vimproc
|
||||
url = https://github.com/Shougo/vimproc.vim.git
|
||||
[submodule ".vim/bundle/ultisnips"]
|
||||
path = .vim/bundle/ultisnips
|
||||
url = https://github.com/SirVer/ultisnips
|
||||
[submodule ".vim/bundle/vim-surround"]
|
||||
path = .vim/bundle/vim-surround
|
||||
url = https://github.com/tpope/vim-surround
|
||||
[submodule ".vim/bundle/julia-vim"]
|
||||
path = .vim/bundle/julia-vim
|
||||
url = https://github.com/JuliaLang/julia-vim
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
" These are the mappings for snipMate.vim. Putting it here ensures that it
|
||||
" will be mapped after other plugins such as supertab.vim.
|
||||
if !exists('loaded_snips') || exists('s:did_snips_mappings')
|
||||
finish
|
||||
endif
|
||||
let s:did_snips_mappings = 1
|
||||
|
||||
ino <silent> <tab> <c-r>=TriggerSnippet()<cr>
|
||||
snor <silent> <tab> <esc>i<right><c-r>=TriggerSnippet()<cr>
|
||||
ino <silent> <s-tab> <c-r>=BackwardsSnippet()<cr>
|
||||
snor <silent> <s-tab> <esc>i<right><c-r>=BackwardsSnippet()<cr>
|
||||
ino <silent> <c-r><tab> <c-r>=ShowAvailableSnips()<cr>
|
||||
|
||||
" The default mappings for these are annoying & sometimes break snipMate.
|
||||
" You can change them back if you want, I've put them here for convenience.
|
||||
snor <bs> b<bs>
|
||||
snor <right> <esc>a
|
||||
snor <left> <esc>bi
|
||||
snor ' b<bs>'
|
||||
snor ` b<bs>`
|
||||
snor % b<bs>%
|
||||
snor U b<bs>U
|
||||
snor ^ b<bs>^
|
||||
snor \ b<bs>\
|
||||
snor <c-x> b<bs><c-x>
|
||||
|
||||
" By default load snippets in snippets_dir
|
||||
if empty(snippets_dir)
|
||||
finish
|
||||
endif
|
||||
|
||||
call GetSnippets(snippets_dir, '_') " Get global snippets
|
||||
|
||||
au FileType * if &ft != 'help' | call GetSnippets(snippets_dir, &ft) | endif
|
||||
" vim:noet:sw=4:ts=4:ft=vim
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 4e824fc939cec81dc2a8f4d91aaeb6151d1cc140
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 9b938ec84f193f12dd7721a67f90d4656dcc3c1e
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 161d73499845fd0d9b24d76ecbcb00d7d00d6120
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 76b360c3b29fa7b0058d8c9d3cb1c4a29c93c9e8
|
||||
2
.vim/bundle/Vundle.vim/.gitignore
vendored
Normal file
2
.vim/bundle/Vundle.vim/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
doc/tags
|
||||
.netrwhist
|
||||
111
.vim/bundle/Vundle.vim/CONTRIBUTING.md
Normal file
111
.vim/bundle/Vundle.vim/CONTRIBUTING.md
Normal file
|
|
@ -0,0 +1,111 @@
|
|||
Pull Requests
|
||||
=============
|
||||
|
||||
1. Please squash your commits to minimize the log pollution. This is more of a convenience for the maintainer who pulls. If you are unfamiliar, see [here](http://ariejan.net/2011/07/05/git-squash-your-latests-commits-into-one/).
|
||||
|
||||
2. Clearly describe what you aim to fix or add to Vundle.
|
||||
|
||||
3. Try to minimize code changes and use existing style/functions.
|
||||
|
||||
Issues
|
||||
======
|
||||
|
||||
## Check For Answers
|
||||
|
||||
Before submitting an issue, be sure to check the following places for answers.
|
||||
|
||||
1. Vundle docs at [`:h vundle`](https://github.com/gmarik/Vundle.vim/blob/master/doc/vundle.txt).
|
||||
|
||||
2. The [FAQ](https://github.com/gmarik/Vundle.vim/search).
|
||||
|
||||
3. [Search](https://github.com/gmarik/Vundle.vim/search) the repository for related issues.
|
||||
|
||||
## Try To Eliminate Your Vimrc
|
||||
|
||||
In order to make sure it isn't just `.vimrc` replace your own config file with the [minimal vimrc](https://github.com/gmarik/Vundle.vim/blob/master/test/minirc.vim). Clear out bundles and then try to reproduce.
|
||||
|
||||
If the problem stops, likely there is an issue in your user configuration. You can incrementally add back your user changes to the minimal file testing the bug each time. This will allow you to slowly bisect the issue. You may want to test one plugin at a time.
|
||||
|
||||
If you can still reproduce the problem, try to find the smallest `.vimrc` config file that creates the problem to include later.
|
||||
|
||||
## Guidelines
|
||||
|
||||
To better respond to issues please follow these general guidelines when explaining the problem.
|
||||
|
||||
1. Clearly describe what the error is, if relevant attach output/screenshots.
|
||||
|
||||
2. Describe how developers can reproduce the bug, the steps should be from starting Vim.
|
||||
|
||||
3. Include your OS, version and architecture. For example, Windows 7 64, Kubuntu 13.04 32, etc...
|
||||
|
||||
4. If relevant to reproducing the bug, include the smallest subset of your `.vimrc` that causes the issue. Put this in code tags.
|
||||
|
||||
5. At the end of your issue, please put the output of `vim --version` in code tags.
|
||||
|
||||
## Example Post
|
||||
|
||||
I am using Vim on Kubuntu 13.04 64 bit and I get the following error... (add further explanation here)
|
||||
|
||||
To reproduce the bug, use the vimrc file below and run `:BundleInstall`... (continue with steps)
|
||||
|
||||
Vimrc:
|
||||
```
|
||||
set nocompatible
|
||||
syntax on
|
||||
filetype off
|
||||
set rtp+=~/.vim/bundle/Vundle.vim/
|
||||
call vundle#rc()
|
||||
Bundle 'gmarik/Vundle.vim'
|
||||
Bundle 'relevant/plugin'
|
||||
filetype plugin indent on
|
||||
|
||||
.... more user configs here...
|
||||
```
|
||||
|
||||
Vim Version:
|
||||
```
|
||||
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 15 2013 10:58:39)
|
||||
Included patches: 1-5
|
||||
Modified by pkg-vim-maintainers@lists.alioth.debian.org
|
||||
Compiled by buildd@
|
||||
Huge version with GTK2 GUI. Features included (+) or not (-):
|
||||
+arabic +file_in_path +mouse_sgr +tag_binary
|
||||
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
|
||||
+balloon_eval +float +mouse_urxvt -tag_any_white
|
||||
+browse +folding +mouse_xterm +tcl
|
||||
++builtin_terms -footer +multi_byte +terminfo
|
||||
+byte_offset +fork() +multi_lang +termresponse
|
||||
+cindent +gettext -mzscheme +textobjects
|
||||
+clientserver -hangul_input +netbeans_intg +title
|
||||
+clipboard +iconv +path_extra +toolbar
|
||||
+cmdline_compl +insert_expand +perl +user_commands
|
||||
+cmdline_hist +jumplist +persistent_undo +vertsplit
|
||||
+cmdline_info +keymap +postscript +virtualedit
|
||||
+comments +langmap +printer +visual
|
||||
+conceal +libcall +profile +visualextra
|
||||
+cryptv +linebreak +python +viminfo
|
||||
+cscope +lispindent -python3 +vreplace
|
||||
+cursorbind +listcmds +quickfix +wildignore
|
||||
+cursorshape +localmap +reltime +wildmenu
|
||||
+dialog_con_gui +lua +rightleft +windows
|
||||
+diff +menu +ruby +writebackup
|
||||
+digraphs +mksession +scrollbind +X11
|
||||
+dnd +modify_fname +signs -xfontset
|
||||
-ebcdic +mouse +smartindent +xim
|
||||
+emacs_tags +mouseshape -sniff +xsmp_interact
|
||||
+eval +mouse_dec +startuptime +xterm_clipboard
|
||||
+ex_extra +mouse_gpm +statusline -xterm_save
|
||||
+extra_search -mouse_jsbterm -sun_workshop
|
||||
+farsi +mouse_netterm +syntax
|
||||
system vimrc file: "$VIM/vimrc"
|
||||
user vimrc file: "$HOME/.vimrc"
|
||||
2nd user vimrc file: "~/.vim/vimrc"
|
||||
user exrc file: "$HOME/.exrc"
|
||||
system gvimrc file: "$VIM/gvimrc"
|
||||
user gvimrc file: "$HOME/.gvimrc"
|
||||
2nd user gvimrc file: "~/.vim/gvimrc"
|
||||
system menu file: "$VIMRUNTIME/menu.vim"
|
||||
fall-back for $VIM: "/usr/share/vim"
|
||||
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/harfbuzz -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -I/usr/include/tcl8.5 -D_REENTRANT=1 -D_THREAD_SAFE=1 -D_LARGEFILE64_SOURCE=1
|
||||
Linking: gcc -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo -lnsl -lselinux -lacl -lattr -lgpm -ldl -L/usr/lib -llua5.1 -Wl,-E -fstack-protector -L/usr/local/lib -L/usr/lib/perl/5.14/CORE -lperl -ldl -lm -lpthread -lcrypt -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -L/usr/lib/x86_64-linux-gnu -ltcl8.5 -ldl -lpthread -lieee -lm -lruby-1.9.1 -lpthread -lrt -ldl -lcrypt -lm -L/usr/lib
|
||||
```
|
||||
7
.vim/bundle/Vundle.vim/LICENSE-MIT.txt
Normal file
7
.vim/bundle/Vundle.vim/LICENSE-MIT.txt
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
Copyright (C) 2010 http://github.com/gmarik
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
158
.vim/bundle/Vundle.vim/README.md
Normal file
158
.vim/bundle/Vundle.vim/README.md
Normal file
|
|
@ -0,0 +1,158 @@
|
|||
## [Help Maintain Vundle](https://github.com/gmarik/Vundle.vim/issues/383)
|
||||
|
||||
## About
|
||||
|
||||
[Vundle] is short for _Vim bundle_ and is a [Vim] plugin manager.
|
||||
|
||||
[Vundle] allows you to...
|
||||
|
||||
* keep track of and [configure] your plugins right in the `.vimrc`
|
||||
* [install] configured plugins (a.k.a. scripts/bundle)
|
||||
* [update] configured plugins
|
||||
* [search] by name all available [Vim scripts]
|
||||
* [clean] unused plugins up
|
||||
* run the above actions in a *single keypress* with [interactive mode]
|
||||
|
||||
[Vundle] automatically...
|
||||
|
||||
* manages the [runtime path] of your installed scripts
|
||||
* regenerates [help tags] after installing and updating
|
||||
|
||||
[Vundle] is undergoing an [interface change], please stay up to date to get latest changes.
|
||||
|
||||
[](https://gitter.im/gmarik/Vundle.vim) for discussion and support.
|
||||
|
||||

|
||||
|
||||
## Quick Start
|
||||
|
||||
1. Introduction:
|
||||
|
||||
Installation requires [Git] and triggers [`git clone`] for each configured repository to `~/.vim/bundle/` by default.
|
||||
Curl is required for search.
|
||||
|
||||
If you are using Windows, go directly to [Windows setup]. If you run into any issues, please consult the [FAQ].
|
||||
See [Tips] for some advanced configurations.
|
||||
|
||||
2. Set up [Vundle]:
|
||||
|
||||
`$ git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim`
|
||||
|
||||
3. Configure Plugins:
|
||||
|
||||
Put this at the top of your `.vimrc` to use Vundle. Remove plugins you don't need, they are for illustration purposes.
|
||||
|
||||
```vim
|
||||
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 '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 - list configured plugins
|
||||
" :PluginInstall(!) - install (update) plugins
|
||||
" :PluginSearch(!) foo - search (or refresh cache first) for foo
|
||||
" :PluginClean(!) - confirm (or auto-approve) removal of unused plugins
|
||||
"
|
||||
" see :h vundle for more details or wiki for FAQ
|
||||
" Put your non-Plugin stuff after this line
|
||||
```
|
||||
|
||||
4. Install Plugins:
|
||||
|
||||
Launch `vim` and run `:PluginInstall`
|
||||
|
||||
To install from command line: `vim +PluginInstall +qall`
|
||||
|
||||
## Docs
|
||||
|
||||
See the [`:h vundle`](https://github.com/gmarik/Vundle.vim/blob/master/doc/vundle.txt) Vimdoc for more details.
|
||||
|
||||
## Changelog
|
||||
|
||||
See the [changelog](https://github.com/gmarik/Vundle.vim/blob/master/changelog.md).
|
||||
|
||||
## People Using Vundle
|
||||
|
||||
see [Examples](https://github.com/gmarik/Vundle.vim/wiki/Examples)
|
||||
|
||||
## Contributors
|
||||
|
||||
see [Vundle contributors](https://github.com/gmarik/Vundle.vim/graphs/contributors)
|
||||
|
||||
*Thank you!*
|
||||
|
||||
## Inspiration & Ideas
|
||||
|
||||
* [pathogen.vim](http://github.com/tpope/vim-pathogen/)
|
||||
* [Bundler](https://github.com/bundler/bundler)
|
||||
* [Scott Bronson](http://github.com/bronson)
|
||||
|
||||
## Also
|
||||
|
||||
* Vundle was developed and tested with [Vim] 7.3 on OS X, Linux and Windows
|
||||
* Vundle tries to be as [KISS](http://en.wikipedia.org/wiki/KISS_principle) as possible
|
||||
|
||||
## TODO:
|
||||
[Vundle] is a work in progress, so any ideas and patches are appreciated.
|
||||
|
||||
* ✓ activate newly added bundles on `.vimrc` reload or after `:PluginInstall`
|
||||
* ✓ use preview window for search results
|
||||
* ✓ Vim documentation
|
||||
* ✓ put Vundle in `bundles/` too (will fix Vundle help)
|
||||
* ✓ tests
|
||||
* ✓ improve error handling
|
||||
* allow specifying revision/version?
|
||||
* handle dependencies
|
||||
* show description in search results
|
||||
* search by description as well
|
||||
* make it rock!
|
||||
|
||||
[Vundle]:http://github.com/gmarik/Vundle.vim
|
||||
[Windows setup]:https://github.com/gmarik/Vundle.vim/wiki/Vundle-for-Windows
|
||||
[FAQ]:https://github.com/gmarik/Vundle.vim/wiki
|
||||
[Tips]:https://github.com/gmarik/Vundle.vim/wiki/Tips-and-Tricks
|
||||
[Vim]:http://www.vim.org
|
||||
[Git]:http://git-scm.com
|
||||
[`git clone`]:http://gitref.org/creating/#clone
|
||||
|
||||
[Vim scripts]:http://vim-scripts.org/vim/scripts.html
|
||||
[help tags]:http://vimdoc.sourceforge.net/htmldoc/helphelp.html#:helptags
|
||||
[runtime path]:http://vimdoc.sourceforge.net/htmldoc/options.html#%27runtimepath%27
|
||||
|
||||
[configure]:https://github.com/gmarik/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L126-L233
|
||||
[install]:https://github.com/gmarik/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L234-L254
|
||||
[update]:https://github.com/gmarik/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L255-L265
|
||||
[search]:https://github.com/gmarik/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L266-L295
|
||||
[clean]:https://github.com/gmarik/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L303-L318
|
||||
[interactive mode]:https://github.com/gmarik/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L319-L360
|
||||
[interface change]:https://github.com/gmarik/Vundle.vim/blob/v0.10.2/doc/vundle.txt#L372-L396
|
||||
83
.vim/bundle/Vundle.vim/autoload/vundle.vim
Normal file
83
.vim/bundle/Vundle.vim/autoload/vundle.vim
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
" Vundle is a shortcut for Vim Bundle and Is a simple plugin manager for Vim
|
||||
" Author: gmarik
|
||||
" HomePage: http://github.com/gmarik/Vundle.vim
|
||||
" Readme: http://github.com/gmarik/Vundle.vim/blob/master/README.md
|
||||
" Version: 0.10.2
|
||||
|
||||
" Plugin Commands
|
||||
com! -nargs=+ -bar Plugin
|
||||
\ call vundle#config#bundle(<args>)
|
||||
|
||||
com! -nargs=? -bang -complete=custom,vundle#scripts#complete PluginInstall
|
||||
\ call vundle#installer#new('!' == '<bang>', <q-args>)
|
||||
|
||||
com! -nargs=? -bang -complete=custom,vundle#scripts#complete PluginSearch
|
||||
\ call vundle#scripts#all('!' == '<bang>', <q-args>)
|
||||
|
||||
com! -nargs=0 -bang PluginList
|
||||
\ call vundle#installer#list('!' == '<bang>')
|
||||
|
||||
com! -nargs=? -bang PluginClean
|
||||
\ call vundle#installer#clean('!' == '<bang>')
|
||||
|
||||
com! -nargs=0 PluginDocs
|
||||
\ call vundle#installer#helptags(g:bundles)
|
||||
|
||||
" Aliases
|
||||
com! PluginUpdate PluginInstall!
|
||||
|
||||
" Vundle Aliases
|
||||
com! -nargs=? -bang -complete=custom,vundle#scripts#complete VundleInstall PluginInstall<bang> <args>
|
||||
com! -nargs=? -bang -complete=custom,vundle#scripts#complete VundleSearch PluginSearch<bang> <args>
|
||||
com! -nargs=? -bang VundleClean PluginClean<bang>
|
||||
com! -nargs=0 VundleDocs PluginDocs
|
||||
com! VundleUpdate PluginInstall!
|
||||
|
||||
" Deprecated Commands
|
||||
com! -nargs=+ Bundle call vundle#config#bundle(<args>)
|
||||
com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleInstall PluginInstall<bang> <args>
|
||||
com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleSearch PluginSearch<bang> <args>
|
||||
com! -nargs=0 -bang BundleList PluginList<bang>
|
||||
com! -nargs=? -bang BundleClean PluginClean<bang>
|
||||
com! -nargs=0 BundleDocs PluginDocs
|
||||
com! BundleUpdate PluginInstall!
|
||||
|
||||
" Set up the signs used in the installer window. (See :help signs)
|
||||
if (has('signs'))
|
||||
sign define Vu_error text=! texthl=Error
|
||||
sign define Vu_active text=> texthl=Comment
|
||||
sign define Vu_todate text=. texthl=Comment
|
||||
sign define Vu_new text=+ texthl=Comment
|
||||
sign define Vu_updated text=* texthl=Comment
|
||||
sign define Vu_deleted text=- texthl=Comment
|
||||
sign define Vu_helptags text=* texthl=Comment
|
||||
sign define Vu_pinned text== texthl=Comment
|
||||
endif
|
||||
|
||||
" Set up Vundle. This function has to be called from the users vimrc file.
|
||||
" This will force Vim to source this file as a side effect which wil define
|
||||
" the :Plugin command. After calling this function the user can use the
|
||||
" :Plugin command in the vimrc. It is not possible to do this automatically
|
||||
" because when loading the vimrc file no plugins where loaded yet.
|
||||
func! vundle#rc(...) abort
|
||||
let g:bundle_dir = len(a:000) > 0 ? expand(a:1, 1) : expand('$HOME/.vim/bundle', 1)
|
||||
let g:updated_bundles = []
|
||||
let g:vundle_log = []
|
||||
let g:vundle_changelog = ['Updated Plugins:']
|
||||
call vundle#config#init()
|
||||
endf
|
||||
|
||||
" Alternative to vundle#rc, offers speed up by modifying rtp only when end()
|
||||
" called later.
|
||||
func! vundle#begin(...) abort
|
||||
let g:vundle_lazy_load = 1
|
||||
call call('vundle#rc', a:000)
|
||||
endf
|
||||
|
||||
" Finishes putting plugins on the rtp.
|
||||
func! vundle#end(...) abort
|
||||
unlet g:vundle_lazy_load
|
||||
call vundle#config#activate_bundles()
|
||||
endf
|
||||
|
||||
" vim: set expandtab sts=2 ts=2 sw=2 tw=78 norl:
|
||||
278
.vim/bundle/Vundle.vim/autoload/vundle/config.vim
Normal file
278
.vim/bundle/Vundle.vim/autoload/vundle/config.vim
Normal file
|
|
@ -0,0 +1,278 @@
|
|||
" ---------------------------------------------------------------------------
|
||||
" Add a plugin to the runtimepath.
|
||||
"
|
||||
" arg -- a string specifying the plugin
|
||||
" ... -- a dictionary of options for the plugin
|
||||
" return -- the return value from vundle#config#init_bundle()
|
||||
" ---------------------------------------------------------------------------
|
||||
func! vundle#config#bundle(arg, ...)
|
||||
let bundle = vundle#config#init_bundle(a:arg, a:000)
|
||||
if !s:check_bundle_name(bundle)
|
||||
return
|
||||
endif
|
||||
if exists('g:vundle_lazy_load') && g:vundle_lazy_load
|
||||
call add(g:bundles, bundle)
|
||||
else
|
||||
call s:rtp_rm_a()
|
||||
call add(g:bundles, bundle)
|
||||
call s:rtp_add_a()
|
||||
call s:rtp_add_defaults()
|
||||
endif
|
||||
return bundle
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" When lazy bundle load is used (begin/end functions), add all configured
|
||||
" bundles to runtimepath and reorder appropriately.
|
||||
" ---------------------------------------------------------------------------
|
||||
func! vundle#config#activate_bundles()
|
||||
call s:rtp_add_a()
|
||||
call s:rtp_add_defaults()
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Initialize Vundle.
|
||||
"
|
||||
" Start a new bundles list and make sure the runtimepath does not contain
|
||||
" directories from a previous call. In theory, this should only be called
|
||||
" once.
|
||||
" ---------------------------------------------------------------------------
|
||||
func! vundle#config#init()
|
||||
if !exists('g:bundles') | let g:bundles = [] | endif
|
||||
call s:rtp_rm_a()
|
||||
let g:bundles = []
|
||||
let g:bundle_names = {}
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Add a list of bundles to the runtimepath and source them.
|
||||
"
|
||||
" bundles -- a list of bundle objects
|
||||
" ---------------------------------------------------------------------------
|
||||
func! vundle#config#require(bundles) abort
|
||||
for b in a:bundles
|
||||
call s:rtp_add(b.rtpath)
|
||||
call s:rtp_add(g:bundle_dir)
|
||||
" TODO: it has to be relative rtpath, not bundle.name
|
||||
exec 'runtime! '.b.name.'/plugin/*.vim'
|
||||
exec 'runtime! '.b.name.'/after/*.vim'
|
||||
call s:rtp_rm(g:bundle_dir)
|
||||
endfor
|
||||
call s:rtp_add_defaults()
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Create a bundle object from a bundle specification.
|
||||
"
|
||||
" name -- the bundle specification as a string
|
||||
" opts -- the options dictionary from then bundle definition
|
||||
" return -- an initialized bundle object
|
||||
" ---------------------------------------------------------------------------
|
||||
func! vundle#config#init_bundle(name, opts)
|
||||
if a:name != substitute(a:name, '^\s*\(.\{-}\)\s*$', '\1', '')
|
||||
echo "Spurious leading and/or trailing whitespace found in plugin spec '" . a:name . "'"
|
||||
endif
|
||||
let opts = extend(s:parse_options(a:opts), s:parse_name(substitute(a:name,"['".'"]\+','','g')), 'keep')
|
||||
let b = extend(opts, copy(s:bundle))
|
||||
let b.rtpath = s:rtpath(opts)
|
||||
return b
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Check if the current bundle name has already been used in this running
|
||||
" instance and show an error to that effect.
|
||||
"
|
||||
" bundle -- a bundle object whose name is to be checked
|
||||
" return -- 0 if the bundle's name has been seen before, 1 otherwise
|
||||
" ---------------------------------------------------------------------------
|
||||
funct! s:check_bundle_name(bundle)
|
||||
if has_key(g:bundle_names, a:bundle.name)
|
||||
echoerr 'Vundle error: Name collision for Plugin ' . a:bundle.name_spec .
|
||||
\ '. Plugin ' . g:bundle_names[a:bundle.name] .
|
||||
\ ' previously used the name "' . a:bundle.name . '"' .
|
||||
\ '. Skipping Plugin ' . a:bundle.name_spec . '.'
|
||||
return 0
|
||||
endif
|
||||
let g:bundle_names[a:bundle.name] = a:bundle.name_spec
|
||||
return 1
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Parse the options which can be supplied with the bundle specification.
|
||||
" Corresponding documentation: vundle-plugins-configure
|
||||
"
|
||||
" opts -- a dictionary with the user supplied options for the bundle
|
||||
" return -- a dictionary with the user supplied options for the bundle, this
|
||||
" will be merged with a s:bundle object into one dictionary.
|
||||
" ---------------------------------------------------------------------------
|
||||
func! s:parse_options(opts)
|
||||
" TODO: improve this
|
||||
if len(a:opts) != 1 | return {} | endif
|
||||
|
||||
if type(a:opts[0]) == type({})
|
||||
return a:opts[0]
|
||||
else
|
||||
return {'rev': a:opts[0]}
|
||||
endif
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Parse the plugin specification. Corresponding documentation:
|
||||
" vundle-plugins-uris
|
||||
"
|
||||
" arg -- the string supplied to identify the plugin
|
||||
" return -- a dictionary with the folder name (key 'name') and the uri (key
|
||||
" 'uri') for cloning the plugin and the original argument (key
|
||||
" 'name_spec')
|
||||
" ---------------------------------------------------------------------------
|
||||
func! s:parse_name(arg)
|
||||
let arg = a:arg
|
||||
let git_proto = exists('g:vundle_default_git_proto') ? g:vundle_default_git_proto : 'https'
|
||||
|
||||
if arg =~? '^\s*\(gh\|github\):\S\+'
|
||||
\ || arg =~? '^[a-z0-9][a-z0-9-]*/[^/]\+$'
|
||||
let uri = git_proto.'://github.com/'.split(arg, ':')[-1]
|
||||
if uri !~? '\.git$'
|
||||
let uri .= '.git'
|
||||
endif
|
||||
let name = substitute(split(uri,'\/')[-1], '\.git\s*$','','i')
|
||||
elseif arg =~? '^\s*\(git@\|git://\)\S\+'
|
||||
\ || arg =~? '\(file\|https\?\)://'
|
||||
\ || arg =~? '\.git\s*$'
|
||||
let uri = arg
|
||||
let name = split( substitute(uri,'/\?\.git\s*$','','i') ,'\/')[-1]
|
||||
else
|
||||
let name = arg
|
||||
let uri = git_proto.'://github.com/vim-scripts/'.name.'.git'
|
||||
endif
|
||||
return {'name': name, 'uri': uri, 'name_spec': arg }
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Modify the runtimepath, after all bundles have been added, so that the
|
||||
" directories that were in the default runtimepath appear first in the list
|
||||
" (with their 'after' directories last).
|
||||
" ---------------------------------------------------------------------------
|
||||
func! s:rtp_add_defaults()
|
||||
let current = &rtp
|
||||
set rtp&vim
|
||||
let default = &rtp
|
||||
let &rtp = current
|
||||
let default_rtp_items = split(default, ',')
|
||||
if !empty(default_rtp_items)
|
||||
let first_item = fnameescape(default_rtp_items[0])
|
||||
exec 'set rtp-=' . first_item
|
||||
exec 'set rtp^=' . first_item
|
||||
endif
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Remove all paths for the plugins which are managed by Vundle from the
|
||||
" runtimepath.
|
||||
" ---------------------------------------------------------------------------
|
||||
func! s:rtp_rm_a()
|
||||
let paths = map(copy(g:bundles), 'v:val.rtpath')
|
||||
let prepends = join(paths, ',')
|
||||
let appends = join(paths, '/after,').'/after'
|
||||
exec 'set rtp-='.fnameescape(prepends)
|
||||
exec 'set rtp-='.fnameescape(appends)
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Add all paths for the plugins which are managed by Vundle to the
|
||||
" runtimepath.
|
||||
" ---------------------------------------------------------------------------
|
||||
func! s:rtp_add_a()
|
||||
let paths = map(copy(g:bundles), 'v:val.rtpath')
|
||||
let prepends = join(paths, ',')
|
||||
let appends = join(paths, '/after,').'/after'
|
||||
exec 'set rtp^='.fnameescape(prepends)
|
||||
exec 'set rtp+='.fnameescape(appends)
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Remove a directory and the corresponding 'after' directory from runtimepath.
|
||||
"
|
||||
" dir -- the directory name to be removed as a string. The corresponding
|
||||
" 'after' directory will also be removed.
|
||||
" ---------------------------------------------------------------------------
|
||||
func! s:rtp_rm(dir) abort
|
||||
exec 'set rtp-='.fnameescape(expand(a:dir, 1))
|
||||
exec 'set rtp-='.fnameescape(expand(a:dir.'/after', 1))
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Add a directory and the corresponding 'after' directory to runtimepath.
|
||||
"
|
||||
" dir -- the directory name to be added as a string. The corresponding
|
||||
" 'after' directory will also be added.
|
||||
" ---------------------------------------------------------------------------
|
||||
func! s:rtp_add(dir) abort
|
||||
exec 'set rtp^='.fnameescape(expand(a:dir, 1))
|
||||
exec 'set rtp+='.fnameescape(expand(a:dir.'/after', 1))
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Expand and simplify a path.
|
||||
"
|
||||
" path -- the path to expand as a string
|
||||
" return -- the expanded and simplified path
|
||||
" ---------------------------------------------------------------------------
|
||||
func! s:expand_path(path) abort
|
||||
return simplify(expand(a:path, 1))
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Find the actual path inside a bundle directory to be added to the
|
||||
" runtimepath. It might be provided by the user with the 'rtp' option.
|
||||
" Corresponding documentation: vundle-plugins-configure
|
||||
"
|
||||
" opts -- a bundle dict
|
||||
" return -- expanded path to the corresponding plugin directory
|
||||
" ---------------------------------------------------------------------------
|
||||
func! s:rtpath(opts)
|
||||
return has_key(a:opts, 'rtp') ? s:expand_path(a:opts.path().'/'.a:opts.rtp) : a:opts.path()
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" a bundle 'object'
|
||||
" ---------------------------------------------------------------------------
|
||||
let s:bundle = {}
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Return the absolute path to the directory inside the bundle directory
|
||||
" (prefix) where thr bundle will be cloned.
|
||||
"
|
||||
" return -- the target location to clone this bundle to
|
||||
" ---------------------------------------------------------------------------
|
||||
func! s:bundle.path()
|
||||
return s:expand_path(g:bundle_dir.'/'.self.name)
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Determine if the bundle has the pinned attribute set in the config
|
||||
"
|
||||
" return -- 1 if the bundle is pinned, 0 otherwise
|
||||
" ---------------------------------------------------------------------------
|
||||
func! s:bundle.is_pinned()
|
||||
return get(self, 'pinned')
|
||||
endf
|
||||
|
||||
" vim: set expandtab sts=2 ts=2 sw=2 tw=78 norl:
|
||||
534
.vim/bundle/Vundle.vim/autoload/vundle/installer.vim
Normal file
534
.vim/bundle/Vundle.vim/autoload/vundle/installer.vim
Normal file
File diff suppressed because it is too large
Load diff
257
.vim/bundle/Vundle.vim/autoload/vundle/scripts.vim
Normal file
257
.vim/bundle/Vundle.vim/autoload/vundle/scripts.vim
Normal file
|
|
@ -0,0 +1,257 @@
|
|||
" ---------------------------------------------------------------------------
|
||||
" Search the database from vim-script.org for a matching plugin. If no
|
||||
" argument is given, list all plugins. This function is used by the :Plugins
|
||||
" and :PluginSearch commands.
|
||||
"
|
||||
" bang -- if 1 refresh the script name cache, if 0 don't
|
||||
" ... -- a plugin name to search for
|
||||
" ---------------------------------------------------------------------------
|
||||
func! vundle#scripts#all(bang, ...)
|
||||
let b:match = ''
|
||||
let info = ['"Keymap: i - Install plugin; c - Cleanup; s - Search; R - Reload list']
|
||||
let matches = s:load_scripts(a:bang)
|
||||
if !empty(a:1)
|
||||
let matches = filter(matches, 'v:val =~? "'.escape(a:1,'"').'"')
|
||||
let info += ['"Search results for: '.a:1]
|
||||
" TODO: highlight matches
|
||||
let b:match = a:1
|
||||
endif
|
||||
call vundle#scripts#view('search',info, vundle#scripts#bundle_names(reverse(matches)))
|
||||
redraw
|
||||
echo len(matches).' plugins found'
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Repeat the search for bundles.
|
||||
" ---------------------------------------------------------------------------
|
||||
func! vundle#scripts#reload() abort
|
||||
silent exec ':PluginSearch! '.(exists('b:match') ? b:match : '')
|
||||
redraw
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Complete names for bundles in the command line.
|
||||
"
|
||||
" a, c, d -- see :h command-completion-custom
|
||||
" return -- all valid plugin names from vim-scripts.org as completion
|
||||
" candidates, see also :h command-completion-custom
|
||||
" ---------------------------------------------------------------------------
|
||||
func! vundle#scripts#complete(a,c,d)
|
||||
return join(s:load_scripts(0),"\n")
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" View the logfile after an update or installation.
|
||||
" ---------------------------------------------------------------------------
|
||||
func! s:view_log()
|
||||
if !exists('g:vundle_log_file')
|
||||
let g:vundle_log_file = tempname()
|
||||
endif
|
||||
|
||||
call writefile(g:vundle_log, g:vundle_log_file)
|
||||
execute 'silent pedit ' . g:vundle_log_file
|
||||
|
||||
wincmd P | wincmd H
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Parse the output from git log after an update to create a change log for the
|
||||
" user.
|
||||
" ---------------------------------------------------------------------------
|
||||
func! s:create_changelog() abort
|
||||
for bundle_data in g:updated_bundles
|
||||
let initial_sha = bundle_data[0]
|
||||
let updated_sha = bundle_data[1]
|
||||
let bundle = bundle_data[2]
|
||||
|
||||
let cmd = 'cd '.vundle#installer#shellesc(bundle.path()).
|
||||
\ ' && git log --pretty=format:"%s %an, %ar" --graph '.
|
||||
\ initial_sha.'..'.updated_sha
|
||||
|
||||
let cmd = vundle#installer#shellesc_cd(cmd)
|
||||
|
||||
let updates = system(cmd)
|
||||
|
||||
call add(g:vundle_changelog, '')
|
||||
call add(g:vundle_changelog, 'Updated Plugin: '.bundle.name)
|
||||
|
||||
if bundle.uri =~ "https://github.com"
|
||||
call add(g:vundle_changelog, 'Compare at: '.bundle.uri[0:-5].'/compare/'.initial_sha.'...'.updated_sha)
|
||||
endif
|
||||
|
||||
for update in split(updates, '\n')
|
||||
let update = substitute(update, '\s\+$', '', '')
|
||||
call add(g:vundle_changelog, ' '.update)
|
||||
endfor
|
||||
endfor
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" View the change log after an update or installation.
|
||||
" ---------------------------------------------------------------------------
|
||||
func! s:view_changelog()
|
||||
call s:create_changelog()
|
||||
|
||||
if !exists('g:vundle_changelog_file')
|
||||
let g:vundle_changelog_file = tempname()
|
||||
endif
|
||||
|
||||
call writefile(g:vundle_changelog, g:vundle_changelog_file)
|
||||
execute 'silent pedit ' . g:vundle_changelog_file
|
||||
|
||||
wincmd P | wincmd H
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Create a list of 'Plugin ...' lines from a list of bundle names.
|
||||
"
|
||||
" names -- a list of names (strings) of plugins
|
||||
" return -- a list of 'Plugin ...' lines suitable to be written to a buffer
|
||||
" ---------------------------------------------------------------------------
|
||||
func! vundle#scripts#bundle_names(names)
|
||||
return map(copy(a:names), ' printf("Plugin ' ."'%s'".'", v:val) ')
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Open a buffer to display information to the user. Several special commands
|
||||
" are defined in the new buffer.
|
||||
"
|
||||
" title -- a title for the new buffer
|
||||
" headers -- a list of header lines to be displayed at the top of the buffer
|
||||
" results -- the main information to be displayed in the buffer (list of
|
||||
" strings)
|
||||
" ---------------------------------------------------------------------------
|
||||
func! vundle#scripts#view(title, headers, results)
|
||||
if exists('g:vundle_view') && bufloaded(g:vundle_view)
|
||||
exec g:vundle_view.'bd!'
|
||||
endif
|
||||
|
||||
exec 'silent pedit [Vundle] '.a:title
|
||||
|
||||
wincmd P | wincmd H
|
||||
|
||||
let g:vundle_view = bufnr('%')
|
||||
"
|
||||
" make buffer modifiable
|
||||
" to append without errors
|
||||
set modifiable
|
||||
|
||||
call append(0, a:headers + a:results)
|
||||
|
||||
setl buftype=nofile
|
||||
setl noswapfile
|
||||
|
||||
setl cursorline
|
||||
setl nonu ro noma
|
||||
if (exists('&relativenumber')) | setl norelativenumber | endif
|
||||
|
||||
setl ft=vundle
|
||||
setl syntax=vim
|
||||
syn keyword vimCommand Plugin
|
||||
syn keyword vimCommand Bundle
|
||||
syn keyword vimCommand Helptags
|
||||
|
||||
com! -buffer -bang -nargs=1 DeletePlugin
|
||||
\ call vundle#installer#run('vundle#installer#delete', split(<q-args>,',')[0], ['!' == '<bang>', <args>])
|
||||
|
||||
com! -buffer -bang -nargs=? InstallAndRequirePlugin
|
||||
\ call vundle#installer#run('vundle#installer#install_and_require', split(<q-args>,',')[0], ['!' == '<bang>', <q-args>])
|
||||
|
||||
com! -buffer -bang -nargs=? InstallPlugin
|
||||
\ call vundle#installer#run('vundle#installer#install', split(<q-args>,',')[0], ['!' == '<bang>', <q-args>])
|
||||
|
||||
com! -buffer -bang -nargs=0 InstallHelptags
|
||||
\ call vundle#installer#run('vundle#installer#docs', 'helptags', [])
|
||||
|
||||
com! -buffer -nargs=0 VundleLog call s:view_log()
|
||||
|
||||
com! -buffer -nargs=0 VundleChangelog call s:view_changelog()
|
||||
|
||||
nnoremap <buffer> q :silent bd!<CR>
|
||||
nnoremap <buffer> D :exec 'Delete'.getline('.')<CR>
|
||||
|
||||
nnoremap <buffer> add :exec 'Install'.getline('.')<CR>
|
||||
nnoremap <buffer> add! :exec 'Install'.substitute(getline('.'), '^Plugin ', 'Plugin! ', '')<CR>
|
||||
|
||||
nnoremap <buffer> i :exec 'InstallAndRequire'.getline('.')<CR>
|
||||
nnoremap <buffer> I :exec 'InstallAndRequire'.substitute(getline('.'), '^Plugin ', 'Plugin! ', '')<CR>
|
||||
|
||||
nnoremap <buffer> l :VundleLog<CR>
|
||||
nnoremap <buffer> u :VundleChangelog<CR>
|
||||
nnoremap <buffer> h :h vundle<CR>
|
||||
nnoremap <buffer> ? :norm h<CR>
|
||||
|
||||
nnoremap <buffer> c :PluginClean<CR>
|
||||
nnoremap <buffer> C :PluginClean!<CR>
|
||||
|
||||
nnoremap <buffer> s :PluginSearch
|
||||
nnoremap <buffer> R :call vundle#scripts#reload()<CR>
|
||||
|
||||
" goto first line after headers
|
||||
exec ':'.(len(a:headers) + 1)
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Load the plugin database from vim-scripts.org .
|
||||
"
|
||||
" to -- the filename (string) to save the database to
|
||||
" return -- 0 on success, 1 if an error occurred
|
||||
" ---------------------------------------------------------------------------
|
||||
func! s:fetch_scripts(to)
|
||||
let scripts_dir = fnamemodify(expand(a:to, 1), ":h")
|
||||
if !isdirectory(scripts_dir)
|
||||
call mkdir(scripts_dir, "p")
|
||||
endif
|
||||
|
||||
let l:vim_scripts_json = 'http://vim-scripts.org/api/scripts.json'
|
||||
if executable("curl")
|
||||
let cmd = 'curl --fail -s -o '.vundle#installer#shellesc(a:to).' '.l:vim_scripts_json
|
||||
elseif executable("wget")
|
||||
let temp = vundle#installer#shellesc(tempname())
|
||||
let cmd = 'wget -q -O '.temp.' '.l:vim_scripts_json. ' && mv -f '.temp.' '.vundle#installer#shellesc(a:to)
|
||||
if (has('win32') || has('win64'))
|
||||
let cmd = substitute(cmd, 'mv -f ', 'move /Y ', '') " change force flag
|
||||
let cmd = vundle#installer#shellesc(cmd)
|
||||
end
|
||||
else
|
||||
echoerr 'Error curl or wget is not available!'
|
||||
return 1
|
||||
endif
|
||||
|
||||
call system(cmd)
|
||||
|
||||
if (0 != v:shell_error)
|
||||
echoerr 'Error fetching scripts!'
|
||||
return v:shell_error
|
||||
endif
|
||||
return 0
|
||||
endf
|
||||
|
||||
|
||||
" ---------------------------------------------------------------------------
|
||||
" Load the plugin database and return a list of all plugins.
|
||||
"
|
||||
" bang -- if 1 download the redatabase, else only download if it is not
|
||||
" readable on disk (i.e. does not exist)
|
||||
" return -- a list of strings, these are the names (valid bundle
|
||||
" specifications) of all plugins from vim-scripts.org
|
||||
" ---------------------------------------------------------------------------
|
||||
func! s:load_scripts(bang)
|
||||
let f = expand(g:bundle_dir.'/.vundle/script-names.vim-scripts.org.json', 1)
|
||||
if a:bang || !filereadable(f)
|
||||
if 0 != s:fetch_scripts(f)
|
||||
return []
|
||||
end
|
||||
endif
|
||||
return eval(readfile(f, 'b')[0])
|
||||
endf
|
||||
|
||||
" vim: set expandtab sts=2 ts=2 sw=2 tw=78 norl:
|
||||
22
.vim/bundle/Vundle.vim/changelog.md
Normal file
22
.vim/bundle/Vundle.vim/changelog.md
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
Change Log
|
||||
==========
|
||||
F = Feature, B = Bug Fix, D = Doc Change
|
||||
|
||||
### Version 0.10.2
|
||||
|
||||
- B: #430 Put user script directories before system directories in rtp
|
||||
- B: #455 Rename functions that start with `g:` + lowercase letter (Vim patch 7.4.264)
|
||||
|
||||
### Version 0.10.1
|
||||
- B: #451 Escape spaces when handling rtp directories
|
||||
|
||||
### Version 0.10
|
||||
- F: #415 Support plugin pinning (for non-git repos & preventing updates)
|
||||
- F: #440 Detect plugin name collisions
|
||||
- F: #418 Deferred rtp manipulation (speeds up start)
|
||||
- B: #418 Leave default rtp directories (i.e. ~/.vim) where they should be
|
||||
- B: #429 Fix newline character in log
|
||||
- B: #440 Detect changed remotes & update repos
|
||||
- D: #435 Image update in README.md
|
||||
- D: #419 Add function documentation
|
||||
- D: #436 Rename vundle to Vundle.vim, add modelines, quickstart update
|
||||
397
.vim/bundle/Vundle.vim/doc/vundle.txt
Normal file
397
.vim/bundle/Vundle.vim/doc/vundle.txt
Normal file
|
|
@ -0,0 +1,397 @@
|
|||
*vundle.txt* Vundle, a plug-in manager for Vim. *vundle*
|
||||
|
||||
VUNDLE MANUAL
|
||||
|
||||
1. About Vundle |vundle-about|
|
||||
2. Quick Start |vundle-quickstart|
|
||||
3. Plugins |vundle-plugins|
|
||||
3.1. Configuring Plugins |vundle-plugins-configure|
|
||||
3.2. Supported URIs |vundle-plugins-uris|
|
||||
3.3. Installing Plugins |vundle-plugins-install|
|
||||
3.4. Updating Plugins |vundle-plugins-update|
|
||||
3.5. Searching Plugins |vundle-plugins-search|
|
||||
3.6. Listing Plugins |vundle-plugins-list|
|
||||
3.7. Cleaning Up |vundle-plugins-cleanup|
|
||||
4. Interactive Mode |vundle-interactive|
|
||||
5. Key Mappings |vundle-keymappings|
|
||||
6. Options |vundle-options|
|
||||
7. Plugin Interface Change |vundle-interface-change|
|
||||
|
||||
=============================================================================
|
||||
1. ABOUT VUNDLE ~
|
||||
*vundle-about*
|
||||
|
||||
Vundle is short for Vim bundle and is a Vim plugin manager.
|
||||
|
||||
Vundle allows you to...
|
||||
|
||||
- keep track of and configure your scripts right in the `.vimrc`
|
||||
- install configured scripts (a.k.a. bundle)
|
||||
- update configured scripts
|
||||
- search by name all available Vim scripts
|
||||
- clean unused scripts up
|
||||
- run the above actions in a single keypress with interactive mode
|
||||
|
||||
Vundle automatically...
|
||||
|
||||
- manages the runtime path of your installed scripts
|
||||
- regenerates help tags after installing and updating
|
||||
|
||||
Vundle's search uses http://vim-scripts.org to provide a list of all
|
||||
available Vim scripts.
|
||||
|
||||
Vundle is undergoing an interface change, see |vundle-interface-change| for
|
||||
more information.
|
||||
|
||||
=============================================================================
|
||||
2. QUICK START ~
|
||||
*vundle-quickstart*
|
||||
|
||||
1. Introduction:
|
||||
|
||||
Installation requires `Git` and triggers git clone for each configured
|
||||
repository to `~/.vim/bundle/` by default. Curl is required for search.
|
||||
|
||||
*vundle-windows*
|
||||
If you are using Windows, see instructions on the Wiki
|
||||
https://github.com/gmarik/Vundle.vim/wiki/Vundle-for-Windows.
|
||||
|
||||
*vundle-faq*
|
||||
If you run into any issues, please consult the FAQ at
|
||||
https://github.com/gmarik/Vundle.vim/wiki
|
||||
|
||||
2. Setup Vundle:
|
||||
>
|
||||
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
||||
<
|
||||
3. Configure bundles:
|
||||
|
||||
Put this at the top of your `.vimrc` to use Vundle. Remove bundles you
|
||||
don't need, they are for illustration purposes.
|
||||
>
|
||||
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 '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 - list configured plugins
|
||||
" :PluginInstall(!) - install (update) plugins
|
||||
" :PluginSearch(!) foo - search (or refresh cache first) for foo
|
||||
" :PluginClean(!) - confirm (or auto-approve) removal of unused plugins
|
||||
"
|
||||
" see :h vundle for more details or wiki for FAQ
|
||||
" Put your non-Plugin stuff after this line
|
||||
|
||||
4. Install configured bundles:
|
||||
|
||||
Launch vim and run
|
||||
>
|
||||
:PluginInstall
|
||||
<
|
||||
To install from command line:
|
||||
>
|
||||
vim +PluginInstall +qall
|
||||
|
||||
=============================================================================
|
||||
3. PLUGINS ~
|
||||
*vundle-plugins*
|
||||
|
||||
3.1 CONFIGURING PLUGINS ~
|
||||
*vundle-plugins-configure* *:Plugin*
|
||||
|
||||
Vundle tracks what plugins you want configured by the `Plugin` commands in your
|
||||
`.vimrc`. Each `Plugin` command tells Vundle to activate the script on startup
|
||||
adding it to your |runtimepath|. Commenting out or removing the line will
|
||||
disable the `Plugin`.
|
||||
|
||||
Each `Plugin` command takes a URI pointing to the script. No comments should
|
||||
follow on the same line as the command. Example:
|
||||
>
|
||||
Plugin 'git_URI'
|
||||
|
||||
The `Plugin` command can optionally take a second argument after the URI. It
|
||||
has to be a dictionary, separated from the URI by a comma. Each key-value pair
|
||||
in the dictionary is a configuration option.
|
||||
|
||||
The following per-script configuration options are available.
|
||||
|
||||
The 'rtp' option
|
||||
----------------
|
||||
|
||||
Specifies a directory inside the repository (relative path from the root of
|
||||
the repository) where the vim plugin resides. It determines the path that will
|
||||
be added to the |runtimepath|.
|
||||
|
||||
For example:
|
||||
>
|
||||
Plugin 'git_URI', {'rtp': 'some/subdir/'}
|
||||
|
||||
This can be used with git repositories that put the vim plugin inside a
|
||||
subdirectory.
|
||||
|
||||
The 'name' option
|
||||
-----------------
|
||||
|
||||
The name of the directory that will hold the local clone of the configured
|
||||
script.
|
||||
|
||||
For example:
|
||||
>
|
||||
Plugin 'git_URI', {'name': 'newPluginName'}
|
||||
|
||||
This can be used to prevent name collisions between plugins that Vundle would
|
||||
otherwise try to clone into the same directory. It also provides an additional
|
||||
level of customisation.
|
||||
|
||||
The 'pinned' option
|
||||
-------------------
|
||||
|
||||
A flag that, when set to a value of 1, tells Vundle not to perform any git
|
||||
operations on the plugin, while still adding the existing plugin under the
|
||||
`bundles` directories to the |runtimepath|.
|
||||
|
||||
For example:
|
||||
>
|
||||
Plugin 'mylocalplugin', {'pinned': 1}
|
||||
|
||||
This allows the users to include, with Vundle, plugins tracked with version
|
||||
control systems other than git, but the user is responsible for cloning and
|
||||
keeping up to date. It also allows the users to stay in the current version of
|
||||
a plugin that might have previously been updated by Vundle.
|
||||
|
||||
Please note that the URI will be treated the same as for any other plugins, so
|
||||
only the last part of it will be added to the |runtimepath|. The user is
|
||||
advised to use this flag only with single word URIs to avoid confusion.
|
||||
|
||||
3.2 SUPPORTED URIS ~
|
||||
*vundle-plugins-uris*
|
||||
|
||||
`Vundle` integrates very well with both GitHub and vim-scripts.org
|
||||
(http://vim-scripts.org/vim/scripts.html) allowing short URIs. It also allows
|
||||
the use of any URI `git` recognizes. In all of the following cases (except
|
||||
local) the 'https' protocol is used, see Vundle's options to override this.
|
||||
|
||||
More information on `git`'s protocols can be found at:
|
||||
http://git-scm.com/book/ch4-1.html
|
||||
|
||||
GitHub
|
||||
------
|
||||
GitHub is used when a user/repo is passed to `Plugin`.
|
||||
>
|
||||
Plugin 'gmarik/Vundle.vim' => https://github.com/gmarik/Vundle.vim
|
||||
|
||||
Vim Scripts
|
||||
-----------
|
||||
Any single word without a slash '/' is assumed to be from Vim Scripts.
|
||||
>
|
||||
Plugin 'ctrlp.vim' => https://github.com/vim-scripts/ctrlp.vim
|
||||
|
||||
Other Git URIs
|
||||
--------------
|
||||
No modification is performed on valid URIs that point outside the above
|
||||
URLs.
|
||||
>
|
||||
Plugin 'git://git.wincent.com/command-t.git'
|
||||
|
||||
Local Plugins
|
||||
-------------
|
||||
The git protocol supports local installation using the 'file://' protocol.
|
||||
This is handy when developing plugins locally. Follow the protocol with an
|
||||
absolute path to the script directory.
|
||||
>
|
||||
Plugin 'file:///path/from/root/to/plugin'
|
||||
|
||||
3.3 INSTALLING PLUGINS ~
|
||||
*vundle-plugins-install* *:PluginInstall*
|
||||
>
|
||||
:PluginInstall
|
||||
|
||||
Will install all plugins configured in your `.vimrc`. Newly installed
|
||||
plugins will be automatically enabled. Some plugins may require extra steps
|
||||
such as compilation or external programs, refer to their documentation.
|
||||
|
||||
PluginInstall allows installation of plugins by name:
|
||||
>
|
||||
:PluginInstall unite.vim
|
||||
|
||||
Installs and activates unite.vim. You can use Tab to auto-complete known
|
||||
script names. Note that the installation just described isn't permanent. To
|
||||
finish, you must put `Plugin 'unite.vim'` at the appropriate place in your
|
||||
`.vimrc` to tell Vundle to load the plugin at startup.
|
||||
|
||||
After installing plugins press 'l' (lowercase 'L') to see the log of commands
|
||||
if any errors occurred.
|
||||
|
||||
3.4 UPDATING PLUGINS ~
|
||||
*vundle-plugins-update* *:PluginUpdate* *:PluginInstall!*
|
||||
>
|
||||
:PluginInstall! " NOTE: bang(!)
|
||||
or >
|
||||
:PluginUpdate
|
||||
|
||||
Installs or updates the configured plugins. Press 'u' after updates complete
|
||||
to see the change log of all updated bundles. Press 'l' (lowercase 'L') to
|
||||
see the log of commands if any errors occurred.
|
||||
|
||||
3.5 SEARCHING PLUGINS ~
|
||||
*vundle-plugins-search* *:PluginSearch*
|
||||
>
|
||||
:PluginSearch
|
||||
|
||||
Search requires that `curl` be available on the system. The command searches
|
||||
Vim Scripts (http://vim-scripts.org/vim/scripts.html) for matching
|
||||
plugins. Results display in a new split window. For example:
|
||||
>
|
||||
PluginSearch foo
|
||||
|
||||
displays:
|
||||
>
|
||||
"Search results for: foo
|
||||
Plugin 'MarkdownFootnotes'
|
||||
Plugin 'VimFootnotes'
|
||||
Plugin 'foo.vim'
|
||||
<
|
||||
*:PluginSearch!*
|
||||
Alternatively, you can refresh the script list before searching by adding a
|
||||
bang to the command.
|
||||
>
|
||||
:PluginSearch! foo
|
||||
|
||||
If the command is run without argument:
|
||||
>
|
||||
:PluginSearch!
|
||||
|
||||
it will display all known plugins in the new split.
|
||||
|
||||
3.6 LISTING BUNDLES ~
|
||||
*vundle-plugins-list* *:PluginList*
|
||||
>
|
||||
:PluginList
|
||||
|
||||
Displays a list of installed bundles.
|
||||
|
||||
3.7 CLEANING UP ~
|
||||
*vundle-plugins-cleanup* *:PluginClean*
|
||||
>
|
||||
:PluginClean
|
||||
|
||||
Requests confirmation for the removal of all plugins no longered configured
|
||||
in your `.vimrc` but present in your bundle installation directory
|
||||
(default: `.vim/bundle/`).
|
||||
|
||||
*:PluginClean!*
|
||||
>
|
||||
:PluginClean!
|
||||
|
||||
Automatically confirm removal of unused bundles.
|
||||
|
||||
=============================================================================
|
||||
4. INTERACTIVE MODE ~
|
||||
*vundle-interactive*
|
||||
|
||||
Vundle provides a simple interactive mode to help you explore new plugins
|
||||
easily. Interactive mode is available after any command that lists `Plugins`
|
||||
such as PluginSearch, PluginList or Plugins. For instance:
|
||||
>
|
||||
:PluginSearch! unite
|
||||
|
||||
Searches for plugins matching 'unite' and yields a split window with:
|
||||
>
|
||||
"Keymap: i - Install bundle; c - Cleanup; s - Search; R - Reload list
|
||||
"Search results for: unite
|
||||
Plugin 'unite-scriptenames'
|
||||
Plugin 'unite.vim'
|
||||
Plugin 'unite-yarm'
|
||||
Plugin 'unite-gem'
|
||||
Plugin 'unite-locate'
|
||||
Plugin 'unite-font'
|
||||
Plugin 'unite-colorscheme'
|
||||
|
||||
To install a bundle, move your cursor to the Plugin of interest and then
|
||||
select a command. To install 'unite.vim' put your cursor on the line and
|
||||
then push `i`. For a more complete list see |vundle-keymappings|. After
|
||||
unite.vim is installed the `:Unite file` command should be available.
|
||||
|
||||
Note: Interactive installation doesn't update your `.vimrc`.
|
||||
|
||||
=============================================================================
|
||||
5. KEY MAPPINGS ~
|
||||
*vundle-keymappings*
|
||||
|
||||
KEY | DESCRIPTION
|
||||
----|-------------------------- >
|
||||
i | run :PluginInstall with name taken from line cursor is positioned on
|
||||
I | same as i, but runs :PluginInstall! to update bundle
|
||||
D | delete selected bundle (be careful not to remove local modifications)
|
||||
c | run :PluginClean
|
||||
s | run :PluginSearch
|
||||
R | fetch fresh script list from server
|
||||
|
||||
=============================================================================
|
||||
6. OPTIONS ~
|
||||
*vundle-options*
|
||||
>
|
||||
let g:vundle_default_git_proto = 'git'
|
||||
<
|
||||
This option makes Vundle use `git` instead of `https` when building
|
||||
absolute URIs. For example:
|
||||
>
|
||||
Plugin 'sjl/gundo.vim' -> git@github.com:sjl/gundo.git
|
||||
|
||||
=============================================================================
|
||||
7. VUNDLE INTERFACE CHANGE ~
|
||||
*vundle-interface-change* *:Bundle* *:BundleInstall!*
|
||||
*:BundleUpdate* *:BundleSearch* *:BundleList* *:BundleClean!*
|
||||
*:VundleInstall!* *:VundleUpdate* *:VundleSearch*
|
||||
*:VundleList* *:VundleClean!*
|
||||
|
||||
In order to bring in new changes, Vundle is adopting a new interface.
|
||||
Going forward we will support primarily the Plugin namespace, additionally
|
||||
for convenience we will also alias some commands to the Vundle namespace.
|
||||
The following table summarizes the interface changes.
|
||||
|
||||
Deprecated Names | New Names
|
||||
-----------------------------
|
||||
Bundle | Plugin
|
||||
BundleInstall(!) | PluginInstall(!), VundleInstall(!)
|
||||
BundleUpdate | PluginUpdate, VundleUpdate
|
||||
BundleSearch(!) | PluginSearch(!), VundleSearch(!)
|
||||
BundleClean | PluginClean(!), VundleClean(!)
|
||||
BundleList | PluginList
|
||||
|
||||
Note: The Bundle commands will be deprecated. You may continue using them,
|
||||
but they may not get all future updates. For instance, we have enabled
|
||||
comments on Plugin lines but not Bundle, since it requires a change in
|
||||
command declaration.
|
||||
|
||||
" vim: set expandtab sts=2 ts=2 sw=2 tw=78 ft=help norl:
|
||||
20
.vim/bundle/Vundle.vim/test/files/test.erl
Normal file
20
.vim/bundle/Vundle.vim/test/files/test.erl
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
-module(mmc_logmon_sup).
|
||||
-behaviour(supervisor).
|
||||
-export([init/1]).
|
||||
|
||||
init(_) ->
|
||||
{ok, {
|
||||
{one_for_one, 5, 1},
|
||||
[
|
||||
{listener,
|
||||
{aaa, start_link, []},
|
||||
permanent, 100, worker,
|
||||
[aaa]
|
||||
},
|
||||
{server,
|
||||
{bbb, start_link, []},
|
||||
permanent, 100, worker,
|
||||
[bbb]
|
||||
}
|
||||
]
|
||||
}}.
|
||||
8
.vim/bundle/Vundle.vim/test/minirc.vim
Normal file
8
.vim/bundle/Vundle.vim/test/minirc.vim
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
set nocompatible
|
||||
syntax on
|
||||
filetype off
|
||||
set rtp+=~/.vim/bundle/Vundle.vim/
|
||||
call vundle#rc()
|
||||
Bundle 'gmarik/Vundle.vim'
|
||||
filetype plugin indent on
|
||||
|
||||
81
.vim/bundle/Vundle.vim/test/vimrc
Normal file
81
.vim/bundle/Vundle.vim/test/vimrc
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
" vim -u test/vimrc
|
||||
set nocompatible
|
||||
|
||||
set nowrap
|
||||
|
||||
let bundle_dir = '/tmp/vundle-test/bundles/'
|
||||
" let src = 'http://github.com/gmarik/vundle.git'
|
||||
|
||||
" Vundle Options
|
||||
" let g:vundle_default_git_proto = 'git'
|
||||
|
||||
silent execute '!mkdir -p '.bundle_dir
|
||||
silent execute '!ln -f -s ~/.vim/bundle/Vundle.vim '.bundle_dir
|
||||
|
||||
filetype off
|
||||
syntax on
|
||||
|
||||
runtime macros/matchit.vim
|
||||
|
||||
" This test should be executed in "test" directory
|
||||
exec 'set rtp^='.bundle_dir.'Vundle.vim/'
|
||||
|
||||
call vundle#rc(bundle_dir)
|
||||
|
||||
|
||||
Plugin 'molokai' " vim-scripts name
|
||||
|
||||
" github username with dashes
|
||||
Bundle 'vim-scripts/ragtag.vim'
|
||||
|
||||
" original repo
|
||||
Bundle 'altercation/vim-colors-solarized'
|
||||
" with extension
|
||||
Bundle 'nelstrom/vim-mac-classic-theme.git'
|
||||
"
|
||||
" invalid uri
|
||||
"Bundle 'nonexistinguser/yupppierepo.git'
|
||||
|
||||
" full uri
|
||||
Bundle 'https://github.com/vim-scripts/vim-game-of-life'
|
||||
" full uri
|
||||
Bundle 'git@github.com:gmarik/ingretu.git'
|
||||
" short uri
|
||||
Bundle 'gh:gmarik/snipmate.vim.git'
|
||||
Bundle 'github:mattn/gist-vim.git'
|
||||
|
||||
" local uri stuff
|
||||
Bundle '~/Dropbox/.gitrepos/utilz.vim.git'
|
||||
" Bundle 'file://Dropbox/.gitrepos/utilz.vim.git'
|
||||
|
||||
" with options
|
||||
Bundle 'rstacruz/sparkup.git', {'rtp': 'vim/'}
|
||||
Bundle 'matchit.zip', {'name': 'matchit'}
|
||||
|
||||
" Camel case
|
||||
Bundle 'vim-scripts/RubySinatra'
|
||||
|
||||
" syntax issue #203
|
||||
Bundle 'jimenezrick/vimerl'
|
||||
|
||||
" Static bundle: Same name as a valid vim-scripts bundle
|
||||
Bundle 'latte', {'pinned' : 1}
|
||||
if !isdirectory(expand(bundle_dir) . '/latte')
|
||||
call mkdir(expand(bundle_dir) . '/latte', 'p')
|
||||
endif
|
||||
|
||||
|
||||
filetype plugin indent on " Automatically detect file types.
|
||||
|
||||
set wildignore+=doc " should not break helptags
|
||||
set wildignore+=.git " should not break clone
|
||||
set wildignore+=.git/* " should not break clone
|
||||
set wildignore+=*/.git/*
|
||||
" TODO: helptags fails with this
|
||||
" set wildignore+=doc/* " should not break clone
|
||||
" set wildignore+=*/doc/*
|
||||
|
||||
au VimEnter * BundleInstall
|
||||
|
||||
" e test/files/erlang.erl
|
||||
" vim: set expandtab sts=2 ts=2 sw=2 tw=78:
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit b1bba2e2012efa81444bedafa12ddbdae2cccd93
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit f183a345a0c10caed7684d07dabae33e007c7590
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 523c5b532cc8ca509fc86c33ca1ca6b61ee18978
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit b5d3fe66a58a13d2ff8b6391f4387608496a030f
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 35280c1444bf62d651f56ccaf03ad8db29c02383
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 4f21d024f91016aae2014cc99e6279e39b2fbbcc
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 788b193dbeb1bebe303b0d0c6b17c09fdd1ebabb
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit b7a244b7b15b96d212c5cd300b54de4b87fa7b11
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 14c1e0762e5c19c2675163b422956594cd7eea20
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 41c7160ee129209b758c5a9f0fc196ffeeb866f9
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 0b3d928dce8262dedfc2f83b9aeb59a94e4f0ae4
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit b0bb781fc73ef40365e4c996a16f04368d64fc9d
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit f23ddae1a7982b40dbfbe55033c1817480f0a0ed
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit ace45adc51d0e08d45761bb515a9ff23906cba65
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit ae611ccf950a93f93cab64542cbe48029f1e9c02
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 5f1c24528c143c80e40016995fc902fb8b74eeee
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 8705ee2c4e619016a5abba2fb3c8886a6eb93426
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 17881383a670e9383a0cdc0fedf2107b2416ec01
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 18c68524ab8a043a566bbe227ea8f81ab922d092
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 546a6bf2197529ed1bd402244cbf6e72ed62b2ca
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit ae81dccb679a423f871809d83c6829442760748a
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 05b9cc1b9e7497eef0add18d5adb034ecfeebec8
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit bd34eba9b8b34903db1df10ce3415964073b7011
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 35028be1f71953da9f2c28509bf6c5ebd1d31c28
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 27d2af11223349088f5c7fb3187bb3184364ea12
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 8078affa985f12b6fd35a715ced779c3fccaa0df
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 42e9b46e7a20a2f394664874c7bbd9d6f6c39e8a
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 9a8be3696bc50064b9d9d146041ec4264e36e341
|
||||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 11bd6853b25f73f3729cccbb9282fecade2bf50a
|
||||
|
|
@ -29,14 +29,14 @@ augroup END
|
|||
|
||||
au! BufNewFile,BufRead *.pde setf arduino
|
||||
|
||||
augroup org
|
||||
" leave these as is:
|
||||
au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
|
||||
au BufRead,BufNewFile *.org call org#SetOrgFileType()
|
||||
au BufRead *.org :PreLoadTags
|
||||
au BufWrite *.org :PreWriteTags
|
||||
au BufWritePost *.org :PostWriteTags
|
||||
augroup END
|
||||
"augroup org
|
||||
"" leave these as is:
|
||||
"au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
|
||||
"au BufRead,BufNewFile *.org call org#SetOrgFileType()
|
||||
"au BufRead *.org :PreLoadTags
|
||||
"au BufWrite *.org :PreWriteTags
|
||||
"au BufWritePost *.org :PostWriteTags
|
||||
"augroup END
|
||||
|
||||
au BufNewFile,BufRead motd.public,/tmp/motd.public.r.* setf motd
|
||||
|
||||
|
|
|
|||
59
.vimrc
59
.vimrc
|
|
@ -66,18 +66,56 @@ set t_Sb=ESC[4%dm
|
|||
|
||||
" ** FILETYPE SETTINGS **
|
||||
filetype off
|
||||
"call pathogen#runtime_append_all_bundles()
|
||||
execute pathogen#infect()
|
||||
|
||||
let g:ft_ignore_pat = '.org'
|
||||
filetype plugin indent on
|
||||
"let g:ft_ignore_pat = '.org'
|
||||
"filetype plugin indent on
|
||||
" If you prefer the Omni-Completion tip window to close when a selection is
|
||||
" made, these lines close it on movement in insert mode or when leaving
|
||||
" insert mode
|
||||
autocmd CursorMovedI * if pumvisible() == 0|pclose|endif
|
||||
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
|
||||
|
||||
set rtp+=~/.vim/bundle/Vundle.vim
|
||||
call vundle#begin()
|
||||
|
||||
Plugin 'vim-scripts/DrawIt'
|
||||
Plugin 'vim-scripts/EasyGrep'
|
||||
Plugin 'chrisbra/NrrwRgn'
|
||||
Plugin 'jceb/vim-orgmode'
|
||||
Plugin 'mileszs/ack.vim'
|
||||
Plugin 'mattn/calendar-vim'
|
||||
Plugin 'vim-scripts/fish-syntax'
|
||||
Plugin 'sjbach/lusty'
|
||||
Plugin 'scrooloose/nerdcommenter'
|
||||
Plugin 'scrooloose/nerdtree'
|
||||
Plugin 'rstacruz/sparkup'
|
||||
Plugin 'scrooloose/syntastic'
|
||||
Plugin 'kchmck/vim-coffee-script'
|
||||
Plugin 'tpope/vim-fugitive'
|
||||
Plugin 'airblade/vim-gitgutter'
|
||||
Plugin 'lunaru/vim-less'
|
||||
Plugin 'terryma/vim-multiple-cursors'
|
||||
Plugin 'rodjek/vim-puppet'
|
||||
Plugin 'tpope/vim-unimpaired'
|
||||
Plugin 'Valloric/YouCompleteMe'
|
||||
Plugin 'b4winckler/vim-angry'
|
||||
Plugin 'tristen/vim-sparkup'
|
||||
Plugin 'bling/vim-airline'
|
||||
Plugin 'kien/ctrlp.vim'
|
||||
Plugin 'Blackrush/vim-gocode'
|
||||
Plugin 'bling/vim-bufferline'
|
||||
Plugin 'majutsushi/tagbar'
|
||||
Plugin 'Raimondi/delimitMate'
|
||||
Plugin 'eagletmt/neco-ghc'
|
||||
Plugin 'eagletmt/ghcmod-vim'
|
||||
Plugin 'Shougo/vimproc.vim'
|
||||
Plugin 'SirVer/ultisnips'
|
||||
Bundle 'honza/vim-snippets'
|
||||
Plugin 'JuliaLang/julia-vim'
|
||||
Plugin 'tpope/vim-surround'
|
||||
"https://git.wincent.com/command-t.git
|
||||
call vundle#end()
|
||||
filetype plugin indent on " required
|
||||
" Sources
|
||||
"source ~/.vim/supertab.vim
|
||||
"source ~/.vim/charm.vim
|
||||
|
|
@ -94,10 +132,10 @@ autocmd FileType python set tags+=$HOME/.vim/tags/python.ctags
|
|||
"au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
|
||||
"au BufEnter *.org call org#SetOrgFileType()
|
||||
|
||||
au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
|
||||
au BufEnter *.org call org#SetOrgFileType()
|
||||
command! OrgCapture :call org#CaptureBuffer()
|
||||
command! OrgCaptureFile :call org#OpenCaptureFile()
|
||||
"au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
|
||||
"au BufEnter *.org call org#SetOrgFileType()
|
||||
"command! OrgCapture :call org#CaptureBuffer()
|
||||
"command! OrgCaptureFile :call org#OpenCaptureFile()
|
||||
|
||||
" Cull trailing whitespace for all files.
|
||||
autocmd BufWritePre * :call AutoTrimWhitespace()
|
||||
|
|
@ -182,6 +220,7 @@ let g:ConqueTerm_SendVisKey = '<Leader>ss'
|
|||
let g:ycm_global_ycm_extra_conf = '~/.ycm_extra_conf.py'
|
||||
let g:ycm_confirm_extra_conf = 0
|
||||
let g:ycm_key_invoke_completion = "<Leader><Tab>"
|
||||
let g:ycm_use_ultisnips_completer = 1
|
||||
"let g:ycm_add_preview_to_completeopt = 1
|
||||
"let g:ycm_autoclose_preview_window_after_completion = 1
|
||||
|
||||
|
|
@ -209,8 +248,8 @@ let g:CommandTMaxDepth = 7
|
|||
" let g:org_todo_setup='TODO | DONE'
|
||||
" while g:org_tag_setup is itself a string
|
||||
"let g:org_tag_setup='{@home(h) @work(w) @tennisclub(t)} \n {easy(e) hard(d)} \n {computer(c) phone(p)}'
|
||||
au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
|
||||
au BufEnter *.org call org#SetOrgFileType()
|
||||
"au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
|
||||
"au BufEnter *.org call org#SetOrgFileType()
|
||||
|
||||
" * Airline
|
||||
set noshowmode
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ flags = [
|
|||
'-Wall',
|
||||
'-Wextra',
|
||||
'-Werror',
|
||||
'-Wc++98-compat',
|
||||
'-Wno-long-long',
|
||||
'-Wno-variadic-macros',
|
||||
'-fexceptions',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue