aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorxero <x@xero.nu>2014-07-14 13:23:05 -0400
committerxero <x@xero.nu>2014-07-14 13:23:05 -0400
commit56560fd597f94dfe6fe5fa79648398ab29d05775 (patch)
tree7e77d23be98b2df8ef847f49ee645085356305be /vim
parent1434c859bcf94a0bbee88e72c8a01849d0356293 (diff)
downloaddotfiles_ascii-56560fd597f94dfe6fe5fa79648398ab29d05775.tar.xz
dotfiles_ascii-56560fd597f94dfe6fe5fa79648398ab29d05775.zip
updated repo to manage dotfiles via gnu stow, the symlink farm manager. happy birthday commit! :birthday: :sparkles:
Diffstat (limited to 'vim')
-rw-r--r--vim/.vim/.netrwhist1
-rw-r--r--vim/.vim/.vim/.vimrc46
-rw-r--r--vim/.vim/.vim/.zsh/colored-man-pages.zsh8
-rw-r--r--vim/.vim/.vim/.zsh/functions/chpwd_update_git_vars1
-rw-r--r--vim/.vim/.vim/.zsh/functions/precmd_update_git_vars4
-rw-r--r--vim/.vim/.vim/.zsh/functions/preexec_update_git_vars5
-rw-r--r--vim/.vim/.vim/.zsh/functions/prompt_git_info21
-rw-r--r--vim/.vim/.vim/.zsh/functions/update_current_git_vars31
-rw-r--r--vim/.vim/.vim/.zshrc144
-rw-r--r--vim/.vim/autoload/pathogen.vim344
-rw-r--r--vim/.vim/bundle/colorizer/Makefile12
-rw-r--r--vim/.vim/bundle/colorizer/README.mkd7
-rw-r--r--vim/.vim/bundle/colorizer/autoload/colorizer.vim377
-rw-r--r--vim/.vim/bundle/colorizer/plugin/colorizer.vim62
-rw-r--r--vim/.vim/bundle/colorizer/screenshot.pngbin0 -> 38279 bytes
-rw-r--r--vim/.vim/bundle/indentLine/.gitattributes22
-rw-r--r--vim/.vim/bundle/indentLine/.gitignore163
-rw-r--r--vim/.vim/bundle/indentLine/README.md34
-rw-r--r--vim/.vim/bundle/indentLine/after/plugin/indentLine.vim166
-rw-r--r--vim/.vim/bundle/indentLine/doc/indentLine.txt143
-rw-r--r--vim/.vim/bundle/vim-airline/.gitignore3
-rw-r--r--vim/.vim/bundle/vim-airline/.travis.yml4
-rw-r--r--vim/.vim/bundle/vim-airline/Gemfile2
-rw-r--r--vim/.vim/bundle/vim-airline/LICENSE21
-rw-r--r--vim/.vim/bundle/vim-airline/README.md210
-rw-r--r--vim/.vim/bundle/vim-airline/Rakefile14
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline.vim170
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/builder.vim74
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/debug.vim50
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/deprecation.vim32
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions.vim234
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/branch.vim108
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/bufferline.vim23
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/commandt.vim16
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/csv.vim31
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/ctrlp.vim77
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/default.vim77
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/eclim.vim41
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/example.vim54
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/hunks.vim67
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/netrw.vim32
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/nrrwrgn.vim24
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/promptline.vim33
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/quickfix.vim37
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/syntastic.vim19
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline.vim278
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/default.vim35
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail.vim27
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail_improved.vim89
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/tagbar.vim45
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/tmuxline.vim26
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/undotree.vim27
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/unite.vim23
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/virtualenv.vim20
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/extensions/whitespace.vim103
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/highlighter.vim156
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/init.vim113
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/parts.vim79
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/section.vim73
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes.vim67
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/badwolf.vim52
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/base16.vim107
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/bubblegum.vim62
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/dark.vim102
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/hybrid.vim58
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/jellybeans.vim52
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/kalisi.vim57
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/kolor.vim59
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/laederon.vim62
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/light.vim45
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/lucius.vim56
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/luna.vim92
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/molokai.vim65
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/monochrome.vim15
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/murmur.vim46
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/powerlineish.vim46
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/serene.vim41
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/simple.vim46
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/sol.vim90
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/solarized.vim176
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/tomorrow.vim44
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/ubaryd.vim64
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/understated.vim43
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/wombat.vim90
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/themes/zenburn.vim44
-rw-r--r--vim/.vim/bundle/vim-airline/autoload/airline/util.vim64
-rw-r--r--vim/.vim/bundle/vim-airline/doc/airline.txt752
-rw-r--r--vim/.vim/bundle/vim-airline/plugin/airline.vim109
-rw-r--r--vim/.vim/bundle/vim-airline/t/airline.vim87
-rw-r--r--vim/.vim/bundle/vim-airline/t/builder.vim80
-rw-r--r--vim/.vim/bundle/vim-airline/t/commands.vim33
-rw-r--r--vim/.vim/bundle/vim-airline/t/extensions_default.vim32
-rw-r--r--vim/.vim/bundle/vim-airline/t/highlighter.vim21
-rw-r--r--vim/.vim/bundle/vim-airline/t/init.vim77
-rw-r--r--vim/.vim/bundle/vim-airline/t/parts.vim39
-rw-r--r--vim/.vim/bundle/vim-airline/t/section.vim76
-rw-r--r--vim/.vim/bundle/vim-airline/t/themes.vim68
-rw-r--r--vim/.vim/bundle/vim-airline/t/util.vim54
-rw-r--r--vim/.vim/bundle/vim-fugitive/.gitignore1
-rw-r--r--vim/.vim/bundle/vim-fugitive/CONTRIBUTING.markdown18
-rw-r--r--vim/.vim/bundle/vim-fugitive/README.markdown120
-rw-r--r--vim/.vim/bundle/vim-fugitive/doc/fugitive.txt319
-rw-r--r--vim/.vim/bundle/vim-fugitive/plugin/fugitive.vim2624
-rw-r--r--vim/.vim/bundle/vim-startify/.gitignore11
-rw-r--r--vim/.vim/bundle/vim-startify/CONTRIBUTING.md28
-rw-r--r--vim/.vim/bundle/vim-startify/LICENSE20
-rw-r--r--vim/.vim/bundle/vim-startify/README.md173
-rw-r--r--vim/.vim/bundle/vim-startify/startify.pngbin0 -> 80279 bytes
-rw-r--r--vim/.vim/colors/monokai.vim107
-rw-r--r--vim/.vimrc46
110 files changed, 10778 insertions, 0 deletions
diff --git a/vim/.vim/.netrwhist b/vim/.vim/.netrwhist
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/vim/.vim/.netrwhist
@@ -0,0 +1 @@
+
diff --git a/vim/.vim/.vim/.vimrc b/vim/.vim/.vim/.vimrc
new file mode 100644
index 0000000..1617565
--- /dev/null
+++ b/vim/.vim/.vim/.vimrc
@@ -0,0 +1,46 @@
+"█▓▒░ autoload
+execute pathogen#infect()
+
+let g:airline#extensions#tabline#enabled = 1
+let g:airline_powerline_fonts = 0
+let g:airline_theme = 'tomorrow'
+let g:airline_enable_branch = 1
+let g:airline_enable_syntastic = 1
+
+if !exists('g:airline_symbols')
+ let g:airline_symbols = {}
+endif
+let g:airline_left_sep = '▒'
+let g:airline_left_alt_sep = '▒'
+let g:airline_right_sep = '▒'
+let g:airline_right_alt_sep = '▒'
+let g:airline_symbols.branch = '⎇'
+let g:airline_symbols.linenr = '░'
+let g:airline_symbols.linenr = '░'
+let g:airline_symbols.linenr = '░'
+let g:airline_symbols.branch = '⎇'
+let g:airline_symbols.paste = 'ρ'
+let g:airline_symbols.paste = 'Þ'
+let g:airline_symbols.paste = '∥'
+let g:airline_symbols.whitespace = '░'
+let g:airline_symbols.readonly = 'x'
+
+let g:startify_custom_header = [
+ \ '',
+ \ ' ██ ██ ████ ██ ',
+ \ ' ░██ ░██ ░██░ ░░ ',
+ \ ' █████ ░██ ██ ██ ██████ ██████ ██████ ██ ██ ██ ██████████ ',
+ \ ' ██░░░██ ░██░██ ░██░░░██░ ██░░░░██░░░██░ ░██ ░██░██░░██░░██░░██',
+ \ '░██ ░░ ░██░██ ░██ ░██ ░██ ░██ ░██ ░░██ ░██ ░██ ░██ ░██ ░██',
+ \ '░██ ██ ░██░██ ░██ ░██ ░██ ░██ ░██ ░░████ ░██ ░██ ░██ ░██',
+ \ '░░█████ ███░░██████ ░░██ ░░██████ ░██ ░░██ ░██ ███ ░██ ░██',
+ \ ' ░░░░░ ░░░ ░░░░░░ ░░ ░░░░░░ ░░ ░░ ░░ ░░░ ░░ ░░ ',
+ \ '',
+ \ ]
+
+set laststatus=2
+set lazyredraw
+
+syntax on
+colorscheme monokai
+filetype plugin indent on
diff --git a/vim/.vim/.vim/.zsh/colored-man-pages.zsh b/vim/.vim/.vim/.zsh/colored-man-pages.zsh
new file mode 100644
index 0000000..6854d97
--- /dev/null
+++ b/vim/.vim/.vim/.zsh/colored-man-pages.zsh
@@ -0,0 +1,8 @@
+#█▓▒░ source: https://github.com/imkira/dotfiles/blob/master/.zsh/colored-man-pages.zsh
+export LESS_TERMCAP_mb=$'\E[01;31m'
+export LESS_TERMCAP_md=$'\E[01;38;5;74m'
+export LESS_TERMCAP_me=$'\E[0m'
+export LESS_TERMCAP_se=$'\E[0m'
+export LESS_TERMCAP_so=$'\E[38;33;246m'
+export LESS_TERMCAP_ue=$'\E[0m'
+export LESS_TERMCAP_us=$'\E[04;38;5;146m'
diff --git a/vim/.vim/.vim/.zsh/functions/chpwd_update_git_vars b/vim/.vim/.vim/.zsh/functions/chpwd_update_git_vars
new file mode 100644
index 0000000..2cc7ffa
--- /dev/null
+++ b/vim/.vim/.vim/.zsh/functions/chpwd_update_git_vars
@@ -0,0 +1 @@
+update_current_git_vars \ No newline at end of file
diff --git a/vim/.vim/.vim/.zsh/functions/precmd_update_git_vars b/vim/.vim/.vim/.zsh/functions/precmd_update_git_vars
new file mode 100644
index 0000000..7fa32df
--- /dev/null
+++ b/vim/.vim/.vim/.zsh/functions/precmd_update_git_vars
@@ -0,0 +1,4 @@
+if [ -n "$__EXECUTED_GIT_COMMAND" ]; then
+ update_current_git_vars
+ unset __EXECUTED_GIT_COMMAND
+fi \ No newline at end of file
diff --git a/vim/.vim/.vim/.zsh/functions/preexec_update_git_vars b/vim/.vim/.vim/.zsh/functions/preexec_update_git_vars
new file mode 100644
index 0000000..998de21
--- /dev/null
+++ b/vim/.vim/.vim/.zsh/functions/preexec_update_git_vars
@@ -0,0 +1,5 @@
+case "$1" in
+ git*)
+ __EXECUTED_GIT_COMMAND=1
+ ;;
+esac \ No newline at end of file
diff --git a/vim/.vim/.vim/.zsh/functions/prompt_git_info b/vim/.vim/.vim/.zsh/functions/prompt_git_info
new file mode 100644
index 0000000..d492ac8
--- /dev/null
+++ b/vim/.vim/.vim/.zsh/functions/prompt_git_info
@@ -0,0 +1,21 @@
+if [ -n "$__CURRENT_GIT_BRANCH" ]; then
+ local s="%F{cyan}-[%F{white}"
+ s+="$__CURRENT_GIT_BRANCH"
+ case "$__CURRENT_GIT_BRANCH_STATUS" in
+ ahead)
+ s+="↑"
+ ;;
+ diverged)
+ s+="↕"
+ ;;
+ behind)
+ s+="↓"
+ ;;
+ esac
+ if [ -n "$__CURRENT_GIT_BRANCH_IS_DIRTY" ]; then
+ s+="⚡"
+ fi
+ s+="%F{cyan}]"
+
+ printf "%s%s" $s
+fi \ No newline at end of file
diff --git a/vim/.vim/.vim/.zsh/functions/update_current_git_vars b/vim/.vim/.vim/.zsh/functions/update_current_git_vars
new file mode 100644
index 0000000..716d984
--- /dev/null
+++ b/vim/.vim/.vim/.zsh/functions/update_current_git_vars
@@ -0,0 +1,31 @@
+unset __CURRENT_GIT_BRANCH
+unset __CURRENT_GIT_BRANCH_STATUS
+unset __CURRENT_GIT_BRANCH_IS_DIRTY
+
+local st="$(git status 2>/dev/null)"
+local st2="$(git log -1 --pretty=%h 2>/dev/null)"
+
+if [[ -n "$st" ]]; then
+ local -a arr
+ arr=(${(f)st})
+
+ if [[ $arr[1] =~ 'Not currently on any branch.' ]]; then
+ __CURRENT_GIT_BRANCH="$st2"
+ else
+ __CURRENT_GIT_BRANCH="${arr[1][(w)4]}";
+ fi
+
+ if [[ $arr[2] =~ 'Your branch is' ]]; then
+ if [[ $arr[2] =~ 'ahead' ]]; then
+ __CURRENT_GIT_BRANCH_STATUS='ahead'
+ elif [[ $arr[2] =~ 'diverged' ]]; then
+ __CURRENT_GIT_BRANCH_STATUS='diverged'
+ else
+ __CURRENT_GIT_BRANCH_STATUS='behind'
+ fi
+ fi
+
+ if [[ ! $st =~ 'nothing to commit' ]]; then
+ __CURRENT_GIT_BRANCH_IS_DIRTY='1'
+ fi
+fi \ No newline at end of file
diff --git a/vim/.vim/.vim/.zshrc b/vim/.vim/.vim/.zshrc
new file mode 100644
index 0000000..1a8c909
--- /dev/null
+++ b/vim/.vim/.vim/.zshrc
@@ -0,0 +1,144 @@
+# ██
+# ░██
+# ██████ ██████░██ ██████ █████
+# ░░░░██ ██░░░░ ░██████ ░░██░░█ ██░░░██
+# ██ ░░█████ ░██░░░██ ░██ ░ ░██ ░░
+# ██ ░░░░░██░██ ░██ ░██ ░██ ██
+# ██████ ██████ ░██ ░██░███ ░░█████
+# ░░░░░░ ░░░░░░ ░░ ░░ ░░░ ░░░░░
+#
+# ▓▓▓▓▓▓▓▓▓▓
+# ░▓ author ▓ xero <x@xero.nu>
+# ░▓ code ▓ http://code.xero.nu/dotfiles
+# ░▓ mirror ▓ http://git.io/.files
+# ░▓▓▓▓▓▓▓▓▓▓
+# ░░░░░░░░░░
+#
+# █▓▒░ timestamps
+# HIST_STAMPS="mm/dd/yyyy"
+
+#█▓▒░ exports
+export PATH=$HOME/bin:/usr/local/bin:$PATH
+# export MANPATH="/usr/local/man:$MANPATH"
+
+#█▓▒░ preferred editor for local and remote sessions
+if [[ -n $SSH_CONNECTION ]]; then
+ export EDITOR='vi'
+else
+ export EDITOR='vim'
+fi
+
+#█▓▒░ aliases
+alias workscreen='xrandr --output HDMI1 --left-of LVDS1 --mode 1366x768'
+alias ls='ls --color=auto'
+alias lsla="ls -la --color=auto"
+alias "cd.."="cd ../"
+alias rock="ncmpcpp"
+alias genplaylist="cd ~/music;find . -name '*.mp3' -o -name '*.flac'|sed -e 's%^./%%g' > ~/.mpd/playlists/all.m3u;mpd ~/.mpd/mpd.conf;mpc clear;mpc load all.m3u;mpc update"
+alias matrix="cmatrix -b -s"
+alias pipes="bash ~/code/fun/pipes"
+alias pipesx="bash ~/code/fun/pipesx"
+alias rain="bash ~/code/fun/rain.sh"
+alias invert="xcalib -i -a"
+alias mixer="alsamixer"
+alias xdefaults="xrdb -merge ~/.Xdefaults"
+alias sublime="subl"
+alias tempwatch="while :; do sensors|while read x; do printf '% .23s\n' "$x"; done; sleep 1 && clear; done;"
+alias term='urxvtc -hold -e ' #used for awesomewm run menu
+alias fixcursor='xsetroot -cursor_name left_ptr'
+alias hashcompare='bash ~/code/sys/hash-compare.sh '
+alias apachereload='sudo /etc/init.d/apache2 restart'
+alias checkrootkits='sudo rkhunter --update; sudo rkhunter --propupd; sudo rkhunter --check'
+
+#█▓▒░ ssh
+export SSH_KEY_PATH="~/.ssh/id_rsa"
+
+#█▓▒░ autocompletion systems
+autoload -Uz compinit
+compinit
+
+zstyle ':completion:*' auto-description 'specify: %d'
+zstyle ':completion:*' completer _expand _complete _correct _approximate
+zstyle ':completion:*' format 'Completing %d'
+zstyle ':completion:*' group-name ''
+zstyle ':completion:*' menu select=2 eval "$(dircolors -b)"
+zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
+zstyle ':completion:*' list-colors ''
+zstyle ':completion:*' list-prompt %SAt %p: hit TAB for more, or the character to insert%s
+zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
+zstyle ':completion:*' menu select=long
+zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
+zstyle ':completion:*' use-compctl false
+zstyle ':completion:*' verbose true
+
+zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
+zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
+
+#█▓▒░ allow functions in the prompt
+setopt PROMPT_SUBST
+
+#█▓▒░ autoload zsh functions
+fpath=(~/.zsh/functions $fpath)
+autoload -U ~/.zsh/functions/*(:t)
+
+#█▓▒░ enable auto-execution of functions
+typeset -ga preexec_functions
+typeset -ga precmd_functions
+typeset -ga chpwd_functions
+
+#█▓▒░ append git functions needed for prompt.
+preexec_functions+='preexec_update_git_vars'
+precmd_functions+='precmd_update_git_vars'
+chpwd_functions+='chpwd_update_git_vars'
+
+#█▓▒░ load configs
+for config_file (~/.zsh/*.zsh) source $config_file
+
+#█▓▒░ history
+HISTFILE=~/.zhistory
+setopt APPEND_HISTORY
+HISTSIZE=1200
+SAVEHIST=1000
+setopt HIST_EXPIRE_DUPS_FIRST
+setopt EXTENDED_HISTORY
+setopt SHARE_HISTORY
+
+#█▓▒░ keybindings
+typeset -A key
+key[Home]=${terminfo[khome]}
+key[End]=${terminfo[kend]}
+key[Insert]=${terminfo[kich1]}
+key[Delete]=${terminfo[kdch1]}
+key[Up]=${terminfo[kcuu1]}
+key[Down]=${terminfo[kcud1]}
+key[Left]=${terminfo[kcub1]}
+key[Right]=${terminfo[kcuf1]}
+key[PageUp]=${terminfo[kpp]}
+key[PageDown]=${terminfo[knp]}
+
+# setup key accordingly
+[[ -n "${key[Home]}" ]] && bindkey "${key[Home]}" beginning-of-line
+[[ -n "${key[End]}" ]] && bindkey "${key[End]}" end-of-line
+[[ -n "${key[Insert]}" ]] && bindkey "${key[Insert]}" overwrite-mode
+[[ -n "${key[Delete]}" ]] && bindkey "${key[Delete]}" delete-char
+[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" up-line-or-history
+[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" down-line-or-history
+[[ -n "${key[Left]}" ]] && bindkey "${key[Left]}" backward-char
+[[ -n "${key[Right]}" ]] && bindkey "${key[Right]}" forward-char
+
+#█▓▒░ custom prompts
+
+#█▓▒░dual line
+PROMPT="%F{cyan}┌[%F{white}%n@%M%F{cyan}]─[%F{red}%~%F{cyan}]
+%F{cyan}└─ %F{white}"
+
+#█▓▒░ ninja
+PROMPT="%F{white} ▟▙ %F{red}%~%F $(prompt_git_info) {white}
+▟▒%F{blue}░░░░░░░%F{white}▜▙▜████████████████████████████████▛
+▜▒%F{blue}░░░░░░░%F{white}▟▛▟▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▛
+ ▜▛
+ %F{white}"
+
+#█▓▒░ minial
+grey="%{^[[01;30m%}"
+PROMPT='%F{cyan}[%F{white}%~%F{cyan}]$(prompt_git_info)── -%f '
diff --git a/vim/.vim/autoload/pathogen.vim b/vim/.vim/autoload/pathogen.vim
new file mode 100644
index 0000000..c6d54a1
--- /dev/null
+++ b/vim/.vim/autoload/pathogen.vim
@@ -0,0 +1,344 @@
+" pathogen.vim - path option manipulation
+" Maintainer: Tim Pope <http://tpo.pe/>
+" Version: 2.3
+
+" Install in ~/.vim/autoload (or ~\vimfiles\autoload).
+"
+" For management of individually installed plugins in ~/.vim/bundle (or
+" ~\vimfiles\bundle), adding `execute pathogen#infect()` to the top of your
+" .vimrc is the only other setup necessary.
+"
+" The API is documented inline below.
+
+if exists("g:loaded_pathogen") || &cp
+ finish
+endif
+let g:loaded_pathogen = 1
+
+" Point of entry for basic default usage. Give a relative path to invoke
+" pathogen#interpose() (defaults to "bundle/{}"), or an absolute path to invoke
+" pathogen#surround(). Curly braces are expanded with pathogen#expand():
+" "bundle/{}" finds all subdirectories inside "bundle" inside all directories
+" in the runtime path.
+function! pathogen#infect(...) abort
+ for path in a:0 ? filter(reverse(copy(a:000)), 'type(v:val) == type("")') : ['bundle/{}']
+ if path =~# '^\%({\=[$~\\/]\|{\=\w:[\\/]\).*[{}*]'
+ call pathogen#surround(path)
+ elseif path =~# '^\%([$~\\/]\|\w:[\\/]\)'
+ call s:warn('Change pathogen#infect('.string(path).') to pathogen#infect('.string(path.'/{}').')')
+ call pathogen#surround(path . '/{}')
+ elseif path =~# '[{}*]'
+ call pathogen#interpose(path)
+ else
+ call s:warn('Change pathogen#infect('.string(path).') to pathogen#infect('.string(path.'/{}').')')
+ call pathogen#interpose(path . '/{}')
+ endif
+ endfor
+ call pathogen#cycle_filetype()
+ if pathogen#is_disabled($MYVIMRC)
+ return 'finish'
+ endif
+ return ''
+endfunction
+
+" Split a path into a list.
+function! pathogen#split(path) abort
+ if type(a:path) == type([]) | return a:path | endif
+ if empty(a:path) | return [] | endif
+ let split = split(a:path,'\\\@<!\%(\\\\\)*\zs,')
+ return map(split,'substitute(v:val,''\\\([\\,]\)'',''\1'',"g")')
+endfunction
+
+" Convert a list to a path.
+function! pathogen#join(...) abort
+ if type(a:1) == type(1) && a:1
+ let i = 1
+ let space = ' '
+ else
+ let i = 0
+ let space = ''
+ endif
+ let path = ""
+ while i < a:0
+ if type(a:000[i]) == type([])
+ let list = a:000[i]
+ let j = 0
+ while j < len(list)
+ let escaped = substitute(list[j],'[,'.space.']\|\\[\,'.space.']\@=','\\&','g')
+ let path .= ',' . escaped
+ let j += 1
+ endwhile
+ else
+ let path .= "," . a:000[i]
+ endif
+ let i += 1
+ endwhile
+ return substitute(path,'^,','','')
+endfunction
+
+" Convert a list to a path with escaped spaces for 'path', 'tag', etc.
+function! pathogen#legacyjoin(...) abort
+ return call('pathogen#join',[1] + a:000)
+endfunction
+
+" Turn filetype detection off and back on again if it was already enabled.
+function! pathogen#cycle_filetype() abort
+ if exists('g:did_load_filetypes')
+ filetype off
+ filetype on
+ endif
+endfunction
+
+" Check if a bundle is disabled. A bundle is considered disabled if its
+" basename or full name is included in the list g:pathogen_disabled.
+function! pathogen#is_disabled(path) abort
+ if a:path =~# '\~$'
+ return 1
+ endif
+ let sep = pathogen#slash()
+ let blacklist = get(g:, 'pathogen_blacklist', get(g:, 'pathogen_disabled', [])) + pathogen#split($VIMBLACKLIST)
+ return index(blacklist, fnamemodify(a:path, ':t')) != -1 || index(blacklist, a:path) != -1
+endfunction "}}}1
+
+" Prepend the given directory to the runtime path and append its corresponding
+" after directory. Curly braces are expanded with pathogen#expand().
+function! pathogen#surround(path) abort
+ let sep = pathogen#slash()
+ let rtp = pathogen#split(&rtp)
+ let path = fnamemodify(a:path, ':p:?[\\/]\=$??')
+ let before = filter(pathogen#expand(path), '!pathogen#is_disabled(v:val)')
+ let after = filter(reverse(pathogen#expand(path.sep.'after')), '!pathogen#is_disabled(v:val[0:-7])')
+ call filter(rtp, 'index(before + after, v:val) == -1')
+ let &rtp = pathogen#join(before, rtp, after)
+ return &rtp
+endfunction
+
+" For each directory in the runtime path, add a second entry with the given
+" argument appended. Curly braces are expanded with pathogen#expand().
+function! pathogen#interpose(name) abort
+ let sep = pathogen#slash()
+ let name = a:name
+ if has_key(s:done_bundles, name)
+ return ""
+ endif
+ let s:done_bundles[name] = 1
+ let list = []
+ for dir in pathogen#split(&rtp)
+ if dir =~# '\<after$'
+ let list += reverse(filter(pathogen#expand(dir[0:-6].name.sep.'after'), '!pathogen#is_disabled(v:val[0:-7])')) + [dir]
+ else
+ let list += [dir] + filter(pathogen#expand(dir.sep.name), '!pathogen#is_disabled(v:val)')
+ endif
+ endfor
+ let &rtp = pathogen#join(pathogen#uniq(list))
+ return 1
+endfunction
+
+let s:done_bundles = {}
+
+" Invoke :helptags on all non-$VIM doc directories in runtimepath.
+function! pathogen#helptags() abort
+ let sep = pathogen#slash()
+ for glob in pathogen#split(&rtp)
+ for dir in map(split(glob(glob), "\n"), 'v:val.sep."/doc/".sep')
+ if (dir)[0 : strlen($VIMRUNTIME)] !=# $VIMRUNTIME.sep && filewritable(dir) == 2 && !empty(split(glob(dir.'*.txt'))) && (!filereadable(dir.'tags') || filewritable(dir.'tags'))
+ silent! execute 'helptags' pathogen#fnameescape(dir)
+ endif
+ endfor
+ endfor
+endfunction
+
+command! -bar Helptags :call pathogen#helptags()
+
+" Execute the given command. This is basically a backdoor for --remote-expr.
+function! pathogen#execute(...) abort
+ for command in a:000
+ execute command
+ endfor
+ return ''
+endfunction
+
+" Section: Unofficial
+
+function! pathogen#is_absolute(path) abort
+ return a:path =~# (has('win32') ? '^\%([\\/]\|\w:\)[\\/]\|^[~$]' : '^[/~$]')
+endfunction
+
+" Given a string, returns all possible permutations of comma delimited braced
+" alternatives of that string. pathogen#expand('/{a,b}/{c,d}') yields
+" ['/a/c', '/a/d', '/b/c', '/b/d']. Empty braces are treated as a wildcard
+" and globbed. Actual globs are preserved.
+function! pathogen#expand(pattern) abort
+ if a:pattern =~# '{[^{}]\+}'
+ let [pre, pat, post] = split(substitute(a:pattern, '\(.\{-\}\){\([^{}]\+\)}\(.*\)', "\\1\001\\2\001\\3", ''), "\001", 1)
+ let found = map(split(pat, ',', 1), 'pre.v:val.post')
+ let results = []
+ for pattern in found
+ call extend(results, pathogen#expand(pattern))
+ endfor
+ return results
+ elseif a:pattern =~# '{}'
+ let pat = matchstr(a:pattern, '^.*{}[^*]*\%($\|[\\/]\)')
+ let post = a:pattern[strlen(pat) : -1]
+ return map(split(glob(substitute(pat, '{}', '*', 'g')), "\n"), 'v:val.post')
+ else
+ return [a:pattern]
+ endif
+endfunction
+
+" \ on Windows unless shellslash is set, / everywhere else.
+function! pathogen#slash() abort
+ return !exists("+shellslash") || &shellslash ? '/' : '\'
+endfunction
+
+function! pathogen#separator() abort
+ return pathogen#slash()
+endfunction
+
+" Convenience wrapper around glob() which returns a list.
+function! pathogen#glob(pattern) abort
+ let files = split(glob(a:pattern),"\n")
+ return map(files,'substitute(v:val,"[".pathogen#slash()."/]$","","")')
+endfunction "}}}1
+
+" Like pathogen#glob(), only limit the results to directories.
+function! pathogen#glob_directories(pattern) abort
+ return filter(pathogen#glob(a:pattern),'isdirectory(v:val)')
+endfunction "}}}1
+
+" Remove duplicates from a list.
+function! pathogen#uniq(list) abort
+ let i = 0
+ let seen = {}
+ while i < len(a:list)
+ if (a:list[i] ==# '' && exists('empty')) || has_key(seen,a:list[i])
+ call remove(a:list,i)
+ elseif a:list[i] ==# ''
+ let i += 1
+ let empty = 1
+ else
+ let seen[a:list[i]] = 1
+ let i += 1
+ endif
+ endwhile
+ return a:list
+endfunction
+
+" Backport of fnameescape().
+function! pathogen#fnameescape(string) abort
+ if exists('*fnameescape')
+ return fnameescape(a:string)
+ elseif a:string ==# '-'
+ return '\-'
+ else
+ return substitute(escape(a:string," \t\n*?[{`$\\%#'\"|!<"),'^[+>]','\\&','')
+ endif
+endfunction
+
+" Like findfile(), but hardcoded to use the runtimepath.
+function! pathogen#runtime_findfile(file,count) abort "{{{1
+ let rtp = pathogen#join(1,pathogen#split(&rtp))
+ let file = findfile(a:file,rtp,a:count)
+ if file ==# ''
+ return ''
+ else
+ return fnamemodify(file,':p')
+ endif
+endfunction
+
+" Section: Deprecated
+
+function! s:warn(msg) abort
+ echohl WarningMsg
+ echomsg a:msg
+ echohl NONE
+endfunction
+
+" Prepend all subdirectories of path to the rtp, and append all 'after'
+" directories in those subdirectories. Deprecated.
+function! pathogen#runtime_prepend_subdirectories(path) abort
+ call s:warn('Change pathogen#runtime_prepend_subdirectories('.string(a:path).') to pathogen#infect('.string(a:path.'/{}').')')
+ return pathogen#surround(a:path . pathogen#slash() . '{}')
+endfunction
+
+function! pathogen#incubate(...) abort
+ let name = a:0 ? a:1 : 'bundle/{}'
+ call s:warn('Change pathogen#incubate('.(a:0 ? string(a:1) : '').') to pathogen#infect('.string(name).')')
+ return pathogen#interpose(name)
+endfunction
+
+" Deprecated alias for pathogen#interpose().
+function! pathogen#runtime_append_all_bundles(...) abort
+ if a:0
+ call s:warn('Change pathogen#runtime_append_all_bundles('.string(a:1).') to pathogen#infect('.string(a:1.'/{}').')')
+ else
+ call s:warn('Change pathogen#runtime_append_all_bundles() to pathogen#infect()')
+ endif
+ return pathogen#interpose(a:0 ? a:1 . '/{}' : 'bundle/{}')
+endfunction
+
+if exists(':Vedit')
+ finish
+endif
+
+let s:vopen_warning = 0
+
+function! s:find(count,cmd,file,lcd)
+ let rtp = pathogen#join(1,pathogen#split(&runtimepath))
+ let file = pathogen#runtime_findfile(a:file,a:count)
+ if file ==# ''
+ return "echoerr 'E345: Can''t find file \"".a:file."\" in runtimepath'"
+ endif
+ if !s:vopen_warning
+ let s:vopen_warning = 1
+ let warning = '|echohl WarningMsg|echo "Install scriptease.vim to continue using :V'.a:cmd.'"|echohl NONE'
+ else
+ let warning = ''
+ endif
+ if a:lcd
+ let path = file[0:-strlen(a:file)-2]
+ execute 'lcd `=path`'
+ return a:cmd.' '.pathogen#fnameescape(a:file) . warning
+ else
+ return a:cmd.' '.pathogen#fnameescape(file) . warning
+ endif
+endfunction
+
+function! s:Findcomplete(A,L,P)
+ let sep = pathogen#slash()
+ let cheats = {
+ \'a': 'autoload',
+ \'d': 'doc',
+ \'f': 'ftplugin',
+ \'i': 'indent',
+ \'p': 'plugin',
+ \'s': 'syntax'}
+ if a:A =~# '^\w[\\/]' && has_key(cheats,a:A[0])
+ let request = cheats[a:A[0]].a:A[1:-1]
+ else
+ let request = a:A
+ endif
+ let pattern = substitute(request,'/\|\'.sep,'*'.sep,'g').'*'
+ let found = {}
+ for path in pathogen#split(&runtimepath)
+ let path = expand(path, ':p')
+ let matches = split(glob(path.sep.pattern),"\n")
+ call map(matches,'isdirectory(v:val) ? v:val.sep : v:val')
+ call map(matches,'expand(v:val, ":p")[strlen(path)+1:-1]')
+ for match in matches
+ let found[match] = 1
+ endfor
+ endfor
+ return sort(keys(found))
+endfunction
+
+command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Ve :execute s:find(<count>,'edit<bang>',<q-args>,0)
+command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vedit :execute s:find(<count>,'edit<bang>',<q-args>,0)
+command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vopen :execute s:find(<count>,'edit<bang>',<q-args>,1)
+command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vsplit :execute s:find(<count>,'split',<q-args>,<bang>1)
+command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vvsplit :execute s:find(<count>,'vsplit',<q-args>,<bang>1)
+command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vtabedit :execute s:find(<count>,'tabedit',<q-args>,<bang>1)
+command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vpedit :execute s:find(<count>,'pedit',<q-args>,<bang>1)
+command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vread :execute s:find(<count>,'read',<q-args>,<bang>1)
+
+" vim:set et sw=2 foldmethod=expr foldexpr=getline(v\:lnum)=~'^\"\ Section\:'?'>1'\:getline(v\:lnum)=~#'^fu'?'a1'\:getline(v\:lnum)=~#'^endf'?'s1'\:'=':
diff --git a/vim/.vim/bundle/colorizer/Makefile b/vim/.vim/bundle/colorizer/Makefile
new file mode 100644
index 0000000..7f91e3b
--- /dev/null
+++ b/vim/.vim/bundle/colorizer/Makefile
@@ -0,0 +1,12 @@
+.PHONY: all clean install uninstall
+DOTVIM=$(HOME)/.vim
+FILES=plugin/colorizer.vim autoload/colorizer.vim
+
+all:
+ @echo "Available phony targets: install, uninstall"
+
+install:
+ for f in $(FILES); do install -m644 $$f $(DOTVIM)/$$f; done
+
+uninstall:
+ rm -f $(FILES)
diff --git a/vim/.vim/bundle/colorizer/README.mkd b/vim/.vim/bundle/colorizer/README.mkd
new file mode 100644
index 0000000..f8c4598
--- /dev/null
+++ b/vim/.vim/bundle/colorizer/README.mkd
@@ -0,0 +1,7 @@
+A Vim plugin to colorize all text in the form #rrggbb or #rgb. See the comment at the beginning of the [plugin](https://github.com/lilydjwg/colorizer/tree/master/plugin/colorizer.vim) for more.
+
+![screenshot](https://github.com/lilydjwg/colorizer/raw/master/screenshot.png)
+
+The `Makefile` is used to quickly install/uninstall the script.
+
+[colorizer.vim on vim.org](http://www.vim.org/scripts/script.php?script_id=3567)
diff --git a/vim/.vim/bundle/colorizer/autoload/colorizer.vim b/vim/.vim/bundle/colorizer/autoload/colorizer.vim
new file mode 100644
index 0000000..985c9f7
--- /dev/null
+++ b/vim/.vim/bundle/colorizer/autoload/colorizer.vim
@@ -0,0 +1,377 @@
+" colorizer.vim Colorize all text in the form #rrggbb or #rgb; autoload functions
+" Maintainer: lilydjwg <lilydjwg@gmail.com>
+" Version: 1.4.1
+" License: Vim License (see vim's :help license)
+"
+" See plugin/colorizer.vim for more info.
+
+let s:keepcpo = &cpo
+set cpo&vim
+
+function! s:FGforBG(bg) "{{{1
+ " takes a 6hex color code and returns a matching color that is visible
+ let pure = substitute(a:bg,'^#','','')
+ let r = str2nr(pure[0:1], 16)
+ let g = str2nr(pure[2:3], 16)
+ let b = str2nr(pure[4:5], 16)
+ let fgc = g:colorizer_fgcontrast
+ if r*30 + g*59 + b*11 > 12000
+ return s:predefined_fgcolors['dark'][fgc]
+ else
+ return s:predefined_fgcolors['light'][fgc]
+ end
+endfunction
+
+function! s:Rgb2xterm(color) "{{{1
+ " selects the nearest xterm color for a rgb value like #FF0000
+ let best_match=0
+ let smallest_distance = 10000000000
+ let r = str2nr(a:color[0:1], 16)
+ let g = str2nr(a:color[2:3], 16)
+ let b = str2nr(a:color[4:5], 16)
+ let colortable = s:GetXterm2rgbTable()
+ for c in range(0,254)
+ let d = pow(colortable[c][0]-r,2) + pow(colortable[c][1]-g,2) + pow(colortable[c][2]-b,2)
+ if d<smallest_distance
+ let smallest_distance = d
+ let best_match = c
+ endif
+ endfor
+ return best_match
+endfunction
+
+"" the 6 value iterations in the xterm color cube {{{1
+let s:valuerange = [0x00, 0x5F, 0x87, 0xAF, 0xD7, 0xFF]
+
+"" 16 basic colors {{{1
+let s:basic16 = [
+ \ [0x00, 0x00, 0x00], [0xCD, 0x00, 0x00],
+ \ [0x00, 0xCD, 0x00], [0xCD, 0xCD, 0x00],
+ \ [0x00, 0x00, 0xEE], [0xCD, 0x00, 0xCD],
+ \ [0x00, 0xCD, 0xCD], [0xE5, 0xE5, 0xE5],
+ \ [0x7F, 0x7F, 0x7F], [0xFF, 0x00, 0x00],
+ \ [0x00, 0xFF, 0x00], [0xFF, 0xFF, 0x00],
+ \ [0x5C, 0x5C, 0xFF], [0xFF, 0x00, 0xFF],
+ \ [0x00, 0xFF, 0xFF], [0xFF, 0xFF, 0xFF]]
+
+function! s:Xterm2rgb(color) "{{{1
+ " 16 basic colors
+ let r = 0
+ let g = 0
+ let b = 0
+ if a:color<16
+ let r = s:basic16[a:color][0]
+ let g = s:basic16[a:color][1]
+ let b = s:basic16[a:color][2]
+ endif
+
+ " color cube color
+ if a:color>=16 && a:color<=232
+ let l:color=a:color-16
+ let r = s:valuerange[(l:color/36)%6]
+ let g = s:valuerange[(l:color/6)%6]
+ let b = s:valuerange[l:color%6]
+ endif
+
+ " gray tone
+ if a:color>=233 && a:color<=253
+ let r=8+(a:color-232)*0x0a
+ let g=r
+ let b=r
+ endif
+ let rgb=[r,g,b]
+ return rgb
+endfunction
+
+function! s:SetMatcher(color, pat) "{{{1
+ " "color" is the converted color and "pat" is what to highlight
+ let group = 'Color' . strpart(a:color, 1)
+ if !hlexists(group) || s:force_group_update
+ let fg = g:colorizer_fgcontrast < 0 ? a:color : s:FGforBG(a:color)
+ if &t_Co == 256
+ exe 'hi '.group.' ctermfg='.s:Rgb2xterm(fg).' ctermbg='.s:Rgb2xterm(a:color)
+ endif
+ " Always set gui* as user may switch to GUI version and it's cheap
+ exe 'hi '.group.' guifg='.fg.' guibg='.a:color
+ endif
+ if !exists("w:colormatches[a:pat]")
+ let w:colormatches[a:pat] = matchadd(group, a:pat)
+ endif
+endfunction
+
+"ColorFinders {{{1
+function! s:HexCode(str, lineno) "{{{2
+ let ret = []
+ let place = 0
+ let colorpat = '#[0-9A-Fa-f]\{3\}\>\|#[0-9A-Fa-f]\{6\}\>'
+ while 1
+ let foundcolor = matchstr(a:str, colorpat, place)
+ if foundcolor == ''
+ break
+ endif
+ let place = matchend(a:str, colorpat, place)
+ let pat = foundcolor . '\>'
+ if len(foundcolor) == 4
+ let foundcolor = substitute(foundcolor, '[[:xdigit:]]', '&&', 'g')
+ endif
+ call add(ret, [foundcolor, pat])
+ endwhile
+ return ret
+endfunction
+
+function! s:RgbColor(str, lineno) "{{{2
+ let ret = []
+ let place = 0
+ let colorpat = '\<rgb(\v\s*(\d+(\%)?)\s*,\s*(\d+%(\2))\s*,\s*(\d+%(\2))\s*\)'
+ while 1
+ let foundcolor = matchlist(a:str, colorpat, place)
+ if empty(foundcolor)
+ break
+ endif
+ let place = matchend(a:str, colorpat, place)
+ if foundcolor[2] == '%'
+ let r = foundcolor[1] * 255 / 100
+ let g = foundcolor[3] * 255 / 100
+ let b = foundcolor[4] * 255 / 100
+ else
+ let r = foundcolor[1]
+ let g = foundcolor[3]
+ let b = foundcolor[4]
+ endif
+ if r > 255 || g > 255 || b > 255
+ break
+ endif
+ let pat = printf('\<rgb(\v\s*%s\s*,\s*%s\s*,\s*%s\s*\)', foundcolor[1], foundcolor[3], foundcolor[4])
+ if foundcolor[2] == '%'
+ let pat = substitute(pat, '%', '\\%', 'g')
+ endif
+ let l:color = printf('#%02x%02x%02x', r, g, b)
+ call add(ret, [l:color, pat])
+ endwhile
+ return ret
+endfunction
+
+function! s:RgbaColor(str, lineno) "{{{2
+ if has("gui_running")
+ let bg = synIDattr(synIDtrans(hlID("Normal")), "bg")
+ let bg_r = str2nr(bg[1].bg[2], 16)
+ let bg_g = str2nr(bg[3].bg[4], 16)
+ let bg_b = str2nr(bg[5].bg[6], 16)
+ else
+ " translucent colors would display incorrectly, so ignore the alpha value
+ return s:RgbaColorForTerm(a:str, a:lineno)
+ endif
+ let ret = []
+ let place = 0
+ let colorpat = '\<rgba(\v\s*(\d+(\%)?)\s*,\s*(\d+%(\2))\s*,\s*(\d+%(\2))\s*,\s*(-?[.[:digit:]]+)\s*\)'
+ while 1
+ let foundcolor = matchlist(a:str, colorpat, place)
+ if empty(foundcolor)
+ break
+ endif
+ let place = matchend(a:str, colorpat, place)
+ if foundcolor[2] == '%'
+ let ar = foundcolor[1] * 255 / 100
+ let ag = foundcolor[3] * 255 / 100
+ let ab = foundcolor[4] * 255 / 100
+ else
+ let ar = foundcolor[1]
+ let ag = foundcolor[3]
+ let ab = foundcolor[4]
+ endif
+ if ar > 255 || ag > 255 || ab > 255
+ break
+ endif
+ let alpha = str2float(foundcolor[5])
+ if alpha < 0
+ let alpha = 0.0
+ elseif alpha > 1
+ let alpha = 1.0
+ endif
+ let pat = printf('\<rgba(\v\s*%s\s*,\s*%s\s*,\s*%s\s*,\s*%s0*\s*\)', foundcolor[1], foundcolor[3], foundcolor[4], foundcolor[5])
+ if foundcolor[2] == '%'
+ let pat = substitute(pat, '%', '\\%', 'g')
+ endif
+ let r = float2nr(ceil(ar * alpha) + ceil(bg_r * (1 - alpha)))
+ let g = float2nr(ceil(ag * alpha) + ceil(bg_g * (1 - alpha)))
+ let b = float2nr(ceil(ab * alpha) + ceil(bg_b * (1 - alpha)))
+ if r > 255
+ let r = 255
+ endif
+ if g > 255
+ let g = 255
+ endif
+ if b > 255
+ let b = 255
+ endif
+ let l:color = printf('#%02x%02x%02x', r, g, b)
+ call add(ret, [l:color, pat])
+ endwhile
+ return ret
+endfunction
+
+function! s:RgbaColorForTerm(str, lineno) "{{{2
+ let ret = []
+ let place = 0
+ let colorpat = '\<rgba(\v\s*(\d+(\%)?)\s*,\s*(\d+%(\2))\s*,\s*(\d+%(\2))\s*,\s*(-?[.[:digit:]]+)\s*\)'
+ while 1
+ let foundcolor = matchlist(a:str, colorpat, place)
+ if empty(foundcolor)
+ break
+ endif
+ let place = matchend(a:str, colorpat, place)
+ if foundcolor[2] == '%'
+ let ar = foundcolor[1] * 255 / 100
+ let ag = foundcolor[3] * 255 / 100
+ let ab = foundcolor[4] * 255 / 100
+ else
+ let ar = foundcolor[1]
+ let ag = foundcolor[3]
+ let ab = foundcolor[4]
+ endif
+ if ar > 255 || ag > 255 || ab > 255
+ break
+ endif
+ let pat = printf('\<rgba(\v\s*%s\s*,\s*%s\s*,\s*%s\s*,\ze\s*(-?[.[:digit:]]+)\s*\)', foundcolor[1], foundcolor[3], foundcolor[4])
+ if foundcolor[2] == '%'
+ let pat = substitute(pat, '%', '\\%', 'g')
+ endif
+ let l:color = printf('#%02x%02x%02x', ar, ag, ab)
+ call add(ret, [l:color, pat])
+ endwhile
+ return ret
+endfunction
+
+function! s:PreviewColorInLine(where) "{{{1
+ let line = getline(a:where)
+ for Func in s:ColorFinder
+ let ret = Func(line, a:where)
+ " returned a list of a list: color as #rrggbb, text pattern to highlight
+ for r in ret
+ call s:SetMatcher(r[0], r[1])
+ endfor
+ endfor
+endfunction
+
+function! s:CursorMoved() "{{{1
+ if !exists('w:colormatches')
+ return
+ endif
+ if exists('b:colorizer_last_update')
+ if b:colorizer_last_update == b:changedtick
+ " Nothing changed
+ return
+ endif
+ endif
+ call s:PreviewColorInLine('.')
+ let b:colorizer_last_update = b:changedtick
+endfunction
+
+function! s:TextChanged() "{{{1
+ if !exists('w:colormatches')
+ return
+ endif
+ echomsg "TextChanged"
+ call s:PreviewColorInLine('.')
+endfunction
+
+function! colorizer#ColorHighlight(update, ...) "{{{1
+ if exists('w:colormatches')
+ if !a:update
+ return
+ endif
+ call s:ClearMatches()
+ endif
+ let w:colormatches = {}
+ if g:colorizer_fgcontrast != s:saved_fgcontrast || (exists("a:1") && a:1 == '!')
+ let s:force_group_update = 1
+ endif
+ for i in range(1, line("$"))
+ call s:PreviewColorInLine(i)
+ endfor
+ let s:force_group_update = 0
+ let s:saved_fgcontrast = g:colorizer_fgcontrast
+ augroup Colorizer
+ au!
+ if exists('##TextChanged')
+ autocmd TextChanged * silent call s:TextChanged()
+ if v:version > 704 || v:version == 704 && has('patch143')
+ autocmd TextChangedI * silent call s:TextChanged()
+ else
+ " TextChangedI does not work as expected
+ autocmd CursorMovedI * silent call s:CursorMoved()
+ endif
+ else
+ autocmd CursorMoved,CursorMovedI * silent call s:CursorMoved()
+ endif
+ " rgba handles differently, so need updating
+ autocmd GUIEnter * silent call colorizer#ColorHighlight(1)
+ autocmd BufRead * silent call colorizer#ColorHighlight(1)
+ autocmd WinEnter * silent call colorizer#ColorHighlight(1)
+ autocmd ColorScheme * let s:force_group_update=1 | silent call colorizer#ColorHighlight(1)
+ augroup END
+endfunction
+
+function! colorizer#ColorClear() "{{{1
+ augroup Colorizer
+ au!
+ augroup END
+ let save_tab = tabpagenr()
+ let save_win = winnr()
+ tabdo windo call s:ClearMatches()
+ exe 'tabn '.save_tab
+ exe save_win . 'wincmd w'
+endfunction
+
+function! s:ClearMatches() "{{{1
+ if !exists('w:colormatches')
+ return
+ endif
+ for i in values(w:colormatches)
+ call matchdelete(i)
+ endfor
+ unlet w:colormatches
+endfunction
+
+function! colorizer#ColorToggle() "{{{1
+ if exists('#Colorizer#BufRead')
+ call colorizer#ColorClear()
+ echomsg 'Disabled color code highlighting.'
+ else
+ call colorizer#ColorHighlight(0)
+ echomsg 'Enabled color code highlighting.'
+ endif
+endfunction
+
+function! s:GetXterm2rgbTable()
+ if !exists('s:table_xterm2rgb')
+ let s:table_xterm2rgb = []
+ for c in range(0, 254)
+ let s:color = s:Xterm2rgb(c)
+ call add(s:table_xterm2rgb, s:color)
+ endfor
+ endif
+ return s:table_xterm2rgb
+endfun
+
+" Setups {{{1
+let s:ColorFinder = [function('s:HexCode'), function('s:RgbColor'), function('s:RgbaColor')]
+let s:force_group_update = 0
+let s:predefined_fgcolors = {}
+let s:predefined_fgcolors['dark'] = ['#444444', '#222222', '#000000']
+let s:predefined_fgcolors['light'] = ['#bbbbbb', '#dddddd', '#ffffff']
+if !exists("g:colorizer_fgcontrast")
+ " Default to black / white
+ let g:colorizer_fgcontrast = len(s:predefined_fgcolors['dark']) - 1
+elseif g:colorizer_fgcontrast >= len(s:predefined_fgcolors['dark'])
+ echohl WarningMsg
+ echo "g:colorizer_fgcontrast value invalid, using default"
+ echohl None
+ let g:colorizer_fgcontrast = len(s:predefined_fgcolors['dark']) - 1
+endif
+let s:saved_fgcontrast = g:colorizer_fgcontrast
+
+" Restoration and modelines {{{1
+let &cpo = s:keepcpo
+unlet s:keepcpo
+" vim:ft=vim:fdm=marker:fmr={{{,}}}:
diff --git a/vim/.vim/bundle/colorizer/plugin/colorizer.vim b/vim/.vim/bundle/colorizer/plugin/colorizer.vim
new file mode 100644
index 0000000..431098c
--- /dev/null
+++ b/vim/.vim/bundle/colorizer/plugin/colorizer.vim
@@ -0,0 +1,62 @@
+" colorizer.vim Colorize all text in the form #rrggbb or #rgb; entrance
+" Maintainer: lilydjwg <lilydjwg@gmail.com>
+" Version: 1.4.1
+" Licence: Vim license. See ':help license'
+" Derived From: css_color.vim
+" http://www.vim.org/scripts/script.php?script_id=2150
+" Thanks To: Niklas Hofer (Author of css_color.vim), Ingo Karkat, rykka,
+" KrzysztofUrban, blueyed, shanesmith, UncleBill
+" Usage:
+"
+" This plugin defines three commands:
+"
+" ColorHighlight - start/update highlighting
+" ColorClear - clear all highlights
+" ColorToggle - toggle highlights
+"
+" By default, <leader>tc is mapped to ColorToggle. If you want to use another
+" key map, do like this:
+" nmap ,tc <Plug>Colorizer
+"
+" If you want completely not to map it, set the following in your vimrc:
+" let g:colorizer_nomap = 1
+"
+" To use solid color highlight, set this in your vimrc (later change won't
+" probably take effect unless you use ':ColorHighlight!' to force update):
+" let g:colorizer_fgcontrast = -1
+" set it to 0 or 1 to use a softened foregroud color.
+"
+" If you don't want to enable colorizer at startup, set the following:
+" let g:colorizer_startup = 0
+"
+" Note: if you modify a color string in normal mode, if the cursor is still on
+" that line, it'll take 'updatetime' seconds to update. You can use
+" :ColorHighlight (or your key mapping) again to force update.
+"
+" Performace Notice: In terminal, it may take several seconds to highlight 240
+" different colors. GUI version is much quicker.
+
+" Reload guard and 'compatible' handling {{{1
+if exists("loaded_colorizer") || v:version < 700 || !(has("gui_running") || &t_Co == 256)
+ finish
+endif
+let loaded_colorizer = 1
+
+let s:save_cpo = &cpo
+set cpo&vim
+
+"Define commands {{{1
+command! -bar -bang ColorHighlight call colorizer#ColorHighlight(1, "<bang>")
+command! -bar ColorClear call colorizer#ColorClear()
+command! -bar ColorToggle call colorizer#ColorToggle()
+nnoremap <silent> <Plug>Colorizer :ColorToggle<CR>
+if !hasmapto("<Plug>Colorizer") && (!exists("g:colorizer_nomap") || g:colorizer_nomap == 0)
+ nmap <unique> <Leader>tc <Plug>Colorizer
+endif
+if !exists('g:colorizer_startup') || g:colorizer_startup
+ call colorizer#ColorHighlight(0)
+endif
+
+" Cleanup and modelines {{{1
+let &cpo = s:save_cpo
+" vim:ft=vim:fdm=marker:fmr={{{,}}}:
diff --git a/vim/.vim/bundle/colorizer/screenshot.png b/vim/.vim/bundle/colorizer/screenshot.png
new file mode 100644
index 0000000..e400ea2
--- /dev/null
+++ b/vim/.vim/bundle/colorizer/screenshot.png
Binary files differ
diff --git a/vim/.vim/bundle/indentLine/.gitattributes b/vim/.vim/bundle/indentLine/.gitattributes
new file mode 100644
index 0000000..412eeda
--- /dev/null
+++ b/vim/.vim/bundle/indentLine/.gitattributes
@@ -0,0 +1,22 @@
+# Auto detect text files and perform LF normalization
+* text=auto
+
+# Custom for Visual Studio
+*.cs diff=csharp
+*.sln merge=union
+*.csproj merge=union
+*.vbproj merge=union
+*.fsproj merge=union
+*.dbproj merge=union
+
+# Standard to msysgit
+*.doc diff=astextplain
+*.DOC diff=astextplain
+*.docx diff=astextplain
+*.DOCX diff=astextplain
+*.dot diff=astextplain
+*.DOT diff=astextplain
+*.pdf diff=astextplain
+*.PDF diff=astextplain
+*.rtf diff=astextplain
+*.RTF diff=astextplain
diff --git a/vim/.vim/bundle/indentLine/.gitignore b/vim/.vim/bundle/indentLine/.gitignore
new file mode 100644
index 0000000..5ebd21a
--- /dev/null
+++ b/vim/.vim/bundle/indentLine/.gitignore
@@ -0,0 +1,163 @@
+#################
+## Eclipse
+#################
+
+*.pydevproject
+.project
+.metadata
+bin/
+tmp/
+*.tmp
+*.bak
+*.swp
+*~.nib
+local.properties
+.classpath
+.settings/
+.loadpath
+
+# External tool builders
+.externalToolBuilders/
+
+# Locally stored "Eclipse launch configurations"
+*.launch
+
+# CDT-specific
+.cproject
+
+# PDT-specific
+.buildpath
+
+
+#################
+## Visual Studio
+#################
+
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+
+# User-specific files
+*.suo
+*.user
+*.sln.docstates
+
+# Build results
+[Dd]ebug/
+[Rr]elease/
+*_i.c
+*_p.c
+*.ilk
+*.meta
+*.obj
+*.pch
+*.pdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.vspscc
+.builds
+*.dotCover
+
+## TODO: If you have NuGet Package Restore enabled, uncomment this
+#packages/
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opensdf
+*.sdf
+
+# Visual Studio profiler
+*.psess
+*.vsp
+
+# ReSharper is a .NET coding add-in
+_ReSharper*
+
+# Installshield output folder
+[Ee]xpress
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish
+
+# Others
+[Bb]in
+[Oo]bj
+sql
+TestResults
+*.Cache
+ClientBin
+stylecop.*
+~$*
+*.dbmdl
+Generated_Code #added for RIA/Silverlight projects
+
+# Backup & report files from converting an old project file to a newer
+# Visual Studio version. Backup files are not needed, because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+
+
+
+############
+## Windows
+############
+
+# Windows image file caches
+Thumbs.db
+
+# Folder config file
+Desktop.ini
+
+
+#############
+## Python
+#############
+
+*.py[co]
+
+# Packages
+*.egg
+*.egg-info
+dist
+build
+eggs
+parts
+bin
+var
+sdist
+develop-eggs
+.installed.cfg
+
+# Installer logs
+pip-log.txt
+
+# Unit test / coverage reports
+.coverage
+.tox
+
+#Translations
+*.mo
+
+#Mr Developer
+.mr.developer.cfg
+
+# Mac crap
+.DS_Store
diff --git a/vim/.vim/bundle/indentLine/README.md b/vim/.vim/bundle/indentLine/README.md
new file mode 100644
index 0000000..c15f359
--- /dev/null
+++ b/vim/.vim/bundle/indentLine/README.md
@@ -0,0 +1,34 @@
+indentLine
+==========
+
+This plugin is used for displaying thin vertical lines at each indentation level for code indented with spaces. For code indented with tabs I think there is no need to support it, because you can use `:set list lcs=tab:\|\ ` (here is a space).
+
+## Requirements
+This plugin takes advantage of the newly provided `conceal` feature in Vim 7.3, so this plugin will not work with lower versions of Vim.
+
+## Installation
+To install the plugin just put the plugin files in your `~/.vim` (Linux) or `~/vimfiles` (Windows).
+
+If you use a plugin manager you can put the whole directory into your `~/.vim/bundle/` directory ([Pathogen][pathogen]) or add the line `Bundle 'Yggdroot/indentLine'` to your `.vimrc` ([Vundle][vundle]).
+
+## Customization
+You can change the color of indentLines:
+for Vim, set `g:indentLine_color_term` in your `.vimrc`, e.g. `let g:indentLine_color_term = 239`,
+for GVim, set `g:indentLine_color_gui` in your `.vimrc`, e.g. `let g:indentLine_color_gui = '#A4E57E'`
+for none X terminal, set `g:indentLine_color_tty_light` and `g:indentLine_color_tty_dark` in your `.vimrc`. e.g. `let g:indentLine_color_tty_light = 7`(default: 4), `let g:indentLine_color_dark = 1`(default: 2).
+
+You can also change the indentLine char:
+for both Vim and GVim, set `let g:indentLine_char = 'c'` where `'c'` can be any ASCII character. You can also use one of `¦`, `┆` or `│` to display more beautiful lines. However, these characters will only work with files whose encoding is UTF-8.
+
+## Self promotion
+If you think this script is helpful, follow the [GitHub repository][repository], and don't forget to vote for it on Vim.org! ([vimscript #4354][script]).
+
+[pathogen]: https://github.com/tpope/vim-pathogen
+[vundle]: https://github.com/gmarik/vundle
+[repository]: https://github.com/Yggdroot/indentLine
+[script]: http://www.vim.org/scripts/script.php?script_id=4354
+
+
+## Screenshots
+![Screenshot](http://i.imgur.com/KVi0T.jpg)
+
diff --git a/vim/.vim/bundle/indentLine/after/plugin/indentLine.vim b/vim/.vim/bundle/indentLine/after/plugin/indentLine.vim
new file mode 100644
index 0000000..fc78278
--- /dev/null
+++ b/vim/.vim/bundle/indentLine/after/plugin/indentLine.vim
@@ -0,0 +1,166 @@
+" Script Name: indentLine.vim
+" Author: Yggdroot <archofortune@gmail.com>
+"
+" Description: To show the indention levels with thin vertical lines
+
+scriptencoding utf-8
+
+if ! has("conceal") || exists("g:indentLine_loaded")
+ finish
+endif
+let g:indentLine_loaded = 1
+
+
+let g:indentLine_char = get(g:,'indentLine_char',(&encoding is# "utf-8" && &term isnot# "linux" ? '¦' : '|'))
+let g:indentLine_first_char = get(g:,'indentLine_first_char',(&encoding is# "utf-8" && &term isnot# "linux" ? '¦' : '|'))
+let g:indentLine_indentLevel = get(g:,'indentLine_indentLevel',10)
+let g:indentLine_enabled = get(g:,'indentLine_enabled',1)
+let g:indentLine_fileType = get(g:,'indentLine_fileType',[])
+let g:indentLine_fileTypeExclude = get(g:,'indentLine_fileTypeExclude',[])
+let g:indentLine_bufNameExclude = get(g:,'indentLine_bufNameExclude',[])
+let g:indentLine_showFirstIndentLevel = get(g:,'indentLine_showFirstIndentLevel',0)
+let g:indentLine_maxLines = get(g:,'indentLine_maxLines',3000)
+let g:indentLine_setColors = get(g:,'indentLine_setColors',1)
+let g:indentLine_faster = get(g:,'indentLine_faster',0)
+
+"{{{1 function! s:InitColor()
+function! s:InitColor()
+ if ! g:indentLine_setColors
+ return
+ endif
+
+ if ! exists("g:indentLine_color_term")
+ if &background is# "light"
+ let term_color = 249
+ else
+ let term_color = 239
+ endif
+ else
+ let term_color = g:indentLine_color_term
+ endif
+
+ if ! exists("g:indentLine_color_gui")
+ if &background is# "light"
+ let gui_color = "Grey70"
+ else
+ let gui_color = "Grey30"
+ endif
+ else
+ let gui_color = g:indentLine_color_gui
+ endif
+
+ execute "highlight Conceal ctermfg=" . term_color . " ctermbg=NONE"
+ execute "highlight Conceal guifg=" . gui_color . " guibg=NONE"
+
+ if &term is# "linux"
+ if &background is# "light"
+ let tty_color = exists("g:indentLine_color_tty_light") ? g:indentLine_color_tty_light : 4
+ else
+ let tty_color = exists("g:indentLine_color_tty_dark") ? g:indentLine_color_tty_dark : 2
+ endif
+ execute "highlight Conceal cterm=bold ctermfg=" . tty_color . " ctermbg=NONE"
+ endif
+endfunction
+
+"{{{1 function! s:SetIndentLine()
+function! s:SetIndentLine()
+ let b:indentLine_enabled = 1
+ let space = &l:shiftwidth is 0 ? &l:tabstop : &l:shiftwidth
+
+ if g:indentLine_showFirstIndentLevel
+ execute 'syntax match IndentLine /^ / containedin=ALL conceal cchar=' . g:indentLine_first_char
+ endif
+
+ if g:indentLine_faster
+ execute 'syntax match IndentLineSpace /^\s\+/ containedin=ALL contains=IndentLine'
+ execute 'syntax match IndentLine / \{'.(space-1).'}\zs / contained conceal cchar=' . g:indentLine_char
+ execute 'syntax match IndentLine /\t\zs / contained conceal cchar=' . g:indentLine_char
+ else
+ let pattern = line('$') < g:indentLine_maxLines ? 'v' : 'c'
+ for i in range(space+1, space * g:indentLine_indentLevel + 1, space)
+ execute 'syntax match IndentLine /\%(^\s\+\)\@<=\%'.i.pattern.' / containedin=ALL conceal cchar=' . g:indentLine_char
+ endfor
+ endif
+endfunction
+
+"{{{1 function! s:ResetWidth(...)
+function! s:ResetWidth(...)
+ if 0 < a:0
+ let &l:shiftwidth = a:1
+ endif
+
+ if exists("b:indentLine_enabled")
+ syntax clear IndentLine
+ endif
+ call s:SetIndentLine()
+endfunction
+
+"{{{1 function! s:IndentLinesToggle()
+function! s:IndentLinesToggle()
+ if ! exists("b:indentLine_enabled")
+ let b:indentLine_enabled = 0
+ endif
+
+ if b:indentLine_enabled
+ let b:indentLine_enabled = 0
+ syntax clear IndentLine
+ else
+ call s:SetIndentLine()
+ endif
+endfunction
+
+"{{{1 function! s:Setup()
+function! s:Setup()
+ if index(g:indentLine_fileTypeExclude, &filetype) isnot -1
+ return
+ endif
+
+ if len(g:indentLine_fileType) isnot 0 && index(g:indentLine_fileType, &filetype) is -1
+ return
+ end
+
+ for name in g:indentLine_bufNameExclude
+ if matchstr(bufname(''), name) is bufname('')
+ return
+ endif
+ endfor
+
+ if ! exists("b:indentLine_bufNr")
+ let b:indentLine_bufNr = bufnr('%')
+ let g:indentLine_bufNr = bufnr('%')
+ elseif g:indentLine_bufNr != bufnr('%') && &hidden
+ let g:indentLine_bufNr = bufnr('%')
+ return
+ endif
+
+ if ! exists("g:indentLine_noConcealCursor")
+ setlocal concealcursor=inc
+ endif
+ setlocal conceallevel=2
+
+ if &filetype is# ""
+ call s:InitColor()
+ endif
+
+ if ! exists("b:indentLine_enabled")
+ let b:indentLine_enabled = g:indentLine_enabled
+ endif
+
+ if b:indentLine_enabled
+ call s:SetIndentLine()
+ endif
+endfunction
+
+"{{{1 augroup indentLine
+augroup indentLine
+ autocmd!
+ autocmd BufWinEnter * call <SID>Setup()
+ autocmd BufRead,BufNewFile,ColorScheme * call <SID>InitColor()
+augroup END
+
+"{{{1 commands
+command! -nargs=? IndentLinesReset call <SID>ResetWidth(<f-args>)
+command! IndentLinesToggle call <SID>IndentLinesToggle()
+
+" vim:et:ts=4:sw=4:fdm=marker:fmr={{{,}}}
+
diff --git a/vim/.vim/bundle/indentLine/doc/indentLine.txt b/vim/.vim/bundle/indentLine/doc/indentLine.txt
new file mode 100644
index 0000000..82db783
--- /dev/null
+++ b/vim/.vim/bundle/indentLine/doc/indentLine.txt
@@ -0,0 +1,143 @@
+*indentLine.txt* Show vertical lines for indent with conceal feature
+
+CONTENTS *indentLine-contents*
+Introduction |indentLine-introduction|
+Config |indentLine-config|
+Variables |indentLine-variables|
+Commands |indentLine-commands|
+FAQ |indentLine-faq|
+Changelog |indentLine-changelog|
+Credits |indentLine-credits|
+==============================================================================
+INTRODUCTION *indentLine-introduction*
+This plugin is used for displaying thin vertical lines at each indentation
+level for code indented with spaces. For code indented with tabs, I think
+there is no need to support it, using :set list lcs=tab:\|\ (here is a space)
+can achieve it.
+==============================================================================
+CONFIG *indentLine-config*
+
+==============================================================================
+VARIABLES *indentLine-variables*
+
+g:indentLine_loaded *g:loaded_indentLine*
+ Whether load indentLine plugin.
+ Default value is 0.
+
+g:indentLine_char *g:indentLine_char*
+ Specify a character to be used as indent line.
+ You also can use other characters:
+ | ¦ ┆ │
+ Default value is "|".
+
+g:indentLine_first_char *g:indentLine_first_char*
+ Specify a character to be used as indent line
+ on the first level.
+ You also can use other characters:
+ | ¦ ┆ │
+ Default value is "|".
+
+g:indentLine_color_term *g:indentLine_color_term*
+ Specify terminal vim indent line color.
+ e.g. let g:indentLine_color_term = 239
+
+
+g:indentLine_color_gui *g:indentLine_color_gui*
+ Specify GUI vim indent line color.
+ e.g. let g:indentLine_color_gui = '#A4E57E'
+
+g:indentLine_color_tty_light *g:indentLine_color_tty_light*
+ Specify none X terminal vim indent line color in bg light.
+ default: 4
+ e.g. let g:indentLine_color_tty_light = 7
+
+g:indentLine_color_tty_dark *g:indentLine_color_tty_dark*
+ Specify none X terminal vim indent line color in bg dark.
+ default: 2
+ e.g. let g:indentLine_color_tty_dark = 1
+
+g:indentLine_indentLevel *g:indentLine_indentLevel*
+ Specify how much indent level do you want to use for
+ indentLine. Most program will not has bigger indent level than
+ 10.
+ Default value is 10.
+
+g:indentLine_showFirstIndentLevel *g:indentLine_showFirstIndentLevel*
+ Specify whether the first indent level should be shown.
+ This is useful if you use indentLine in comination with
+ |listchars| in order to show tabs.
+ Default value is 0.
+
+g:indentLine_enabled *g:indentLine_enabled*
+ Specify whether to enable indentLine plugin by default.
+ If value is not 0, the plugin is on by default, otherwise off.
+ Default value is 1.
+
+g:indentLine_fileType *g:indentLine_fileType*
+ This variable specify a list of file types.
+ When opening these types of files, the plugin is enabled by
+ default.
+ e.g. let g:indentLine_fileType = ['c', 'cpp']
+ Default value is [] which means all file types is supported.
+
+g:indentLine_fileTypeExclude *g:indentLine_fileTypeExclude*
+ This variable specify a list of file types.
+ When opening these types of files, the plugin is disabled by
+ default.
+ e.g. let g:indentLine_fileTypeExclude = ['text', 'sh']
+ Default value is [] which means no file types is excluded.
+
+g:indentLine_bufNameExclude *g:indentLine_bufNameExclude*
+ This variable specify a list of buffer names, which can be
+ regular expression. If the buffer's name fall into this list,
+ the indentLine won't display.
+ e.g. let g:indentLine_bufNameExclude = ['_.*', 'NERD_tree.*']
+ Default value is [].
+
+g:indentLine_maxLines *g:indentLine_maxLines*
+ This variable specify a number, when the number of buffer's
+ lines exceed it, the plugin try to use another pattern to make
+ the performance better.
+ Default value is 3000.
+
+g:indentLine_faster *g:indentLine_faster*
+ If you want the performance better, you can set the value as
+ 1, default value is 0. But better performance may bring little
+ issue with it.
+
+g:indentLine_noConcealCursor *g:indentLine_noConcealCursor*
+ This variable toggles cursor lines behavior. If variable
+ exists, then cursorline will be above conceal chars.
+ Default value is not set.
+
+==============================================================================
+COMMANDS *indentLine-commands*
+
+IndentLinesReset [number]
+ if 'shiftwidth' changes, using this command can redraw the
+ indentLines. number is optional, it means the width between
+ two indent level, if ommited, value of 'shiftwidth' is used.
+
+IndentLinesToggle
+ toggle the indent lines of the current buffer.
+==============================================================================
+FAQ *indentLine-faq*
+
+Q. How can I make the indent line visuall similar to the line used in Sublime
+ Text 2?
+
+A. Use let g:indentLine_char = '┊'
+
+==============================================================================
+CHANGELOG *indentLine-changelog*
+
+==============================================================================
+CREDITS *indentLine-credits*
+
+Thanks to the following people for suggestions and patches:
+
+NagatoPain
+Salman Halim
+Christophe
+==============================================================================
+vim:tw=78:ts=8:ft=help:norl
diff --git a/vim/.vim/bundle/vim-airline/.gitignore b/vim/.vim/bundle/vim-airline/.gitignore
new file mode 100644
index 0000000..296f094
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/.gitignore
@@ -0,0 +1,3 @@
+doc/tags
+*.lock
+.vim-flavor
diff --git a/vim/.vim/bundle/vim-airline/.travis.yml b/vim/.vim/bundle/vim-airline/.travis.yml
new file mode 100644
index 0000000..9ed483e
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/.travis.yml
@@ -0,0 +1,4 @@
+language: ruby
+rvm:
+ - 1.9.3
+script: rake ci
diff --git a/vim/.vim/bundle/vim-airline/Gemfile b/vim/.vim/bundle/vim-airline/Gemfile
new file mode 100644
index 0000000..088f22e
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/Gemfile
@@ -0,0 +1,2 @@
+source 'https://rubygems.org'
+gem 'vim-flavor', '~> 1.1'
diff --git a/vim/.vim/bundle/vim-airline/LICENSE b/vim/.vim/bundle/vim-airline/LICENSE
new file mode 100644
index 0000000..9a5a8b7
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (C) 2013-2014 Bailey Ling
+
+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.
diff --git a/vim/.vim/bundle/vim-airline/README.md b/vim/.vim/bundle/vim-airline/README.md
new file mode 100644
index 0000000..b98e348
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/README.md
@@ -0,0 +1,210 @@
+# vim-airline [![Build Status](https://travis-ci.org/bling/vim-airline.png)](https://travis-ci.org/bling/vim-airline)
+
+Lean &amp; mean status/tabline for vim that's light as air.
+
+![img](https://github.com/bling/vim-airline/wiki/screenshots/demo.gif)
+
+# Features
+
+* Tiny core written with extensibility in mind ([open/closed principle][8]).
+* Integrates with a variety of plugins, including: [vim-bufferline][6], [fugitive][4], [unite][9], [ctrlp][10], [minibufexpl][15], [gundo][16], [undotree][17], [nerdtree][18], [tagbar][19], [vim-gitgutter][29], [vim-signify][30], [syntastic][5], [eclim][34], [lawrencium][21], [virtualenv][31], [tmuxline][35].
+* Looks good with regular fonts and provides configuration points so you can use unicode or powerline symbols.
+* Optimized for speed; it loads in under a millisecond.
+* Extensive suite of themes for popular color schemes including [solarized][23] (dark and light), [tomorrow][24] (all variants), [base16][32] (all variants), [molokai][25], [jellybeans][26] and others; have a look at the [screenshots][14] in the wiki.
+* Supports 7.2 as the minimum Vim version.
+* The master branch tries to be as stable as possible, and new features are merged in only after they have gone through a [full regression test][33].
+* Unit testing suite.
+
+## Straightforward customization
+
+If you don't like the defaults, you can replace all sections with standard `statusline` syntax. Give your statusline that you've built over the years a face lift.
+
+![image](https://f.cloud.github.com/assets/306502/1009429/d69306da-0b38-11e3-94bf-7c6e3eef41e9.png)
+
+## Automatic truncation
+
+Sections and parts within sections can be configured to automatically hide when the window size shrinks.
+
+![image](https://f.cloud.github.com/assets/306502/1060831/05c08aac-11bc-11e3-8470-a506a3037f45.png)
+
+## Smarter tab line
+
+Automatically displays all buffers when there's only one tab open.
+
+![tabline](https://f.cloud.github.com/assets/306502/1072623/44c292a0-1495-11e3-9ce6-dcada3f1c536.gif)
+
+This is disabled by default; add the following to your vimrc to enable the extension:
+
+ let g:airline#extensions#tabline#enabled = 1
+
+Separators can be configured independently for the tabline, so here is how you can define "straight" tabs:
+
+ let g:airline#extensions#tabline#left_sep = ' '
+ let g:airline#extensions#tabline#left_alt_sep = '|'
+
+## Seamless integration
+
+vim-airline integrates with a variety of plugins out of the box. These extensions will be lazily loaded if and only if you have the other plugins installed (and of course you can turn them off).
+
+#### [ctrlp.vim][10]
+![image](https://f.cloud.github.com/assets/306502/962258/7345a224-04ec-11e3-8b5a-f11724a47437.png)
+
+#### [unite.vim][9]
+![image](https://f.cloud.github.com/assets/306502/962319/4d7d3a7e-04ed-11e3-9d59-ab29cb310ff8.png)
+
+#### [tagbar][19]
+![image](https://f.cloud.github.com/assets/306502/962150/7e7bfae6-04ea-11e3-9e28-32af206aed80.png)
+
+#### [csv.vim][28]
+![image](https://f.cloud.github.com/assets/306502/962204/cfc1210a-04eb-11e3-8a93-42e6bcd21efa.png)
+
+#### [syntastic][5]
+![image](https://f.cloud.github.com/assets/306502/962864/9824c484-04f7-11e3-9928-da94f8c7da5a.png)
+
+#### hunks ([vim-gitgutter][29] & [vim-signify][30])
+![image](https://f.cloud.github.com/assets/306502/995185/73fc7054-09b9-11e3-9d45-618406c6ed98.png)
+
+#### [virtualenv][31]
+![image](https://f.cloud.github.com/assets/390964/1022566/cf81f830-0d98-11e3-904f-cf4fe3ce201e.png)
+
+#### [tmuxline][35]
+![image](https://f.cloud.github.com/assets/1532071/1559276/4c28fbac-4fc7-11e3-90ef-7e833d980f98.gif)
+
+#### [promptline][36]
+![airline-promptline-sc](https://f.cloud.github.com/assets/1532071/1871900/7d4b28a0-789d-11e3-90e4-16f37269981b.gif)
+
+## Extras
+
+vim-airline also supplies some supplementary stand-alone extensions. In addition to the tabline extension mentioned earlier, there is also:
+
+#### whitespace
+![image](https://f.cloud.github.com/assets/306502/962401/2a75385e-04ef-11e3-935c-e3b9f0e954cc.png)
+
+## Configurable and extensible
+
+#### Fine-tuned configuration
+
+Every section is composed of parts, and you can reorder and reconfigure them at will.
+
+![image](https://f.cloud.github.com/assets/306502/1073278/f291dd4c-14a3-11e3-8a83-268e2753f97d.png)
+
+Sections can contain accents, which allows for very granular control of visuals (see configuration [here](https://github.com/bling/vim-airline/issues/299#issuecomment-25772886)).
+
+![image](https://f.cloud.github.com/assets/306502/1195815/4bfa38d0-249d-11e3-823e-773cfc2ca894.png)
+
+#### Extensible pipeline
+
+Completely transform the statusline to your liking. Build out the statusline as you see fit by extracting colors from the current colorscheme's highlight groups.
+
+![allyourbase](https://f.cloud.github.com/assets/306502/1022714/e150034a-0da7-11e3-94a5-ca9d58a297e8.png)
+
+# Rationale
+
+There's already [powerline][2], why yet another statusline?
+
+* 100% vimscript; no python needed.
+
+What about [vim-powerline][1]?
+
+* vim-powerline has been deprecated in favor of the newer, unifying powerline, which is under active development; the new version is written in python at the core and exposes various bindings such that it can style statuslines not only in vim, but also tmux, bash, zsh, and others.
+
+# Where did the name come from?
+
+I wrote the initial version on an airplane, and since it's light as air it turned out to be a good name. Thanks for flying vim!
+
+# Installation
+
+This plugin follows the standard runtime path structure, and as such it can be installed with a variety of plugin managers:
+
+* [Pathogen][11]
+ * `git clone https://github.com/bling/vim-airline ~/.vim/bundle/vim-airline`
+* [NeoBundle][12]
+ * `NeoBundle 'bling/vim-airline'`
+* [Vundle][13]
+ * `Plugin 'bling/vim-airline'`
+* [VAM][22]
+ * `call vam#ActivateAddons([ 'vim-airline' ])`
+* manual
+ * copy all of the files into your `~/.vim` directory
+
+# Configuration
+
+`:help airline`
+
+The default setting of 'laststatus' is for the statusline to not appear until a split is created. If you want it to appear all the time, add the following to your vimrc:
+`set laststatus=2`
+
+# Integrating with powerline fonts
+
+For the nice looking powerline symbols to appear, you will need to install a patched font. Instructions can be found in the official powerline [documentation][20]. Prepatched fonts can be found in the [powerline-fonts][3] repository.
+
+Finally, you can add the convenience variable `let g:airline_powerline_fonts = 1` to your vimrc which will automatically populate the `g:airline_symbols` dictionary with the powerline symbols.
+
+# FAQ
+
+Solutions to common problems can be found in the [Wiki][27].
+
+# Screenshots
+
+A full list of screenshots for various themes can be found in the [Wiki][14].
+
+# Bugs
+
+Tracking down bugs can take a very long time due to different configurations, versions, and operating systems. To ensure a timely response, please help me out by doing the following:
+
+* Reproduce it with this [minivimrc][7] repository to rule out any configuration conflicts.
+* A link to your vimrc or a gist which shows how you configured the plugin(s).
+* And so I can reproduce; your `:version` of vim, and the commit of vim-airline you're using.
+
+# Contributions
+
+Contributions and pull requests are welcome. Please take note of the following guidelines:
+
+* Adhere to the existing style as much as possible; notably, 2 space indents and long-form keywords.
+* Keep the history clean! squash your branches before you submit a pull request. `pull --rebase` is your friend.
+* Any changes to the core should be tested against Vim 7.2.
+* If you submit a theme, please create a screenshot so it can be added to the [Wiki][14].
+
+# License
+
+MIT License. Copyright (c) 2013-2014 Bailey Ling.
+
+
+[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/bling/vim-airline/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
+
+[1]: https://github.com/Lokaltog/vim-powerline
+[2]: https://github.com/Lokaltog/powerline
+[3]: https://github.com/Lokaltog/powerline-fonts
+[4]: https://github.com/tpope/vim-fugitive
+[5]: https://github.com/scrooloose/syntastic
+[6]: https://github.com/bling/vim-bufferline
+[7]: https://github.com/bling/minivimrc
+[8]: http://en.wikipedia.org/wiki/Open/closed_principle
+[9]: https://github.com/Shougo/unite.vim
+[10]: https://github.com/kien/ctrlp.vim
+[11]: https://github.com/tpope/vim-pathogen
+[12]: https://github.com/Shougo/neobundle.vim
+[13]: https://github.com/gmarik/vundle
+[14]: https://github.com/bling/vim-airline/wiki/Screenshots
+[15]: https://github.com/techlivezheng/vim-plugin-minibufexpl
+[16]: https://github.com/sjl/gundo.vim
+[17]: https://github.com/mbbill/undotree
+[18]: https://github.com/scrooloose/nerdtree
+[19]: https://github.com/majutsushi/tagbar
+[20]: https://powerline.readthedocs.org/en/latest/fontpatching.html
+[21]: https://bitbucket.org/ludovicchabant/vim-lawrencium
+[22]: https://github.com/MarcWeber/vim-addon-manager
+[23]: https://github.com/altercation/solarized
+[24]: https://github.com/chriskempson/tomorrow-theme
+[25]: https://github.com/tomasr/molokai
+[26]: https://github.com/nanotech/jellybeans.vim
+[27]: https://github.com/bling/vim-airline/wiki/FAQ
+[28]: https://github.com/chrisbra/csv.vim
+[29]: https://github.com/airblade/vim-gitgutter
+[30]: https://github.com/mhinz/vim-signify
+[31]: https://github.com/jmcantrell/vim-virtualenv
+[32]: https://github.com/chriskempson/base16-vim
+[33]: https://github.com/bling/vim-airline/wiki/Test-Plan
+[34]: http://eclim.org
+[35]: https://github.com/edkolev/tmuxline.vim
+[36]: https://github.com/edkolev/promptline.vim
diff --git a/vim/.vim/bundle/vim-airline/Rakefile b/vim/.vim/bundle/vim-airline/Rakefile
new file mode 100644
index 0000000..741cfc2
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/Rakefile
@@ -0,0 +1,14 @@
+#!/usr/bin/env rake
+
+task :default => [:test]
+
+task :ci => [:dump, :test]
+
+task :dump do
+ sh 'vim --version'
+end
+
+task :test do
+ sh 'bundle exec vim-flavor test'
+end
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline.vim b/vim/.vim/bundle/vim-airline/autoload/airline.vim
new file mode 100644
index 0000000..de66fba
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline.vim
@@ -0,0 +1,170 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+let g:airline_statusline_funcrefs = get(g:, 'airline_statusline_funcrefs', [])
+
+let s:sections = ['a','b','c','gutter','x','y','z','warning']
+let s:inactive_funcrefs = []
+
+function! airline#add_statusline_func(name)
+ call airline#add_statusline_funcref(function(a:name))
+endfunction
+
+function! airline#add_statusline_funcref(function)
+ if index(g:airline_statusline_funcrefs, a:function) >= 0
+ echohl WarningMsg
+ echo 'The airline statusline funcref '.string(a:function).' has already been added.'
+ echohl NONE
+ return
+ endif
+ call add(g:airline_statusline_funcrefs, a:function)
+endfunction
+
+function! airline#remove_statusline_func(name)
+ let i = index(g:airline_statusline_funcrefs, function(a:name))
+ if i > -1
+ call remove(g:airline_statusline_funcrefs, i)
+ endif
+endfunction
+
+function! airline#add_inactive_statusline_func(name)
+ call add(s:inactive_funcrefs, function(a:name))
+endfunction
+
+function! airline#load_theme()
+ if exists('*airline#themes#{g:airline_theme}#refresh')
+ call airline#themes#{g:airline_theme}#refresh()
+ endif
+
+ let palette = g:airline#themes#{g:airline_theme}#palette
+ call airline#themes#patch(palette)
+
+ if exists('g:airline_theme_patch_func')
+ let Fn = function(g:airline_theme_patch_func)
+ call Fn(palette)
+ endif
+
+ call airline#highlighter#load_theme()
+ call airline#extensions#load_theme()
+endfunction
+
+function! airline#switch_theme(name)
+ try
+ let palette = g:airline#themes#{a:name}#palette "also lazy loads the theme
+ let g:airline_theme = a:name
+ catch
+ echohl WarningMsg | echo 'The specified theme cannot be found.' | echohl NONE
+ if exists('g:airline_theme')
+ return
+ else
+ let g:airline_theme = 'dark'
+ endif
+ endtry
+
+ let w:airline_lastmode = ''
+ call airline#update_statusline()
+ call airline#load_theme()
+
+ " this is required to prevent clobbering the startup info message, i don't know why...
+ call airline#check_mode(winnr())
+endfunction
+
+function! airline#switch_matching_theme()
+ if exists('g:colors_name')
+ try
+ let palette = g:airline#themes#{g:colors_name}#palette
+ call airline#switch_theme(g:colors_name)
+ return 1
+ catch
+ for map in items(g:airline_theme_map)
+ if match(g:colors_name, map[0]) > -1
+ call airline#switch_theme(map[1])
+ return 1
+ endif
+ endfor
+ endtry
+ endif
+ return 0
+endfunction
+
+function! airline#update_statusline()
+ for nr in filter(range(1, winnr('$')), 'v:val != winnr()')
+ call setwinvar(nr, 'airline_active', 0)
+ let context = { 'winnr': nr, 'active': 0, 'bufnr': winbufnr(nr) }
+ call s:invoke_funcrefs(context, s:inactive_funcrefs)
+ endfor
+
+ unlet! w:airline_render_left
+ unlet! w:airline_render_right
+ for section in s:sections
+ unlet! w:airline_section_{section}
+ endfor
+
+ let w:airline_active = 1
+ let context = { 'winnr': winnr(), 'active': 1, 'bufnr': winbufnr(winnr()) }
+ call s:invoke_funcrefs(context, g:airline_statusline_funcrefs)
+endfunction
+
+let s:contexts = {}
+let s:core_funcrefs = [
+ \ function('airline#extensions#apply'),
+ \ function('airline#extensions#default#apply') ]
+function! s:invoke_funcrefs(context, funcrefs)
+ let builder = airline#builder#new(a:context)
+ let err = airline#util#exec_funcrefs(a:funcrefs + s:core_funcrefs, builder, a:context)
+ if err == 1
+ let a:context.line = builder.build()
+ let s:contexts[a:context.winnr] = a:context
+ call setwinvar(a:context.winnr, '&statusline', '%!airline#statusline('.a:context.winnr.')')
+ endif
+endfunction
+
+function! airline#statusline(winnr)
+ if has_key(s:contexts, a:winnr)
+ return '%{airline#check_mode('.a:winnr.')}'.s:contexts[a:winnr].line
+ endif
+
+ " in rare circumstances this happens...see #276
+ return ''
+endfunction
+
+function! airline#check_mode(winnr)
+ let context = s:contexts[a:winnr]
+
+ if get(w:, 'airline_active', 1)
+ let l:m = mode()
+ if l:m ==# "i"
+ let l:mode = ['insert']
+ elseif l:m ==# "R"
+ let l:mode = ['replace']
+ elseif l:m =~# '\v(v|V||s|S|)'
+ let l:mode = ['visual']
+ else
+ let l:mode = ['normal']
+ endif
+ let w:airline_current_mode = get(g:airline_mode_map, l:m, l:m)
+ else
+ let l:mode = ['inactive']
+ let w:airline_current_mode = get(g:airline_mode_map, '__')
+ endif
+
+ if g:airline_detect_modified
+ if &modified
+ call add(l:mode, 'modified')
+ endif
+ endif
+
+ if g:airline_detect_paste && &paste
+ call add(l:mode, 'paste')
+ endif
+
+ let mode_string = join(l:mode)
+ if get(w:, 'airline_lastmode', '') != mode_string
+ call airline#highlighter#highlight_modified_inactive(context.bufnr)
+ call airline#highlighter#highlight(l:mode)
+ let w:airline_lastmode = mode_string
+ endif
+
+ return ''
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/builder.vim b/vim/.vim/bundle/vim-airline/autoload/airline/builder.vim
new file mode 100644
index 0000000..d03af12
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/builder.vim
@@ -0,0 +1,74 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+let s:prototype = {}
+
+function! s:prototype.split(...)
+ let self._side = 0
+ let self._line .= '%#'.self._curgroup.'#'.(a:0 ? a:1 : '%=')
+endfunction
+
+function! s:prototype.add_section_spaced(group, contents)
+ call self.add_section(a:group, (g:airline_symbols.space).a:contents.(g:airline_symbols.space))
+endfunction
+
+function! s:prototype.add_section(group, contents)
+ if self._curgroup != ''
+ if self._curgroup == a:group
+ let self._line .= self._side ? self._context.left_alt_sep : self._context.right_alt_sep
+ else
+ call airline#highlighter#add_separator(self._curgroup, a:group, self._side)
+ let self._line .= '%#'.self._curgroup.'_to_'.a:group.'#'
+ let self._line .= self._side ? self._context.left_sep : self._context.right_sep
+ endif
+ endif
+
+ if self._curgroup != a:group
+ let self._line .= '%#'.a:group.'#'
+ endif
+
+ if self._context.active
+ let contents = []
+ let content_parts = split(a:contents, '__accent')
+ for cpart in content_parts
+ let accent = matchstr(cpart, '_\zs[^#]*\ze')
+ call add(contents, cpart)
+ endfor
+ let line = join(contents, a:group)
+ let line = substitute(line, '__restore__', a:group, 'g')
+ else
+ let line = substitute(a:contents, '%#__accent[^#]*#', '', 'g')
+ let line = substitute(line, '%#__restore__#', '', 'g')
+ endif
+
+ let self._line .= line
+ let self._curgroup = a:group
+endfunction
+
+function! s:prototype.add_raw(text)
+ let self._line .= a:text
+endfunction
+
+function! s:prototype.build()
+ if !self._context.active
+ let self._line = substitute(self._line, '%#.\{-}\ze#', '\0_inactive', 'g')
+ endif
+ return self._line
+endfunction
+
+function! airline#builder#new(context)
+ let builder = copy(s:prototype)
+ let builder._context = a:context
+ let builder._side = 1
+ let builder._curgroup = ''
+ let builder._line = ''
+
+ call extend(builder._context, {
+ \ 'left_sep': g:airline_left_sep,
+ \ 'left_alt_sep': g:airline_left_alt_sep,
+ \ 'right_sep': g:airline_right_sep,
+ \ 'right_alt_sep': g:airline_right_alt_sep,
+ \ }, 'keep')
+ return builder
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/debug.vim b/vim/.vim/bundle/vim-airline/autoload/airline/debug.vim
new file mode 100644
index 0000000..28424a6
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/debug.vim
@@ -0,0 +1,50 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+function! airline#debug#profile1()
+ profile start airline-profile-switch.log
+ profile func *
+ profile file *
+ split
+ for i in range(1, 1000)
+ wincmd w
+ redrawstatus
+ endfor
+ profile pause
+ noautocmd qall!
+endfunction
+
+function! airline#debug#profile2()
+ profile start airline-profile-cursor.log
+ profile func *
+ profile file *
+ edit blank
+ call setline(1, 'all your base are belong to us')
+ call setline(2, 'all your base are belong to us')
+ let positions = [[1,2], [2,2], [1,2], [1,1]]
+ for i in range(1, 1000)
+ for pos in positions
+ call cursor(pos[0], pos[1])
+ redrawstatus
+ endfor
+ endfor
+ profile pause
+ noautocmd qall!
+endfunction
+
+function! airline#debug#profile3()
+ profile start airline-profile-mode.log
+ profile func *
+ profile file *
+
+ for i in range(1000)
+ startinsert
+ redrawstatus
+ stopinsert
+ redrawstatus
+ endfor
+
+ profile pause
+ noautocmd qall!
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/deprecation.vim b/vim/.vim/bundle/vim-airline/autoload/airline/deprecation.vim
new file mode 100644
index 0000000..cf7e787
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/deprecation.vim
@@ -0,0 +1,32 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+function! airline#deprecation#check()
+ if exists('g:airline_enable_fugitive') || exists('g:airline_fugitive_prefix')
+ echom 'The g:airline_enable_fugitive and g:airline_fugitive_prefix variables are obsolete. Please read the documentation about the branch extension.'
+ endif
+
+ let tests = [
+ \ [ 'g:airline_paste_symbol', 'g:airline_symbols.paste' ],
+ \ [ 'g:airline_readonly_symbol', 'g:airline_symbols.readonly' ],
+ \ [ 'g:airline_linecolumn_prefix', 'g:airline_symbols.linenr' ],
+ \ [ 'g:airline_branch_prefix', 'g:airline_symbols.branch' ],
+ \ [ 'g:airline_branch_empty_message', 'g:airline#extensions#branch#empty_message' ],
+ \ [ 'g:airline_detect_whitespace', 'g:airline#extensions#whitespace#enabled|show_message' ],
+ \ [ 'g:airline_enable_hunks', 'g:airline#extensions#hunks#enabled' ],
+ \ [ 'g:airline_enable_tagbar', 'g:airline#extensions#tagbar#enabled' ],
+ \ [ 'g:airline_enable_csv', 'g:airline#extensions#csv#enabled' ],
+ \ [ 'g:airline_enable_branch', 'g:airline#extensions#branch#enabled' ],
+ \ [ 'g:airline_enable_bufferline', 'g:airline#extensions#bufferline#enabled' ],
+ \ [ 'g:airline_enable_syntastic', 'g:airline#extensions#syntastic#enabled' ],
+ \ [ 'g:airline_enable_eclim', 'g:airline#extensions#eclim#enabled' ],
+ \ ]
+ for test in tests
+ if exists(test[0])
+ let max = winwidth(0) - 16
+ let msg = printf('The variable %s is deprecated and may not work in the future. It has been replaced with %s. Please read the documentation.', test[0], test[1])
+ echom msg[:max].'...'
+ endif
+ endfor
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions.vim
new file mode 100644
index 0000000..461d1c3
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions.vim
@@ -0,0 +1,234 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+let s:ext = {}
+let s:ext._theme_funcrefs = []
+
+function! s:ext.add_statusline_func(name) dict
+ call airline#add_statusline_func(a:name)
+endfunction
+function! s:ext.add_statusline_funcref(function) dict
+ call airline#add_statusline_funcref(a:function)
+endfunction
+function! s:ext.add_inactive_statusline_func(name) dict
+ call airline#add_inactive_statusline_func(a:name)
+endfunction
+function! s:ext.add_theme_func(name) dict
+ call add(self._theme_funcrefs, function(a:name))
+endfunction
+
+let s:script_path = tolower(resolve(expand('<sfile>:p:h')))
+
+let s:filetype_overrides = {
+ \ 'nerdtree': [ 'NERD', '' ],
+ \ 'gundo': [ 'Gundo', '' ],
+ \ 'diff': [ 'diff', '' ],
+ \ 'vimfiler': [ 'vimfiler', '%{vimfiler#get_status_string()}' ],
+ \ 'minibufexpl': [ 'MiniBufExplorer', '' ],
+ \ 'startify': [ 'startify', '' ],
+ \ }
+
+let s:filetype_regex_overrides = {}
+
+function! s:check_defined_section(name)
+ if !exists('w:airline_section_{a:name}')
+ let w:airline_section_{a:name} = g:airline_section_{a:name}
+ endif
+endfunction
+
+function! airline#extensions#append_to_section(name, value)
+ call <sid>check_defined_section(a:name)
+ let w:airline_section_{a:name} .= a:value
+endfunction
+
+function! airline#extensions#prepend_to_section(name, value)
+ call <sid>check_defined_section(a:name)
+ let w:airline_section_{a:name} = a:value . w:airline_section_{a:name}
+endfunction
+
+function! airline#extensions#apply_left_override(section1, section2)
+ let w:airline_section_a = a:section1
+ let w:airline_section_b = a:section2
+ let w:airline_section_c = airline#section#create(['readonly'])
+ let w:airline_render_left = 1
+ let w:airline_render_right = 0
+endfunction
+
+let s:active_winnr = -1
+function! airline#extensions#apply(...)
+ let s:active_winnr = winnr()
+
+ if s:is_excluded_window()
+ return -1
+ endif
+
+ if &buftype == 'help'
+ call airline#extensions#apply_left_override('Help', '%f')
+ let w:airline_section_x = ''
+ let w:airline_section_y = ''
+ let w:airline_render_right = 1
+ endif
+
+ if &previewwindow
+ let w:airline_section_a = 'Preview'
+ let w:airline_section_b = ''
+ let w:airline_section_c = bufname(winbufnr(winnr()))
+ endif
+
+ if has_key(s:filetype_overrides, &ft)
+ let args = s:filetype_overrides[&ft]
+ call airline#extensions#apply_left_override(args[0], args[1])
+ endif
+
+ for item in items(s:filetype_regex_overrides)
+ if match(&ft, item[0]) >= 0
+ call airline#extensions#apply_left_override(item[1][0], item[1][1])
+ endif
+ endfor
+endfunction
+
+function! s:is_excluded_window()
+ for matchft in g:airline_exclude_filetypes
+ if matchft ==# &ft
+ return 1
+ endif
+ endfor
+
+ for matchw in g:airline_exclude_filenames
+ if matchstr(expand('%'), matchw) ==# matchw
+ return 1
+ endif
+ endfor
+
+ if g:airline_exclude_preview && &previewwindow
+ return 1
+ endif
+
+ return 0
+endfunction
+
+function! airline#extensions#load_theme()
+ call airline#util#exec_funcrefs(s:ext._theme_funcrefs, g:airline#themes#{g:airline_theme}#palette)
+endfunction
+
+function! s:sync_active_winnr()
+ if exists('#airline') && winnr() != s:active_winnr
+ call airline#update_statusline()
+ endif
+endfunction
+
+function! airline#extensions#load()
+ " non-trivial number of external plugins use eventignore=all, so we need to account for that
+ autocmd CursorMoved * call <sid>sync_active_winnr()
+
+ call airline#extensions#quickfix#init(s:ext)
+
+ if get(g:, 'loaded_unite', 0)
+ call airline#extensions#unite#init(s:ext)
+ endif
+
+ if exists(':NetrwSettings')
+ call airline#extensions#netrw#init(s:ext)
+ endif
+
+ if get(g:, 'loaded_vimfiler', 0)
+ let g:vimfiler_force_overwrite_statusline = 0
+ endif
+
+ if get(g:, 'loaded_ctrlp', 0)
+ call airline#extensions#ctrlp#init(s:ext)
+ endif
+
+ if get(g:, 'command_t_loaded', 0)
+ call airline#extensions#commandt#init(s:ext)
+ endif
+
+ if exists(':UndotreeToggle')
+ call airline#extensions#undotree#init(s:ext)
+ endif
+
+ if (get(g:, 'airline#extensions#hunks#enabled', 1) && get(g:, 'airline_enable_hunks', 1))
+ \ && (exists('g:loaded_signify') || exists('g:loaded_gitgutter'))
+ call airline#extensions#hunks#init(s:ext)
+ endif
+
+ if (get(g:, 'airline#extensions#tagbar#enabled', 1) && get(g:, 'airline_enable_tagbar', 1))
+ \ && exists(':TagbarToggle')
+ call airline#extensions#tagbar#init(s:ext)
+ endif
+
+ if (get(g:, 'airline#extensions#csv#enabled', 1) && get(g:, 'airline_enable_csv', 1))
+ \ && (get(g:, 'loaded_csv', 0) || exists(':Table'))
+ call airline#extensions#csv#init(s:ext)
+ endif
+
+ if exists(':VimShell')
+ let s:filetype_overrides['vimshell'] = ['vimshell','%{vimshell#get_status_string()}']
+ let s:filetype_regex_overrides['^int-'] = ['vimshell','%{substitute(&ft, "int-", "", "")}']
+ endif
+
+ if (get(g:, 'airline#extensions#branch#enabled', 1) && get(g:, 'airline_enable_branch', 1))
+ \ && (exists('*fugitive#head') || exists('*lawrencium#statusline') ||
+ \ (get(g:, 'airline#extensions#branch#use_vcscommand', 0) && exists('*VCSCommandGetStatusLine')))
+ call airline#extensions#branch#init(s:ext)
+ endif
+
+ if (get(g:, 'airline#extensions#bufferline#enabled', 1) && get(g:, 'airline_enable_bufferline', 1))
+ \ && exists('*bufferline#get_status_string')
+ call airline#extensions#bufferline#init(s:ext)
+ endif
+
+ if get(g:, 'virtualenv_loaded', 0) && get(g:, 'airline#extensions#virtualenv#enabled', 1)
+ call airline#extensions#virtualenv#init(s:ext)
+ endif
+
+ if (get(g:, 'airline#extensions#eclim#enabled', 1) && exists(':ProjectCreate'))
+ call airline#extensions#eclim#init(s:ext)
+ endif
+
+ if (get(g:, 'airline#extensions#syntastic#enabled', 1) && get(g:, 'airline_enable_syntastic', 1))
+ \ && exists(':SyntasticCheck')
+ call airline#extensions#syntastic#init(s:ext)
+ endif
+
+ if (get(g:, 'airline#extensions#whitespace#enabled', 1) && get(g:, 'airline_detect_whitespace', 1))
+ call airline#extensions#whitespace#init(s:ext)
+ endif
+
+ if get(g:, 'airline#extensions#tabline#enabled', 0)
+ call airline#extensions#tabline#init(s:ext)
+ endif
+
+ if get(g:, 'airline#extensions#tmuxline#enabled', 1) && exists(':Tmuxline')
+ call airline#extensions#tmuxline#init(s:ext)
+ endif
+
+ if get(g:, 'airline#extensions#promptline#enabled', 1) && exists(':PromptlineSnapshot') && len(get(g:, 'airline#extensions#promptline#snapshot_file', ''))
+ call airline#extensions#promptline#init(s:ext)
+ endif
+
+ if get(g:, 'airline#extensions#nrrwrgn#enabled', 1) && exists(':NR') == 2
+ call airline#extensions#nrrwrgn#init(s:ext)
+ endif
+
+ if !get(g:, 'airline#extensions#disable_rtp_load', 0)
+ " load all other extensions, which are not part of the default distribution.
+ " (autoload/airline/extensions/*.vim outside of our s:script_path).
+ for file in split(globpath(&rtp, "autoload/airline/extensions/*.vim"), "\n")
+ " we have to check both resolved and unresolved paths, since it's possible
+ " that they might not get resolved properly (see #187)
+ if stridx(tolower(resolve(fnamemodify(file, ':p'))), s:script_path) < 0
+ \ && stridx(tolower(fnamemodify(file, ':p')), s:script_path) < 0
+ let name = fnamemodify(file, ':t:r')
+ if !get(g:, 'airline#extensions#'.name.'#enabled', 1)
+ continue
+ endif
+ try
+ call airline#extensions#{name}#init(s:ext)
+ catch
+ endtry
+ endif
+ endfor
+ endif
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/branch.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/branch.vim
new file mode 100644
index 0000000..ceaa44b
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/branch.vim
@@ -0,0 +1,108 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+let s:has_fugitive = exists('*fugitive#head')
+let s:has_lawrencium = exists('*lawrencium#statusline')
+let s:has_vcscommand = get(g:, 'airline#extensions#branch#use_vcscommand', 0) && exists('*VCSCommandGetStatusLine')
+
+if !s:has_fugitive && !s:has_lawrencium && !s:has_vcscommand
+ finish
+endif
+
+let s:git_dirs = {}
+function! s:get_git_branch(path)
+ if has_key(s:git_dirs, a:path)
+ return s:git_dirs[a:path]
+ endif
+
+ let dir = fugitive#extract_git_dir(a:path)
+ if empty(dir)
+ let name = ''
+ else
+ try
+ let line = join(readfile(dir . '/HEAD'))
+ let name = strpart(line, 16)
+ catch
+ let name = ''
+ endtry
+ endif
+
+ let s:git_dirs[a:path] = name
+ return name
+endfunction
+
+function! airline#extensions#branch#head()
+ if exists('b:airline_head') && !empty(b:airline_head)
+ return b:airline_head
+ endif
+
+ let b:airline_head = ''
+
+ if s:has_fugitive && !exists('b:mercurial_dir')
+ let b:airline_head = fugitive#head()
+
+ if empty(b:airline_head) && !exists('b:git_dir')
+ let b:airline_head = s:get_git_branch(expand("%:p:h"))
+ endif
+ endif
+
+ if empty(b:airline_head)
+ if s:has_lawrencium
+ let b:airline_head = lawrencium#statusline()
+ endif
+ endif
+
+ if empty(b:airline_head)
+ if s:has_vcscommand
+ call VCSCommandEnableBufferSetup()
+ if exists('b:VCSCommandBufferInfo')
+ let b:airline_head = get(b:VCSCommandBufferInfo, 0, '')
+ endif
+ endif
+ endif
+
+ if empty(b:airline_head) || !s:check_in_path()
+ let b:airline_head = ''
+ endif
+
+ return b:airline_head
+endfunction
+
+function! airline#extensions#branch#get_head()
+ let head = airline#extensions#branch#head()
+ let empty_message = get(g:, 'airline#extensions#branch#empty_message',
+ \ get(g:, 'airline_branch_empty_message', ''))
+ let symbol = get(g:, 'airline#extensions#branch#symbol', g:airline_symbols.branch)
+ return empty(head)
+ \ ? empty_message
+ \ : printf('%s%s', empty(symbol) ? '' : symbol.(g:airline_symbols.space), head)
+endfunction
+
+function! s:check_in_path()
+ if !exists('b:airline_branch_path')
+ let root = get(b:, 'git_dir', get(b:, 'mercurial_dir', ''))
+ let bufferpath = resolve(fnamemodify(expand('%'), ':p'))
+
+ if !filereadable(root) "not a file
+ " if .git is a directory, it's the old submodule format
+ if match(root, '\.git$') >= 0
+ let root = expand(fnamemodify(root, ':h'))
+ else
+ " else it's the newer format, and we need to guesstimate
+ let pattern = '\.git\(\\\|\/\)modules\(\\\|\/\)'
+ if match(root, pattern) >= 0
+ let root = substitute(root, pattern, '', '')
+ endif
+ endif
+
+ let b:airline_file_in_root = stridx(bufferpath, root) > -1
+ endif
+ return b:airline_file_in_root
+endfunction
+
+function! airline#extensions#branch#init(ext)
+ call airline#parts#define_function('branch', 'airline#extensions#branch#get_head')
+
+ autocmd BufReadPost * unlet! b:airline_file_in_root
+ autocmd CursorHold,ShellCmdPost,CmdwinLeave * unlet! b:airline_head
+endfunction
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/bufferline.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/bufferline.vim
new file mode 100644
index 0000000..6dc97fe
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/bufferline.vim
@@ -0,0 +1,23 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+if !exists('*bufferline#get_status_string')
+ finish
+endif
+
+let s:overwrite = get(g:, 'airline#extensions#bufferline#overwrite_variables', 1)
+
+function! airline#extensions#bufferline#init(ext)
+ if s:overwrite
+ highlight bufferline_selected gui=bold cterm=bold term=bold
+ highlight link bufferline_selected_inactive airline_c_inactive
+ let g:bufferline_inactive_highlight = 'airline_c'
+ let g:bufferline_active_highlight = 'bufferline_selected'
+ let g:bufferline_active_buffer_left = ''
+ let g:bufferline_active_buffer_right = ''
+ let g:bufferline_separator = g:airline_symbols.space
+ endif
+
+ call airline#parts#define_raw('file', '%{bufferline#refresh_status()}'.bufferline#get_status_string())
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/commandt.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/commandt.vim
new file mode 100644
index 0000000..e549f27
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/commandt.vim
@@ -0,0 +1,16 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+if !get(g:, 'command_t_loaded', 0)
+ finish
+endif
+
+function! airline#extensions#commandt#apply(...)
+ if bufname('%') ==# 'GoToFile'
+ call airline#extensions#apply_left_override('CommandT', '')
+ endif
+endfunction
+
+function! airline#extensions#commandt#init(ext)
+ call a:ext.add_statusline_func('airline#extensions#commandt#apply')
+endfunction
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/csv.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/csv.vim
new file mode 100644
index 0000000..2c296ab
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/csv.vim
@@ -0,0 +1,31 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+if !get(g:, 'loaded_csv', 0) && !exists(':Table')
+ finish
+endif
+
+let s:column_display = get(g:, 'airline#extensions#csv#column_display', 'Number')
+
+function! airline#extensions#csv#get_column()
+ if exists('*CSV_WCol')
+ if s:column_display ==# 'Name'
+ return '['.CSV_WCol('Name').CSV_WCol().']'
+ else
+ return '['.CSV_WCol().']'
+ endif
+ endif
+ return ''
+endfunction
+
+function! airline#extensions#csv#apply(...)
+ if &ft ==# "csv"
+ call airline#extensions#prepend_to_section('gutter',
+ \ g:airline_left_alt_sep.' %{airline#extensions#csv#get_column()}')
+ endif
+endfunction
+
+function! airline#extensions#csv#init(ext)
+ call a:ext.add_statusline_func('airline#extensions#csv#apply')
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/ctrlp.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/ctrlp.vim
new file mode 100644
index 0000000..11a8922
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/ctrlp.vim
@@ -0,0 +1,77 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+if !get(g:, 'loaded_ctrlp', 0)
+ finish
+endif
+
+let s:color_template = get(g:, 'airline#extensions#ctrlp#color_template', 'insert')
+
+function! airline#extensions#ctrlp#generate_color_map(dark, light, white)
+ return {
+ \ 'CtrlPdark' : a:dark,
+ \ 'CtrlPlight' : a:light,
+ \ 'CtrlPwhite' : a:white,
+ \ 'CtrlParrow1' : [ a:light[1] , a:white[1] , a:light[3] , a:white[3] , '' ] ,
+ \ 'CtrlParrow2' : [ a:white[1] , a:light[1] , a:white[3] , a:light[3] , '' ] ,
+ \ 'CtrlParrow3' : [ a:light[1] , a:dark[1] , a:light[3] , a:dark[3] , '' ] ,
+ \ }
+endfunction
+
+function! airline#extensions#ctrlp#load_theme(palette)
+ if exists('a:palette.ctrlp')
+ let theme = a:palette.ctrlp
+ else
+ let s:color_template = has_key(a:palette, s:color_template) ? s:color_template : 'insert'
+ let theme = airline#extensions#ctrlp#generate_color_map(
+ \ a:palette[s:color_template]['airline_c'],
+ \ a:palette[s:color_template]['airline_b'],
+ \ a:palette[s:color_template]['airline_a'])
+ endif
+ for key in keys(theme)
+ call airline#highlighter#exec(key, theme[key])
+ endfor
+endfunction
+
+" Arguments: focus, byfname, regexp, prv, item, nxt, marked
+function! airline#extensions#ctrlp#ctrlp_airline(...)
+ let b = airline#builder#new({'active': 1})
+ if a:3
+ call b.add_section_spaced('CtrlPlight', 'regex')
+ endif
+ if get(g:, 'airline#extensions#ctrlp#show_adjacent_modes', 1)
+ call b.add_section_spaced('CtrlPlight', a:4)
+ call b.add_section_spaced('CtrlPwhite', a:5)
+ call b.add_section_spaced('CtrlPlight', a:6)
+ else
+ call b.add_section_spaced('CtrlPwhite', a:5)
+ endif
+ call b.add_section_spaced('CtrlPdark', a:7)
+ call b.split()
+ call b.add_raw('%#CtrlPdark#'.a:1.(g:airline_symbols.space))
+ call b.add_section_spaced('CtrlPdark', a:2)
+ call b.add_section_spaced('CtrlPlight', '%{getcwd()}')
+ return b.build()
+endfunction
+
+" Argument: len
+function! airline#extensions#ctrlp#ctrlp_airline_status(...)
+ let len = '%#CtrlPdark# '.a:1
+ let dir = '%=%<%#CtrlParrow3#'.g:airline_right_sep.'%#CtrlPlight# '.getcwd().' %*'
+ return len.dir
+endfunction
+
+function! airline#extensions#ctrlp#apply(...)
+ " disable statusline overwrite if ctrlp already did it
+ return match(&statusline, 'CtrlPwhite') >= 0 ? -1 : 0
+endfunction
+
+function! airline#extensions#ctrlp#init(ext)
+ let g:ctrlp_status_func = {
+ \ 'main': 'airline#extensions#ctrlp#ctrlp_airline',
+ \ 'prog': 'airline#extensions#ctrlp#ctrlp_airline_status',
+ \ }
+ call a:ext.add_statusline_func('airline#extensions#ctrlp#apply')
+ call a:ext.add_theme_func('airline#extensions#ctrlp#load_theme')
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/default.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/default.vim
new file mode 100644
index 0000000..d01349d
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/default.vim
@@ -0,0 +1,77 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+let s:section_truncate_width = get(g:, 'airline#extensions#default#section_truncate_width', {
+ \ 'b': 79,
+ \ 'x': 60,
+ \ 'y': 88,
+ \ 'z': 45,
+ \ })
+let s:layout = get(g:, 'airline#extensions#default#layout', [
+ \ [ 'a', 'b', 'c' ],
+ \ [ 'x', 'y', 'z', 'warning' ]
+ \ ])
+
+function! s:get_section(winnr, key, ...)
+ if has_key(s:section_truncate_width, a:key)
+ if winwidth(a:winnr) < s:section_truncate_width[a:key]
+ return ''
+ endif
+ endif
+ let spc = g:airline_symbols.space
+ let text = airline#util#getwinvar(a:winnr, 'airline_section_'.a:key, g:airline_section_{a:key})
+ let [prefix, suffix] = [get(a:000, 0, '%('.spc), get(a:000, 1, spc.'%)')]
+ return empty(text) ? '' : prefix.text.suffix
+endfunction
+
+function! s:build_sections(builder, context, keys)
+ for key in a:keys
+ if key == 'warning' && !a:context.active
+ continue
+ endif
+ call s:add_section(a:builder, a:context, key)
+ endfor
+endfunction
+
+if v:version >= 704 || (v:version >= 703 && has('patch81'))
+ function s:add_section(builder, context, key)
+ " i have no idea why the warning section needs special treatment, but it's
+ " needed to prevent separators from showing up
+ if a:key == 'warning'
+ call a:builder.add_raw('%(')
+ endif
+ call a:builder.add_section('airline_'.a:key, s:get_section(a:context.winnr, a:key))
+ if a:key == 'warning'
+ call a:builder.add_raw('%)')
+ endif
+ endfunction
+else
+ " older version don't like the use of %(%)
+ function s:add_section(builder, context, key)
+ if a:key == 'warning'
+ call a:builder.add_raw('%#airline_warning#'.s:get_section(a:context.winnr, a:key))
+ else
+ call a:builder.add_section('airline_'.a:key, s:get_section(a:context.winnr, a:key))
+ endif
+ endfunction
+endif
+
+function! airline#extensions#default#apply(builder, context)
+ let winnr = a:context.winnr
+ let active = a:context.active
+
+ if airline#util#getwinvar(winnr, 'airline_render_left', active || (!active && !g:airline_inactive_collapse))
+ call <sid>build_sections(a:builder, a:context, s:layout[0])
+ else
+ call a:builder.add_section('airline_c'.(a:context.bufnr), ' %f%m ')
+ endif
+
+ call a:builder.split(s:get_section(winnr, 'gutter', '', ''))
+
+ if airline#util#getwinvar(winnr, 'airline_render_right', 1)
+ call <sid>build_sections(a:builder, a:context, s:layout[1])
+ endif
+
+ return 1
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/eclim.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/eclim.vim
new file mode 100644
index 0000000..18cbae5
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/eclim.vim
@@ -0,0 +1,41 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+if !exists(':ProjectCreate')
+ finish
+endif
+
+function! airline#extensions#eclim#creat_line(...)
+ if &filetype == "tree"
+ let builder = a:1
+ call builder.add_section('airline_a', ' Project ')
+ call builder.add_section('airline_b', ' %f ')
+ call builder.add_section('airline_c', '')
+ return 1
+ endif
+endfunction
+
+function! airline#extensions#eclim#get_warnings()
+ let eclimList = eclim#display#signs#GetExisting()
+
+ if !empty(eclimList)
+ " Remove any non-eclim signs (see eclim#display#signs#Update)
+ call filter(eclimList, 'v:val.name =~ "^\\(qf_\\)\\?\\(error\\|info\\|warning\\)$"')
+
+ if !empty(eclimList)
+ let errorsLine = eclimList[0]['line']
+ let errorsNumber = len(eclimList)
+ let errors = "[Eclim: line:".string(errorsLine)." (".string(errorsNumber).")]"
+ if !exists(':SyntasticCheck') || SyntasticStatuslineFlag() == ''
+ return errors.(g:airline_symbols.space)
+ endif
+ endif
+ endif
+ return ''
+endfunction
+
+function! airline#extensions#eclim#init(ext)
+ call airline#parts#define_function('eclim', 'airline#extensions#eclim#get_warnings')
+ call a:ext.add_statusline_func('airline#extensions#eclim#creat_line')
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/example.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/example.vim
new file mode 100644
index 0000000..4a1932d
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/example.vim
@@ -0,0 +1,54 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+" we don't actually want this loaded :P
+finish
+
+" Due to some potential rendering issues, the use of the `space` variable is
+" recommended.
+let s:spc = g:airline_symbols.space
+
+" Extension specific variables can be defined the usual fashion.
+if !exists('g:airline#extensions#example#number_of_cats')
+ let g:airline#extensions#example#number_of_cats = 42
+endif
+
+" First we define an init function that will be invoked from extensions.vim
+function! airline#extensions#example#init(ext)
+
+ " Here we define a new part for the plugin. This allows users to place this
+ " extension in arbitrary locations.
+ call airline#parts#define_raw('cats', '%{airline#extensions#example#get_cats()}')
+
+ " Next up we add a funcref so that we can run some code prior to the
+ " statusline getting modifed.
+ call a:ext.add_statusline_func('airline#extensions#example#apply')
+
+ " You can also add a funcref for inactive statuslines.
+ " call a:ext.add_inactive_statusline_func('airline#extensions#example#unapply')
+endfunction
+
+" This function will be invoked just prior to the statusline getting modified.
+function! airline#extensions#example#apply(...)
+ " First we check for the filetype.
+ if &filetype == "nyancat"
+
+ " Let's say we want to append to section_c, first we check if there's
+ " already a window-local override, and if not, create it off of the global
+ " section_c.
+ let w:airline_section_c = get(w:, 'airline_section_c', g:airline_section_c)
+
+ " Then we just append this extenion to it, optionally using separators.
+ let w:airline_section_c .= s:spc.g:airline_left_alt_sep.s:spc.'%{airline#extensions#example#get_cats()}'
+ endif
+endfunction
+
+" Finally, this function will be invoked from the statusline.
+function! airline#extensions#example#get_cats()
+ let cats = ''
+ for i in range(1, g:airline#extensions#example#number_of_cats)
+ let cats .= ' (,,,)=(^.^)=(,,,) '
+ endfor
+ return cats
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/hunks.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/hunks.vim
new file mode 100644
index 0000000..6827f5d
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/hunks.vim
@@ -0,0 +1,67 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+if !get(g:, 'loaded_signify', 0) && !get(g:, 'loaded_gitgutter', 0)
+ finish
+endif
+
+let s:non_zero_only = get(g:, 'airline#extensions#hunks#non_zero_only', 0)
+let s:hunk_symbols = get(g:, 'airline#extensions#hunks#hunk_symbols', ['+', '~', '-'])
+
+function! s:get_hunks_signify()
+ let hunks = sy#repo#get_stats()
+ if hunks[0] >= 0
+ return hunks
+ endif
+ return []
+endfunction
+
+function! s:is_branch_empty()
+ return exists('*airline#extensions#branch#head') && empty(airline#extensions#branch#head())
+endfunction
+
+function! s:get_hunks_gitgutter()
+ if !get(g:, 'gitgutter_enabled', 0) || s:is_branch_empty()
+ return ''
+ endif
+ return GitGutterGetHunkSummary()
+endfunction
+
+function! s:get_hunks_empty()
+ return ''
+endfunction
+
+let s:source_func = ''
+function! s:get_hunks()
+ if empty(s:source_func)
+ if get(g:, 'loaded_signify', 0)
+ let s:source_func = 's:get_hunks_signify'
+ elseif exists('*GitGutterGetHunkSummary')
+ let s:source_func = 's:get_hunks_gitgutter'
+ else
+ let s:source_func = 's:get_hunks_empty'
+ endif
+ endif
+ return {s:source_func}()
+endfunction
+
+function! airline#extensions#hunks#get_hunks()
+ if !get(w:, 'airline_active', 0)
+ return ''
+ endif
+ let hunks = s:get_hunks()
+ let string = ''
+ if !empty(hunks)
+ for i in [0, 1, 2]
+ if s:non_zero_only == 0 || hunks[i] > 0
+ let string .= printf('%s%s ', s:hunk_symbols[i], hunks[i])
+ endif
+ endfor
+ endif
+ return string
+endfunction
+
+function! airline#extensions#hunks#init(ext)
+ call airline#parts#define_function('hunks', 'airline#extensions#hunks#get_hunks')
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/netrw.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/netrw.vim
new file mode 100644
index 0000000..debb088
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/netrw.vim
@@ -0,0 +1,32 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+if !exists(':NetrwSettings')
+ finish
+endif
+
+function! airline#extensions#netrw#apply(...)
+ if &ft == 'netrw'
+ let spc = g:airline_symbols.space
+
+ call a:1.add_section('airline_a', spc.'netrw'.spc)
+ if exists('*airline#extensions#branch#get_head')
+ call a:1.add_section('airline_b', spc.'%{airline#extensions#branch#get_head()}'.spc)
+ endif
+ call a:1.add_section('airline_c', spc.'%f'.spc)
+ call a:1.split()
+ call a:1.add_section('airline_y', spc.'%{airline#extensions#netrw#sortstring()}'.spc)
+ return 1
+ endif
+endfunction
+
+function! airline#extensions#netrw#init(ext)
+ let g:netrw_force_overwrite_statusline = 0
+ call a:ext.add_statusline_func('airline#extensions#netrw#apply')
+endfunction
+
+
+function! airline#extensions#netrw#sortstring()
+ let order = (g:netrw_sort_direction =~ 'n') ? '+' : '-'
+ return g:netrw_sort_by . (g:airline_symbols.space) . '[' . order . ']'
+endfunction
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/nrrwrgn.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/nrrwrgn.vim
new file mode 100644
index 0000000..2281598
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/nrrwrgn.vim
@@ -0,0 +1,24 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+if !get(g:, 'loaded_nrrw_rgn', 0)
+ finish
+endif
+
+function! airline#extensions#nrrwrgn#apply(...)
+ if exists(":WidenRegion") == 2
+ let spc = g:airline_symbols.space
+ call a:1.add_section('airline_a', printf('%s[Narrowed%s#%d]', spc, spc, b:nrrw_instn))
+ if exists('*airline#extensions#branch#get_head')
+ call a:1.add_section('airline_b', spc.'%{airline#extensions#branch#get_head()}'.spc)
+ endif
+ let bufname=(get(b:, 'orig_buf', 0) ? bufname(b:orig_buf) : substitute(bufname('%'), '^Nrrwrgn_\zs.*\ze_\d\+$', submatch(0), ''))
+ call a:1.add_section('airline_c', spc.bufname.spc)
+ call a:1.split()
+ return 1
+ endif
+endfunction
+
+function! airline#extensions#nrrwrgn#init(ext)
+ call a:ext.add_statusline_func('airline#extensions#nrrwrgn#apply')
+endfunction
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/promptline.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/promptline.vim
new file mode 100644
index 0000000..50b9708
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/promptline.vim
@@ -0,0 +1,33 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+if !exists(':PromptlineSnapshot')
+ finish
+endif
+
+if !exists('airline#extensions#promptline#snapshot_file') || !len('airline#extensions#promptline#snapshot_file')
+ finish
+endif
+
+let s:prompt_snapshot_file = get(g:, 'airline#extensions#promptline#snapshot_file', '')
+let s:color_template = get(g:, 'airline#extensions#promptline#color_template', 'normal')
+
+function! airline#extensions#promptline#init(ext)
+ call a:ext.add_theme_func('airline#extensions#promptline#set_prompt_colors')
+endfunction
+
+function! airline#extensions#promptline#set_prompt_colors(palette)
+ let color_template = has_key(a:palette, s:color_template) ? s:color_template : 'normal'
+ let mode_palette = a:palette[color_template]
+
+ if !has_key(g:, 'promptline_symbols')
+ let g:promptline_symbols = {
+ \ 'left' : g:airline_left_sep,
+ \ 'right' : g:airline_right_sep,
+ \ 'left_alt' : g:airline_left_alt_sep,
+ \ 'right_alt' : g:airline_right_alt_sep}
+ endif
+
+ let promptline_theme = promptline#api#create_theme_from_airline(mode_palette)
+ call promptline#api#create_snapshot_with_theme(s:prompt_snapshot_file, promptline_theme)
+endfunction
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/quickfix.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/quickfix.vim
new file mode 100644
index 0000000..8efc527
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/quickfix.vim
@@ -0,0 +1,37 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+let g:airline#extensions#quickfix#quickfix_text = 'Quickfix'
+let g:airline#extensions#quickfix#location_text = 'Location'
+
+function! airline#extensions#quickfix#apply(...)
+ if &buftype == 'quickfix'
+ let w:airline_section_a = s:get_text()
+ let w:airline_section_b = '%{get(w:, "quickfix_title", "")}'
+ let w:airline_section_c = ''
+ let w:airline_section_x = ''
+ endif
+endfunction
+
+function! airline#extensions#quickfix#init(ext)
+ call a:ext.add_statusline_func('airline#extensions#quickfix#apply')
+endfunction
+
+function! s:get_text()
+ redir => buffers
+ silent ls
+ redir END
+
+ let nr = bufnr('%')
+ for buf in split(buffers, '\n')
+ if match(buf, '\v^\s*'.nr) > -1
+ if match(buf, '\[Quickfix List\]') > -1
+ return g:airline#extensions#quickfix#quickfix_text
+ else
+ return g:airline#extensions#quickfix#location_text
+ endif
+ endif
+ endfor
+ return ''
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/syntastic.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/syntastic.vim
new file mode 100644
index 0000000..f7179af
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/syntastic.vim
@@ -0,0 +1,19 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+if !exists(':SyntasticCheck')
+ finish
+endif
+
+function! airline#extensions#syntastic#get_warnings()
+ let errors = SyntasticStatuslineFlag()
+ if strlen(errors) > 0
+ return errors.(g:airline_symbols.space)
+ endif
+ return ''
+endfunction
+
+function! airline#extensions#syntastic#init(ext)
+ call airline#parts#define_function('syntastic', 'airline#extensions#syntastic#get_warnings')
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline.vim
new file mode 100644
index 0000000..ec75db7
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline.vim
@@ -0,0 +1,278 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+let s:formatter = get(g:, 'airline#extensions#tabline#formatter', 'default')
+let s:excludes = get(g:, 'airline#extensions#tabline#excludes', [])
+let s:tab_nr_type = get(g:, 'airline#extensions#tabline#tab_nr_type', 0)
+let s:show_buffers = get(g:, 'airline#extensions#tabline#show_buffers', 1)
+let s:show_tab_nr = get(g:, 'airline#extensions#tabline#show_tab_nr', 1)
+let s:show_tab_type = get(g:, 'airline#extensions#tabline#show_tab_type', 1)
+let s:close_symbol = get(g:, 'airline#extensions#tabline#close_symbol', 'X')
+
+let s:builder_context = {
+ \ 'active' : 1,
+ \ 'right_sep' : get(g:, 'airline#extensions#tabline#right_sep' , g:airline_right_sep),
+ \ 'right_alt_sep' : get(g:, 'airline#extensions#tabline#right_alt_sep', g:airline_right_alt_sep),
+ \ }
+if get(g:, 'airline_powerline_fonts', 0)
+ let s:builder_context.left_sep = get(g:, 'airline#extensions#tabline#left_sep' , "\ue0b0")
+ let s:builder_context.left_alt_sep = get(g:, 'airline#extensions#tabline#left_alt_sep' , "\ue0b1")
+else
+ let s:builder_context.left_sep = get(g:, 'airline#extensions#tabline#left_sep' , ' ')
+ let s:builder_context.left_alt_sep = get(g:, 'airline#extensions#tabline#left_alt_sep' , '|')
+endif
+
+let s:buf_min_count = get(g:, 'airline#extensions#tabline#buffer_min_count', 0)
+let s:tab_min_count = get(g:, 'airline#extensions#tabline#tab_min_count', 0)
+let s:spc = g:airline_symbols.space
+
+function! airline#extensions#tabline#init(ext)
+ if has('gui_running')
+ set guioptions-=e
+ endif
+
+ autocmd User AirlineToggledOn call s:toggle_on()
+ autocmd User AirlineToggledOff call s:toggle_off()
+ autocmd BufDelete * let s:current_bufnr = -1
+
+ call s:toggle_on()
+ call a:ext.add_theme_func('airline#extensions#tabline#load_theme')
+endfunction
+
+function! s:toggle_off()
+ if exists('s:original_tabline')
+ let &tabline = s:original_tabline
+ let &showtabline = s:original_showtabline
+ endif
+endfunction
+
+function! s:toggle_on()
+ let [ s:original_tabline, s:original_showtabline ] = [ &tabline, &showtabline ]
+
+ set tabline=%!airline#extensions#tabline#get()
+ if s:buf_min_count <= 0 && s:tab_min_count <= 1
+ set showtabline=2
+ else
+ augroup airline_tabline
+ autocmd!
+ if s:show_buffers == 1
+ autocmd CursorMoved * call <sid>on_cursormove(s:buf_min_count, len(s:get_buffer_list()))
+ else
+ autocmd TabEnter * call <sid>on_cursormove(s:tab_min_count, tabpagenr('$'))
+ endif
+ augroup END
+ endif
+endfunction
+
+function! airline#extensions#tabline#load_theme(palette)
+ let colors = get(a:palette, 'tabline', {})
+ let l:tab = get(colors, 'airline_tab', a:palette.normal.airline_b)
+ let l:tabsel = get(colors, 'airline_tabsel', a:palette.normal.airline_a)
+ let l:tabtype = get(colors, 'airline_tabtype', a:palette.visual.airline_a)
+ let l:tabfill = get(colors, 'airline_tabfill', a:palette.normal.airline_c)
+ let l:tabmod = get(colors, 'airline_tabmod', a:palette.insert.airline_a)
+ let l:tabhid = get(colors, 'airline_tabhid', a:palette.normal.airline_c)
+ call airline#highlighter#exec('airline_tab', l:tab)
+ call airline#highlighter#exec('airline_tabsel', l:tabsel)
+ call airline#highlighter#exec('airline_tabtype', l:tabtype)
+ call airline#highlighter#exec('airline_tabfill', l:tabfill)
+ call airline#highlighter#exec('airline_tabmod', l:tabmod)
+ call airline#highlighter#exec('airline_tabhid', l:tabhid)
+endfunction
+
+function! s:on_cursormove(min_count, total_count)
+ if a:total_count >= a:min_count
+ if &showtabline != 2
+ set showtabline=2
+ endif
+ else
+ if &showtabline != 0
+ set showtabline=0
+ endif
+ endif
+endfunction
+
+function! airline#extensions#tabline#get()
+ if s:show_buffers && tabpagenr('$') == 1
+ return s:get_buffers()
+ else
+ return s:get_tabs()
+ endif
+endfunction
+
+function! airline#extensions#tabline#title(n)
+ let buflist = tabpagebuflist(a:n)
+ let winnr = tabpagewinnr(a:n)
+ return airline#extensions#tabline#get_buffer_name(buflist[winnr - 1])
+endfunction
+
+function! airline#extensions#tabline#get_buffer_name(nr)
+ return airline#extensions#tabline#{s:formatter}#format(a:nr, get(s:, 'current_buffer_list', s:get_buffer_list()))
+endfunction
+
+function! s:get_buffer_list()
+ let buffers = []
+ let cur = bufnr('%')
+ for nr in range(1, bufnr('$'))
+ if buflisted(nr) && bufexists(nr)
+ for ex in s:excludes
+ if match(bufname(nr), ex)
+ continue
+ endif
+ endfor
+ if getbufvar(nr, 'current_syntax') == 'qf'
+ continue
+ endif
+ call add(buffers, nr)
+ endif
+ endfor
+
+ let s:current_buffer_list = buffers
+ return buffers
+endfunction
+
+function! s:get_visible_buffers()
+ let buffers = s:get_buffer_list()
+ let cur = bufnr('%')
+
+ let total_width = 0
+ let max_width = 0
+
+ for nr in buffers
+ let width = len(airline#extensions#tabline#get_buffer_name(nr)) + 4
+ let total_width += width
+ let max_width = max([max_width, width])
+ endfor
+
+ " only show current and surrounding buffers if there are too many buffers
+ let position = index(buffers, cur)
+ let vimwidth = &columns
+ if total_width > vimwidth && position > -1
+ let buf_count = len(buffers)
+
+ " determine how many buffers to show based on the longest buffer width,
+ " use one on the right side and put the rest on the left
+ let buf_max = vimwidth / max_width
+ let buf_right = 1
+ let buf_left = max([0, buf_max - buf_right])
+
+ let start = max([0, position - buf_left])
+ let end = min([buf_count, position + buf_right])
+
+ " fill up available space on the right
+ if position < buf_left
+ let end += (buf_left - position)
+ endif
+
+ " fill up available space on the left
+ if end > buf_count - 1 - buf_right
+ let start -= max([0, buf_right - (buf_count - 1 - position)])
+ endif
+
+ let buffers = eval('buffers[' . start . ':' . end . ']')
+
+ if start > 0
+ call insert(buffers, -1, 0)
+ endif
+
+ if end < buf_count - 1
+ call add(buffers, -1)
+ endif
+ endif
+
+ return buffers
+endfunction
+
+let s:current_bufnr = -1
+let s:current_tabnr = -1
+let s:current_tabline = ''
+let s:current_modified = 0
+function! s:get_buffers()
+ let cur = bufnr('%')
+ if cur == s:current_bufnr
+ if !g:airline_detect_modified || getbufvar(cur, '&modified') == s:current_modified
+ return s:current_tabline
+ endif
+ endif
+
+ let b = airline#builder#new(s:builder_context)
+ let tab_bufs = tabpagebuflist(tabpagenr())
+ for nr in s:get_visible_buffers()
+ if nr < 0
+ call b.add_raw('%#airline_tabhid#...')
+ continue
+ endif
+ if cur == nr
+ if g:airline_detect_modified && getbufvar(nr, '&modified')
+ let group = 'airline_tabmod'
+ else
+ let group = 'airline_tabsel'
+ endif
+ let s:current_modified = (group == 'airline_tabmod') ? 1 : 0
+ else
+ if index(tab_bufs, nr) > -1
+ let group = 'airline_tab'
+ else
+ let group = 'airline_tabhid'
+ endif
+ endif
+ call b.add_section(group, s:spc.'%(%{airline#extensions#tabline#get_buffer_name('.nr.')}%)'.s:spc)
+ endfor
+
+ call b.add_section('airline_tabfill', '')
+ call b.split()
+ call b.add_section('airline_tabtype', ' buffers ')
+
+ let s:current_bufnr = cur
+ let s:current_tabline = b.build()
+ return s:current_tabline
+endfunction
+
+function! s:get_tabs()
+ let curbuf = bufnr('%')
+ let curtab = tabpagenr()
+ if curbuf == s:current_bufnr && curtab == s:current_tabnr
+ if !g:airline_detect_modified || getbufvar(curbuf, '&modified') == s:current_modified
+ return s:current_tabline
+ endif
+ endif
+
+ let b = airline#builder#new(s:builder_context)
+ for i in range(1, tabpagenr('$'))
+ if i == curtab
+ let group = 'airline_tabsel'
+ if g:airline_detect_modified
+ for bi in tabpagebuflist(i)
+ if getbufvar(bi, '&modified')
+ let group = 'airline_tabmod'
+ endif
+ endfor
+ endif
+ let s:current_modified = (group == 'airline_tabmod') ? 1 : 0
+ else
+ let group = 'airline_tab'
+ endif
+ let val = '%('
+ if s:show_tab_nr
+ if s:tab_nr_type == 0
+ let val .= ' %{len(tabpagebuflist('.i.'))}'
+ else
+ let val .= (g:airline_symbols.space).i
+ endif
+ endif
+ call b.add_section(group, val.'%'.i.'T %{airline#extensions#tabline#title('.i.')} %)')
+ endfor
+
+ call b.add_raw('%T')
+ call b.add_section('airline_tabfill', '')
+ call b.split()
+ call b.add_section('airline_tab', ' %999X'.s:close_symbol.' ')
+ if s:show_tab_type
+ call b.add_section('airline_tabtype', ' tabs ')
+ endif
+
+ let s:current_bufnr = curbuf
+ let s:current_tabnr = curtab
+ let s:current_tabline = b.build()
+ return s:current_tabline
+endfunction
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/default.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/default.vim
new file mode 100644
index 0000000..4f1ed40
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/default.vim
@@ -0,0 +1,35 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+let s:fmod = get(g:, 'airline#extensions#tabline#fnamemod', ':~:.')
+let s:fnamecollapse = get(g:, 'airline#extensions#tabline#fnamecollapse', 1)
+let s:buf_nr_format = get(g:, 'airline#extensions#tabline#buffer_nr_format', '%s: ')
+let s:buf_nr_show = get(g:, 'airline#extensions#tabline#buffer_nr_show', 0)
+let s:buf_modified_symbol = g:airline_symbols.modified
+
+function! airline#extensions#tabline#default#format(bufnr, buffers)
+ let _ = ''
+
+ let name = bufname(a:bufnr)
+ if empty(name)
+ let _ .= '[No Name]'
+ else
+ if s:fnamecollapse
+ let _ .= substitute(fnamemodify(name, s:fmod), '\v\w\zs.{-}\ze(\\|/)', '', 'g')
+ else
+ let _ .= fnamemodify(name, s:fmod)
+ endif
+ endif
+
+ return airline#extensions#tabline#default#wrap_name(a:bufnr, _)
+endfunction
+
+function! airline#extensions#tabline#default#wrap_name(bufnr, buffer_name)
+ let _ = s:buf_nr_show ? printf(s:buf_nr_format, a:bufnr) : ''
+ let _ .= substitute(a:buffer_name, '\\', '/', 'g')
+
+ if getbufvar(a:bufnr, '&modified') == 1
+ let _ .= s:buf_modified_symbol
+ endif
+ return _
+endfunction
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail.vim
new file mode 100644
index 0000000..e4a790d
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail.vim
@@ -0,0 +1,27 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+function! airline#extensions#tabline#unique_tail#format(bufnr, buffers)
+ let duplicates = {}
+ let tails = {}
+ let map = {}
+ for nr in a:buffers
+ let name = bufname(nr)
+ if empty(name)
+ let map[nr] = '[No Name]'
+ else
+ let tail = fnamemodify(name, ':t')
+ if has_key(tails, tail)
+ let duplicates[nr] = nr
+ endif
+ let tails[tail] = 1
+ let map[nr] = airline#extensions#tabline#default#wrap_name(nr, tail)
+ endif
+ endfor
+
+ for nr in values(duplicates)
+ let map[nr] = airline#extensions#tabline#default#wrap_name(nr, fnamemodify(bufname(nr), ':p:.'))
+ endfor
+
+ return map[a:bufnr]
+endfunction
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail_improved.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail_improved.vim
new file mode 100644
index 0000000..6b13dcf
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/unique_tail_improved.vim
@@ -0,0 +1,89 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+let s:skip_symbol = '…'
+
+function! airline#extensions#tabline#unique_tail_improved#format(bufnr, buffers)
+ if len(a:buffers) <= 1 " don't need to compare bufnames if has less than one buffer opened
+ return airline#extensions#tabline#default#format(a:bufnr, a:buffers)
+ endif
+
+ let curbuf_tail = fnamemodify(bufname(a:bufnr), ':t')
+ let do_deduplicate = 0
+ let path_tokens = {}
+
+ for nr in a:buffers
+ let name = bufname(nr)
+ if !empty(name) && nr != a:bufnr && fnamemodify(name, ':t') == curbuf_tail
+ let do_deduplicate = 1
+ let tokens = reverse(split(substitute(fnamemodify(name, ':p:.:h'), '\\', '/', 'g'), '/'))
+ let token_index = 0
+ for token in tokens
+ if token == '' | continue | endif
+ if token == '.' | break | endif
+ if !has_key(path_tokens, token_index)
+ let path_tokens[token_index] = {}
+ endif
+ let path_tokens[token_index][token] = 1
+ let token_index += 1
+ endfor
+ endif
+ endfor
+
+ if do_deduplicate == 1
+ let path = []
+ let token_index = 0
+ for token in reverse(split(substitute(fnamemodify(bufname(a:bufnr), ':p:.:h'), '\\', '/', 'g'), '/'))
+ if token == '.' | break | endif
+ let duplicated = 0
+ let uniq = 1
+ let single = 1
+ if has_key(path_tokens, token_index)
+ let duplicated = 1
+ if len(keys(path_tokens[token_index])) > 1 | let single = 0 | endif
+ if has_key(path_tokens[token_index], token) | let uniq = 0 | endif
+ endif
+ call insert(path, {'token': token, 'duplicated': duplicated, 'uniq': uniq, 'single': single})
+ let token_index += 1
+ endfor
+
+ let buf_name = [curbuf_tail]
+ let has_uniq = 0
+ let has_skipped = 0
+ for token1 in reverse(path)
+ if !token1['duplicated'] && len(buf_name) > 1
+ call insert(buf_name, s:skip_symbol)
+ let has_skipped = 0
+ break
+ endif
+
+ if has_uniq == 1
+ call insert(buf_name, s:skip_symbol)
+ let has_skipped = 0
+ break
+ endif
+
+ if token1['uniq'] == 0 && token1['single'] == 1
+ let has_skipped = 1
+ else
+ if has_skipped == 1
+ call insert(buf_name, s:skip_symbol)
+ let has_skipped = 0
+ endif
+ call insert(buf_name, token1['token'])
+ endif
+
+ if token1['uniq'] == 1
+ let has_uniq = 1
+ endif
+ endfor
+
+ if has_skipped == 1
+ call insert(buf_name, s:skip_symbol)
+ endif
+
+ return airline#extensions#tabline#default#wrap_name(a:bufnr, join(buf_name, '/'))
+ else
+ return airline#extensions#tabline#default#format(a:bufnr, a:buffers)
+ endif
+endfunction
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tagbar.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tagbar.vim
new file mode 100644
index 0000000..56919a8
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tagbar.vim
@@ -0,0 +1,45 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+if !exists(':TagbarToggle')
+ finish
+endif
+
+let s:flags = get(g:, 'airline#extensions#tagbar#flags', '')
+let s:spc = g:airline_symbols.space
+
+" Arguments: current, sort, fname
+function! airline#extensions#tagbar#get_status(...)
+ let builder = airline#builder#new({ 'active': a:1 })
+ call builder.add_section('airline_a', s:spc.'Tagbar'.s:spc)
+ call builder.add_section('airline_b', s:spc.a:2.s:spc)
+ call builder.add_section('airline_c', s:spc.a:3.s:spc)
+ return builder.build()
+endfunction
+
+function! airline#extensions#tagbar#inactive_apply(...)
+ if getwinvar(a:2.winnr, '&filetype') == 'tagbar'
+ return -1
+ endif
+endfunction
+
+let s:airline_tagbar_last_lookup_time = 0
+let s:airline_tagbar_last_lookup_val = ''
+function! airline#extensions#tagbar#currenttag()
+ if get(w:, 'airline_active', 0)
+ if s:airline_tagbar_last_lookup_time != localtime()
+ let s:airline_tagbar_last_lookup_val = tagbar#currenttag('%s', '', s:flags)
+ let s:airline_tagbar_last_lookup_time = localtime()
+ endif
+ return s:airline_tagbar_last_lookup_val
+ endif
+ return ''
+endfunction
+
+function! airline#extensions#tagbar#init(ext)
+ call a:ext.add_inactive_statusline_func('airline#extensions#tagbar#inactive_apply')
+ let g:tagbar_status_func = 'airline#extensions#tagbar#get_status'
+
+ call airline#parts#define_function('tagbar', 'airline#extensions#tagbar#currenttag')
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tmuxline.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tmuxline.vim
new file mode 100644
index 0000000..363709b
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/tmuxline.vim
@@ -0,0 +1,26 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+if !exists(':Tmuxline')
+ finish
+endif
+
+let s:tmuxline_snapshot_file = get(g:, 'airline#extensions#tmuxline#snapshot_file', '')
+let s:color_template = get(g:, 'airline#extensions#tmuxline#color_template', 'normal')
+
+function! airline#extensions#tmuxline#init(ext)
+ call a:ext.add_theme_func('airline#extensions#tmuxline#set_tmux_colors')
+endfunction
+
+function! airline#extensions#tmuxline#set_tmux_colors(palette)
+ let color_template = has_key(a:palette, s:color_template) ? s:color_template : 'normal'
+ let mode_palette = a:palette[color_template]
+
+ let tmuxline_theme = tmuxline#api#create_theme_from_airline(mode_palette)
+ call tmuxline#api#set_theme(tmuxline_theme)
+
+ if strlen(s:tmuxline_snapshot_file)
+ call tmuxline#api#snapshot(s:tmuxline_snapshot_file)
+ endif
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/undotree.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/undotree.vim
new file mode 100644
index 0000000..f577ffd
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/undotree.vim
@@ -0,0 +1,27 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+if !exists(':UndotreeToggle')
+ finish
+endif
+
+function! airline#extensions#undotree#apply(...)
+ if exists('t:undotree')
+ if &ft == 'undotree'
+ if exists('*t:undotree.GetStatusLine')
+ call airline#extensions#apply_left_override('undo', '%{t:undotree.GetStatusLine()}')
+ else
+ call airline#extensions#apply_left_override('undotree', '%f')
+ endif
+ endif
+
+ if &ft == 'diff' && exists('*t:diffpanel.GetStatusLine')
+ call airline#extensions#apply_left_override('diff', '%{t:diffpanel.GetStatusLine()}')
+ endif
+ endif
+endfunction
+
+function! airline#extensions#undotree#init(ext)
+ call a:ext.add_statusline_func('airline#extensions#undotree#apply')
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/unite.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/unite.vim
new file mode 100644
index 0000000..d230b6f
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/unite.vim
@@ -0,0 +1,23 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+if !get(g:, 'loaded_unite', 0)
+ finish
+endif
+
+function! airline#extensions#unite#apply(...)
+ if &ft == 'unite'
+ call a:1.add_section('airline_a', ' Unite ')
+ call a:1.add_section('airline_b', ' %{get(unite#get_context(), "buffer_name", "")} ')
+ call a:1.add_section('airline_c', ' %{unite#get_status_string()} ')
+ call a:1.split()
+ call a:1.add_section('airline_y', ' %{get(unite#get_context(), "real_buffer_name", "")} ')
+ return 1
+ endif
+endfunction
+
+function! airline#extensions#unite#init(ext)
+ let g:unite_force_overwrite_statusline = 0
+ call a:ext.add_statusline_func('airline#extensions#unite#apply')
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/virtualenv.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/virtualenv.vim
new file mode 100644
index 0000000..f070c47
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/virtualenv.vim
@@ -0,0 +1,20 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+if !get(g:, 'virtualenv_loaded', 0)
+ finish
+endif
+
+let s:spc = g:airline_symbols.space
+
+function! airline#extensions#virtualenv#init(ext)
+ call a:ext.add_statusline_func('airline#extensions#virtualenv#apply')
+endfunction
+
+function! airline#extensions#virtualenv#apply(...)
+ if &filetype =~ "python"
+ call airline#extensions#append_to_section('x',
+ \ s:spc.g:airline_right_alt_sep.s:spc.'%{virtualenv#statusline()}')
+ endif
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/extensions/whitespace.vim b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/whitespace.vim
new file mode 100644
index 0000000..8657412
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/extensions/whitespace.vim
@@ -0,0 +1,103 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+" http://got-ravings.blogspot.com/2008/10/vim-pr0n-statusline-whitespace-flags.html
+
+" for backwards compatibility
+if exists('g:airline_detect_whitespace')
+ let s:show_message = g:airline_detect_whitespace == 1
+else
+ let s:show_message = get(g:, 'airline#extensions#whitespace#show_message', 1)
+endif
+
+let s:symbol = get(g:, 'airline#extensions#whitespace#symbol', g:airline_symbols.whitespace)
+let s:default_checks = ['indent', 'trailing']
+
+let s:trailing_format = get(g:, 'airline#extensions#whitespace#trailing_format', 'trailing[%s]')
+let s:mixed_indent_format = get(g:, 'airline#extensions#whitespace#mixed_indent_format', 'mixed-indent[%s]')
+let s:indent_algo = get(g:, 'airline#extensions#whitespace#mixed_indent_algo', 0)
+
+let s:max_lines = get(g:, 'airline#extensions#whitespace#max_lines', 20000)
+
+let s:enabled = get(g:, 'airline#extensions#whitespace#enabled', 1)
+
+function! s:check_mixed_indent()
+ if s:indent_algo == 1
+ " [<tab>]<space><tab>
+ " spaces before or between tabs are not allowed
+ let t_s_t = '(^\t* +\t\s*\S)'
+ " <tab>(<space> x count)
+ " count of spaces at the end of tabs should be less then tabstop value
+ let t_l_s = '(^\t+ {' . &ts . ',}' . '\S)'
+ return search('\v' . t_s_t . '|' . t_l_s, 'nw')
+ else
+ return search('\v(^\t+ +)|(^ +\t+)', 'nw')
+ endif
+endfunction
+
+function! airline#extensions#whitespace#check()
+ if &readonly || !&modifiable || !s:enabled || line('$') > s:max_lines
+ return ''
+ endif
+
+ if !exists('b:airline_whitespace_check')
+ let b:airline_whitespace_check = ''
+ let checks = get(g:, 'airline#extensions#whitespace#checks', s:default_checks)
+
+ let trailing = 0
+ if index(checks, 'trailing') > -1
+ let trailing = search('\s$', 'nw')
+ endif
+
+ let mixed = 0
+ if index(checks, 'indent') > -1
+ let mixed = s:check_mixed_indent()
+ endif
+
+ if trailing != 0 || mixed != 0
+ let b:airline_whitespace_check = s:symbol
+ if s:show_message
+ if trailing != 0
+ let b:airline_whitespace_check .= (g:airline_symbols.space).printf(s:trailing_format, trailing)
+ endif
+ if mixed != 0
+ let b:airline_whitespace_check .= (g:airline_symbols.space).printf(s:mixed_indent_format, mixed)
+ endif
+ endif
+ endif
+ endif
+ return b:airline_whitespace_check
+endfunction!
+
+function! airline#extensions#whitespace#toggle()
+ if s:enabled
+ augroup airline_whitespace
+ autocmd!
+ augroup END
+ augroup! airline_whitespace
+ let s:enabled = 0
+ else
+ call airline#extensions#whitespace#init()
+ let s:enabled = 1
+ endif
+
+ if exists("g:airline#extensions#whitespace#enabled")
+ let g:airline#extensions#whitespace#enabled = s:enabled
+ if s:enabled && match(g:airline_section_warning, '#whitespace#check') < 0
+ let g:airline_section_warning .= airline#section#create(['whitespace'])
+ call airline#update_statusline()
+ endif
+ endif
+ echo 'Whitespace checking: '.(s:enabled ? 'Enabled' : 'Disabled')
+endfunction
+
+function! airline#extensions#whitespace#init(...)
+ call airline#parts#define_function('whitespace', 'airline#extensions#whitespace#check')
+
+ unlet! b:airline_whitespace_check
+ augroup airline_whitespace
+ autocmd!
+ autocmd CursorHold,BufWritePost * unlet! b:airline_whitespace_check
+ augroup END
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/highlighter.vim b/vim/.vim/bundle/vim-airline/autoload/airline/highlighter.vim
new file mode 100644
index 0000000..65a95cc
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/highlighter.vim
@@ -0,0 +1,156 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+let s:is_win32term = (has('win32') || has('win64')) && !has('gui_running')
+let s:separators = {}
+let s:accents = {}
+
+function! s:gui2cui(rgb, fallback)
+ if a:rgb == ''
+ return a:fallback
+ endif
+ let rgb = map(matchlist(a:rgb, '#\(..\)\(..\)\(..\)')[1:3], '0 + ("0x".v:val)')
+ let rgb = [rgb[0] > 127 ? 4 : 0, rgb[1] > 127 ? 2 : 0, rgb[2] > 127 ? 1 : 0]
+ return rgb[0]+rgb[1]+rgb[2]
+endfunction
+
+function! s:get_syn(group, what)
+ " need to pass in mode, known to break on 7.3.547
+ let mode = has('gui_running') ? 'gui' : 'cterm'
+ let color = synIDattr(synIDtrans(hlID(a:group)), a:what, mode)
+ if empty(color) || color == -1
+ let color = synIDattr(synIDtrans(hlID('Normal')), a:what, mode)
+ endif
+ if empty(color) || color == -1
+ if has('gui_running')
+ let color = a:what ==# 'fg' ? '#000000' : '#FFFFFF'
+ else
+ let color = a:what ==# 'fg' ? 0 : 1
+ endif
+ endif
+ return color
+endfunction
+
+function! s:get_array(fg, bg, opts)
+ let fg = a:fg
+ let bg = a:bg
+ return has('gui_running')
+ \ ? [ fg, bg, '', '', join(a:opts, ',') ]
+ \ : [ '', '', fg, bg, join(a:opts, ',') ]
+endfunction
+
+function! airline#highlighter#get_highlight(group, ...)
+ let fg = s:get_syn(a:group, 'fg')
+ let bg = s:get_syn(a:group, 'bg')
+ let reverse = synIDattr(synIDtrans(hlID(a:group)), 'reverse', has('gui_running') ? 'gui' : 'term')
+ return reverse ? s:get_array(bg, fg, a:000) : s:get_array(fg, bg, a:000)
+endfunction
+
+function! airline#highlighter#get_highlight2(fg, bg, ...)
+ let fg = s:get_syn(a:fg[0], a:fg[1])
+ let bg = s:get_syn(a:bg[0], a:bg[1])
+ return s:get_array(fg, bg, a:000)
+endfunction
+
+function! airline#highlighter#exec(group, colors)
+ let colors = a:colors
+ if s:is_win32term
+ let colors[2] = s:gui2cui(get(colors, 0, ''), get(colors, 2, ''))
+ let colors[3] = s:gui2cui(get(colors, 1, ''), get(colors, 3, ''))
+ endif
+ exec printf('hi %s %s %s %s %s %s %s %s',
+ \ a:group,
+ \ get(colors, 0, '') != '' ? 'guifg='.colors[0] : '',
+ \ get(colors, 1, '') != '' ? 'guibg='.colors[1] : '',
+ \ get(colors, 2, '') != '' ? 'ctermfg='.colors[2] : '',
+ \ get(colors, 3, '') != '' ? 'ctermbg='.colors[3] : '',
+ \ get(colors, 4, '') != '' ? 'gui='.colors[4] : '',
+ \ get(colors, 4, '') != '' ? 'cterm='.colors[4] : '',
+ \ get(colors, 4, '') != '' ? 'term='.colors[4] : '')
+endfunction
+
+function! s:exec_separator(dict, from, to, inverse, suffix)
+ let l:from = airline#themes#get_highlight(a:from.a:suffix)
+ let l:to = airline#themes#get_highlight(a:to.a:suffix)
+ let group = a:from.'_to_'.a:to.a:suffix
+ if a:inverse
+ let colors = [ l:from[1], l:to[1], l:from[3], l:to[3] ]
+ else
+ let colors = [ l:to[1], l:from[1], l:to[3], l:from[3] ]
+ endif
+ let a:dict[group] = colors
+ call airline#highlighter#exec(group, colors)
+endfunction
+
+function! airline#highlighter#load_theme()
+ for winnr in filter(range(1, winnr('$')), 'v:val != winnr()')
+ call airline#highlighter#highlight_modified_inactive(winbufnr(winnr))
+ endfor
+ call airline#highlighter#highlight(['inactive'])
+ call airline#highlighter#highlight(['normal'])
+endfunction
+
+function! airline#highlighter#add_separator(from, to, inverse)
+ let s:separators[a:from.a:to] = [a:from, a:to, a:inverse]
+ call <sid>exec_separator({}, a:from, a:to, a:inverse, '')
+endfunction
+
+function! airline#highlighter#add_accent(accent)
+ let s:accents[a:accent] = 1
+endfunction
+
+function! airline#highlighter#highlight_modified_inactive(bufnr)
+ if getbufvar(a:bufnr, '&modified')
+ let colors = exists('g:airline#themes#{g:airline_theme}#palette.inactive_modified.airline_c')
+ \ ? g:airline#themes#{g:airline_theme}#palette.inactive_modified.airline_c : []
+ else
+ let colors = exists('g:airline#themes#{g:airline_theme}#palette.inactive.airline_c')
+ \ ? g:airline#themes#{g:airline_theme}#palette.inactive.airline_c : []
+ endif
+
+ if !empty(colors)
+ call airline#highlighter#exec('airline_c'.(a:bufnr).'_inactive', colors)
+ endif
+endfunction
+
+function! airline#highlighter#highlight(modes)
+ let p = g:airline#themes#{g:airline_theme}#palette
+
+ " draw the base mode, followed by any overrides
+ let mapped = map(a:modes, 'v:val == a:modes[0] ? v:val : a:modes[0]."_".v:val')
+ let suffix = a:modes[0] == 'inactive' ? '_inactive' : ''
+ for mode in mapped
+ if exists('g:airline#themes#{g:airline_theme}#palette[mode]')
+ let dict = g:airline#themes#{g:airline_theme}#palette[mode]
+ for kvp in items(dict)
+ let mode_colors = kvp[1]
+ call airline#highlighter#exec(kvp[0].suffix, mode_colors)
+
+ for accent in keys(s:accents)
+ if !has_key(p.accents, accent)
+ continue
+ endif
+ let colors = copy(mode_colors)
+ if p.accents[accent][0] != ''
+ let colors[0] = p.accents[accent][0]
+ endif
+ if p.accents[accent][2] != ''
+ let colors[2] = p.accents[accent][2]
+ endif
+ if len(colors) >= 5
+ let colors[4] = get(p.accents[accent], 4, '')
+ else
+ call add(colors, get(p.accents[accent], 4, ''))
+ endif
+ call airline#highlighter#exec(kvp[0].suffix.'_'.accent, colors)
+ endfor
+ endfor
+
+ " TODO: optimize this
+ for sep in items(s:separators)
+ call <sid>exec_separator(dict, sep[1][0], sep[1][1], sep[1][2], suffix)
+ endfor
+ endif
+ endfor
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/init.vim b/vim/.vim/bundle/vim-airline/autoload/airline/init.vim
new file mode 100644
index 0000000..a60774d
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/init.vim
@@ -0,0 +1,113 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+function! s:check_defined(variable, default)
+ if !exists(a:variable)
+ let {a:variable} = a:default
+ endif
+endfunction
+
+let s:loaded = 0
+function! airline#init#bootstrap()
+ if s:loaded
+ return
+ endif
+ let s:loaded = 1
+
+ let g:airline#init#bootstrapping = 1
+
+ call s:check_defined('g:airline_left_sep', get(g:, 'airline_powerline_fonts', 0)?"\ue0b0":">")
+ call s:check_defined('g:airline_left_alt_sep', get(g:, 'airline_powerline_fonts', 0)?"\ue0b1":">")
+ call s:check_defined('g:airline_right_sep', get(g:, 'airline_powerline_fonts', 0)?"\ue0b2":"<")
+ call s:check_defined('g:airline_right_alt_sep', get(g:, 'airline_powerline_fonts', 0)?"\ue0b3":"<")
+ call s:check_defined('g:airline_detect_modified', 1)
+ call s:check_defined('g:airline_detect_paste', 1)
+ call s:check_defined('g:airline_detect_iminsert', 0)
+ call s:check_defined('g:airline_inactive_collapse', 1)
+ call s:check_defined('g:airline_exclude_filenames', ['DebuggerWatch','DebuggerStack','DebuggerStatus'])
+ call s:check_defined('g:airline_exclude_filetypes', [])
+ call s:check_defined('g:airline_exclude_preview', 0)
+
+ call s:check_defined('g:airline_mode_map', {})
+ call extend(g:airline_mode_map, {
+ \ '__' : '------',
+ \ 'n' : 'NORMAL',
+ \ 'i' : 'INSERT',
+ \ 'R' : 'REPLACE',
+ \ 'v' : 'VISUAL',
+ \ 'V' : 'V-LINE',
+ \ 'c' : 'COMMAND',
+ \ '' : 'V-BLOCK',
+ \ 's' : 'SELECT',
+ \ 'S' : 'S-LINE',
+ \ '' : 'S-BLOCK',
+ \ }, 'keep')
+
+ call s:check_defined('g:airline_theme_map', {})
+ call extend(g:airline_theme_map, {
+ \ 'Tomorrow.*': 'tomorrow',
+ \ 'base16.*': 'base16',
+ \ 'mo[l|n]okai': 'molokai',
+ \ 'wombat.*': 'wombat',
+ \ '.*zenburn.*': 'zenburn',
+ \ '.*solarized.*': 'solarized',
+ \ }, 'keep')
+
+ call s:check_defined('g:airline_symbols', {})
+ call extend(g:airline_symbols, {
+ \ 'paste': get(g:, 'airline_paste_symbol', 'PASTE'),
+ \ 'readonly': get(g:, 'airline_readonly_symbol', get(g:, 'airline_powerline_fonts', 0) ? "\ue0a2" : 'RO'),
+ \ 'whitespace': get(g:, 'airline_powerline_fonts', 0) ? "\u2739" : '!',
+ \ 'linenr': get(g:, 'airline_linecolumn_prefix', get(g:, 'airline_powerline_fonts', 0) ? "\ue0a1" : ':' ),
+ \ 'branch': get(g:, 'airline_branch_prefix', get(g:, 'airline_powerline_fonts', 0) ? "\ue0a0" : ''),
+ \ 'modified': '+',
+ \ 'space': ' ',
+ \ }, 'keep')
+
+ call airline#parts#define('mode', {
+ \ 'function': 'airline#parts#mode',
+ \ 'accent': 'bold',
+ \ })
+ call airline#parts#define_function('iminsert', 'airline#parts#iminsert')
+ call airline#parts#define_function('paste', 'airline#parts#paste')
+ call airline#parts#define_function('filetype', 'airline#parts#filetype')
+ call airline#parts#define('readonly', {
+ \ 'function': 'airline#parts#readonly',
+ \ 'accent': 'red',
+ \ })
+ call airline#parts#define_raw('file', '%f%m')
+ call airline#parts#define_raw('linenr', '%{g:airline_symbols.linenr}%#__accent_bold#%4l%#__restore__#')
+ call airline#parts#define_function('ffenc', 'airline#parts#ffenc')
+ call airline#parts#define_empty(['hunks', 'branch', 'tagbar', 'syntastic', 'eclim', 'whitespace'])
+
+ unlet g:airline#init#bootstrapping
+endfunction
+
+function! airline#init#sections()
+ let spc = g:airline_symbols.space
+ if !exists('g:airline_section_a')
+ let g:airline_section_a = airline#section#create_left(['mode', 'paste', 'iminsert'])
+ endif
+ if !exists('g:airline_section_b')
+ let g:airline_section_b = airline#section#create(['hunks', 'branch'])
+ endif
+ if !exists('g:airline_section_c')
+ let g:airline_section_c = airline#section#create(['%<', 'file', spc, 'readonly'])
+ endif
+ if !exists('g:airline_section_gutter')
+ let g:airline_section_gutter = airline#section#create(['%='])
+ endif
+ if !exists('g:airline_section_x')
+ let g:airline_section_x = airline#section#create_right(['tagbar', 'filetype'])
+ endif
+ if !exists('g:airline_section_y')
+ let g:airline_section_y = airline#section#create_right(['ffenc'])
+ endif
+ if !exists('g:airline_section_z')
+ let g:airline_section_z = airline#section#create(['%3p%%'.spc, 'linenr', ':%3c '])
+ endif
+ if !exists('g:airline_section_warning')
+ let g:airline_section_warning = airline#section#create(['syntastic', 'eclim', 'whitespace'])
+ endif
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/parts.vim b/vim/.vim/bundle/vim-airline/autoload/airline/parts.vim
new file mode 100644
index 0000000..b0356b1
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/parts.vim
@@ -0,0 +1,79 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+let s:parts = {}
+
+" PUBLIC API {{{
+
+function! airline#parts#define(key, config)
+ let s:parts[a:key] = get(s:parts, a:key, {})
+ if exists('g:airline#init#bootstrapping')
+ call extend(s:parts[a:key], a:config, 'keep')
+ else
+ call extend(s:parts[a:key], a:config, 'force')
+ endif
+endfunction
+
+function! airline#parts#define_function(key, name)
+ call airline#parts#define(a:key, { 'function': a:name })
+endfunction
+
+function! airline#parts#define_text(key, text)
+ call airline#parts#define(a:key, { 'text': a:text })
+endfunction
+
+function! airline#parts#define_raw(key, raw)
+ call airline#parts#define(a:key, { 'raw': a:raw })
+endfunction
+
+function! airline#parts#define_minwidth(key, width)
+ call airline#parts#define(a:key, { 'minwidth': a:width })
+endfunction
+
+function! airline#parts#define_condition(key, predicate)
+ call airline#parts#define(a:key, { 'condition': a:predicate })
+endfunction
+
+function! airline#parts#define_accent(key, accent)
+ call airline#parts#define(a:key, { 'accent': a:accent })
+endfunction
+
+function! airline#parts#define_empty(keys)
+ for key in a:keys
+ call airline#parts#define_raw(key, '')
+ endfor
+endfunction
+
+function! airline#parts#get(key)
+ return get(s:parts, a:key, {})
+endfunction
+
+" }}}
+
+function! airline#parts#mode()
+ return get(w:, 'airline_current_mode', '')
+endfunction
+
+function! airline#parts#paste()
+ return g:airline_detect_paste && &paste ? g:airline_symbols.paste : ''
+endfunction
+
+function! airline#parts#iminsert()
+ if g:airline_detect_iminsert && &iminsert && exists('b:keymap_name')
+ return toupper(b:keymap_name)
+ endif
+ return ''
+endfunction
+
+function! airline#parts#readonly()
+ return &readonly ? g:airline_symbols.readonly : ''
+endfunction
+
+function! airline#parts#filetype()
+ return &filetype
+endfunction
+
+function! airline#parts#ffenc()
+ return printf('%s%s', &fenc, strlen(&ff) > 0 ? '['.&ff.']' : '')
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/section.vim b/vim/.vim/bundle/vim-airline/autoload/airline/section.vim
new file mode 100644
index 0000000..0baf077
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/section.vim
@@ -0,0 +1,73 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+call airline#init#bootstrap()
+let s:spc = g:airline_symbols.space
+
+function! s:wrap_accent(part, value)
+ if exists('a:part.accent')
+ call airline#highlighter#add_accent(a:part.accent)
+ return '%#__accent_'.(a:part.accent).'#'.a:value.'%#__restore__#'
+ endif
+ return a:value
+endfunction
+
+function! s:create(parts, append)
+ let _ = ''
+ for idx in range(len(a:parts))
+ let part = airline#parts#get(a:parts[idx])
+ let val = ''
+
+ if exists('part.function')
+ let func = (part.function).'()'
+ elseif exists('part.text')
+ let func = '"'.(part.text).'"'
+ else
+ if a:append > 0 && idx != 0
+ let val .= s:spc.g:airline_left_alt_sep.s:spc
+ endif
+ if a:append < 0 && idx != 0
+ let val = s:spc.g:airline_right_alt_sep.s:spc.val
+ endif
+ if exists('part.raw')
+ let _ .= s:wrap_accent(part, val.(part.raw))
+ continue
+ else
+ let _ .= s:wrap_accent(part, val.a:parts[idx])
+ continue
+ endif
+ endif
+
+ let minwidth = get(part, 'minwidth', 0)
+
+ if a:append > 0 && idx != 0
+ let partval = printf('%%{airline#util#append(%s,%s)}', func, minwidth)
+ elseif a:append < 0 && idx != len(a:parts) - 1
+ let partval = printf('%%{airline#util#prepend(%s,%s)}', func, minwidth)
+ else
+ let partval = printf('%%{airline#util#wrap(%s,%s)}', func, minwidth)
+ endif
+
+ if exists('part.condition')
+ let partval = substitute(partval, '{', '{'.(part.condition).' ? ', '')
+ let partval = substitute(partval, '}', ' : ""}', '')
+ endif
+
+ let val .= s:wrap_accent(part, partval)
+ let _ .= val
+ endfor
+ return _
+endfunction
+
+function! airline#section#create(parts)
+ return s:create(a:parts, 0)
+endfunction
+
+function! airline#section#create_left(parts)
+ return s:create(a:parts, 1)
+endfunction
+
+function! airline#section#create_right(parts)
+ return s:create(a:parts, -1)
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes.vim
new file mode 100644
index 0000000..07e0324
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes.vim
@@ -0,0 +1,67 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+" generates a dictionary which defines the colors for each highlight group
+function! airline#themes#generate_color_map(sect1, sect2, sect3, ...)
+ let palette = {
+ \ 'airline_a': [ a:sect1[0] , a:sect1[1] , a:sect1[2] , a:sect1[3] , get(a:sect1 , 4 , '') ] ,
+ \ 'airline_b': [ a:sect2[0] , a:sect2[1] , a:sect2[2] , a:sect2[3] , get(a:sect2 , 4 , '') ] ,
+ \ 'airline_c': [ a:sect3[0] , a:sect3[1] , a:sect3[2] , a:sect3[3] , get(a:sect3 , 4 , '') ] ,
+ \ }
+
+ if a:0 > 0
+ call extend(palette, {
+ \ 'airline_x': [ a:1[0] , a:1[1] , a:1[2] , a:1[3] , get(a:1 , 4 , '' ) ] ,
+ \ 'airline_y': [ a:2[0] , a:2[1] , a:2[2] , a:2[3] , get(a:2 , 4 , '' ) ] ,
+ \ 'airline_z': [ a:3[0] , a:3[1] , a:3[2] , a:3[3] , get(a:3 , 4 , '' ) ] ,
+ \ })
+ else
+ call extend(palette, {
+ \ 'airline_x': [ a:sect3[0] , a:sect3[1] , a:sect3[2] , a:sect3[3] , '' ] ,
+ \ 'airline_y': [ a:sect2[0] , a:sect2[1] , a:sect2[2] , a:sect2[3] , '' ] ,
+ \ 'airline_z': [ a:sect1[0] , a:sect1[1] , a:sect1[2] , a:sect1[3] , '' ] ,
+ \ })
+ endif
+
+ return palette
+endfunction
+
+function! airline#themes#get_highlight(group, ...)
+ return call('airline#highlighter#get_highlight', [a:group] + a:000)
+endfunction
+
+function! airline#themes#get_highlight2(fg, bg, ...)
+ return call('airline#highlighter#get_highlight2', [a:fg, a:bg] + a:000)
+endfunction
+
+function! airline#themes#patch(palette)
+ for mode in keys(a:palette)
+ if !has_key(a:palette[mode], 'airline_warning')
+ let a:palette[mode]['airline_warning'] = [ '#000000', '#df5f00', 232, 166 ]
+ endif
+ endfor
+
+ let a:palette.accents = get(a:palette, 'accents', {})
+ let a:palette.accents.bold = [ '', '', '', '', 'bold' ]
+ let a:palette.accents.italic = [ '', '', '', '', 'italic' ]
+
+ if !has_key(a:palette.accents, 'red')
+ let a:palette.accents.red = [ '#ff0000' , '' , 160 , '' ]
+ endif
+ if !has_key(a:palette.accents, 'green')
+ let a:palette.accents.green = [ '#008700' , '' , 22 , '' ]
+ endif
+ if !has_key(a:palette.accents, 'blue')
+ let a:palette.accents.blue = [ '#005fff' , '' , 27 , '' ]
+ endif
+ if !has_key(a:palette.accents, 'yellow')
+ let a:palette.accents.yellow = [ '#dfff00' , '' , 190 , '' ]
+ endif
+ if !has_key(a:palette.accents, 'orange')
+ let a:palette.accents.orange = [ '#df5f00' , '' , 166 , '' ]
+ endif
+ if !has_key(a:palette.accents, 'purple')
+ let a:palette.accents.purple = [ '#af00df' , '' , 128 , '' ]
+ endif
+endfunction
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/badwolf.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/badwolf.vim
new file mode 100644
index 0000000..41a25d1
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/badwolf.vim
@@ -0,0 +1,52 @@
+let s:N1 = [ '#141413' , '#aeee00' , 232 , 154 ] " blackestgravel & lime
+let s:N2 = [ '#f4cf86' , '#45413b' , 222 , 238 ] " dirtyblonde & deepgravel
+let s:N3 = [ '#8cffba' , '#242321' , 121 , 235 ] " saltwatertaffy & darkgravel
+let s:N4 = [ '#666462' , 241 ] " mediumgravel
+
+let s:I1 = [ '#141413' , '#0a9dff' , 232 , 39 ] " blackestgravel & tardis
+let s:I2 = [ '#f4cf86' , '#005fff' , 222 , 27 ] " dirtyblonde & facebook
+let s:I3 = [ '#0a9dff' , '#242321' , 39 , 235 ] " tardis & darkgravel
+
+let s:V1 = [ '#141413' , '#ffa724' , 232 , 214 ] " blackestgravel & orange
+let s:V2 = [ '#000000' , '#fade3e' , 16 , 221 ] " coal & dalespale
+let s:V3 = [ '#000000' , '#b88853' , 16 , 137 ] " coal & toffee
+let s:V4 = [ '#c7915b' , 173 ] " coffee
+
+let s:PA = [ '#f4cf86' , 222 ] " dirtyblonde
+let s:RE = [ '#ff9eb8' , 211 ] " dress
+
+let s:IA = [ s:N2[1] , s:N3[1] , s:N2[3] , s:N3[3] , '' ]
+
+let g:airline#themes#badwolf#palette = {}
+
+let g:airline#themes#badwolf#palette.accents = {
+ \ 'red': [ '#ff2c4b' , '' , 196 , '' , '' ]
+ \ }
+
+let g:airline#themes#badwolf#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+let g:airline#themes#badwolf#palette.normal_modified = {
+ \ 'airline_b': [ s:N2[0] , s:N4[0] , s:N2[2] , s:N4[1] , '' ] ,
+ \ 'airline_c': [ s:V1[1] , s:N2[1] , s:V1[3] , s:N2[3] , '' ] }
+
+
+let g:airline#themes#badwolf#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+let g:airline#themes#badwolf#palette.insert_modified = {
+ \ 'airline_c': [ s:V1[1] , s:N2[1] , s:V1[3] , s:N2[3] , '' ] }
+let g:airline#themes#badwolf#palette.insert_paste = {
+ \ 'airline_a': [ s:I1[0] , s:PA[0] , s:I1[2] , s:PA[1] , '' ] }
+
+
+let g:airline#themes#badwolf#palette.replace = copy(airline#themes#badwolf#palette.insert)
+let g:airline#themes#badwolf#palette.replace.airline_a = [ s:I1[0] , s:RE[0] , s:I1[2] , s:RE[1] , '' ]
+let g:airline#themes#badwolf#palette.replace_modified = g:airline#themes#badwolf#palette.insert_modified
+
+
+let g:airline#themes#badwolf#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
+let g:airline#themes#badwolf#palette.visual_modified = {
+ \ 'airline_c': [ s:V3[0] , s:V4[0] , s:V3[2] , s:V4[1] , '' ] }
+
+
+let g:airline#themes#badwolf#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
+let g:airline#themes#badwolf#palette.inactive_modified = {
+ \ 'airline_c': [ s:V1[1] , '' , s:V1[3] , '' , '' ] }
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/base16.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/base16.vim
new file mode 100644
index 0000000..469435e
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/base16.vim
@@ -0,0 +1,107 @@
+if get(g:, 'airline#themes#base16#constant', 0)
+ let g:airline#themes#base16#palette = {}
+
+ " Color palette
+ let s:gui_dark_gray = '#202020'
+ let s:cterm_dark_gray = 234
+ let s:gui_med_gray_hi = '#303030'
+ let s:cterm_med_gray_hi = 236
+ let s:gui_med_gray_lo = '#3a3a3a'
+ let s:cterm_med_gray_lo = 237
+ let s:gui_light_gray = '#505050'
+ let s:cterm_light_gray = 239
+ let s:gui_green = '#99cc99'
+ let s:cterm_green = 151
+ let s:gui_blue = '#6a9fb5'
+ let s:cterm_blue = 67
+ let s:gui_purple = '#aa759f'
+ let s:cterm_purple = 139
+ let s:gui_orange = '#d28445'
+ let s:cterm_orange = 173
+ let s:gui_red = '#ac4142'
+ let s:cterm_red = 131
+ let s:gui_pink = '#d7afd7'
+ let s:cterm_pink = 182
+
+ " Normal mode
+ let s:N1 = [s:gui_dark_gray, s:gui_green, s:cterm_dark_gray, s:cterm_green]
+ let s:N2 = [s:gui_light_gray, s:gui_med_gray_lo, s:cterm_light_gray, s:cterm_med_gray_lo]
+ let s:N3 = [s:gui_green, s:gui_med_gray_hi, s:cterm_green, s:cterm_med_gray_hi]
+ let g:airline#themes#base16#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+ let g:airline#themes#base16#palette.normal_modified = {
+ \ 'airline_c': [s:gui_orange, s:gui_med_gray_hi, s:cterm_orange, s:cterm_med_gray_hi, ''],
+ \ }
+
+ " Insert mode
+ let s:I1 = [s:gui_med_gray_hi, s:gui_blue, s:cterm_med_gray_hi, s:cterm_blue]
+ let s:I3 = [s:gui_blue, s:gui_med_gray_hi, s:cterm_blue, s:cterm_med_gray_hi]
+ let g:airline#themes#base16#palette.insert = airline#themes#generate_color_map(s:I1, s:N2, s:I3)
+ let g:airline#themes#base16#palette.insert_modified = copy(g:airline#themes#base16#palette.normal_modified)
+ let g:airline#themes#base16#palette.insert_paste = {
+ \ 'airline_a': [s:gui_dark_gray, s:gui_orange, s:cterm_dark_gray, s:cterm_orange, ''],
+ \ }
+
+ " Replace mode
+ let g:airline#themes#base16#palette.replace = {
+ \ 'airline_a': [s:gui_dark_gray, s:gui_red, s:cterm_dark_gray, s:cterm_red, ''],
+ \ 'airline_c': [s:gui_red, s:gui_med_gray_hi, s:cterm_red, s:cterm_med_gray_hi, ''],
+ \ }
+ let g:airline#themes#base16#palette.replace_modified = copy(g:airline#themes#base16#palette.insert_modified)
+
+ " Visual mode
+ let s:V1 = [s:gui_dark_gray, s:gui_pink, s:cterm_dark_gray, s:cterm_pink]
+ let s:V3 = [s:gui_pink, s:gui_med_gray_hi, s:cterm_pink, s:cterm_med_gray_hi]
+ let g:airline#themes#base16#palette.visual = airline#themes#generate_color_map(s:V1, s:N2, s:V3)
+ let g:airline#themes#base16#palette.visual_modified = copy(g:airline#themes#base16#palette.insert_modified)
+
+ " Inactive window
+ let s:IA = [s:gui_dark_gray, s:gui_med_gray_hi, s:cterm_dark_gray, s:cterm_med_gray_hi, '']
+ let g:airline#themes#base16#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
+ let g:airline#themes#base16#palette.inactive_modified = {
+ \ 'airline_c': [s:gui_orange, '', s:cterm_orange, '', ''],
+ \ }
+else
+ function! airline#themes#base16#refresh()
+ let g:airline#themes#base16#palette = {}
+
+ let g:airline#themes#base16#palette.accents = {
+ \ 'red': airline#themes#get_highlight('Constant'),
+ \ }
+
+ let s:N1 = airline#themes#get_highlight2(['DiffText', 'bg'], ['DiffText', 'fg'], 'bold')
+ let s:N2 = airline#themes#get_highlight('Visual')
+ let s:N3 = airline#themes#get_highlight('CursorLine')
+ let g:airline#themes#base16#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+
+ let group = airline#themes#get_highlight('vimCommand')
+ let g:airline#themes#base16#palette.normal_modified = {
+ \ 'statusline': [ group[0], '', group[2], '', '' ]
+ \ }
+
+ let s:I1 = airline#themes#get_highlight2(['DiffAdded', 'bg'], ['DiffAdded', 'fg'], 'bold')
+ let s:I2 = airline#themes#get_highlight2(['DiffAdded', 'fg'], ['Normal', 'bg'])
+ let s:I3 = s:N3
+ let g:airline#themes#base16#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+ let g:airline#themes#base16#palette.insert_modified = g:airline#themes#base16#palette.normal_modified
+
+ let s:R1 = airline#themes#get_highlight2(['WarningMsg', 'bg'], ['WarningMsg', 'fg'], 'bold')
+ let s:R2 = s:N2
+ let s:R3 = s:N3
+ let g:airline#themes#base16#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
+ let g:airline#themes#base16#palette.replace_modified = g:airline#themes#base16#palette.normal_modified
+
+ let s:V1 = airline#themes#get_highlight2(['Normal', 'bg'], ['Constant', 'fg'], 'bold')
+ let s:V2 = airline#themes#get_highlight2(['Constant', 'fg'], ['Normal', 'bg'])
+ let s:V3 = s:N3
+ let g:airline#themes#base16#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
+ let g:airline#themes#base16#palette.visual_modified = g:airline#themes#base16#palette.normal_modified
+
+ let s:IA = airline#themes#get_highlight2(['NonText', 'fg'], ['CursorLine', 'bg'])
+ let g:airline#themes#base16#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
+ let g:airline#themes#base16#palette.inactive_modified = {
+ \ 'airline_c': [ group[0], '', group[2], '', '' ]
+ \ }
+ endfunction
+ call airline#themes#base16#refresh()
+endif
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/bubblegum.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/bubblegum.vim
new file mode 100644
index 0000000..d18e032
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/bubblegum.vim
@@ -0,0 +1,62 @@
+" Color palette
+let s:gui_dark_gray = '#303030'
+let s:cterm_dark_gray = 236
+let s:gui_med_gray_hi = '#444444'
+let s:cterm_med_gray_hi = 238
+let s:gui_med_gray_lo = '#3a3a3a'
+let s:cterm_med_gray_lo = 237
+let s:gui_light_gray = '#b2b2b2'
+let s:cterm_light_gray = 249
+let s:gui_green = '#afd787'
+let s:cterm_green = 150
+let s:gui_blue = '#87afd7'
+let s:cterm_blue = 110
+let s:gui_purple = '#afafd7'
+let s:cterm_purple = 146
+let s:gui_orange = '#d7af5f'
+let s:cterm_orange = 179
+let s:gui_red = '#d78787'
+let s:cterm_red = 174
+let s:gui_pink = '#d7afd7'
+let s:cterm_pink = 182
+
+let g:airline#themes#bubblegum#palette = {}
+
+" Normal mode
+let s:N1 = [s:gui_dark_gray, s:gui_green, s:cterm_dark_gray, s:cterm_green]
+let s:N2 = [s:gui_light_gray, s:gui_med_gray_lo, s:cterm_light_gray, s:cterm_med_gray_lo]
+let s:N3 = [s:gui_green, s:gui_med_gray_hi, s:cterm_green, s:cterm_med_gray_hi]
+let g:airline#themes#bubblegum#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+let g:airline#themes#bubblegum#palette.normal_modified = {
+ \ 'airline_c': [s:gui_orange, s:gui_med_gray_hi, s:cterm_orange, s:cterm_med_gray_hi, ''],
+ \ }
+
+" Insert mode
+let s:I1 = [s:gui_med_gray_hi, s:gui_blue, s:cterm_med_gray_hi, s:cterm_blue]
+let s:I3 = [s:gui_blue, s:gui_med_gray_hi, s:cterm_blue, s:cterm_med_gray_hi]
+let g:airline#themes#bubblegum#palette.insert = airline#themes#generate_color_map(s:I1, s:N2, s:I3)
+let g:airline#themes#bubblegum#palette.insert_modified = copy(g:airline#themes#bubblegum#palette.normal_modified)
+let g:airline#themes#bubblegum#palette.insert_paste = {
+ \ 'airline_a': [s:gui_dark_gray, s:gui_orange, s:cterm_dark_gray, s:cterm_orange, ''],
+ \ }
+
+" Replace mode
+let g:airline#themes#bubblegum#palette.replace = {
+ \ 'airline_a': [s:gui_dark_gray, s:gui_red, s:cterm_dark_gray, s:cterm_red, ''],
+ \ 'airline_c': [s:gui_red, s:gui_med_gray_hi, s:cterm_red, s:cterm_med_gray_hi, ''],
+ \ }
+let g:airline#themes#bubblegum#palette.replace_modified = copy(g:airline#themes#bubblegum#palette.insert_modified)
+
+" Visual mode
+let s:V1 = [s:gui_dark_gray, s:gui_pink, s:cterm_dark_gray, s:cterm_pink]
+let s:V3 = [s:gui_pink, s:gui_med_gray_hi, s:cterm_pink, s:cterm_med_gray_hi]
+let g:airline#themes#bubblegum#palette.visual = airline#themes#generate_color_map(s:V1, s:N2, s:V3)
+let g:airline#themes#bubblegum#palette.visual_modified = copy(g:airline#themes#bubblegum#palette.insert_modified)
+
+" Inactive window
+let s:IA = [s:gui_dark_gray, s:gui_med_gray_hi, s:cterm_dark_gray, s:cterm_med_gray_hi, '']
+let g:airline#themes#bubblegum#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
+let g:airline#themes#bubblegum#palette.inactive_modified = {
+ \ 'airline_c': [s:gui_orange, '', s:cterm_orange, '', ''],
+ \ }
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/dark.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/dark.vim
new file mode 100644
index 0000000..217b2f1
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/dark.vim
@@ -0,0 +1,102 @@
+" Each theme is contained in its own file and declares variables scoped to the
+" file. These variables represent the possible "modes" that airline can
+" detect. The mode is the return value of mode(), which gets converted to a
+" readable string. The following is a list currently supported modes: normal,
+" insert, replace, visual, and inactive.
+"
+" Each mode can also have overrides. These are small changes to the mode that
+" don't require a completely different look. "modified" and "paste" are two
+" such supported overrides. These are simply suffixed to the major mode,
+" separated by an underscore. For example, "normal_modified" would be normal
+" mode where the current buffer is modified.
+"
+" The theming algorithm is a 2-pass system where the mode will draw over all
+" parts of the statusline, and then the override is applied after. This means
+" it is possible to specify a subset of the theme in overrides, as it will
+" simply overwrite the previous colors. If you want simultaneous overrides,
+" then they will need to change different parts of the statusline so they do
+" not conflict with each other.
+"
+" First, let's define an empty dictionary and assign it to the "palette"
+" variable. The # is a separator that maps with the directory structure. If
+" you get this wrong, Vim will complain loudly.
+let g:airline#themes#dark#palette = {}
+
+" First let's define some arrays. The s: is just a VimL thing for scoping the
+" variables to the current script. Without this, these variables would be
+" declared globally. Now let's declare some colors for normal mode and add it
+" to the dictionary. The array is in the format:
+" [ guifg, guibg, ctermfg, ctermbg, opts ]. See "help attr-list" for valid
+" values for the "opt" value.
+let s:N1 = [ '#00005f' , '#dfff00' , 17 , 190 ]
+let s:N2 = [ '#ffffff' , '#444444' , 255 , 238 ]
+let s:N3 = [ '#9cffd3' , '#202020' , 85 , 234 ]
+let g:airline#themes#dark#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+
+" Here we define overrides for when the buffer is modified. This will be
+" applied after g:airline#themes#dark#palette.normal, hence why only certain keys are
+" declared.
+let g:airline#themes#dark#palette.normal_modified = {
+ \ 'airline_c': [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] ,
+ \ }
+
+
+let s:I1 = [ '#00005f' , '#00dfff' , 17 , 45 ]
+let s:I2 = [ '#ffffff' , '#005fff' , 255 , 27 ]
+let s:I3 = [ '#ffffff' , '#000080' , 15 , 17 ]
+let g:airline#themes#dark#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+let g:airline#themes#dark#palette.insert_modified = {
+ \ 'airline_c': [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] ,
+ \ }
+let g:airline#themes#dark#palette.insert_paste = {
+ \ 'airline_a': [ s:I1[0] , '#d78700' , s:I1[2] , 172 , '' ] ,
+ \ }
+
+
+let g:airline#themes#dark#palette.replace = copy(g:airline#themes#dark#palette.insert)
+let g:airline#themes#dark#palette.replace.airline_a = [ s:I2[0] , '#af0000' , s:I2[2] , 124 , '' ]
+let g:airline#themes#dark#palette.replace_modified = g:airline#themes#dark#palette.insert_modified
+
+
+let s:V1 = [ '#000000' , '#ffaf00' , 232 , 214 ]
+let s:V2 = [ '#000000' , '#ff5f00' , 232 , 202 ]
+let s:V3 = [ '#ffffff' , '#5f0000' , 15 , 52 ]
+let g:airline#themes#dark#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
+let g:airline#themes#dark#palette.visual_modified = {
+ \ 'airline_c': [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] ,
+ \ }
+
+
+let s:IA1 = [ '#4e4e4e' , '#1c1c1c' , 239 , 234 , '' ]
+let s:IA2 = [ '#4e4e4e' , '#262626' , 239 , 235 , '' ]
+let s:IA3 = [ '#4e4e4e' , '#303030' , 239 , 236 , '' ]
+let g:airline#themes#dark#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
+let g:airline#themes#dark#palette.inactive_modified = {
+ \ 'airline_c': [ '#875faf' , '' , 97 , '' , '' ] ,
+ \ }
+
+
+" Accents are used to give parts within a section a slightly different look or
+" color. Here we are defining a "red" accent, which is used by the 'readonly'
+" part by default. Only the foreground colors are specified, so the background
+" colors are automatically extracted from the underlying section colors. What
+" this means is that regardless of which section the part is defined in, it
+" will be red instead of the section's foreground color. You can also have
+" multiple parts with accents within a section.
+let g:airline#themes#dark#palette.accents = {
+ \ 'red': [ '#ff0000' , '' , 160 , '' ]
+ \ }
+
+
+" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
+" variable so that related functionality is loaded iff the user is using
+" ctrlp. Note that this is optional, and if you do not define ctrlp colors
+" they will be chosen automatically from the existing palette.
+if !get(g:, 'loaded_ctrlp', 0)
+ finish
+endif
+let g:airline#themes#dark#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
+ \ [ '#d7d7ff' , '#5f00af' , 189 , 55 , '' ],
+ \ [ '#ffffff' , '#875fd7' , 231 , 98 , '' ],
+ \ [ '#5f00af' , '#ffffff' , 55 , 231 , 'bold' ])
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/hybrid.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/hybrid.vim
new file mode 100644
index 0000000..b0df844
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/hybrid.vim
@@ -0,0 +1,58 @@
+" vim-airline companion theme of Hybrid
+" (https://github.com/w0ng/vim-hybrid)
+
+let g:airline#themes#hybrid#palette = {}
+
+function! airline#themes#hybrid#refresh()
+ let s:N1 = airline#themes#get_highlight('DiffAdd')
+ let s:N2 = airline#themes#get_highlight('CursorLine')
+ let s:N3 = airline#themes#get_highlight('PMenu')
+ let g:airline#themes#hybrid#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+
+ let modified_group = airline#themes#get_highlight2(['Text', 'fg'], ['SpellRare', 'bg'], 'bold')
+ let g:airline#themes#hybrid#palette.normal_modified = {
+ \ 'airline_c': airline#themes#get_highlight2(['Text', 'fg'], ['SpellRare', 'bg'], 'bold')
+ \ }
+
+ let warning_group = airline#themes#get_highlight('SpellRare')
+ let g:airline#themes#hybrid#palette.normal.airline_warning = warning_group
+ let g:airline#themes#hybrid#palette.normal_modified.airline_warning = warning_group
+
+ let s:I1 = airline#themes#get_highlight2(['Text', 'fg'], ['DiffText', 'bg'], 'bold')
+ let s:I2 = airline#themes#get_highlight2(['Text', 'fg'], ['SpellLocal', 'bg'], 'bold')
+ let s:I3 = airline#themes#get_highlight2(['Text', 'fg'], ['SpellCap', 'bg'], 'bold')
+ let g:airline#themes#hybrid#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+ let g:airline#themes#hybrid#palette.insert_modified = g:airline#themes#hybrid#palette.normal_modified
+ let g:airline#themes#hybrid#palette.insert.airline_warning = g:airline#themes#hybrid#palette.normal.airline_warning
+ let g:airline#themes#hybrid#palette.insert_modified.airline_warning = g:airline#themes#hybrid#palette.normal_modified.airline_warning
+
+ let s:R1 = airline#themes#get_highlight('DiffChange')
+ let s:R2 = s:N2
+ let s:R3 = s:N3
+ let g:airline#themes#hybrid#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
+ let replace_group = airline#themes#get_highlight('SpellRare')
+ let g:airline#themes#hybrid#palette.replace_modified = g:airline#themes#hybrid#palette.normal_modified
+ let g:airline#themes#hybrid#palette.replace.airline_warning = g:airline#themes#hybrid#palette.normal.airline_warning
+ let g:airline#themes#hybrid#palette.replace_modified.airline_warning = g:airline#themes#hybrid#palette.replace_modified.airline_warning
+
+ let s:V1 = airline#themes#get_highlight2(['Text', 'fg'], ['Folded', 'bg'], 'bold')
+ let s:V2 = airline#themes#get_highlight2(['Text', 'fg'], ['DiffDelete', 'bg'], 'bold')
+ let s:V3 = airline#themes#get_highlight2(['Text', 'fg'], ['Error', 'bg'], 'bold')
+ let g:airline#themes#hybrid#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
+ let g:airline#themes#hybrid#palette.visual_modified = g:airline#themes#hybrid#palette.normal_modified
+ let g:airline#themes#hybrid#palette.visual.airline_warning = g:airline#themes#hybrid#palette.normal.airline_warning
+ let g:airline#themes#hybrid#palette.visual_modified.airline_warning = g:airline#themes#hybrid#palette.normal_modified.airline_warning
+
+ let s:IA = airline#themes#get_highlight('StatusLineNC')
+ let g:airline#themes#hybrid#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
+ let g:airline#themes#hybrid#palette.inactive_modified = {
+ \ 'airline_c': [ modified_group[0], '', modified_group[2], '', '' ]
+ \ }
+
+ let g:airline#themes#hybrid#palette.accents = {
+ \ 'red': airline#themes#get_highlight('Constant'),
+ \ }
+
+endfunction
+
+call airline#themes#hybrid#refresh()
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/jellybeans.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/jellybeans.vim
new file mode 100644
index 0000000..201068c
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/jellybeans.vim
@@ -0,0 +1,52 @@
+let g:airline#themes#jellybeans#palette = {}
+
+" The name of the function must be 'refresh'.
+function! airline#themes#jellybeans#refresh()
+ " This theme is an example of how to use helper functions to extract highlight
+ " values from the corresponding colorscheme. It was written in a hurry, so it
+ " is very minimalistic. If you are a jellybeans user and want to make updates,
+ " please send pull requests.
+
+ " Here are examples where the entire highlight group is copied and an airline
+ " compatible color array is generated.
+ let s:N1 = airline#themes#get_highlight('DbgCurrent', 'bold')
+ let s:N2 = airline#themes#get_highlight('Folded')
+ let s:N3 = airline#themes#get_highlight('NonText')
+
+ let g:airline#themes#jellybeans#palette.accents = {
+ \ 'red': airline#themes#get_highlight('Constant'),
+ \ }
+
+ let g:airline#themes#jellybeans#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+ let g:airline#themes#jellybeans#palette.normal_modified = {
+ \ 'airline_c': [ '#ffb964', '', 215, '', '' ]
+ \ }
+
+ let s:I1 = airline#themes#get_highlight('DiffAdd', 'bold')
+ let s:I2 = s:N2
+ let s:I3 = s:N3
+ let g:airline#themes#jellybeans#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+ let g:airline#themes#jellybeans#palette.insert_modified = g:airline#themes#jellybeans#palette.normal_modified
+
+ let s:R1 = airline#themes#get_highlight('WildMenu', 'bold')
+ let s:R2 = s:N2
+ let s:R3 = s:N3
+ let g:airline#themes#jellybeans#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
+ let g:airline#themes#jellybeans#palette.replace_modified = g:airline#themes#jellybeans#palette.normal_modified
+
+ " Sometimes you want to mix and match colors from different groups, you can do
+ " that with this method.
+ let s:V1 = airline#themes#get_highlight2(['TabLineSel', 'bg'], ['DiffDelete', 'bg'], 'bold')
+ let s:V2 = s:N2
+ let s:V3 = s:N3
+ let g:airline#themes#jellybeans#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
+ let g:airline#themes#jellybeans#palette.visual_modified = g:airline#themes#jellybeans#palette.normal_modified
+
+ " And of course, you can always do it manually as well.
+ let s:IA = [ '#444444', '#1c1c1c', 237, 234 ]
+ let g:airline#themes#jellybeans#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
+ let g:airline#themes#jellybeans#palette.inactive_modified = g:airline#themes#jellybeans#palette.normal_modified
+endfunction
+
+call airline#themes#jellybeans#refresh()
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/kalisi.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/kalisi.vim
new file mode 100644
index 0000000..4ff94f5
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/kalisi.vim
@@ -0,0 +1,57 @@
+"
+" Colorscheme: Kalisi for airline. Inspired by powerline.
+" 06.02.2014 Arthur Jaron
+" hifreeo@gmail.com
+"
+
+" Insert mode
+let s:I1 = [ '#ffffff' , '#e80000' , 23 , 231 ]
+let s:I2 = [ '#c5c5c5' , '#901010' , 74 , 31 ]
+let s:I3 = [ '#c5c5c5' , '#500000' , 117 , 24 ]
+
+" Visual mode
+let s:V1 = [ '#005f5f' , '#ffffff' , 23 , 231 ]
+let s:V2 = [ '#5fafd7' , '#0087af' , 74 , 31 ]
+let s:V3 = [ '#87d7ff' , '#005f87' , 117 , 24 ]
+
+" Replace mode
+let s:R1 = [ '#8e00da' , '#ffffff' , 23 , 231 ]
+let s:R2 = [ '#8e00da' , '#ce99ff' , 74 , 31 ]
+let s:R3 = [ '#ce99ff' , '#8e00da' , 117 , 24 ]
+
+let g:airline#themes#kalisi#palette = {}
+
+function! airline#themes#kalisi#refresh()
+
+ " Normal mode
+ let s:N1 = [ '#005f00' , '#afd700' , 22 , 148 ]
+ let s:N2 = [ '#afd700' , '#005f00' , 247 , 236 ]
+ let s:N3 = airline#themes#get_highlight('StatusLine')
+
+ " Tabline Plugin
+ let g:airline#themes#kalisi#palette.tabline = {
+ \ 'airline_tab': ['#A6DB29', '#005f00', 231, 29, ''],
+ \ 'airline_tabsel': ['#404042', '#A6DB29', 231, 36, ''],
+ \ 'airline_tabtype': ['#afd700', '#005f00', 231, 36, ''],
+ \ 'airline_tabfill': ['#ffffff', '#000000', 231, 23, ''],
+ \ 'airline_tabhid': ['#c5c5c5', '#404042', 231, 88, ''],
+ \ 'airline_tabmod': ['#ffffff', '#F1266F', 231, 88, ''],
+ \ }
+
+ let g:airline#themes#kalisi#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+ let g:airline#themes#kalisi#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
+ let g:airline#themes#kalisi#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+ let g:airline#themes#kalisi#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
+
+ " Inactive Mode
+ " let s:IA = [ '#c5c5c5' , '#505052' , 239 , 234 , '' ]
+ let s:IA = airline#themes#get_highlight('StatusLineNC')
+ let g:airline#themes#kalisi#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
+ let g:airline#themes#kalisi#palette.inactive_modified = {
+ \ 'statusline': [ '#F1266F' , '' , '53' , '' , '' ] ,
+ \ }
+
+endfunction
+
+call airline#themes#kalisi#refresh()
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/kolor.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/kolor.vim
new file mode 100644
index 0000000..e61f56f
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/kolor.vim
@@ -0,0 +1,59 @@
+let g:airline#themes#kolor#palette = {}
+
+let s:N1 = [ '#e2e2e2' , '#4f3598' , 254 , 56 ]
+let s:N2 = [ '#ff5fd7' , '#242322' , 206 , 234 ]
+let s:N3 = [ '#e2e2e2' , '#4a4a4a' , 254 , 238 ]
+
+let g:airline#themes#kolor#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+
+let g:airline#themes#kolor#palette.normal_modified = {
+ \ 'airline_c': [ '#e2e2e2' , '#4f3598' , 254 , 56 , '' ] ,
+ \ }
+
+
+let s:I1 = [ '#242322' , '#7eaefd' , 234 , 111 ]
+let s:I2 = [ '#75d7d8' , '#242322' , 80 , 234 ]
+let s:I3 = [ '#e2e2e2' , '#4a4a4a' , 254 , 238 ]
+let g:airline#themes#kolor#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+let g:airline#themes#kolor#palette.insert_modified = {
+ \ 'airline_c': [ '#242322' , '#7eaefd' , 234 , 111 , '' ] ,
+ \ }
+
+
+let g:airline#themes#kolor#palette.replace = copy(g:airline#themes#kolor#palette.insert)
+let g:airline#themes#kolor#palette.replace.airline_a = [ s:I2[0] , '#005154' , s:I2[2] , 23 , '' ]
+let g:airline#themes#kolor#palette.replace_modified = {
+ \ 'airline_c': [ '#e2e2e2' , '#005154' , 254 , 23 , '' ] ,
+ \ }
+
+
+let s:V1 = [ '#242322' , '#e6987a' , 234 , 180 ]
+let s:V2 = [ '#dbc570' , '#242322' , 186 , 234 ]
+let s:V3 = [ '#e2e2e2' , '#4a4a4a' , 254 , 238 ]
+let g:airline#themes#kolor#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
+let g:airline#themes#kolor#palette.visual_modified = {
+ \ 'airline_c': [ '#242322' , '#e6987a' , 234 , 180 , '' ] ,
+ \ }
+
+
+let s:IA1 = [ '#b2b2b2' , '#4a4a4a' , 247 , 238 , '' ]
+let s:IA2 = [ '#b2b2b2' , '#4a4a4a' , 247 , 238 ]
+let s:IA3 = [ '#b2b2b2' , '#4a4a4a' , 247 , 238 , '' ]
+let g:airline#themes#kolor#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
+let g:airline#themes#kolor#palette.inactive_modified = {
+ \ 'airline_c': [ '#875faf' , '' , 97 , '' , '' ] ,
+ \ }
+
+
+let g:airline#themes#kolor#palette.accents = {
+ \ 'red': [ '#d96e8a' , '' , 168 , '' ]
+ \ }
+
+
+if !get(g:, 'loaded_ctrlp', 0)
+ finish
+endif
+let g:airline#themes#kolor#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
+ \ [ '#e2e2e2' , '#4a4a4a' , 254 , 238 , '' ],
+ \ [ '#e2e2e2' , '#242322' , 254 , 234 , '' ],
+ \ [ '#e2e2e2' , '#4f3598' , 254 , 56 , 'bold' ])
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/laederon.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/laederon.vim
new file mode 100644
index 0000000..115c107
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/laederon.vim
@@ -0,0 +1,62 @@
+" vim-airline companion theme of Laederon
+" (https://github.com/Donearm/Laederon)
+
+" Normal mode
+let s:N1 = [ '#1a1a18' , '#ffffff' , 232 , 255 ] " blackestgravel & snow
+let s:N2 = [ '#ffffff' , '#44403a' , 255, 238 ] " snow & deepgravel
+let s:N3 = [ '#90a680' , '#2e2d2a' , 64, 235 ] " dilutedpaint & darkgravel
+let s:N4 = [ '#777470' , 240 ] " gravel
+
+" Insert mode
+let s:I1 = [ '#1a1a18' , '#1693a5' , 232 , 62 ] " blackestgravel & crystallake
+let s:I2 = [ '#515744' , '#44403a' , 101 , 238 ] " lichen & deepgravel
+let s:I3 = [ '#1693a5' , '#2e2d2a' , 39 , 235 ] " crystallake & darkgravel
+
+" Visual mode
+let s:V1 = [ '#1a1a18' , '#ab3e5d' , 232 , 161 ] " blackestgravel & raspberry
+let s:V2 = [ '#000000' , '#908571' , 16 , 252 ] " coal & winterterrain
+let s:V3 = [ '#ab3e5d' , '#8c7f77' , 161 , 245 ] " raspberry & wetcoldterrain
+let s:V4 = [ '#515744' , 101 ] " lichen
+
+" Replace mode
+let s:RE = [ '#233e09' , 22 ] " oakleaf
+
+" Paste mode
+let s:PA = [ '#ab3e5d' , 161 ] " raspberry
+
+let s:IA = [ s:N2[1] , s:N3[1] , s:N2[3], s:N3[3] , '' ]
+
+
+let g:airline#themes#laederon#palette = {}
+
+let g:airline#themes#laederon#palette.accents = {
+ \ 'red': [ '#ef393d' , '' , 196 , '' , '' ]
+ \ }
+
+let g:airline#themes#laederon#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+let g:airline#themes#laederon#palette.normal_modified = {
+ \ 'airline_a' : [ s:N2[0] , s:N4[0] , s:N2[2] , s:N4[1] , '' ] ,
+ \ 'airline_c' : [ s:V1[1] , s:N2[1] , s:V1[3] , s:N2[3] , '' ] }
+
+
+let g:airline#themes#laederon#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+let g:airline#themes#laederon#palette.insert_modified = {
+ \ 'airline_c' : [ s:V2[1] , s:N2[1] , s:V2[3] , s:N2[3] , '' ] }
+let g:airline#themes#laederon#palette.insert_paste = {
+ \ 'airline_a' : [ s:I1[0] , s:PA[0] , s:I1[2] , s:PA[1] , '' ] }
+
+
+let g:airline#themes#laederon#palette.replace = copy(airline#themes#laederon#palette.insert)
+let g:airline#themes#laederon#palette.replace.airline_a = [ s:I1[0] , s:RE[0] , s:I1[2] , s:RE[1] , '' ]
+let g:airline#themes#laederon#palette.replace_modified = g:airline#themes#laederon#palette.insert_modified
+
+
+let g:airline#themes#laederon#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
+let g:airline#themes#laederon#palette.visual_modified = {
+ \ 'airline_c' : [ s:V3[0] , s:V4[0] , s:V3[2] , s:V4[1] , '' ] }
+
+
+let g:airline#themes#laederon#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
+let g:airline#themes#laederon#palette.inactive_modified = {
+ \ 'airline_c' : [ s:V1[1] , '' , s:V1[3] , '' , '' ] }
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/light.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/light.vim
new file mode 100644
index 0000000..d9fe844
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/light.vim
@@ -0,0 +1,45 @@
+let g:airline#themes#light#palette = {}
+
+let s:N1 = [ '#ffffff' , '#005fff' , 255 , 27 ]
+let s:N2 = [ '#000087' , '#00dfff' , 18 , 45 ]
+let s:N3 = [ '#005fff' , '#afffff' , 27 , 159 ]
+let g:airline#themes#light#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+let g:airline#themes#light#palette.normal_modified = {
+ \ 'airline_c': [ '#df0000' , '#ffdfdf' , 160 , 224 , '' ] ,
+ \ }
+
+
+let s:I1 = [ '#ffffff' , '#00875f' , 255 , 29 ]
+let s:I2 = [ '#005f00' , '#00df87' , 22 , 42 ]
+let s:I3 = [ '#005f5f' , '#afff87' , 23 , 156 ]
+let g:airline#themes#light#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+let g:airline#themes#light#palette.insert_modified = {
+ \ 'airline_c': [ '#df0000' , '#ffdfdf' , 160 , 224 , '' ] ,
+ \ }
+let g:airline#themes#light#palette.insert_paste = {
+ \ 'airline_a': [ s:I1[0] , '#d78700' , s:I1[2] , 172 , '' ] ,
+ \ }
+
+
+let g:airline#themes#light#palette.replace = copy(g:airline#themes#light#palette.insert)
+let g:airline#themes#light#palette.replace.airline_a = [ s:I2[0] , '#ff0000' , s:I1[2] , 196 , '' ]
+let g:airline#themes#light#palette.replace_modified = g:airline#themes#light#palette.insert_modified
+
+
+let s:V1 = [ '#ffffff' , '#ff5f00' , 255 , 202 ]
+let s:V2 = [ '#5f0000' , '#ffaf00' , 52 , 214 ]
+let s:V3 = [ '#df5f00' , '#ffff87' , 166 , 228 ]
+let g:airline#themes#light#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
+let g:airline#themes#light#palette.visual_modified = {
+ \ 'airline_c': [ '#df0000' , '#ffdfdf' , 160 , 224 , '' ] ,
+ \ }
+
+
+let s:IA1 = [ '#666666' , '#b2b2b2' , 242 , 249 , '' ]
+let s:IA2 = [ '#8a8a8a' , '#d0d0d0' , 245 , 252 , '' ]
+let s:IA3 = [ '#a8a8a8' , '#ffffff' , 248 , 255 , '' ]
+let g:airline#themes#light#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
+let g:airline#themes#light#palette.inactive_modified = {
+ \ 'airline_c': [ '#df0000' , '' , 160 , '' , '' ] ,
+ \ }
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/lucius.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/lucius.vim
new file mode 100644
index 0000000..e386900
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/lucius.vim
@@ -0,0 +1,56 @@
+let g:airline#themes#lucius#palette = {}
+
+function! airline#themes#lucius#refresh()
+
+ let s:N1 = airline#themes#get_highlight('StatusLine')
+ let s:N2 = airline#themes#get_highlight('Folded')
+ let s:N3 = airline#themes#get_highlight('CursorLine')
+ let g:airline#themes#lucius#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+
+ let modified_group = airline#themes#get_highlight('Statement')
+ let g:airline#themes#lucius#palette.normal_modified = {
+ \ 'airline_c': [modified_group[0], '', modified_group[2], '', '']
+ \ }
+
+ let warning_group = airline#themes#get_highlight('DiffDelete')
+ let g:airline#themes#lucius#palette.normal.airline_warning = warning_group
+ let g:airline#themes#lucius#palette.normal_modified.airline_warning = warning_group
+
+ let s:I1 = airline#themes#get_highlight('DiffAdd')
+ let s:I2 = s:N2
+ let s:I3 = s:N3
+ let g:airline#themes#lucius#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+ let g:airline#themes#lucius#palette.insert_modified = g:airline#themes#lucius#palette.normal_modified
+ let g:airline#themes#lucius#palette.insert.airline_warning = g:airline#themes#lucius#palette.normal.airline_warning
+ let g:airline#themes#lucius#palette.insert_modified.airline_warning = g:airline#themes#lucius#palette.normal_modified.airline_warning
+
+ let s:R1 = airline#themes#get_highlight('DiffChange')
+ let s:R2 = s:N2
+ let s:R3 = s:N3
+ let g:airline#themes#lucius#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
+ let g:airline#themes#lucius#palette.replace_modified = g:airline#themes#lucius#palette.normal_modified
+ let g:airline#themes#lucius#palette.replace.airline_warning = g:airline#themes#lucius#palette.normal.airline_warning
+ let g:airline#themes#lucius#palette.replace_modified.airline_warning = g:airline#themes#lucius#palette.normal_modified.airline_warning
+
+ let s:V1 = airline#themes#get_highlight('Cursor')
+ let s:V2 = s:N2
+ let s:V3 = s:N3
+ let g:airline#themes#lucius#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
+ let g:airline#themes#lucius#palette.visual_modified = g:airline#themes#lucius#palette.normal_modified
+ let g:airline#themes#lucius#palette.visual.airline_warning = g:airline#themes#lucius#palette.normal.airline_warning
+ let g:airline#themes#lucius#palette.visual_modified.airline_warning = g:airline#themes#lucius#palette.normal_modified.airline_warning
+
+ let s:IA = airline#themes#get_highlight('StatusLineNC')
+ let g:airline#themes#lucius#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
+ let g:airline#themes#lucius#palette.inactive_modified = {
+ \ 'airline_c': [ modified_group[0], '', modified_group[2], '', '' ]
+ \ }
+
+ let g:airline#themes#lucius#palette.accents = {
+ \ 'red': airline#themes#get_highlight('Constant'),
+ \ }
+
+endfunction
+
+call airline#themes#lucius#refresh()
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/luna.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/luna.vim
new file mode 100644
index 0000000..879d862
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/luna.vim
@@ -0,0 +1,92 @@
+" vim-airline companion theme of Luna
+" (https://github.com/Pychimp/vim-luna)
+
+let g:airline#themes#luna#palette = {}
+
+let g:airline#themes#luna#palette.accents = {
+ \ 'red': [ '#ffffff' , '' , 231 , '' , '' ],
+ \ }
+
+
+let s:N1 = [ '#ffffff' , '#005252' , 231 , 36 ]
+let s:N2 = [ '#ffffff' , '#003f3f' , 231 , 29 ]
+let s:N3 = [ '#ffffff' , '#002b2b' , 231 , 23 ]
+let g:airline#themes#luna#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+let g:airline#themes#luna#palette.normal_modified = {
+ \ 'airline_c': [ '#ffffff' , '#450000' , 231 , 52 , '' ] ,
+ \ }
+
+
+let s:I1 = [ '#ffffff' , '#789f00' , 231 , 106 ]
+let s:I2 = [ '#ffffff' , '#003f3f' , 231 , 29 ]
+let s:I3 = [ '#ffffff' , '#002b2b' , 231 , 23 ]
+let g:airline#themes#luna#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+let g:airline#themes#luna#palette.insert_modified = {
+ \ 'airline_c': [ '#ffffff' , '#005e5e' , 255 , 52 , '' ] ,
+ \ }
+let g:airline#themes#luna#palette.insert_paste = {
+ \ 'airline_a': [ s:I1[0] , '#789f00' , s:I1[2] , 106 , '' ] ,
+ \ }
+
+
+let g:airline#themes#luna#palette.replace = copy(g:airline#themes#luna#palette.insert)
+let g:airline#themes#luna#palette.replace.airline_a = [ s:I2[0] , '#920000' , s:I2[2] , 88 , '' ]
+let g:airline#themes#luna#palette.replace_modified = g:airline#themes#luna#palette.insert_modified
+
+let s:V1 = [ '#ffff9a' , '#ff8036' , 222 , 208 ]
+let s:V2 = [ '#ffffff' , '#003f3f' , 231 , 29 ]
+let s:V3 = [ '#ffffff' , '#002b2b' , 231 , 23 ]
+let g:airline#themes#luna#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
+let g:airline#themes#luna#palette.visual_modified = {
+ \ 'airline_c': [ '#ffffff' , '#450000' , 231 , 52 , '' ] ,
+ \ }
+
+let s:IA = [ '#4e4e4e' , '#002b2b' , 59 , 23 , '' ]
+let g:airline#themes#luna#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
+let g:airline#themes#luna#palette.inactive_modified = {
+ \ 'airline_c': [ '#e20000' , '' , 166 , '' , '' ] ,
+ \ }
+
+let g:airline#themes#luna#palette.tabline = {
+ \ 'airline_tab': ['#2aa198', '#003f3f', 231, 29, ''],
+ \ 'airline_tabsel': ['#ffffff', '#2e8b57', 231, 36, ''],
+ \ 'airline_tabtype': ['#ffffff', '#005252', 231, 36, ''],
+ \ 'airline_tabfill': ['#ffffff', '#002b2b', 231, 23, ''],
+ \ 'airline_tabmod': ['#ffffff', '#780000', 231, 88, ''],
+ \ }
+
+let s:WI = [ '#ffffff', '#5f0000', 231, 88 ]
+let g:airline#themes#luna#palette.normal.airline_warning = [
+ \ s:WI[0], s:WI[1], s:WI[2], s:WI[3]
+ \ ]
+
+let g:airline#themes#luna#palette.normal_modified.airline_warning =
+ \ g:airline#themes#luna#palette.normal.airline_warning
+
+let g:airline#themes#luna#palette.insert.airline_warning =
+ \ g:airline#themes#luna#palette.normal.airline_warning
+
+let g:airline#themes#luna#palette.insert_modified.airline_warning =
+ \ g:airline#themes#luna#palette.normal.airline_warning
+
+let g:airline#themes#luna#palette.visual.airline_warning =
+ \ g:airline#themes#luna#palette.normal.airline_warning
+
+let g:airline#themes#luna#palette.visual_modified.airline_warning =
+ \ g:airline#themes#luna#palette.normal.airline_warning
+
+let g:airline#themes#luna#palette.replace.airline_warning =
+ \ g:airline#themes#luna#palette.normal.airline_warning
+
+let g:airline#themes#luna#palette.replace_modified.airline_warning =
+ \ g:airline#themes#luna#palette.normal.airline_warning
+
+
+if !get(g:, 'loaded_ctrlp', 0)
+ finish
+endif
+let g:airline#themes#luna#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
+ \ [ '#ffffff' , '#002b2b' , 231 , 23 , '' ] ,
+ \ [ '#ffffff' , '#005252' , 231 , 36 , '' ] ,
+ \ [ '#ffffff' , '#973d45' , 231 , 95 , '' ] )
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/molokai.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/molokai.vim
new file mode 100644
index 0000000..1998f00
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/molokai.vim
@@ -0,0 +1,65 @@
+let g:airline#themes#molokai#palette = {}
+
+let g:airline#themes#molokai#palette.accents = {
+ \ 'red': [ '#66d9ef' , '' , 81 , '' , '' ],
+ \ }
+
+
+" Normal mode
+let s:N1 = [ '#080808' , '#e6db74' , 232 , 144 ] " mode
+let s:N2 = [ '#f8f8f0' , '#232526' , 253 , 16 ] " info
+let s:N3 = [ '#f8f8f0' , '#465457' , 253 , 67 ] " statusline
+
+let g:airline#themes#molokai#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+let g:airline#themes#molokai#palette.normal_modified = {
+ \ 'airline_c': [ '#080808' , '#e6db74' , 232 , 144 , '' ] ,
+ \ }
+
+
+" Insert mode
+let s:I1 = [ '#080808' , '#66d9ef' , 232 , 81 ]
+let s:I2 = [ '#f8f8f0' , '#232526' , 253 , 16 ]
+let s:I3 = [ '#f8f8f0' , '#465457' , 253 , 67 ]
+
+let g:airline#themes#molokai#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+let g:airline#themes#molokai#palette.insert_modified = {
+ \ 'airline_c': [ '#080808' , '#66d9ef' , 232 , 81 , '' ] ,
+ \ }
+
+
+" Replace mode
+let g:airline#themes#molokai#palette.replace = copy(g:airline#themes#molokai#palette.insert)
+let g:airline#themes#molokai#palette.replace.airline_a = [ s:I1[0] , '#ef5939' , s:I1[2] , 166 , '' ]
+let g:airline#themes#molokai#palette.replace_modified = {
+ \ 'airline_c': [ '#080808' , '#ef5939' , 232 , 166 , '' ] ,
+ \ }
+
+
+" Visual mode
+let s:V1 = [ '#080808' , '#fd971f' , 232 , 208 ]
+let s:V2 = [ '#f8f8f0' , '#232526' , 253 , 16 ]
+let s:V3 = [ '#f8f8f0' , '#465457' , 253 , 67 ]
+
+let g:airline#themes#molokai#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
+let g:airline#themes#molokai#palette.visual_modified = {
+ \ 'airline_c': [ '#080808' , '#fd971f' , 232 , 208 , '' ] ,
+ \ }
+
+
+" Inactive
+let s:IA = [ '#1b1d1e' , '#465457' , 233 , 67 , '' ]
+let g:airline#themes#molokai#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
+let g:airline#themes#molokai#palette.inactive_modified = {
+ \ 'airline_c': [ '#f8f8f0' , '' , 253 , '' , '' ] ,
+ \ }
+
+
+" CtrlP
+if !get(g:, 'loaded_ctrlp', 0)
+ finish
+endif
+let g:airline#themes#molokai#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
+ \ [ '#f8f8f0' , '#465457' , 253 , 67 , '' ] ,
+ \ [ '#f8f8f0' , '#232526' , 253 , 16 , '' ] ,
+ \ [ '#080808' , '#e6db74' , 232 , 144 , 'bold' ] )
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/monochrome.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/monochrome.vim
new file mode 100644
index 0000000..7dd1a17
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/monochrome.vim
@@ -0,0 +1,15 @@
+let g:airline#themes#monochrome#palette = {}
+
+function! airline#themes#monochrome#refresh()
+ let s:SL = airline#themes#get_highlight('StatusLine')
+ let g:airline#themes#monochrome#palette.normal = airline#themes#generate_color_map(s:SL, s:SL, s:SL)
+ let g:airline#themes#monochrome#palette.insert = g:airline#themes#monochrome#palette.normal
+ let g:airline#themes#monochrome#palette.replace = g:airline#themes#monochrome#palette.normal
+ let g:airline#themes#monochrome#palette.visual = g:airline#themes#monochrome#palette.normal
+
+ let s:SLNC = airline#themes#get_highlight('StatusLineNC')
+ let g:airline#themes#monochrome#palette.inactive = airline#themes#generate_color_map(s:SLNC, s:SLNC, s:SLNC)
+endfunction
+
+call airline#themes#monochrome#refresh()
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/murmur.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/murmur.vim
new file mode 100644
index 0000000..adebf3b
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/murmur.vim
@@ -0,0 +1,46 @@
+let g:airline#themes#murmur#palette = {}
+
+let s:termbg = 237 " Background for branch and file format blocks
+let s:termbg2= 234 " Background for middle block
+let s:normalbg= 27 " Background for normal mode and file position blocks
+let s:insertbg= 70 " Background for insert mode and file position blocks
+let s:visualbg= 166 " Background for visual mode and file position blocks
+let s:replacebg=88 " Background for replace mode and file position blocks
+let s:alert= 88 " Modefied file alert color
+
+let s:BB = ['#AFAF87', '#5F5F5F', 144, s:termbg] " Branch and file format blocks
+
+let s:N1 = ['#FFFFFF', '#5F87FF', 15, s:normalbg] " Outside blocks in normal mode
+let s:N2 = ['#AFAF87', '#5F5F5F', 39, s:termbg2] " Middle block
+let g:airline#themes#murmur#palette.normal = airline#themes#generate_color_map(s:N1, s:BB, s:N2)
+let g:airline#themes#murmur#palette.normal_modified = {'airline_c': ['#ffffff', '#5f005f', s:alert, s:termbg2, 'bold'] ,}
+
+let s:I1 = ['#FFFFFF', '#87AF5F', 15, s:insertbg] " Outside blocks in insert mode
+let s:I2 = ['#AFAF87', '#5F5F5F', s:insertbg, s:termbg2] " Middle block
+let g:airline#themes#murmur#palette.insert = airline#themes#generate_color_map(s:I1, s:BB, s:I2)
+let g:airline#themes#murmur#palette.insert_modified = {'airline_c': ['#AFAF87', '#5F5F5F', s:alert, s:termbg2, 'bold'] ,}
+
+let s:R1 = ['#FFFFFF', '#870000', 15, s:replacebg] " Outside blocks in replace mode
+let s:R2 = ['#AFAF87', '#5F5F5F', 255, s:termbg2] " Middle block
+let g:airline#themes#murmur#palette.replace = airline#themes#generate_color_map(s:R1, s:BB, s:R2)
+let g:airline#themes#murmur#palette.replace_modified = {'airline_c': ['#AFAF87', '#5f005f', s:alert, s:termbg2, 'bold'] ,}
+
+let s:V1 = ['#FFFFFF', '#AF5F00', 15, s:visualbg] " Outside blocks in visual mode
+let s:V2 = ['#AFAF87', '#5F5F5F', s:visualbg, s:termbg2] " Middle block
+let g:airline#themes#murmur#palette.visual = airline#themes#generate_color_map(s:V1, s:BB, s:V2)
+let g:airline#themes#murmur#palette.visual_modified = {'airline_c': [ '#AFAF87', '#5f005f', s:alert, s:termbg2, 'bold'] ,}
+
+" Inactive mode
+let s:IA1 = ['#4E4E4E', '#1C1C1C', 239, 234, '']
+let s:IA2 = ['#4E4E4E', '#1C1C1C', 239, 234, '']
+let s:IA3 = ['#4E4E4E', '#1C1C1C', 239, 234, '']
+let g:airline#themes#murmur#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
+
+" CtrlP plugin colors
+if !get(g:, 'loaded_ctrlp', 0)
+ finish
+endif
+let g:airline#themes#murmur#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
+ \ ['#FFFFFF', '#5F87FF', 15, s:normalbg, ''],
+ \ ['#AFAF87', '#5F5F5F', 144, s:termbg, ''],
+ \ ['#AFAF87', '#5F5F5F', 39, s:termbg2, 'bold'])
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/powerlineish.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/powerlineish.vim
new file mode 100644
index 0000000..d550e11
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/powerlineish.vim
@@ -0,0 +1,46 @@
+" Theme to mimic the default colorscheme of powerline
+" Not 100% the same so it's powerline... ish.
+"
+" Differences from default powerline:
+" * Paste indicator isn't colored different
+" * Far right hand section matches the color of the mode indicator
+"
+" Differences from other airline themes:
+" * No color differences when you're in a modified buffer
+" * Visual mode only changes the mode section. Otherwise
+" it appears the same as normal mode
+
+" Normal mode " fg & bg
+let s:N1 = [ '#005f00' , '#afd700' , 22 , 148 ] " darkestgreen & brightgreen
+let s:N2 = [ '#9e9e9e' , '#303030' , 247 , 236 ] " gray8 & gray2
+let s:N3 = [ '#ffffff' , '#121212' , 231 , 233 ] " white & gray4
+
+" Insert mode " fg & bg
+let s:I1 = [ '#005f5f' , '#ffffff' , 23 , 231 ] " darkestcyan & white
+let s:I2 = [ '#5fafd7' , '#0087af' , 74 , 31 ] " darkcyan & darkblue
+let s:I3 = [ '#87d7ff' , '#005f87' , 117 , 24 ] " mediumcyan & darkestblue
+
+" Visual mode " fg & bg
+let s:V1 = [ '#080808' , '#ffaf00' , 232 , 214 ] " gray3 & brightestorange
+
+" Replace mode " fg & bg
+let s:RE = [ '#ffffff' , '#d70000' , 231 , 160 ] " white & brightred
+
+let g:airline#themes#powerlineish#palette = {}
+
+let g:airline#themes#powerlineish#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+
+let g:airline#themes#powerlineish#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+let g:airline#themes#powerlineish#palette.insert_replace = {
+ \ 'airline_a': [ s:RE[0] , s:I1[1] , s:RE[1] , s:I1[3] , '' ] }
+
+let g:airline#themes#powerlineish#palette.visual = {
+ \ 'airline_a': [ s:V1[0] , s:V1[1] , s:V1[2] , s:V1[3] , '' ] }
+
+let g:airline#themes#powerlineish#palette.replace = copy(airline#themes#powerlineish#palette.normal)
+let g:airline#themes#powerlineish#palette.replace.airline_a = [ s:RE[0] , s:RE[1] , s:RE[2] , s:RE[3] , '' ]
+
+
+let s:IA = [ s:N2[1] , s:N3[1] , s:N2[3] , s:N3[3] , '' ]
+let g:airline#themes#powerlineish#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/serene.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/serene.vim
new file mode 100644
index 0000000..9191c07
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/serene.vim
@@ -0,0 +1,41 @@
+let g:airline#themes#serene#palette = {}
+
+let s:guibg = '#080808'
+let s:termbg = 232
+let s:termsep = 236
+let s:guisep = '#303030'
+
+let s:N1 = [ '#00dfff' , s:guibg , 45 , s:termbg ]
+let s:N2 = [ '#ff5f00' , s:guibg , 202 , s:termbg ]
+let s:N3 = [ '#767676' , s:guibg , 7 , s:termbg ]
+
+let g:airline#themes#serene#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+let g:airline#themes#serene#palette.normal_modified = {
+ \ 'airline_c': [ '#df0000' , s:guibg, 160 , s:termbg , '' ] ,
+ \ }
+
+let s:I1 = [ '#5fff00' , s:guibg , 82 , s:termbg ]
+let s:I2 = [ '#ff5f00' , s:guibg , 202 , s:termbg ]
+let s:I3 = [ '#767676' , s:guibg , 7 , s:termbg ]
+let g:airline#themes#serene#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+let g:airline#themes#serene#palette.insert_modified = copy(g:airline#themes#serene#palette.normal_modified)
+let g:airline#themes#serene#palette.insert_paste = {
+ \ 'airline_a': [ s:I1[0] , '#d78700' , s:I1[2] , 172 , '' ] ,
+ \ }
+
+let g:airline#themes#serene#palette.replace = {
+ \ 'airline_a': [ s:I1[0] , '#af0000' , s:I1[2] , 124 , '' ] ,
+ \ }
+let g:airline#themes#serene#palette.replace_modified = copy(g:airline#themes#serene#palette.normal_modified)
+
+let s:V1 = [ '#dfdf00' , s:guibg , 184 , s:termbg ]
+let s:V2 = [ '#ff5f00' , s:guibg , 202 , s:termbg ]
+let s:V3 = [ '#767676' , s:guibg , 7 , s:termbg ]
+let g:airline#themes#serene#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
+let g:airline#themes#serene#palette.visual_modified = copy(g:airline#themes#serene#palette.normal_modified)
+
+let s:IA = [ '#4e4e4e' , s:guibg , 239 , s:termbg , '' ]
+let s:IA2 = [ '#4e4e4e' , s:guisep , 239 , s:termsep , '' ]
+let g:airline#themes#serene#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA2, s:IA2)
+let g:airline#themes#serene#palette.inactive_modified = copy(g:airline#themes#serene#palette.normal_modified)
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/simple.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/simple.vim
new file mode 100644
index 0000000..a111a1c
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/simple.vim
@@ -0,0 +1,46 @@
+let g:airline#themes#simple#palette = {}
+
+let s:guibg = '#080808'
+let s:guibg2 = '#1c1c1c'
+let s:termbg = 232
+let s:termbg2= 234
+
+let s:N1 = [ s:guibg , '#00dfff' , s:termbg , 45 ]
+let s:N2 = [ '#ff5f00' , s:guibg2, 202 , s:termbg2 ]
+let s:N3 = [ '#767676' , s:guibg, 243 , s:termbg]
+let g:airline#themes#simple#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+let g:airline#themes#simple#palette.normal_modified = {
+ \ 'airline_c': [ '#df0000' , s:guibg, 160 , s:termbg , '' ] ,
+ \ }
+
+
+let s:I1 = [ s:guibg, '#5fff00' , s:termbg , 82 ]
+let s:I2 = [ '#ff5f00' , s:guibg2, 202 , s:termbg2 ]
+let s:I3 = [ '#767676' , s:guibg, 243 , s:termbg ]
+let g:airline#themes#simple#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+let g:airline#themes#simple#palette.insert_modified = copy(g:airline#themes#simple#palette.normal_modified)
+let g:airline#themes#simple#palette.insert_paste = {
+ \ 'airline_a': [ s:I1[0] , '#d78700' , s:I1[2] , 172 , '' ] ,
+ \ }
+
+
+let g:airline#themes#simple#palette.replace = {
+ \ 'airline_a': [ s:I1[0] , '#af0000' , s:I1[2] , 124 , '' ] ,
+ \ }
+let g:airline#themes#simple#palette.replace_modified = copy(g:airline#themes#simple#palette.normal_modified)
+
+
+let s:V1 = [ s:guibg, '#dfdf00' , s:termbg , 184 ]
+let s:V2 = [ '#ff5f00' , s:guibg2, 202 , s:termbg2 ]
+let s:V3 = [ '#767676' , s:guibg, 243 , s:termbg ]
+let g:airline#themes#simple#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
+let g:airline#themes#simple#palette.visual_modified = copy(g:airline#themes#simple#palette.normal_modified)
+
+
+let s:IA = [ '#4e4e4e' , s:guibg , 239 , s:termbg , '' ]
+let s:IA2 = [ '#4e4e4e' , s:guibg2 , 239 , s:termbg2 , '' ]
+let g:airline#themes#simple#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA2, s:IA2)
+let g:airline#themes#simple#palette.inactive_modified = {
+ \ 'airline_c': [ '#df0000', '', 160, '', '' ] ,
+ \ }
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/sol.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/sol.vim
new file mode 100644
index 0000000..89ea505
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/sol.vim
@@ -0,0 +1,90 @@
+" vim-airline companion theme of Sol
+" (https://github.com/Pychimp/vim-sol)
+
+let g:airline#themes#sol#palette = {}
+
+let g:airline#themes#sol#palette.accents = {
+ \ 'red': [ '#ffffff' , '' , 231 , '' , '' ],
+ \ }
+
+let s:N1 = [ '#343434' , '#a0a0a0' , 237 , 248 ]
+let s:N2 = [ '#343434' , '#b3b3b3' , 237 , 250 ]
+let s:N3 = [ '#343434' , '#c7c7c7' , 237 , 252 ]
+let g:airline#themes#sol#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+let g:airline#themes#sol#palette.normal_modified = {
+ \ 'airline_c': [ '#ffffff' , '#ff6868' , 237 , 209 , '' ] ,
+ \ }
+
+
+let s:I1 = [ '#eeeeee' , '#09643f' , 255 , 30 ]
+let s:I2 = [ '#343434' , '#a3a3a3' , 237 , 249 ]
+let s:I3 = [ '#343434' , '#b0b0b0' , 237 , 250 ]
+let g:airline#themes#sol#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+let g:airline#themes#sol#palette.insert_modified = {
+ \ 'airline_c': [ '#343434' , '#ffdbc7' , 237 , 216 , '' ] ,
+ \ }
+let g:airline#themes#sol#palette.insert_paste = {
+ \ 'airline_a': [ s:I1[0] , '#09643f' , s:I1[2] , 30 , '' ] ,
+ \ }
+
+
+let g:airline#themes#sol#palette.replace = copy(g:airline#themes#sol#palette.insert)
+let g:airline#themes#sol#palette.replace.airline_a = [ s:I1[0] , '#ff2121' , s:I1[2] , 196 , '' ]
+let g:airline#themes#sol#palette.replace.airline_z = [ s:I1[0] , '#ff2121' , s:I1[2] , 196 , '' ]
+let g:airline#themes#sol#palette.replace_modified = g:airline#themes#sol#palette.insert_modified
+
+let s:V1 = [ '#ffff9a' , '#ff6003' , 222 , 202 ]
+let s:V2 = [ '#343434' , '#a3a3a3' , 237 , 249 ]
+let s:V3 = [ '#343434' , '#b0b0b0' , 237 , 250 ]
+let g:airline#themes#sol#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
+let g:airline#themes#sol#palette.visual_modified = {
+ \ 'airline_c': [ '#343434' , '#ffdbc7' , 237 , 216 , '' ] ,
+ \ }
+
+let s:IA = [ '#777777' , '#c7c7c7' , 244 , 251 , '' ]
+let g:airline#themes#sol#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
+let g:airline#themes#sol#palette.inactive_modified = {
+ \ 'airline_c': [ '#ff3535' , '' , 203 , '' , '' ] ,
+ \ }
+
+let g:airline#themes#sol#palette.tabline = {
+ \ 'airline_tab': ['#343434', '#b3b3b3', 237, 250, ''],
+ \ 'airline_tabsel': ['#ffffff', '#004b9a', 231, 31 , ''],
+ \ 'airline_tabtype': ['#343434', '#a0a0a0', 237, 248, ''],
+ \ 'airline_tabfill': ['#343434', '#c7c7c7', 237, 251, ''],
+ \ 'airline_tabmod': ['#343434', '#ffdbc7', 237, 216, ''],
+ \ }
+
+let s:WI = [ '#eeeeee', '#e33900', 255, 166 ]
+let g:airline#themes#sol#palette.normal.airline_warning = [
+ \ s:WI[0], s:WI[1], s:WI[2], s:WI[3]
+ \ ]
+
+let g:airline#themes#sol#palette.normal_modified.airline_warning =
+ \ g:airline#themes#sol#palette.normal.airline_warning
+
+let g:airline#themes#sol#palette.insert.airline_warning =
+ \ g:airline#themes#sol#palette.normal.airline_warning
+
+let g:airline#themes#sol#palette.insert_modified.airline_warning =
+ \ g:airline#themes#sol#palette.normal.airline_warning
+
+let g:airline#themes#sol#palette.visual.airline_warning =
+ \ g:airline#themes#sol#palette.normal.airline_warning
+
+let g:airline#themes#sol#palette.visual_modified.airline_warning =
+ \ g:airline#themes#sol#palette.normal.airline_warning
+
+let g:airline#themes#sol#palette.replace.airline_warning =
+ \ g:airline#themes#sol#palette.normal.airline_warning
+
+let g:airline#themes#sol#palette.replace_modified.airline_warning =
+ \ g:airline#themes#sol#palette.normal.airline_warning
+
+if !get(g:, 'loaded_ctrlp', 0)
+ finish
+endif
+let g:airline#themes#sol#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
+ \ [ '#343434' , '#c7c7c7' , 237 , 251 , '' ] ,
+ \ [ '#343434' , '#b3b3b3' , 237 , 250 , '' ] ,
+ \ [ '#eeeeee' , '#007fff' , 255 , 27 , '' ] )
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/solarized.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/solarized.vim
new file mode 100644
index 0000000..30ba47e
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/solarized.vim
@@ -0,0 +1,176 @@
+let g:airline#themes#solarized#palette = {}
+
+function! airline#themes#solarized#refresh()
+ """"""""""""""""""""""""""""""""""""""""""""""""
+ " Options
+ """"""""""""""""""""""""""""""""""""""""""""""""
+ let s:background = get(g:, 'airline_solarized_bg', &background)
+ let s:ansi_colors = get(g:, 'solarized_termcolors', 16) != 256 && &t_Co >= 16 ? 1 : 0
+ let s:tty = &t_Co == 8
+
+ """"""""""""""""""""""""""""""""""""""""""""""""
+ " Colors
+ """"""""""""""""""""""""""""""""""""""""""""""""
+ " Base colors
+ let s:base03 = {'t': s:ansi_colors ? 8 : (s:tty ? '0' : 234), 'g': '#002b36'}
+ let s:base02 = {'t': s:ansi_colors ? '0' : (s:tty ? '0' : 235), 'g': '#073642'}
+ let s:base01 = {'t': s:ansi_colors ? 10 : (s:tty ? '0' : 240), 'g': '#586e75'}
+ let s:base00 = {'t': s:ansi_colors ? 11 : (s:tty ? '7' : 241), 'g': '#657b83'}
+ let s:base0 = {'t': s:ansi_colors ? 12 : (s:tty ? '7' : 244), 'g': '#839496'}
+ let s:base1 = {'t': s:ansi_colors ? 14 : (s:tty ? '7' : 245), 'g': '#93a1a1'}
+ let s:base2 = {'t': s:ansi_colors ? 7 : (s:tty ? '7' : 254), 'g': '#eee8d5'}
+ let s:base3 = {'t': s:ansi_colors ? 15 : (s:tty ? '7' : 230), 'g': '#fdf6e3'}
+ let s:yellow = {'t': s:ansi_colors ? 3 : (s:tty ? '3' : 136), 'g': '#b58900'}
+ let s:orange = {'t': s:ansi_colors ? 9 : (s:tty ? '1' : 166), 'g': '#cb4b16'}
+ let s:red = {'t': s:ansi_colors ? 1 : (s:tty ? '1' : 160), 'g': '#dc322f'}
+ let s:magenta = {'t': s:ansi_colors ? 5 : (s:tty ? '5' : 125), 'g': '#d33682'}
+ let s:violet = {'t': s:ansi_colors ? 13 : (s:tty ? '5' : 61 ), 'g': '#6c71c4'}
+ let s:blue = {'t': s:ansi_colors ? 4 : (s:tty ? '4' : 33 ), 'g': '#268bd2'}
+ let s:cyan = {'t': s:ansi_colors ? 6 : (s:tty ? '6' : 37 ), 'g': '#2aa198'}
+ let s:green = {'t': s:ansi_colors ? 2 : (s:tty ? '2' : 64 ), 'g': '#859900'}
+
+ """"""""""""""""""""""""""""""""""""""""""""""""
+ " Simple mappings
+ " NOTE: These are easily tweakable mappings. The actual mappings get
+ " the specific gui and terminal colors from the base color dicts.
+ """"""""""""""""""""""""""""""""""""""""""""""""
+ " Normal mode
+ if s:background == 'dark'
+ let s:N1 = [s:base3, s:base1, 'bold']
+ let s:N2 = [s:base2, (s:tty ? s:base01 : s:base00), '']
+ let s:N3 = [s:base01, s:base02, '']
+ else
+ let s:N1 = [s:base2, s:base00, 'bold']
+ let s:N2 = [(s:tty ? s:base01 : s:base2), s:base1, '']
+ let s:N3 = [s:base1, s:base2, '']
+ endif
+ let s:NF = [s:orange, s:N3[1], '']
+ let s:NW = [s:base3, s:orange, '']
+ if s:background == 'dark'
+ let s:NM = [s:base1, s:N3[1], '']
+ let s:NMi = [s:base2, s:N3[1], '']
+ else
+ let s:NM = [s:base01, s:N3[1], '']
+ let s:NMi = [s:base02, s:N3[1], '']
+ endif
+
+ " Insert mode
+ let s:I1 = [s:N1[0], s:yellow, 'bold']
+ let s:I2 = s:N2
+ let s:I3 = s:N3
+ let s:IF = s:NF
+ let s:IM = s:NM
+
+ " Visual mode
+ let s:V1 = [s:N1[0], s:magenta, 'bold']
+ let s:V2 = s:N2
+ let s:V3 = s:N3
+ let s:VF = s:NF
+ let s:VM = s:NM
+
+ " Replace mode
+ let s:R1 = [s:N1[0], s:red, '']
+ let s:R2 = s:N2
+ let s:R3 = s:N3
+ let s:RM = s:NM
+ let s:RF = s:NF
+
+ " Inactive, according to VertSplit in solarized
+ " (bg dark: base00; bg light: base0)
+ if s:background == 'dark'
+ let s:IA = [s:base02, s:base00, '']
+ else
+ let s:IA = [s:base2, s:base0, '']
+ endif
+
+ """"""""""""""""""""""""""""""""""""""""""""""""
+ " Actual mappings
+ " WARNING: Don't modify this section unless necessary.
+ """"""""""""""""""""""""""""""""""""""""""""""""
+ let s:NFa = [s:NF[0].g, s:NF[1].g, s:NF[0].t, s:NF[1].t, s:NF[2]]
+ let s:IFa = [s:IF[0].g, s:IF[1].g, s:IF[0].t, s:IF[1].t, s:IF[2]]
+ let s:VFa = [s:VF[0].g, s:VF[1].g, s:VF[0].t, s:VF[1].t, s:VF[2]]
+ let s:RFa = [s:RF[0].g, s:RF[1].g, s:RF[0].t, s:RF[1].t, s:RF[2]]
+
+ let g:airline#themes#solarized#palette.accents = {
+ \ 'red': s:NFa,
+ \ }
+
+ let g:airline#themes#solarized#palette.inactive = airline#themes#generate_color_map(
+ \ [s:IA[0].g, s:IA[1].g, s:IA[0].t, s:IA[1].t, s:IA[2]],
+ \ [s:IA[0].g, s:IA[1].g, s:IA[0].t, s:IA[1].t, s:IA[2]],
+ \ [s:IA[0].g, s:IA[1].g, s:IA[0].t, s:IA[1].t, s:IA[2]])
+ let g:airline#themes#solarized#palette.inactive_modified = {
+ \ 'airline_c': [s:NMi[0].g, '', s:NMi[0].t, '', s:NMi[2]]}
+
+ let g:airline#themes#solarized#palette.normal = airline#themes#generate_color_map(
+ \ [s:N1[0].g, s:N1[1].g, s:N1[0].t, s:N1[1].t, s:N1[2]],
+ \ [s:N2[0].g, s:N2[1].g, s:N2[0].t, s:N2[1].t, s:N2[2]],
+ \ [s:N3[0].g, s:N3[1].g, s:N3[0].t, s:N3[1].t, s:N3[2]])
+
+ let g:airline#themes#solarized#palette.normal.airline_warning = [
+ \ s:NW[0].g, s:NW[1].g, s:NW[0].t, s:NW[1].t, s:NW[2]]
+
+ let g:airline#themes#solarized#palette.normal_modified = {
+ \ 'airline_c': [s:NM[0].g, s:NM[1].g,
+ \ s:NM[0].t, s:NM[1].t, s:NM[2]]}
+
+ let g:airline#themes#solarized#palette.normal_modified.airline_warning =
+ \ g:airline#themes#solarized#palette.normal.airline_warning
+
+ let g:airline#themes#solarized#palette.insert = airline#themes#generate_color_map(
+ \ [s:I1[0].g, s:I1[1].g, s:I1[0].t, s:I1[1].t, s:I1[2]],
+ \ [s:I2[0].g, s:I2[1].g, s:I2[0].t, s:I2[1].t, s:I2[2]],
+ \ [s:I3[0].g, s:I3[1].g, s:I3[0].t, s:I3[1].t, s:I3[2]])
+
+ let g:airline#themes#solarized#palette.insert.airline_warning =
+ \ g:airline#themes#solarized#palette.normal.airline_warning
+
+ let g:airline#themes#solarized#palette.insert_modified = {
+ \ 'airline_c': [s:IM[0].g, s:IM[1].g,
+ \ s:IM[0].t, s:IM[1].t, s:IM[2]]}
+
+ let g:airline#themes#solarized#palette.insert_modified.airline_warning =
+ \ g:airline#themes#solarized#palette.normal.airline_warning
+
+ let g:airline#themes#solarized#palette.visual = airline#themes#generate_color_map(
+ \ [s:V1[0].g, s:V1[1].g, s:V1[0].t, s:V1[1].t, s:V1[2]],
+ \ [s:V2[0].g, s:V2[1].g, s:V2[0].t, s:V2[1].t, s:V2[2]],
+ \ [s:V3[0].g, s:V3[1].g, s:V3[0].t, s:V3[1].t, s:V3[2]])
+
+ let g:airline#themes#solarized#palette.visual.airline_warning =
+ \ g:airline#themes#solarized#palette.normal.airline_warning
+
+ let g:airline#themes#solarized#palette.visual_modified = {
+ \ 'airline_c': [s:VM[0].g, s:VM[1].g,
+ \ s:VM[0].t, s:VM[1].t, s:VM[2]]}
+
+ let g:airline#themes#solarized#palette.visual_modified.airline_warning =
+ \ g:airline#themes#solarized#palette.normal.airline_warning
+
+ let g:airline#themes#solarized#palette.replace = airline#themes#generate_color_map(
+ \ [s:R1[0].g, s:R1[1].g, s:R1[0].t, s:R1[1].t, s:R1[2]],
+ \ [s:R2[0].g, s:R2[1].g, s:R2[0].t, s:R2[1].t, s:R2[2]],
+ \ [s:R3[0].g, s:R3[1].g, s:R3[0].t, s:R3[1].t, s:R3[2]])
+
+ let g:airline#themes#solarized#palette.replace.airline_warning =
+ \ g:airline#themes#solarized#palette.normal.airline_warning
+
+ let g:airline#themes#solarized#palette.replace_modified = {
+ \ 'airline_c': [s:RM[0].g, s:RM[1].g,
+ \ s:RM[0].t, s:RM[1].t, s:RM[2]]}
+
+ let g:airline#themes#solarized#palette.replace_modified.airline_warning =
+ \ g:airline#themes#solarized#palette.normal.airline_warning
+
+ let g:airline#themes#solarized#palette.tabline = {}
+
+ let g:airline#themes#solarized#palette.tabline.airline_tab = [
+ \ s:I2[0].g, s:I2[1].g, s:I2[0].t, s:I2[1].t, s:I2[2]]
+
+ let g:airline#themes#solarized#palette.tabline.airline_tabtype = [
+ \ s:N2[0].g, s:N2[1].g, s:N2[0].t, s:N2[1].t, s:N2[2]]
+endfunction
+
+call airline#themes#solarized#refresh()
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/tomorrow.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/tomorrow.vim
new file mode 100644
index 0000000..f382fc1
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/tomorrow.vim
@@ -0,0 +1,44 @@
+let g:airline#themes#tomorrow#palette = {}
+
+function! airline#themes#tomorrow#refresh()
+ let g:airline#themes#tomorrow#palette.accents = {
+ \ 'red': airline#themes#get_highlight('Constant'),
+ \ }
+
+ let s:N1 = airline#themes#get_highlight2(['Normal', 'bg'], ['Directory', 'fg'], 'bold')
+ let s:N2 = airline#themes#get_highlight('Pmenu')
+ let s:N3 = airline#themes#get_highlight('CursorLine')
+ let g:airline#themes#tomorrow#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+
+ let group = airline#themes#get_highlight('vimCommand')
+ let g:airline#themes#tomorrow#palette.normal_modified = {
+ \ 'airline_c': [ group[0], '', group[2], '', '' ]
+ \ }
+
+ let s:I1 = airline#themes#get_highlight2(['Normal', 'bg'], ['MoreMsg', 'fg'], 'bold')
+ let s:I2 = airline#themes#get_highlight2(['MoreMsg', 'fg'], ['Normal', 'bg'])
+ let s:I3 = s:N3
+ let g:airline#themes#tomorrow#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+ let g:airline#themes#tomorrow#palette.insert_modified = g:airline#themes#tomorrow#palette.normal_modified
+
+ let s:R1 = airline#themes#get_highlight('Error', 'bold')
+ let s:R2 = s:N2
+ let s:R3 = s:N3
+ let g:airline#themes#tomorrow#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
+ let g:airline#themes#tomorrow#palette.replace_modified = g:airline#themes#tomorrow#palette.normal_modified
+
+ let s:V1 = airline#themes#get_highlight2(['Normal', 'bg'], ['Constant', 'fg'], 'bold')
+ let s:V2 = airline#themes#get_highlight2(['Constant', 'fg'], ['Normal', 'bg'])
+ let s:V3 = s:N3
+ let g:airline#themes#tomorrow#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
+ let g:airline#themes#tomorrow#palette.visual_modified = g:airline#themes#tomorrow#palette.normal_modified
+
+ let s:IA = airline#themes#get_highlight2(['NonText', 'fg'], ['CursorLine', 'bg'])
+ let g:airline#themes#tomorrow#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
+ let g:airline#themes#tomorrow#palette.inactive_modified = {
+ \ 'airline_c': [ group[0], '', group[2], '', '' ]
+ \ }
+endfunction
+
+call airline#themes#tomorrow#refresh()
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/ubaryd.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/ubaryd.vim
new file mode 100644
index 0000000..70232ef
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/ubaryd.vim
@@ -0,0 +1,64 @@
+" vim-airline companion theme of Ubaryd
+" (https://github.com/Donearm/Ubaryd)
+
+" Normal mode
+let s:N1 = [ '#141413' , '#c7b386' , 232 , 252 ] " blackestgravel & bleaksand
+let s:N2 = [ '#c7b386' , '#45413b' , 252, 238 ] " bleaksand & deepgravel
+let s:N3 = [ '#b88853' , '#242321' , 137, 235 ] " toffee & darkgravel
+let s:N4 = [ '#857f78' , 243 ] " gravel
+
+" Insert mode
+let s:I1 = [ '#1a1a18' , '#fade3e' , 232 , 221 ] " blackestgravel & warmcorn
+let s:I2 = [ '#c7b386' , '#45413b' , 252 , 238 ] " bleaksand & deepgravel
+let s:I3 = [ '#f4cf86' , '#242321' , 222 , 235 ] " lighttannedskin & darkgravel
+
+" Visual mode
+let s:V1 = [ '#1c1b1a' , '#9a4820' , 233 , 88 ] " blackgravel & warmadobe
+let s:V2 = [ '#000000' , '#88633f' , 16 , 95 ] " coal & cappuccino
+let s:V3 = [ '#88633f' , '#c7b386' , 95 , 252 ] " cappuccino & bleaksand
+let s:V4 = [ '#c14c3d' , 160 ] " tannedumbrella
+
+" Replace mode
+let s:RE = [ '#c7915b' , 173 ] " nut
+
+" Paste mode
+let s:PA = [ '#f9ef6d' , 154 ] " bleaklemon
+
+let s:IA = [ s:N2[1], s:N3[1], s:N2[3], s:N3[3], '' ]
+
+let g:airline#themes#ubaryd#palette = {}
+
+let g:airline#themes#ubaryd#palette.accents = {
+ \ 'red': [ '#ff7400' , '' , 196 , '' , '' ],
+ \ }
+
+let g:airline#themes#ubaryd#palette.inactive = {
+ \ 'airline_a' : [ s:N2[1] , s:N3[1] , s:N2[3] , s:N3[3] , '' ] }
+
+
+let g:airline#themes#ubaryd#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+let g:airline#themes#ubaryd#palette.normal_modified = {
+ \ 'airline_a' : [ s:N2[0] , s:N4[0] , s:N2[2] , s:N4[1] , '' ] ,
+ \ 'airline_c' : [ s:V1[1] , s:N2[1] , s:V1[3] , s:N2[3] , '' ] }
+
+
+let g:airline#themes#ubaryd#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+let g:airline#themes#ubaryd#palette.insert_modified = {
+ \ 'airline_c' : [ s:V2[1] , s:N2[1] , s:V2[3] , s:N2[3] , '' ] }
+let g:airline#themes#ubaryd#palette.insert_paste = {
+ \ 'airline_a' : [ s:I1[0] , s:PA[0] , s:I1[2] , s:PA[1] , '' ] }
+
+
+let g:airline#themes#ubaryd#palette.replace = copy(airline#themes#ubaryd#palette.insert)
+let g:airline#themes#ubaryd#palette.replace.airline_a = [ s:I1[0] , s:RE[0] , s:I1[2] , s:RE[1] , '' ]
+let g:airline#themes#ubaryd#palette.replace_modified = g:airline#themes#ubaryd#palette.insert_modified
+
+
+let g:airline#themes#ubaryd#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
+let g:airline#themes#ubaryd#palette.visual_modified = {
+ \ 'airline_c' : [ s:V3[0] , s:V4[0] , s:V3[2] , s:V4[1] , '' ] }
+
+let g:airline#themes#ubaryd#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
+let g:airline#themes#ubaryd#palette.inactive_modified = {
+ \ 'airline_c' : [ s:V1[1] , '' , s:V1[3] , '' , '' ] }
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/understated.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/understated.vim
new file mode 100644
index 0000000..b3e7917
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/understated.vim
@@ -0,0 +1,43 @@
+let g:airline#themes#understated#palette = {}
+
+let s:N1 = ['#FFFFFF', '#5F87FF', 15, 69] " Outside blocks in normal mode (mode and file position)
+let s:N2 = ['#AFAF87', '#5F5F5F', 144, 59] " Next blocks inside (branch and file format)
+let s:N3 = ['#AFAF87', '#5F5F5F', 144, 59] " The middle block
+
+let g:airline#themes#understated#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+let g:airline#themes#understated#palette.normal_modified = {'airline_c': ['#ffffff', '#5f005f', 144, 59, 'bold'] ,}
+
+let s:I1 = ['#FFFFFF', '#87AF5F', 15, 107] " Outside blocks in normal mode (mode and file position)
+let s:I2 = ['#AFAF87', '#5F5F5F', 144, 59] " Next blocks inside (branch and file format)
+let s:I3 = ['#AFAF87', '#5F5F5F', 144, 59] " The middle block
+let g:airline#themes#understated#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+let g:airline#themes#understated#palette.insert_modified = {'airline_c': ['#AFAF87', '#5F5F5F', 144, 59, 'bold'] ,}
+let g:airline#themes#understated#palette.insert_paste = {'airline_c': ['#AFAF87', '#5F5F5F', 144, 59, ''] ,}
+
+let g:airline#themes#understated#palette.replace = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+let g:airline#themes#understated#palette.replace.airline_a = ['#FFFFFF', '#870000', 15, 88, '']
+let g:airline#themes#understated#palette.replace_modified = {'airline_c': ['#AFAF87', '#5F5F5F', 144, 59, 'bold'] ,}
+
+let s:V1 = ['#FFFFFF', '#AF5F00', 15, 130]
+let s:V2 = ['#AFAF87', '#5F5F5F', 144, 59]
+let s:V3 = ['#AFAF87', '#5F5F5F', 144, 59]
+let g:airline#themes#understated#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
+let g:airline#themes#understated#palette.visual_modified = {'airline_c': [ '#AFAF87', '#5f005f', 144, 59, 'bold'] ,}
+
+let s:V1 = ['#080808', '#FFAF00', 232, 214]
+let s:IA1 = ['#4E4E4E', '#1C1C1C', 239, 234, '']
+let s:IA2 = ['#4E4E4E', '#1C1C1C', 239, 234, '']
+let s:IA3 = ['#4E4E4E', '#1C1C1C', 239, 234, '']
+let g:airline#themes#understated#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
+let g:airline#themes#understated#palette.inactive_modified = {'airline_c': ['#4E4E4E', '', 239, '', 'bold'] ,}
+
+let g:airline#themes#understated#palette.accents = {'red': ['#FF0000', '', 88, '']}
+
+if !get(g:, 'loaded_ctrlp', 0)
+ finish
+endif
+let g:airline#themes#understated#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
+ \ ['#FFFFFF', '#1C1C1C', 15, 234, '' ],
+ \ ['#FFFFFF', '#262626', 15, 235, '' ],
+ \ ['#FFFFFF', '#303030', 15, 236, 'bold'])
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/wombat.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/wombat.vim
new file mode 100644
index 0000000..39fdc4c
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/wombat.vim
@@ -0,0 +1,90 @@
+" vim-airline companion theme of Wombat
+" looks great with wombat256 vim colorscheme
+
+" Normal mode
+" [ guifg, guibg, ctermfg, ctermbg, opts ]
+let s:N1 = [ '#141413' , '#CAE682' , 232 , 192 ] " mode
+let s:N2 = [ '#CAE682' , '#32322F' , 192 , 236 ] " info
+let s:N3 = [ '#CAE682' , '#242424' , 192 , 234 ] " statusline
+let s:N4 = [ '#86CD74' , 113 ] " mode modified
+
+" Insert mode
+let s:I1 = [ '#141413' , '#FDE76E' , 232 , 227 ]
+let s:I2 = [ '#FDE76E' , '#32322F' , 227 , 236 ]
+let s:I3 = [ '#FDE76E' , '#242424' , 227 , 234 ]
+let s:I4 = [ '#FADE3E' , 221 ]
+
+" Visual mode
+let s:V1 = [ '#141413' , '#B5D3F3' , 232 , 153 ]
+let s:V2 = [ '#B5D3F3' , '#32322F' , 153 , 236 ]
+let s:V3 = [ '#B5D3F3' , '#242424' , 153 , 234 ]
+let s:V4 = [ '#7CB0E6' , 111 ]
+
+" Replace mode
+let s:R1 = [ '#141413' , '#E5786D' , 232 , 173 ]
+let s:R2 = [ '#E5786D' , '#32322F' , 173 , 236 ]
+let s:R3 = [ '#E5786D' , '#242424' , 173 , 234 ]
+let s:R4 = [ '#E55345' , 203 ]
+
+" Paste mode
+let s:PA = [ '#94E42C' , 47 ]
+
+" Info modified
+let s:IM = [ '#40403C' , 238 ]
+
+" Inactive mode
+let s:IA = [ '#767676' , s:N3[1] , 243 , s:N3[3] , '' ]
+
+let g:airline#themes#wombat#palette = {}
+
+let g:airline#themes#wombat#palette.accents = {
+ \ 'red': [ '#E5786D' , '' , 203 , '' , '' ],
+ \ }
+
+let g:airline#themes#wombat#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+let g:airline#themes#wombat#palette.normal_modified = {
+ \ 'airline_a': [ s:N1[0] , s:N4[0] , s:N1[2] , s:N4[1] , '' ] ,
+ \ 'airline_b': [ s:N4[0] , s:IM[0] , s:N4[1] , s:IM[1] , '' ] ,
+ \ 'airline_c': [ s:N4[0] , s:N3[1] , s:N4[1] , s:N3[3] , '' ] }
+
+
+let g:airline#themes#wombat#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+let g:airline#themes#wombat#palette.insert_modified = {
+ \ 'airline_a': [ s:I1[0] , s:I4[0] , s:I1[2] , s:I4[1] , '' ] ,
+ \ 'airline_b': [ s:I4[0] , s:IM[0] , s:I4[1] , s:IM[1] , '' ] ,
+ \ 'airline_c': [ s:I4[0] , s:N3[1] , s:I4[1] , s:N3[3] , '' ] }
+
+
+let g:airline#themes#wombat#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
+let g:airline#themes#wombat#palette.visual_modified = {
+ \ 'airline_a': [ s:V1[0] , s:V4[0] , s:V1[2] , s:V4[1] , '' ] ,
+ \ 'airline_b': [ s:V4[0] , s:IM[0] , s:V4[1] , s:IM[1] , '' ] ,
+ \ 'airline_c': [ s:V4[0] , s:N3[1] , s:V4[1] , s:N3[3] , '' ] }
+
+
+let g:airline#themes#wombat#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
+let g:airline#themes#wombat#palette.replace_modified = {
+ \ 'airline_a': [ s:R1[0] , s:R4[0] , s:R1[2] , s:R4[1] , '' ] ,
+ \ 'airline_b': [ s:R4[0] , s:IM[0] , s:R4[1] , s:IM[1] , '' ] ,
+ \ 'airline_c': [ s:R4[0] , s:N3[1] , s:R4[1] , s:N3[3] , '' ] }
+
+
+let g:airline#themes#wombat#palette.insert_paste = {
+ \ 'airline_a': [ s:I1[0] , s:PA[0] , s:I1[2] , s:PA[1] , '' ] ,
+ \ 'airline_b': [ s:PA[0] , s:IM[0] , s:PA[1] , s:IM[1] , '' ] ,
+ \ 'airline_c': [ s:PA[0] , s:N3[1] , s:PA[1] , s:N3[3] , '' ] }
+
+
+let g:airline#themes#wombat#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
+let g:airline#themes#wombat#palette.inactive_modified = {
+ \ 'airline_c': [ s:N4[0] , '' , s:N4[1] , '' , '' ] }
+
+
+if !get(g:, 'loaded_ctrlp', 0)
+ finish
+endif
+let g:airline#themes#wombat#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
+ \ [ '#DADADA' , '#242424' , 253 , 234 , '' ] ,
+ \ [ '#DADADA' , '#40403C' , 253 , 238 , '' ] ,
+ \ [ '#141413' , '#DADADA' , 232 , 253 , 'bold' ] )
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/themes/zenburn.vim b/vim/.vim/bundle/vim-airline/autoload/airline/themes/zenburn.vim
new file mode 100644
index 0000000..9883c21
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/themes/zenburn.vim
@@ -0,0 +1,44 @@
+let g:airline#themes#zenburn#palette = {}
+
+function! airline#themes#zenburn#refresh()
+ let g:airline#themes#zenburn#palette.accents = {
+ \ 'red': airline#themes#get_highlight('Constant'),
+ \ }
+
+ let s:N1 = airline#themes#get_highlight2(['DbgCurrent', 'bg'], ['Folded', 'fg'], 'bold')
+ let s:N2 = airline#themes#get_highlight('Folded')
+ let s:N3 = airline#themes#get_highlight('NonText')
+
+ let g:airline#themes#zenburn#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
+ let s:Nmod = airline#themes#get_highlight('Comment')
+ let g:airline#themes#zenburn#palette.normal_modified = {
+ \ 'airline_c': s:Nmod
+ \ }
+
+ let s:I1 = airline#themes#get_highlight2(['DbgCurrent', 'bg'], ['String', 'fg'], 'bold')
+ let s:I2 = airline#themes#get_highlight2(['String', 'fg'], ['Folded', 'bg'])
+ let s:I3 = s:N3
+ let g:airline#themes#zenburn#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
+ let g:airline#themes#zenburn#palette.insert_modified = g:airline#themes#zenburn#palette.normal_modified
+
+ let s:R1 = airline#themes#get_highlight2(['DbgCurrent', 'bg'], ['Comment', 'fg'], 'bold')
+ let s:R2 = airline#themes#get_highlight2(['Comment', 'fg'], ['Folded', 'bg'])
+ let s:R3 = s:N3
+ let g:airline#themes#zenburn#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
+ let g:airline#themes#zenburn#palette.replace_modified = g:airline#themes#zenburn#palette.normal_modified
+
+ let s:V1 = airline#themes#get_highlight2(['DbgCurrent', 'bg'], ['Identifier', 'fg'], 'bold')
+ let s:V2 = airline#themes#get_highlight2(['Identifier', 'fg'], ['Folded', 'bg'])
+ let s:V3 = s:N3
+ let g:airline#themes#zenburn#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
+ let g:airline#themes#zenburn#palette.visual_modified = g:airline#themes#zenburn#palette.normal_modified
+
+ let s:IA = airline#themes#get_highlight('NonText')
+ let g:airline#themes#zenburn#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
+ let g:airline#themes#zenburn#palette.inactive_modified = {
+ \ 'airline_c': s:Nmod
+ \ }
+endfunction
+
+call airline#themes#zenburn#refresh()
+
diff --git a/vim/.vim/bundle/vim-airline/autoload/airline/util.vim b/vim/.vim/bundle/vim-airline/autoload/airline/util.vim
new file mode 100644
index 0000000..a04bd0b
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/autoload/airline/util.vim
@@ -0,0 +1,64 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+call airline#init#bootstrap()
+let s:spc = g:airline_symbols.space
+
+function! airline#util#wrap(text, minwidth)
+ if a:minwidth > 0 && winwidth(0) < a:minwidth
+ return ''
+ endif
+ return a:text
+endfunction
+
+function! airline#util#append(text, minwidth)
+ if a:minwidth > 0 && winwidth(0) < a:minwidth
+ return ''
+ endif
+ let prefix = s:spc == "\ua0" ? s:spc : s:spc.s:spc
+ return empty(a:text) ? '' : prefix.g:airline_left_alt_sep.s:spc.a:text
+endfunction
+
+function! airline#util#prepend(text, minwidth)
+ if a:minwidth > 0 && winwidth(0) < a:minwidth
+ return ''
+ endif
+ return empty(a:text) ? '' : a:text.s:spc.g:airline_right_alt_sep.s:spc
+endfunction
+
+if v:version >= 704
+ function! airline#util#getwinvar(winnr, key, def)
+ return getwinvar(a:winnr, a:key, a:def)
+ endfunction
+else
+ function! airline#util#getwinvar(winnr, key, def)
+ let winvals = getwinvar(a:winnr, '')
+ return get(winvals, a:key, a:def)
+ endfunction
+endif
+
+if v:version >= 704
+ function! airline#util#exec_funcrefs(list, ...)
+ for Fn in a:list
+ let code = call(Fn, a:000)
+ if code != 0
+ return code
+ endif
+ endfor
+ return 0
+ endfunction
+else
+ function! airline#util#exec_funcrefs(list, ...)
+ " for 7.2; we cannot iterate the list, hence why we use range()
+ " for 7.3-[97, 328]; we cannot reuse the variable, hence the {}
+ for i in range(0, len(a:list) - 1)
+ let Fn{i} = a:list[i]
+ let code = call(Fn{i}, a:000)
+ if code != 0
+ return code
+ endif
+ endfor
+ return 0
+ endfunction
+endif
+
diff --git a/vim/.vim/bundle/vim-airline/doc/airline.txt b/vim/.vim/bundle/vim-airline/doc/airline.txt
new file mode 100644
index 0000000..0ae928a
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/doc/airline.txt
@@ -0,0 +1,752 @@
+*airline.txt* Lean and mean status/tabline that's light as air
+*airline*
+ _ _ _ _ ~
+ __ _(_)_ __ ___ __ _(_)_ __| (_)_ __ ___ ~
+ \ \ / / | '_ ` _ \ _____ / _` | | '__| | | '_ \ / _ \ ~
+ \ V /| | | | | | |_____| (_| | | | | | | | | | __/ ~
+ \_/ |_|_| |_| |_| \__,_|_|_| |_|_|_| |_|\___| ~
+ ~
+==============================================================================
+CONTENTS *airline-contents*
+
+ 01. Intro ............................................... |airline-intro|
+ 02. Features ......................................... |airline-features|
+ 03. Name ................................................. |airline-name|
+ 04. Configuration ............................... |airline-configuration|
+ 05. Commands ......................................... |airline-commands|
+ 06. Customization ............................... |airline-customization|
+ 07. Extensions ..................................... |airline-extensions|
+ 08. Advanced Customization ............. |airline-advanced-customization|
+ 09. Funcrefs ......................................... |airline-funcrefs|
+ 10. Pipeline ......................................... |airline-pipeline|
+ 11. Writing Extensions ..................... |airline-writing-extensions|
+ 12. Writing Themes ..................................... |airline-themes|
+ 13. Troubleshooting ........................... |airline-troubleshooting|
+ 14. Contributions ............................... |airline-contributions|
+ 15. License ........................................... |airline-license|
+
+==============================================================================
+INTRODUCTION *airline-intro*
+
+vim-airline is a fast and lightweight alternative to powerline, written
+in 100% vimscript with no outside dependencies.
+
+==============================================================================
+FEATURES *airline-features*
+
+* tiny core written with extensibility in mind.
+* integrates with many popular plugins.
+* looks good with regular fonts, and provides configuration points so you
+ can use unicode or powerline symbols.
+* optimized for speed; it loads in under a millisecond.
+* fully customizable; if you know a little 'statusline' syntax you can
+ tweak it to your needs.
+* extremely easy to write themes.
+
+==============================================================================
+NAME *airline-name*
+
+Where did the name come from?
+
+I wrote this on an airplane, and since it's light as air it turned out to be a
+good name :-)
+
+==============================================================================
+CONFIGURATION *airline-configuration*
+
+There are a couple configuration values available (shown with their default
+values):
+
+* the separator used on the left side >
+ let g:airline_left_sep='>'
+<
+* the separator used on the right side >
+ let g:airline_right_sep='<'
+<
+* enable modified detection >
+ let g:airline_detect_modified=1
+
+* enable paste detection >
+ let g:airline_detect_paste=1
+<
+* enable iminsert detection >
+ let g:airline_detect_iminsert=0
+<
+* determine whether inactive windows should have the left section collapsed to
+ only the filename of that buffer. >
+ let g:airline_inactive_collapse=1
+<
+* themes are automatically selected based on the matching colorscheme. this
+ can be overridden by defining a value. >
+ let g:airline_theme=
+<
+* if you want to patch the airline theme before it gets applied, you can
+ supply the name of a function where you can modify the palette. >
+ let g:airline_theme_patch_func = 'AirlineThemePatch'
+ function! AirlineThemePatch(palette)
+ if g:airline_theme == 'badwolf'
+ for colors in values(a:palette.inactive)
+ let colors[3] = 245
+ endfor
+ endif
+ endfunction
+<
+* enable/disable automatic population of the `g:airline_symbols` dictionary
+ with powerline symbols. >
+ let g:airline_powerline_fonts=0
+<
+* define the set of text to display for each mode. >
+ let g:airline_mode_map = {} " see source for the defaults
+
+ " or copy paste the following into your vimrc for shortform text
+ let g:airline_mode_map = {
+ \ '__' : '-',
+ \ 'n' : 'N',
+ \ 'i' : 'I',
+ \ 'R' : 'R',
+ \ 'c' : 'C',
+ \ 'v' : 'V',
+ \ 'V' : 'V',
+ \ '' : 'V',
+ \ 's' : 'S',
+ \ 'S' : 'S',
+ \ '' : 'S',
+ \ }
+<
+* define the set of filename match queries which excludes a window from having
+ its statusline modified >
+ let g:airline_exclude_filenames = [] " see source for current list
+<
+* define the set of filetypes which are excluded from having its window
+ statusline modified >
+ let g:airline_exclude_filetypes = [] " see source for current list
+<
+* defines whether the preview window should be excluded from have its window
+ statusline modified (may help with plugins which use the preview window
+ heavily) >
+ let g:airline_exclude_preview = 0
+<
+==============================================================================
+COMMANDS *airline-commands*
+
+:AirlineTheme {theme-name} *:AirlineTheme*
+ Displays or changes the current theme.
+
+:AirlineToggleWhitespace *:AirlineToggleWhitespace*
+ Toggles whitespace detection.
+
+:AirlineToggle *:AirlineToggle*
+ Toggles between the standard 'statusline' and airline.
+
+:AirlineRefresh *:AirlineRefresh*
+ Refreshes all highlight groups.
+
+==============================================================================
+CUSTOMIZATION *airline-customization*
+
+The following are some unicode symbols for customizing the left/right
+separators, as well as the powerline font glyths.
+
+Note: You must define the dictionary first before setting values. Also, it's a
+good idea to check whether if it exists as to avoid accidentally overwritting
+its contents. >
+ if !exists('g:airline_symbols')
+ let g:airline_symbols = {}
+ endif
+
+ " unicode symbols
+ let g:airline_left_sep = '»'
+ let g:airline_left_sep = '▶'
+ let g:airline_right_sep = '«'
+ let g:airline_right_sep = '◀'
+ let g:airline_symbols.linenr = '␊'
+ let g:airline_symbols.linenr = '␤'
+ let g:airline_symbols.linenr = '¶'
+ let g:airline_symbols.branch = '⎇'
+ let g:airline_symbols.paste = 'ρ'
+ let g:airline_symbols.paste = 'Þ'
+ let g:airline_symbols.paste = '∥'
+ let g:airline_symbols.whitespace = 'Ξ'
+
+ " powerline symbols
+ let g:airline_left_sep = ''
+ let g:airline_left_alt_sep = ''
+ let g:airline_right_sep = ''
+ let g:airline_right_alt_sep = ''
+ let g:airline_symbols.branch = ''
+ let g:airline_symbols.readonly = ''
+ let g:airline_symbols.linenr = ''
+
+ " old vim-powerline symbols
+ let g:airline_left_sep = '⮀'
+ let g:airline_left_alt_sep = '⮁'
+ let g:airline_right_sep = '⮂'
+ let g:airline_right_alt_sep = '⮃'
+ let g:airline_symbols.branch = '⭠'
+ let g:airline_symbols.readonly = '⭤'
+ let g:airline_symbols.linenr = '⭡'
+<
+
+For more intricate customizations, you can replace the predefined sections
+with the usual statusline syntax.
+
+Note: If you define any section variables it will replace the default values
+entirely. If you want to disable only certain parts of a section you can try
+using variables defined in the |airline-configuration| or |airline-extensions|
+section.
+>
+ variable names default contents
+ ----------------------------------------------------------------------------
+ let g:airline_section_a (mode, paste, iminsert)
+ let g:airline_section_b (hunks, branch)
+ let g:airline_section_c (bufferline or filename)
+ let g:airline_section_gutter (readonly, csv)
+ let g:airline_section_x (tagbar, filetype, virtualenv)
+ let g:airline_section_y (fileencoding, fileformat)
+ let g:airline_section_z (percentage, line number, column number)
+ let g:airline_section_warning (syntastic, whitespace)
+
+ " here is an example of how you could replace the branch indicator with
+ " the current working directory, followed by the filename.
+ let g:airline_section_b = '%{getcwd()}'
+ let g:airline_section_c = '%t'
+<
+==============================================================================
+EXTENSIONS *airline-extensions*
+
+Most extensions are enabled by default and lazily loaded when the
+corresponding plugin (if any) is detected.
+
+By default, airline will attempt to load any extension it can find in the
+'runtimepath'. On some systems this can result in an undersirable startup
+cost. You can disable the check with the following flag. >
+ let g:airline#extensions#disable_rtp_load = 1
+<
+ Note: Third party plugins that rely on this behavior will be affected. You
+ will need to manually load them.
+
+------------------------------------- *airline-default*
+The default extension understands all of the `g:` variables in the
+|airline-configuration| section, however it also has some more fine-tuned
+configuration values that you can use.
+
+* control which sections get truncated and at what width. >
+ let g:airline#extensions#default#section_truncate_width = {
+ \ 'b': 79,
+ \ 'x': 60,
+ \ 'y': 88,
+ \ 'z': 45,
+ \ }
+
+ " Note: set to an empty dictionary to disable truncation.
+ let g:airline#extensions#default#section_truncate_width = {}
+<
+* configure the layout of the sections by specificing an array of two arrays
+ (first array is the left side, second array is the right side). >
+ let g:airline#extensions#default#layout = [
+ \ [ 'a', 'b', 'c' ],
+ \ [ 'x', 'y', 'z', 'warning' ]
+ \ ]
+<
+------------------------------------- *airline-quickfix*
+The quickfix extension is a simple built-in extension which determines
+whether the buffer is a quickfix or location list buffer, and adjusts the
+title accordingly.
+
+* configure the title text for quickfix buffers >
+ let g:airline#extensions#quickfix#quickfix_text = 'Quickfix'
+<
+* configure the title text for location list buffers >
+ let g:airline#extensions#quickfix#location_text = 'Location'
+<
+
+------------------------------------- *airline-bufferline*
+vim-bufferline <https://github.com/bling/vim-bufferline>
+
+* enable/disable bufferline integration >
+ let g:airline#extensions#bufferline#enabled = 1
+<
+* determine whether bufferline will overwrite customization variables >
+ let g:airline#extensions#bufferline#overwrite_variables = 1
+<
+------------------------------------- *airline-branch*
+fugitive.vim <https://github.com/tpope/vim-fugitive>
+lawrencium <https://bitbucket.org/ludovicchabant/vim-lawrencium>
+vcscommand <http://www.vim.org/scripts/script.php?script_id=90>
+
+* enable/disable fugitive/lawrencium integration >
+ let g:airline#extensions#branch#enabled = 1
+<
+* change the text for when no branch is detected >
+ let g:airline#extensions#branch#empty_message = ''
+
+* use vcscommand.vim if available >
+ let g:airline#extensions#branch#use_vcscommand = 0
+<
+------------------------------------- *airline-syntastic*
+syntastic <https://github.com/scrooloose/syntastic>
+
+* enable/disable syntastic integration >
+ let g:airline#extensions#syntastic#enabled = 1
+<
+------------------------------------- *airline-tagbar*
+tagbar <https://github.com/majutsushi/tagbar>
+
+* enable/disable tagbar integration >
+ let g:airline#extensions#tagbar#enabled = 1
+<
+* change how tags are displayed (:help tagbar-statusline) >
+ let g:airline#extensions#tagbar#flags = '' (default)
+ let g:airline#extensions#tagbar#flags = 'f'
+ let g:airline#extensions#tagbar#flags = 's'
+ let g:airline#extensions#tagbar#flags = 'p'
+<
+------------------------------------- *airline-csv*
+csv.vim <https://github.com/chrisbra/csv.vim>
+
+* enable/disable csv integration for displaying the current column. >
+ let g:airline#extensions#csv#enabled = 1
+<
+* change how columns are displayed. >
+ let g:airline#extensions#csv#column_display = 'Number' (default)
+ let g:airline#extensions#csv#column_display = 'Name'
+<
+------------------------------------- *airline-hunks*
+vim-gitgutter <https://github.com/airblade/vim-gitgutter>
+vim-signify <https://github.com/mhinz/vim-signify>
+
+* enable/disable showing a summary of changed hunks under source control. >
+ let g:airline#extensions#hunks#enabled = 1
+<
+* enable/disable showing only non-zero hunks. >
+ let g:airline#extensions#hunks#non_zero_only = 0
+<
+* set hunk count symbols. >
+ let g:airline#extensions#hunks#hunk_symbols = ['+', '~', '-']
+<
+------------------------------------- *airline-ctrlp*
+ctrlp <https://github.com/kien/ctrlp.vim>
+
+* configure which mode colors should ctrlp window use (takes effect
+ only if the active airline theme doesn't define ctrlp colors) >
+ let g:airline#extensions#ctrlp#color_template = 'insert' (default)
+ let g:airline#extensions#ctrlp#color_template = 'normal'
+ let g:airline#extensions#ctrlp#color_template = 'visual'
+ let g:airline#extensions#ctrlp#color_template = 'replace'
+<
+
+* configure whether to show the previous and next modes (mru, buffer, etc...)
+>
+ let g:airline#extensions#ctrlp#show_adjacent_modes = 1
+<
+------------------------------------- *airline-virtualenv*
+virtualenv <https://github.com/jmcantrell/vim-virtualenv>
+
+* enable/disable virtualenv integration >
+ let g:airline#extensions#virtualenv#enabled = 1
+<
+------------------------------------- *airline-eclim*
+eclim <https://eclim.org>
+
+* enable/disable eclim integration, which works well with the
+ |airline-syntastic| extension. >
+ let g:airline#extensions#eclim#enabled = 1
+
+------------------------------------- *airline-whitespace*
+* enable/disable detection of whitespace errors. >
+ let g:airline#extensions#whitespace#enabled = 1
+<
+* customize the type of mixed indent checking to perform. >
+ " must be all spaces or all tabs before the first non-whitespace character
+ let g:airline#extensions#whitespace#mixed_indent_algo = 0 (default)
+
+ " certain number of spaces are allowed after tabs, but not in between
+ " this algorithm works well for /** */ style comments in a tab-indented file
+ let g:airline#extensions#whitespace#mixed_indent_algo = 1
+<
+* customize the whitespace symbol. >
+ let g:airline#extensions#whitespace#symbol = '!'
+<
+* configure which whitespace checks to enable. >
+ let g:airline#extensions#whitespace#checks = [ 'indent', 'trailing' ]
+<
+* configure the maximum number of lines where whitespace checking is enabled. >
+ let g:airline#extensions#whitespace#max_lines = 20000
+<
+* configure whether a message should be displayed. >
+ let g:airline#extensions#whitespace#show_message = 1
+<
+* configure the formatting of the warning messages. >
+ let g:airline#extensions#whitespace#trailing_format = 'trailing[%s]'
+ let g:airline#extensions#whitespace#mixed_indent_format = 'mixed-indent[%s]'
+<
+------------------------------------- *airline-tabline*
+* enable/disable enhanced tabline. >
+ let g:airline#extensions#tabline#enabled = 0
+<
+* enable/disable displaying buffers with a single tab. >
+ let g:airline#extensions#tabline#show_buffers = 1
+<
+* configure filename match rules to exclude from the tabline. >
+ let g:airline#extensions#tabline#excludes = []
+<
+* configure how numbers are calculated in tab mode. >
+ let g:airline#extensions#tabline#tab_nr_type = 0 " # of splits (default)
+ let g:airline#extensions#tabline#tab_nr_type = 1 " tab number
+<
+* enable/disable displaying tab number in tabs mode. >
+ let g:airline#extensions#tabline#show_tab_nr = 1
+
+* enable/disable displaying tab type (far right)
+ let g:airline#extensions#tabline#show_tab_type = 1
+
+* defines the name of a formatter for how buffer names are displayed. >
+ let g:airline#extensions#tabline#formatter = 'default'
+
+ " here is how you can define a 'foo' formatter:
+ function! airline#extensions#tabline#foo#format(bufnr, buffers)
+ return fnamemodify(bufname(a:bufnr), ':t')
+ endfunction
+ let g:airline#extensions#tabline#formatter = 'foo'
+<
+ Note: the following variables are only used by the 'default' formatter.
+
+ * configure whether buffer numbers should be shown. >
+ let g:airline#extensions#tabline#buffer_nr_show = 0
+<
+ * configure how buffer numbers should be formatted with |printf|. >
+ let g:airline#extensions#tabline#buffer_nr_format = '%s: '
+<
+ * configure the formatting of filenames (see |filename-modifiers|). >
+ let g:airline#extensions#tabline#fnamemod = ':p:.'
+<
+ * configure collapsing parent directories in buffer name. >
+ let g:airline#extensions#tabline#fnamecollapse = 1
+
+ " The `unique_tail` algorithm will display the tail of the filename, unless
+ " there is another file of the same name, in which it will display it along
+ " with the containing parent directory.
+ let g:airline#extensions#tabline#formatter = 'unique_tail'
+
+ " The `unique_tail_improved` - another algorithm, that will smartly uniquify
+ " buffers names with similar filename, suppressing common parts of paths.
+ let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
+<
+* configure the minimum number of buffers needed to show the tabline. >
+ let g:airline#extensions#tabline#buffer_min_count = 0
+<
+ Note: this setting only applies to a single tab and when `show_buffers` is
+ true.
+
+* configure the minimum number of tabs needed to show the tabline. >
+ let g:airline#extensions#tabline#tab_min_count = 0
+<
+ Note: this setting only applies when `show_buffers` is false.
+
+* configure separators for the tabline only. >
+ let g:airline#extensions#tabline#left_sep = ''
+ let g:airline#extensions#tabline#left_alt_sep = ''
+ let g:airline#extensions#tabline#right_sep = ''
+ let g:airline#extensions#tabline#right_alt_sep = ''
+
+* configure symbol used to represent close button
+ let g:airline#extensions#tabline#close_symbol = 'X'
+
+<
+Note: Enabling this extension will modify 'showtabline' and 'guioptions'.
+
+------------------------------------- *airline-tmuxline*
+tmuxline <https://github.com/edkolev/tmuxline.vim>
+
+* enable/disable tmuxline integration >
+ let g:airline#extensions#tmuxline#enabled = 0
+<
+* configure which mode colors should be used in tmux statusline >
+ let airline#extensions#tmuxline#color_template = 'normal' (default)
+ let airline#extensions#tmuxline#color_template = 'insert'
+ let airline#extensions#tmuxline#color_template = 'visual'
+ let airline#extensions#tmuxline#color_template = 'replace'
+<
+* if specified, setting this option will trigger writing to the file whenever the
+ airline theme is applied, i.e. when :AirlineTheme is executed and on vim
+ startup >
+ airline#extensions#tmuxline#snapshot_file = "~/.tmux-statusline-colors.conf"
+<
+------------------------------------- *airline-promptline*
+promptline <https://github.com/edkolev/promptline.vim>
+
+* configure the path to the snapshot .sh file. Mandatory option. The created
+ file should be sourced by the shell on login >
+ " in .vimrc
+ airline#extensions#promptline#snapshot_file = "~/.shell_prompt.sh"
+
+ " in .bashrc/.zshrc
+ [ -f ~/.shell_prompt.sh ] && source ~/.shell_prompt.sh
+<
+* enable/disable promptline integration >
+ let g:airline#extensions#promptline#enabled = 0
+<
+* configure which mode colors should be used in prompt >
+ let airline#extensions#promptline#color_template = 'normal' (default)
+ let airline#extensions#promptline#color_template = 'insert'
+ let airline#extensions#promptline#color_template = 'visual'
+ let airline#extensions#promptline#color_template = 'replace'
+<
+------------------------------------- *airline-nrrwrgn*
+NrrwRgn <https://github.com/chrisbra/NrrwRgn>
+
+* enable/disable NrrwRgn integration >
+ let g:airline#extensions#nrrwrgn#enabled = 1
+
+==============================================================================
+ADVANCED CUSTOMIZATION *airline-advanced-customization*
+
+The defaults will accomodate the mass majority of users with minimal
+configuration. However, if you want to reposition sections or contents you can
+do so with built-in helper functions, which makes it possible to create
+sections in a more declarative style.
+
+------------------------------------- *airline-parts*
+A part is something that contains metadata that eventually gets rendered into
+the statusline. You can define parts that contain constant strings or
+functions. Defining parts is needed if you want to use features like automatic
+insertion of separators or hiding based on window width.
+
+For example, this is how you would define a part function: >
+ call airline#parts#define_function('foo', 'GetFooText')
+<
+Here is how you would define a part that is visible only if the window width
+greater than a minimum width. >
+ call airline#parts#define_minwidth('foo', 50)
+<
+Parts can be configured to be visible conditionally. >
+ call airline#parts#define_condition('foo', 'getcwd() =~ "work_dir"')
+<
+Note: Part definitions are combinative; e.g. the two examples above modify the
+same `foo` part.
+
+Note: Look at the source code and tests for the full API.
+
+------------------------------------- *airline-predefined-parts*
+Before is a list of parts that are predefined by vim-airline.
+
+* `mode` displays the current mode
+* `iminsert` displays the current insert method
+* `paste` displays the paste indicator
+* `filetype` displays the file type
+* `readonly` displays the read only indicator
+* `file` displays the filename and modified indicator
+* `ffenc` displays the file format and encoding
+
+And the following are defined for their respective extensions:
+
+`hunks`, `branch`, `tagbar`, `syntastic`, `whitespace`
+
+------------------------------------- *airline-accents*
+Accents can be defined on any part, like so: >
+ call airline#parts#define_accent('foo', 'red')
+<
+This will override the colors of that part by using what is defined in that
+particular accent. In the above example, the `red` accent is used, which means
+regardless of which section the part is used in, it will have red foreground
+colors instead of the section's default foreground color.
+
+The following accents are defined by default. Themes can define their variants
+of the colors, but defaults will be provided if missing. >
+ bold, italic, red, green, blue, yellow, orange, purple
+<
+The defaults configure the mode and line number parts to be bold, and the
+readonly part to be red.
+
+------------------------------------- *airline-sections*
+Once a part is defined, you can use helper functions to generate the
+statuslines for each section. For example, to use the part above, we could
+define a section like this: >
+ function! AirlineInit()
+ let g:airline_section_a = airline#section#create(['mode', ' ', 'foo'])
+ let g:airline_section_b = airline#section#create_left(['ffenc','file'])
+ let g:airline_section_c = airline#section#create(['%{getcwd()}'])
+ endfunction
+ autocmd VimEnter * call AirlineInit()
+<
+This will create a section with the `mode`, followed by a space, and our `foo`
+part in section `a`. Section `b` will have two parts with a left-side
+separator. And section `c` will contain the current path. You may notice that
+the space and cwd are not defined parts. For convenience, if a part of that
+key does not exist, it will be inserted as is. The unit tests will be a good
+resource for possibilities.
+
+Note: The use of |VimEnter| is important, because most extensions are lazily
+loaded, so we must give them a chance to define their parts before we can use
+them.
+
+Note: The `airline#section#create` function and friends will do its best to
+create a section with the appropriate separators, but it only works for
+function and text parts. Special 'statusline' items like %f or raw/undefined
+parts will not work as it is not possible to inspect their widths/contents
+before rendering to the statusline.
+
+==============================================================================
+FUNCREFS *airline-funcrefs*
+
+vim-airline internally uses funcrefs to integrate with third party plugins,
+and you can tap into this functionality to extend it for you needs. This is
+the most powerful way to customize the statusline, and sometimes it may be
+easier to go this route than the above methods.
+
+Every section can have two values. The default value is the global `g:`
+variable which is used in the absense of a `w:` value. This makes it very easy
+to override only certain parts of the statusline by only defining window-local
+variables for a subset of all sections.
+
+------------------------------------- *add_statusline_func*
+The following is an example of how you can extend vim-airline to support a
+new plugin. >
+ function! MyPlugin(...)
+ if &filetype == 'MyPluginFileType'
+ let w:airline_section_a = 'MyPlugin'
+ let w:airline_section_b = '%f'
+ let w:airline_section_c = '%{MyPlugin#function()}'
+ let g:airline_variable_referenced_in_statusline = 'foo'
+ endif
+ endfunction
+ call airline#add_statusline_func('MyPlugin')
+<
+Notice that only the left side of the statusline is overwritten. This means
+the right side (the line/column numbers, etc) will be intact.
+
+------------------------------------- *remove_statusline_func*
+You can also remove a function as well, which is useful for when you want a
+temporary override. >
+ call airline#remove_statusline_func('MyPlugin')
+<
+
+==============================================================================
+PIPELINE *airline-pipeline*
+
+Sometimes you want to do more than just use overrides. The statusline funcref
+is invoked and passed two arguments. The first of these arguments is the
+statusline builder. You can use this to build completely custom statuslines
+to your liking. Here is an example: >
+>
+ function! MyPlugin(...)
+ " first variable is the statusline builder
+ let builder = a:1
+
+ " WARNING: the API for the builder is not finalized and may change
+ call builder.add_section('Normal', '%f')
+ call builder.add_section('WarningMsg', '%{getcwd()}')
+ call builder.split()
+ call builder.add_section('airline_z', '%p%%')
+
+ " tell the core to use the contents of the builder
+ return 1
+ endfunction
+<
+The above example uses various example highlight groups to demonstrate
+that you can use any combination from the loaded colorscheme. However, if
+you want colors to change between modes, you should use one of the section
+highlight groups, e.g. `airline_a` and `airline_b`.
+
+The second variable is the context, which is a dictionary containing various
+values such as whether the statusline is active or not, and the window number.
+>
+ context = {
+ 'winnr': 'the window number for the statusline',
+ 'active': 'whether the window is active or not',
+ 'bufnr': 'the current buffer for this window',
+ }
+<
+------------------------------------- *airline-pipeline-return-codes*
+The pipeline accepts various return codes and can be used to determine the
+next action. The following are the supported codes: >
+ 0 the default, continue on with the next funcref
+ -1 do not modify the statusline
+ 1 modify the statusline with the current contents of the builder
+<
+Note: Any value other than 0 will halt the pipeline and prevent the next
+funcref from executing.
+
+==============================================================================
+WRITING EXTENSIONS *airline-writing-extensions*
+
+For contributions into the plugin, here are the following guidelines:
+
+1. For simple 'filetype' checks, they can be added directly into the
+`extensions.vim` file.
+
+2. Pretty much everything else should live as a separate file under the
+`extensions/` directory.
+
+ a. Inside `extensions.vim`, add a check for some variable or command that
+ is always available (these must be defined in `plugin/`, and _not_
+ `autoload/` of the other plugin). If it exists, then initialize the
+ extension. This ensures that the extension is loaded if and only if the
+ user has the other plugin installed. Also, a check to
+ `airline#extensions#foo_plugin#enabled` should be performed to allow the
+ user to disable it.
+
+ b. Configuration variables for the extension should reside in the
+ extension, e.g. `g:airline#extensions#foo_plugin#bar_variable`.
+
+See the source of |example.vim| for documented code of how to write one.
+Looking at the other extensions is also a good resource.
+
+==============================================================================
+WRITING THEMES *airline-themes*
+
+Themes are written "close to the metal" -- you will need to know some basic
+VimL syntax to write a theme, but if you've written in any programming
+language before it will be easy to pick up.
+
+The |dark.vim| theme fully documents this procedure and will guide you through
+the process. The |jellybeans.vim| theme is another example of how to write a
+theme, but instead of manually declaring colors, it extracts the values from
+highlight groups.
+
+==============================================================================
+TROUBLESHOOTING *airline-troubleshooting*
+
+Q. There are no colors.
+A. You need to set up your terminal correctly. For more details, see
+ <http://vim.wikia.com/wiki/256_colors_in_vim>. Alternatively, if you want
+ to bypass the automatic detection of terminal colors, you can force Vim
+ into 256 color mode with this: >
+ set t_Co=256
+<
+Q. The statusline does not appear until I create a split.
+A. This is the default setting of 'laststatus'. If you want it to appear all
+ the time, add the following to your vimrc: >
+ set laststatus=2
+<
+Q. Powerline symbols are not showing up.
+A. First, you must install patched powerline fonts. Second, you must enable
+ unicode in vim. >
+ set encoding=utf-8
+<
+Q. There is a pause when leaving insert mode.
+A. Add the following to your vimrc. >
+ set ttimeoutlen=50
+<
+Q. The colors look a little off for some themes.
+A. Certain themes are derived from the active colorscheme by extracting colors
+ from predefined highlight groups. These airline themes will look good for
+ their intended matching colorschemes, but will be hit or miss when loaded
+ with other colorschemes.
+
+
+Solutions to other common problems can be found in the Wiki:
+<https://github.com/bling/vim-airline/wiki/FAQ>
+
+==============================================================================
+CONTRIBUTIONS *airline-contributions*
+
+Contributions and pull requests are welcome.
+
+==============================================================================
+LICENSE *airline-license*
+
+MIT License. Copyright © 2013-2014 Bailey Ling.
+
+
+ vim:tw=78:ts=8:ft=help:norl:
diff --git a/vim/.vim/bundle/vim-airline/plugin/airline.vim b/vim/.vim/bundle/vim-airline/plugin/airline.vim
new file mode 100644
index 0000000..e75535f
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/plugin/airline.vim
@@ -0,0 +1,109 @@
+" MIT License. Copyright (c) 2013-2014 Bailey Ling.
+" vim: et ts=2 sts=2 sw=2
+
+if &cp || v:version < 702 || (exists('g:loaded_airline') && g:loaded_airline)
+ finish
+endif
+let g:loaded_airline = 1
+
+" autocmd VimEnter * call airline#deprecation#check()
+
+let s:airline_initialized = 0
+let s:airline_theme_defined = 0
+function! s:init()
+ if !s:airline_initialized
+ let s:airline_initialized = 1
+
+ call airline#init#bootstrap()
+ call airline#extensions#load()
+ call airline#init#sections()
+
+ let s:airline_theme_defined = exists('g:airline_theme')
+ if s:airline_theme_defined || !airline#switch_matching_theme()
+ let g:airline_theme = get(g:, 'airline_theme', 'dark')
+ call airline#switch_theme(g:airline_theme)
+ endif
+ endif
+endfunction
+
+function! s:on_window_changed()
+ if pumvisible()
+ return
+ endif
+ call <sid>init()
+ call airline#update_statusline()
+endfunction
+
+function! s:on_colorscheme_changed()
+ call <sid>init()
+ if !s:airline_theme_defined
+ if airline#switch_matching_theme()
+ return
+ endif
+ endif
+
+ " couldn't find a match, or theme was defined, just refresh
+ call airline#load_theme()
+endfunction
+
+function airline#cmdwinenter(...)
+ call airline#extensions#apply_left_override('Command Line', '')
+endfunction
+
+function! s:airline_toggle()
+ if exists("#airline")
+ augroup airline
+ au!
+ augroup END
+ augroup! airline
+
+ if exists("s:stl")
+ let &stl = s:stl
+ endif
+
+ silent doautocmd User AirlineToggledOff
+ else
+ let s:stl = &statusline
+ augroup airline
+ autocmd!
+
+ autocmd CmdwinEnter *
+ \ call airline#add_statusline_func('airline#cmdwinenter')
+ \ | call <sid>on_window_changed()
+ autocmd CmdwinLeave * call airline#remove_statusline_func('airline#cmdwinenter')
+
+ autocmd ColorScheme * call <sid>on_colorscheme_changed()
+ autocmd VimEnter,WinEnter,BufWinEnter,FileType,BufUnload,VimResized *
+ \ call <sid>on_window_changed()
+
+ autocmd BufWritePost */autoload/airline/themes/*.vim
+ \ exec 'source '.split(globpath(&rtp, 'autoload/airline/themes/'.g:airline_theme.'.vim', 1), "\n")[0]
+ \ | call airline#load_theme()
+ augroup END
+
+ silent doautocmd User AirlineToggledOn
+
+ if s:airline_initialized
+ call <sid>on_window_changed()
+ endif
+ endif
+endfunction
+
+function! s:get_airline_themes(a, l, p)
+ let files = split(globpath(&rtp, 'autoload/airline/themes/'.a:a.'*'), "\n")
+ return map(files, 'fnamemodify(v:val, ":t:r")')
+endfunction
+function! s:airline_theme(...)
+ if a:0
+ call airline#switch_theme(a:1)
+ else
+ echo g:airline_theme
+ endif
+endfunction
+command! -nargs=? -complete=customlist,<sid>get_airline_themes AirlineTheme call <sid>airline_theme(<f-args>)
+command! AirlineToggleWhitespace call airline#extensions#whitespace#toggle()
+command! AirlineToggle call <sid>airline_toggle()
+command! AirlineRefresh call airline#load_theme()
+
+call <sid>airline_toggle()
+
diff --git a/vim/.vim/bundle/vim-airline/t/airline.vim b/vim/.vim/bundle/vim-airline/t/airline.vim
new file mode 100644
index 0000000..78ab6d7
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/t/airline.vim
@@ -0,0 +1,87 @@
+let g:airline_theme = 'dark'
+call airline#init#bootstrap()
+call airline#init#sections()
+source plugin/airline.vim
+
+function! MyFuncref(...)
+ call a:1.add_raw('hello world')
+ return 1
+endfunction
+
+function! MyIgnoreFuncref(...)
+ return -1
+endfunction
+
+function! MyAppend1(...)
+ call a:1.add_raw('hello')
+endfunction
+
+function! MyAppend2(...)
+ call a:1.add_raw('world')
+endfunction
+
+describe 'airline'
+ before
+ let g:airline_statusline_funcrefs = []
+ end
+
+ it 'should run user funcrefs first'
+ call airline#add_statusline_func('MyFuncref')
+ let &statusline = ''
+ call airline#update_statusline()
+ Expect airline#statusline(1) =~ 'hello world'
+ end
+
+ it 'should not change the statusline with -1'
+ call airline#add_statusline_funcref(function('MyIgnoreFuncref'))
+ let &statusline = 'foo'
+ call airline#update_statusline()
+ Expect &statusline == 'foo'
+ end
+
+ it 'should support multiple chained funcrefs'
+ call airline#add_statusline_func('MyAppend1')
+ call airline#add_statusline_func('MyAppend2')
+ call airline#update_statusline()
+ Expect airline#statusline(1) =~ 'helloworld'
+ end
+
+ it 'should allow users to redefine sections'
+ let g:airline_section_a = airline#section#create(['mode', 'mode'])
+ call airline#update_statusline()
+ Expect airline#statusline(1) =~ '%{airline#util#wrap(airline#parts#mode(),0)}%#airline_a#%#airline_a_bold#%{airline#util#wrap(airline#parts#mode(),0)}%#airline_a#'
+ end
+
+ it 'should remove funcrefs properly'
+ let c = len(g:airline_statusline_funcrefs)
+ call airline#add_statusline_func('MyIgnoreFuncref')
+ call airline#remove_statusline_func('MyIgnoreFuncref')
+ Expect len(g:airline_statusline_funcrefs) == c
+ end
+
+ it 'should overwrite the statusline with active and inactive splits'
+ wincmd s
+ Expect airline#statusline(1) !~ 'inactive'
+ Expect airline#statusline(2) =~ 'inactive'
+ wincmd c
+ end
+
+ it 'should collapse the inactive split if the variable is set true'
+ let g:airline_inactive_collapse = 1
+ wincmd s
+ Expect getwinvar(2, '&statusline') !~ 'airline#parts#mode'
+ wincmd c
+ end
+
+ it 'should not collapse the inactive split if the variable is set false'
+ let g:airline_inactive_collapse = 0
+ wincmd s
+ Expect getwinvar(2, '&statusline') != 'airline#parts#mode'
+ wincmd c
+ end
+
+ it 'should include check_mode'
+ Expect airline#statusline(1) =~ 'airline#check_mode'
+ end
+end
+
diff --git a/vim/.vim/bundle/vim-airline/t/builder.vim b/vim/.vim/bundle/vim-airline/t/builder.vim
new file mode 100644
index 0000000..3d1afcd
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/t/builder.vim
@@ -0,0 +1,80 @@
+let g:airline_theme = 'dark'
+call airline#init#bootstrap()
+
+describe 'active builder'
+ before
+ let s:builder = airline#builder#new({'active': 1})
+ end
+
+ it 'should start with an empty statusline'
+ let stl = s:builder.build()
+ Expect stl == ''
+ end
+
+ it 'should transition colors from one to the next'
+ call s:builder.add_section('Normal', 'hello')
+ call s:builder.add_section('NonText', 'world')
+ let stl = s:builder.build()
+ Expect stl =~ '%#Normal#hello%#Normal_to_NonText#>%#NonText#world'
+ end
+
+ it 'should split left/right sections'
+ call s:builder.split()
+ let stl = s:builder.build()
+ Expect stl =~ '%='
+ end
+
+ it 'after split, sections use the right separator'
+ call s:builder.split()
+ call s:builder.add_section('Normal', 'hello')
+ call s:builder.add_section('NonText', 'world')
+ let stl = s:builder.build()
+ Expect stl =~ '%#Normal#hello%#Normal_to_NonText#<%#NonText#world'
+ end
+
+ it 'should not repeat the same highlight group'
+ call s:builder.add_section('Normal', 'hello')
+ call s:builder.add_section('Normal', 'hello')
+ let stl = s:builder.build()
+ Expect stl == '%#Normal#hello>hello'
+ end
+
+ it 'should replace accent groups with the specified group'
+ call s:builder.add_section('Normal', '%#__accent_foo#hello')
+ let stl = s:builder.build()
+ Expect stl == '%#Normal#%#Normal_foo#hello'
+ end
+
+ it 'should replace two accent groups with correct groups'
+ call s:builder.add_section('Normal', '%#__accent_foo#hello%#__accent_bar#world')
+ let stl = s:builder.build()
+ Expect stl =~ '%#Normal_foo#hello%#Normal_bar#world'
+ end
+
+ it 'should special restore group should go back to previous group'
+ call s:builder.add_section('Normal', '%#__restore__#')
+ let stl = s:builder.build()
+ Expect stl !~ '%#__restore__#'
+ Expect stl =~ '%#Normal#'
+ end
+end
+
+describe 'inactive builder'
+ before
+ let s:builder = airline#builder#new({'active': 0})
+ end
+
+ it 'should transition colors from one to the next'
+ call s:builder.add_section('Normal', 'hello')
+ call s:builder.add_section('NonText', 'world')
+ let stl = s:builder.build()
+ Expect stl =~ '%#Normal_inactive#hello%#Normal_to_NonText_inactive#>%#NonText_inactive#world'
+ end
+
+ it 'should not render accents'
+ call s:builder.add_section('Normal', '%#__accent_foo#hello%#foo#foo%#__accent_bar#world')
+ let stl = s:builder.build()
+ Expect stl == '%#Normal_inactive#hello%#foo_inactive#fooworld'
+ end
+end
+
diff --git a/vim/.vim/bundle/vim-airline/t/commands.vim b/vim/.vim/bundle/vim-airline/t/commands.vim
new file mode 100644
index 0000000..b56b881
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/t/commands.vim
@@ -0,0 +1,33 @@
+call airline#init#bootstrap()
+call airline#init#sections()
+
+source plugin/airline.vim
+
+describe 'commands'
+ it 'should toggle off and on'
+ execute 'AirlineToggle'
+ Expect exists('#airline') to_be_false
+ execute 'AirlineToggle'
+ Expect exists('#airline') to_be_true
+ end
+
+ it 'should toggle whitespace off and on'
+ call airline#extensions#load()
+ execute 'AirlineToggleWhitespace'
+ Expect exists('#airline_whitespace') to_be_false
+ execute 'AirlineToggleWhitespace'
+ Expect exists('#airline_whitespace') to_be_true
+ end
+
+ it 'should display theme name with no args'
+ execute 'AirlineTheme simple'
+ Expect g:airline_theme == 'simple'
+ execute 'AirlineTheme dark'
+ Expect g:airline_theme == 'dark'
+ end
+
+ it 'should have a refresh command'
+ Expect exists(':AirlineRefresh') to_be_true
+ end
+end
+
diff --git a/vim/.vim/bundle/vim-airline/t/extensions_default.vim b/vim/.vim/bundle/vim-airline/t/extensions_default.vim
new file mode 100644
index 0000000..b98e816
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/t/extensions_default.vim
@@ -0,0 +1,32 @@
+let g:airline_theme = 'dark'
+call airline#init#bootstrap()
+call airline#init#sections()
+source plugin/airline.vim
+
+describe 'default'
+ before
+ let s:builder = airline#builder#new({'active': 1})
+ end
+
+ it 'should use the layout'
+ let g:airline#extensions#default#layout = [
+ \ [ 'c', 'a', 'b', 'warning' ],
+ \ [ 'x', 'z', 'y' ]
+ \ ]
+ call airline#extensions#default#apply(s:builder, { 'winnr': 1, 'active': 1 })
+ let stl = s:builder.build()
+ Expect stl =~ 'airline_c_to_airline_a'
+ Expect stl =~ 'airline_a_to_airline_b'
+ Expect stl =~ 'airline_b_to_airline_warning'
+ Expect stl =~ 'airline_x_to_airline_z'
+ Expect stl =~ 'airline_z_to_airline_y'
+ end
+
+ it 'should only render warning section in active splits'
+ wincmd s
+ Expect airline#statusline(1) =~ 'warning'
+ Expect airline#statusline(2) !~ 'warning'
+ wincmd c
+ end
+end
+
diff --git a/vim/.vim/bundle/vim-airline/t/highlighter.vim b/vim/.vim/bundle/vim-airline/t/highlighter.vim
new file mode 100644
index 0000000..a1ed490
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/t/highlighter.vim
@@ -0,0 +1,21 @@
+let g:airline_theme = 'dark'
+
+describe 'highlighter'
+ it 'should create separator highlight groups'
+ hi Foo1 ctermfg=1 ctermbg=2
+ hi Foo2 ctermfg=3 ctermbg=4
+ call airline#highlighter#add_separator('Foo1', 'Foo2', 0)
+ let hl = airline#highlighter#get_highlight('Foo1_to_Foo2')
+ Expect hl == [ '', '', '4', '2', '' ]
+ end
+
+ it 'should populate accent colors'
+ Expect exists('g:airline#themes#dark#palette.normal.airline_c_red') to_be_false
+ Expect hlID('airline_c_red') == 0
+ call airline#themes#patch(g:airline#themes#dark#palette)
+ call airline#highlighter#add_accent('red')
+ call airline#highlighter#highlight(['normal'])
+ Expect hlID('airline_c_red') != 0
+ end
+end
+
diff --git a/vim/.vim/bundle/vim-airline/t/init.vim b/vim/.vim/bundle/vim-airline/t/init.vim
new file mode 100644
index 0000000..86efe58
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/t/init.vim
@@ -0,0 +1,77 @@
+let s:sections = ['a', 'b', 'c', 'gutter', 'x', 'y', 'z', 'warning']
+
+function! s:clear()
+ for key in s:sections
+ unlet! g:airline_section_{key}
+ endfor
+endfunction
+
+call airline#init#bootstrap()
+
+describe 'init sections'
+ before
+ call s:clear()
+ call airline#init#sections()
+ end
+
+ after
+ call s:clear()
+ end
+
+ it 'section a should have mode, paste, iminsert'
+ Expect g:airline_section_a =~ 'mode'
+ Expect g:airline_section_a =~ 'paste'
+ Expect g:airline_section_a =~ 'iminsert'
+ end
+
+ it 'section b should be blank because no extensions are installed'
+ Expect g:airline_section_b == ''
+ end
+
+ it 'section c should be file'
+ Expect g:airline_section_c == '%<%f%m %#__accent_red#%{airline#util#wrap(airline#parts#readonly(),0)}%#__restore__#'
+ end
+
+ it 'section x should be filetype'
+ Expect g:airline_section_x == '%{airline#util#wrap(airline#parts#filetype(),0)}'
+ end
+
+ it 'section y should be fenc and ff'
+ Expect g:airline_section_y =~ 'ff'
+ Expect g:airline_section_y =~ 'fenc'
+ end
+
+ it 'section z should be line numbers'
+ Expect g:airline_section_z =~ '%3p%%'
+ Expect g:airline_section_z =~ '%4l'
+ Expect g:airline_section_z =~ '%3c'
+ end
+
+ it 'should not redefine sections already defined'
+ for s in s:sections
+ let g:airline_section_{s} = s
+ endfor
+ call airline#init#bootstrap()
+ for s in s:sections
+ Expect g:airline_section_{s} == s
+ endfor
+ end
+
+ it 'all default statusline extensions should be blank'
+ Expect airline#parts#get('hunks').raw == ''
+ Expect airline#parts#get('branch').raw == ''
+ Expect airline#parts#get('tagbar').raw == ''
+ Expect airline#parts#get('syntastic').raw == ''
+ Expect airline#parts#get('eclim').raw == ''
+ Expect airline#parts#get('whitespace').raw == ''
+ end
+end
+
+describe 'init parts'
+ it 'should not redefine parts already defined'
+ call airline#parts#define_raw('linenr', 'bar')
+ call airline#init#sections()
+ Expect g:airline_section_z =~ 'bar'
+ end
+end
+
diff --git a/vim/.vim/bundle/vim-airline/t/parts.vim b/vim/.vim/bundle/vim-airline/t/parts.vim
new file mode 100644
index 0000000..ee7c92e
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/t/parts.vim
@@ -0,0 +1,39 @@
+describe 'parts'
+ it 'overwrites existing values'
+ call airline#parts#define('foo', { 'test': '123' })
+ Expect airline#parts#get('foo').test == '123'
+ call airline#parts#define('foo', { 'test': '321' })
+ Expect airline#parts#get('foo').test == '321'
+ end
+
+ it 'can define a function part'
+ call airline#parts#define_function('func', 'bar')
+ Expect airline#parts#get('func').function == 'bar'
+ end
+
+ it 'can define a text part'
+ call airline#parts#define_text('text', 'bar')
+ Expect airline#parts#get('text').text == 'bar'
+ end
+
+ it 'can define a raw part'
+ call airline#parts#define_raw('raw', 'bar')
+ Expect airline#parts#get('raw').raw == 'bar'
+ end
+
+ it 'can define a minwidth'
+ call airline#parts#define_minwidth('mw', 123)
+ Expect airline#parts#get('mw').minwidth == 123
+ end
+
+ it 'can define a condition'
+ call airline#parts#define_condition('part', '1')
+ Expect airline#parts#get('part').condition == '1'
+ end
+
+ it 'can define a accent'
+ call airline#parts#define_accent('part', 'red')
+ Expect airline#parts#get('part').accent == 'red'
+ end
+end
+
diff --git a/vim/.vim/bundle/vim-airline/t/section.vim b/vim/.vim/bundle/vim-airline/t/section.vim
new file mode 100644
index 0000000..034440c
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/t/section.vim
@@ -0,0 +1,76 @@
+function! SectionSpec()
+endfunction
+
+describe 'section'
+ before
+ call airline#parts#define_text('text', 'text')
+ call airline#parts#define_raw('raw', 'raw')
+ call airline#parts#define_function('func', 'SectionSpec')
+ end
+
+ it 'should be able to reference default parts'
+ let s = airline#section#create(['paste'])
+ Expect s == '%{airline#util#wrap(airline#parts#paste(),0)}'
+ end
+
+ it 'should create sections with no separators'
+ let s = airline#section#create(['text', 'raw', 'func'])
+ Expect s == '%{airline#util#wrap("text",0)}raw%{airline#util#wrap(SectionSpec(),0)}'
+ end
+
+ it 'should create left sections with separators'
+ let s = airline#section#create_left(['text', 'text'])
+ Expect s == '%{airline#util#wrap("text",0)}%{airline#util#append("text",0)}'
+ end
+
+ it 'should create right sections with separators'
+ let s = airline#section#create_right(['text', 'text'])
+ Expect s == '%{airline#util#prepend("text",0)}%{airline#util#wrap("text",0)}'
+ end
+
+ it 'should prefix with accent group if provided and restore afterwards'
+ call airline#parts#define('hi', {
+ \ 'raw': 'hello',
+ \ 'accent': 'red',
+ \ })
+ let s = airline#section#create(['hi'])
+ Expect s == '%#__accent_red#hello%#__restore__#'
+ end
+
+ it 'should accent functions'
+ call airline#parts#define_function('hi', 'Hello')
+ call airline#parts#define_accent('hi', 'bold')
+ let s = airline#section#create(['hi'])
+ Expect s == '%#__accent_bold#%{airline#util#wrap(Hello(),0)}%#__restore__#'
+ end
+
+ it 'should parse out a section from the distro'
+ call airline#extensions#load()
+ let s = airline#section#create(['whitespace'])
+ Expect s =~ 'airline#extensions#whitespace#check'
+ end
+
+ it 'should use parts as is if they are not found'
+ let s = airline#section#create(['asdf', 'func'])
+ Expect s == 'asdf%{airline#util#wrap(SectionSpec(),0)}'
+ end
+
+ it 'should force add separators for raw and missing keys'
+ let s = airline#section#create_left(['asdf', 'raw'])
+ Expect s == 'asdf > raw'
+ let s = airline#section#create_left(['asdf', 'aaaa', 'raw'])
+ Expect s == 'asdf > aaaa > raw'
+ let s = airline#section#create_right(['raw', '%f'])
+ Expect s == 'raw < %f'
+ let s = airline#section#create_right(['%t', 'asdf', '%{getcwd()}'])
+ Expect s == '%t < asdf < %{getcwd()}'
+ end
+
+ it 'should empty out parts that do not pass their condition'
+ call airline#parts#define_text('conditional', 'conditional')
+ call airline#parts#define_condition('conditional', '0')
+ let s = airline#section#create(['conditional'])
+ Expect s == '%{0 ? airline#util#wrap("conditional",0) : ""}'
+ end
+end
+
diff --git a/vim/.vim/bundle/vim-airline/t/themes.vim b/vim/.vim/bundle/vim-airline/t/themes.vim
new file mode 100644
index 0000000..d735229
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/t/themes.vim
@@ -0,0 +1,68 @@
+describe 'themes'
+ after
+ highlight clear Foo
+ highlight clear Normal
+ end
+
+ it 'should extract correct colors'
+ highlight Foo ctermfg=1 ctermbg=2
+ let colors = airline#themes#get_highlight('Foo')
+ Expect colors[2] == '1'
+ Expect colors[3] == '2'
+ end
+
+ it 'should extract from normal if colors unavailable'
+ highlight Normal ctermfg=100 ctermbg=200
+ highlight Foo ctermbg=2
+ let colors = airline#themes#get_highlight('Foo')
+ Expect colors[2] == '100'
+ Expect colors[3] == '2'
+ end
+
+ it 'should flip target group if it is reversed'
+ highlight Foo ctermbg=222 ctermfg=103 term=reverse
+ let colors = airline#themes#get_highlight('Foo')
+ Expect colors[2] == '222'
+ Expect colors[3] == '103'
+ end
+
+ it 'should pass args through correctly'
+ let hl = airline#themes#get_highlight('Foo', 'bold', 'italic')
+ Expect hl == ['', '', 0, 1, 'bold,italic']
+
+ let hl = airline#themes#get_highlight2(['Foo','bg'], ['Foo','fg'], 'italic', 'bold')
+ Expect hl == ['', '', 1, 0, 'italic,bold']
+ end
+
+ it 'should generate color map with mirroring'
+ let map = airline#themes#generate_color_map(
+ \ [ 1, 1, 1, 1, '1' ],
+ \ [ 2, 2, 2, 2, '2' ],
+ \ [ 3, 3, 3, 3, '3' ],
+ \ )
+ Expect map.airline_a[0] == 1
+ Expect map.airline_b[0] == 2
+ Expect map.airline_c[0] == 3
+ Expect map.airline_x[0] == 3
+ Expect map.airline_y[0] == 2
+ Expect map.airline_z[0] == 1
+ end
+
+ it 'should generate color map with full set of colors'
+ let map = airline#themes#generate_color_map(
+ \ [ 1, 1, 1, 1, '1' ],
+ \ [ 2, 2, 2, 2, '2' ],
+ \ [ 3, 3, 3, 3, '3' ],
+ \ [ 4, 4, 4, 4, '4' ],
+ \ [ 5, 5, 5, 5, '5' ],
+ \ [ 6, 6, 6, 6, '6' ],
+ \ )
+ Expect map.airline_a[0] == 1
+ Expect map.airline_b[0] == 2
+ Expect map.airline_c[0] == 3
+ Expect map.airline_x[0] == 4
+ Expect map.airline_y[0] == 5
+ Expect map.airline_z[0] == 6
+ end
+end
+
diff --git a/vim/.vim/bundle/vim-airline/t/util.vim b/vim/.vim/bundle/vim-airline/t/util.vim
new file mode 100644
index 0000000..913de9d
--- /dev/null
+++ b/vim/.vim/bundle/vim-airline/t/util.vim
@@ -0,0 +1,54 @@
+call airline#init#bootstrap()
+
+function! Util1()
+ let g:count += 1
+endfunction
+function! Util2()
+ let g:count += 2
+endfunction
+function! Util3(...)
+ let g:count = a:0
+endfunction
+
+describe 'util'
+ before
+ let g:count = 0
+ end
+
+ it 'has append wrapper function'
+ Expect airline#util#append('', 0) == ''
+ Expect airline#util#append('1', 0) == ' > 1'
+ end
+
+ it 'has prepend wrapper function'
+ Expect airline#util#prepend('', 0) == ''
+ Expect airline#util#prepend('1', 0) == '1 < '
+ end
+
+ it 'has getwinvar function'
+ Expect airline#util#getwinvar(1, 'asdf', '123') == '123'
+ call setwinvar(1, 'vspec', 'is cool')
+ Expect airline#util#getwinvar(1, 'vspec', '') == 'is cool'
+ end
+
+ it 'has exec funcrefs helper functions'
+ call airline#util#exec_funcrefs([function('Util1'), function('Util2')])
+ Expect g:count == 3
+
+ call airline#util#exec_funcrefs([function('Util3')], 1, 2, 3, 4)
+ Expect g:count == 4
+ end
+
+ it 'should ignore minwidth if less than 0'
+ Expect airline#util#append('foo', -1) == ' > foo'
+ Expect airline#util#prepend('foo', -1) == 'foo < '
+ Expect airline#util#wrap('foo', -1) == 'foo'
+ end
+
+ it 'should return empty if winwidth() > minwidth'
+ Expect airline#util#append('foo', 99999) == ''
+ Expect airline#util#prepend('foo', 99999) == ''
+ Expect airline#util#wrap('foo', 99999) == ''
+ end
+end
+
diff --git a/vim/.vim/bundle/vim-fugitive/.gitignore b/vim/.vim/bundle/vim-fugitive/.gitignore
new file mode 100644
index 0000000..0a56e3f
--- /dev/null
+++ b/vim/.vim/bundle/vim-fugitive/.gitignore
@@ -0,0 +1 @@
+/doc/tags
diff --git a/vim/.vim/bundle/vim-fugitive/CONTRIBUTING.markdown b/vim/.vim/bundle/vim-fugitive/CONTRIBUTING.markdown
new file mode 100644
index 0000000..e651dca
--- /dev/null
+++ b/vim/.vim/bundle/vim-fugitive/CONTRIBUTING.markdown
@@ -0,0 +1,18 @@
+Before reporting a bug, you should try stripping down your Vim configuration
+and removing other plugins. The sad truth about VimScript is that it is
+fraught with incompatibilities waiting to happen. I'm happy to work around
+them where I can, but it's up to you to isolate the conflict.
+
+Fugitive is particularly prone to regressions due to Git version issues,
+platform issues, and interactions with other plugins. I end up bisecting a
+lot more than other projects, and thus I'm especially meticulous here about
+maintaining a clean, readable, history. Squash and force push any requested
+changes to a pull request. And if your [commit message
+sucks](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html),
+I'm not going to accept it. Period.
+
+Beyond that, don't be shy about asking before patching. What takes you hours
+might take me minutes simply because I have both domain knowledge and a
+perverse knowledge of VimScript so vast that many would consider it a symptom
+of mental illness. On the flip side, some ideas I'll reject no matter how
+good the implementation is. "Send a patch" is an edge case answer in my book.
diff --git a/vim/.vim/bundle/vim-fugitive/README.markdown b/vim/.vim/bundle/vim-fugitive/README.markdown
new file mode 100644
index 0000000..68a61e6
--- /dev/null
+++ b/vim/.vim/bundle/vim-fugitive/README.markdown
@@ -0,0 +1,120 @@
+# fugitive.vim
+
+I'm not going to lie to you; fugitive.vim may very well be the best
+Git wrapper of all time. Check out these features:
+
+View any blob, tree, commit, or tag in the repository with `:Gedit` (and
+`:Gsplit`, `:Gvsplit`, `:Gtabedit`, ...). Edit a file in the index and
+write to it to stage the changes. Use `:Gdiff` to bring up the staged
+version of the file side by side with the working tree version and use
+Vim's diff handling capabilities to stage a subset of the file's
+changes.
+
+Bring up the output of `git status` with `:Gstatus`. Press `-` to
+`add`/`reset` a file's changes, or `p` to `add`/`reset` `--patch` that
+mofo. And guess what `:Gcommit` does!
+
+`:Gblame` brings up an interactive vertical split with `git blame`
+output. Press enter on a line to edit the commit where the line
+changed, or `o` to open it in a split. When you're done, use `:Gedit`
+in the historic buffer to go back to the work tree version.
+
+`:Gmove` does a `git mv` on a file and simultaneously renames the
+buffer. `:Gremove` does a `git rm` on a file and simultaneously deletes
+the buffer.
+
+Use `:Ggrep` to search the work tree (or any arbitrary commit) with
+`git grep`, skipping over that which is not tracked in the repository.
+`:Glog` loads all previous revisions of a file into the quickfix list so
+you can iterate over them and watch the file evolve!
+
+`:Gread` is a variant of `git checkout -- filename` that operates on the
+buffer rather than the filename. This means you can use `u` to undo it
+and you never get any warnings about the file changing outside Vim.
+`:Gwrite` writes to both the work tree and index versions of a file,
+making it like `git add` when called from a work tree file and like
+`git checkout` when called from the index or a blob in history.
+
+Use `:Gbrowse` to open the current file on GitHub, with optional line
+range (try it in visual mode!). If your current repository isn't on
+GitHub, `git instaweb` will be spun up instead.
+
+Add `%{fugitive#statusline()}` to `'statusline'` to get an indicator
+with the current branch in (surprise!) your statusline.
+
+Last but not least, there's `:Git` for running any arbitrary command,
+and `Git!` to open the output of a command in a temp file.
+
+## Screencasts
+
+* [A complement to command line git](http://vimcasts.org/e/31)
+* [Working with the git index](http://vimcasts.org/e/32)
+* [Resolving merge conflicts with vimdiff](http://vimcasts.org/e/33)
+* [Browsing the git object database](http://vimcasts.org/e/34)
+* [Exploring the history of a git repository](http://vimcasts.org/e/35)
+
+## Installation
+
+If you don't have a preferred installation method, I recommend
+installing [pathogen.vim](https://github.com/tpope/vim-pathogen), and
+then simply copy and paste:
+
+ cd ~/.vim/bundle
+ git clone git://github.com/tpope/vim-fugitive.git
+
+Once help tags have been generated, you can view the manual with
+`:help fugitive`.
+
+If your Vim version is below 7.2, I recommend also installing
+[vim-git](https://github.com/tpope/vim-git) for syntax highlighting and
+other Git niceties.
+
+## FAQ
+
+> I installed the plugin and started Vim. Why don't any of the commands
+> exist?
+
+Fugitive cares about the current file, not the current working
+directory. Edit a file from the repository.
+
+> I opened a new tab. Why don't any of the commands exist?
+
+Fugitive cares about the current file, not the current working
+directory. Edit a file from the repository.
+
+> Why is `:Gbrowse` not using the right browser?
+
+`:Gbrowse` delegates to `git web--browse`, which is less than perfect
+when it comes to finding the right browser. You can tell it the correct
+browser to use with `git config --global web.browser ...`. On OS X, for
+example, you might want to set this to `open`. See `git web--browse --help`
+for details.
+
+> Here's a patch that automatically opens the quickfix window after
+> `:Ggrep`.
+
+This is a great example of why I recommend asking before patching.
+There are valid arguments to be made both for and against automatically
+opening the quickfix window. Whenever I have to make an arbitrary
+decision like this, I ask what Vim would do. And Vim does not open a
+quickfix window after `:grep`.
+
+Luckily, it's easy to implement the desired behavior without changing
+fugitive.vim. The following autocommand will cause the quickfix window
+to open after any grep invocation:
+
+ autocmd QuickFixCmdPost *grep* cwindow
+
+## Self-Promotion
+
+Like fugitive.vim? Follow the repository on
+[GitHub](https://github.com/tpope/vim-fugitive) and vote for it on
+[vim.org](http://www.vim.org/scripts/script.php?script_id=2975). And if
+you're feeling especially charitable, follow [tpope](http://tpo.pe/) on
+[Twitter](http://twitter.com/tpope) and
+[GitHub](https://github.com/tpope).
+
+## License
+
+Copyright (c) Tim Pope. Distributed under the same terms as Vim itself.
+See `:help license`.
diff --git a/vim/.vim/bundle/vim-fugitive/doc/fugitive.txt b/vim/.vim/bundle/vim-fugitive/doc/fugitive.txt
new file mode 100644
index 0000000..5870837
--- /dev/null
+++ b/vim/.vim/bundle/vim-fugitive/doc/fugitive.txt
@@ -0,0 +1,319 @@
+*fugitive.txt* A Git wrapper so awesome, it should be illegal
+
+Author: Tim Pope <http://tpo.pe/>
+License: Same terms as Vim itself (see |license|)
+
+This plugin is only available if 'compatible' is not set.
+
+INTRODUCTION *fugitive*
+
+Whenever you edit a file from a Git repository, a set of commands is defined
+that serve as a gateway to Git.
+
+COMMANDS *fugitive-commands*
+
+These commands are local to the buffers in which they work (generally, buffers
+that are part of Git repositories).
+
+ *fugitive-:Git*
+:Git [args] Run an arbitrary git command. Similar to :!git [args]
+ but chdir to the repository tree first.
+
+ *fugitive-:Git!*
+:Git! [args] Like |:Git|, but capture the output into a temp file,
+ and edit that temp file.
+
+ *fugitive-:Gcd*
+:Gcd [directory] |:cd| relative to the repository.
+
+ *fugitive-:Glcd*
+:Glcd [directory] |:lcd| relative to the repository.
+
+ *fugitive-:Gstatus*
+:Gstatus Bring up the output of git-status in the preview
+ window. The following maps, which work on the cursor
+ line file where sensible, are provided:
+
+ g? show this help
+ <C-N> next file
+ <C-P> previous file
+ <CR> |:Gedit|
+ - |:Git| add
+ - |:Git| reset (staged files)
+ cA |:Gcommit| --amend --reuse-message=HEAD
+ ca |:Gcommit| --amend
+ cc |:Gcommit|
+ cva |:Gcommit| --amend --verbose
+ cvc |:Gcommit| --verbose
+ D |:Gdiff|
+ ds |:Gsdiff|
+ dp |:Git!| diff (p for patch; use :Gw to apply)
+ dp |:Git| add --intent-to-add (untracked files)
+ dv |:Gvdiff|
+ O |:Gtabedit|
+ o |:Gsplit|
+ p |:Git| add --patch
+ p |:Git| reset --patch (staged files)
+ q close status
+ R reload status
+ S |:Gvsplit|
+
+ *fugitive-:Gcommit*
+:Gcommit [args] A wrapper around git-commit. If there is nothing
+ to commit, |:Gstatus| is called instead. Unless the
+ arguments given would skip the invocation of an editor
+ (e.g., -m), a split window will be used to obtain a
+ commit message. Write and close that window (:wq or
+ |:Gwrite|) to finish the commit. Unlike when running
+ the actual git-commit command, it is possible (but
+ unadvisable) to muck with the index with commands like
+ git-add and git-reset while a commit message is
+ pending.
+
+ *fugitive-:Ggrep*
+:Ggrep [args] |:grep| with git-grep as 'grepprg'.
+
+ *fugitive-:Glgrep*
+:Glgrep [args] |:lgrep| with git-grep as 'grepprg'.
+
+ *fugitive-:Glog*
+:Glog [args] Load all previous revisions of the current file into
+ the quickfix list. Additional git-log arguments can
+ be given (for example, --reverse). If "--" appears as
+ an argument, no file specific filtering is done, and
+ previous commits rather than previous file revisions
+ are loaded.
+
+ *fugitive-:Gllog*
+:Gllog [args] Like |:Glog|, but use the location list instead of the
+ quickfix list.
+
+ *fugitive-:Gedit* *fugitive-:Ge*
+:Gedit [revision] |:edit| a |fugitive-revision|.
+
+ *fugitive-:Gsplit*
+:Gsplit [revision] |:split| a |fugitive-revision|.
+
+ *fugitive-:Gvsplit*
+:Gvsplit [revision] |:vsplit| a |fugitive-revision|.
+
+ *fugitive-:Gtabedit*
+:Gtabedit [revision] |:tabedit| a |fugitive-revision|.
+
+ *fugitive-:Gpedit*
+:Gpedit [revision] |:pedit| a |fugitive-revision|.
+
+:Gsplit! [args] *fugitive-:Gsplit!* *fugitive-:Gvsplit!*
+:Gvsplit! [args] *fugitive-:Gtabedit!* *fugitive-:Gpedit!*
+:Gtabedit! [args] Like |:Git!|, but open the resulting temp file in a
+:Gpedit! [args] split, tab, or preview window.
+
+ *fugitive-:Gread*
+:Gread [revision] Empty the buffer and |:read| a |fugitive-revision|.
+ When the argument is omitted, this is similar to
+ git-checkout on a work tree file or git-add on a stage
+ file, but without writing anything to disk.
+
+:{range}Gread [revision]
+ |:read| in a |fugitive-revision| after {range}.
+
+ *fugitive-:Gread!*
+:Gread! [args] Empty the buffer and |:read| the output of a Git
+ command. For example, :Gread! show HEAD:%.
+
+:{range}Gread! [args] |:read| the output of a Git command after {range}.
+
+ *fugitive-:Gw* *fugitive-:Gwrite*
+:Gwrite Write to the current file's path and stage the results.
+ When run in a work tree file, it is effectively git
+ add. Elsewhere, it is effectively git-checkout. A
+ great deal of effort is expended to behave sensibly
+ when the work tree or index version of the file is
+ open in another buffer.
+
+:Gwrite {path} You can give |:Gwrite| an explicit path of where in
+ the work tree to write. You can also give a path like
+ :0:foo.txt or even :0 to write to just that stage in
+ the index.
+
+ *fugitive-:Gwq*
+:Gwq [path] Like |:Gwrite| followed by |:quit| if the write
+ succeeded.
+
+:Gwq! [path] Like |:Gwrite|! followed by |:quit|! if the write
+ succeeded.
+
+ *fugitive-:Gdiff*
+:Gdiff [revision] Perform a |vimdiff| against the current file in the
+ given revision. With no argument, the version in the
+ index is used (which means a three-way diff during a
+ merge conflict, making it a git-mergetool
+ alternative). The newer of the two files is placed
+ to the right. Use |do| and |dp| and write to the
+ index file to simulate "git add --patch".
+
+ *fugitive-:Gsdiff*
+:Gsdiff [revision] Like |:Gdiff|, but split horizontally.
+
+ *fugitive-:Gvdiff*
+:Gvdiff [revision] Identical to |:Gdiff|. For symmetry with |:Gsdiff|.
+
+ *fugitive-:Gmove*
+:Gmove {destination} Wrapper around git-mv that renames the buffer
+ afterward. The destination is relative to the current
+ directory except when started with a /, in which case
+ it is relative to the work tree. Add a ! to pass -f.
+
+ *fugitive-:Gremove*
+:Gremove Wrapper around git-rm that deletes the buffer
+ afterward. When invoked in an index file, --cached is
+ passed. Add a ! to pass -f and forcefully discard the
+ buffer.
+
+ *fugitive-:Gblame*
+:Gblame [flags] Run git-blame on the file and open the results in a
+ scroll bound vertical split. Press enter on a line to
+ reblame the file as it was in that commit. You can
+ give any of ltfnsewMC as flags and they will be passed
+ along to git-blame. The following maps, which work on
+ the cursor line commit where sensible, are provided:
+
+ g? show this help
+ A resize to end of author column
+ C resize to end of commit column
+ D resize to end of date/time column
+ q close blame and return to blamed window
+ gq q, then |:Gedit| to return to work tree version
+ <CR> q, then open commit
+ o open commit in horizontal split
+ O open commit in new tab
+ - reblame at commit
+ ~ reblame at [count]th first grandparent
+ P reblame at [count]th parent (like HEAD^[count])
+
+:[range]Gblame [flags] Run git-blame on the given range.
+
+ *fugitive-:Gbrowse*
+:[range]Gbrowse If the remote for the current branch is on GitHub,
+ open the current file, blob, tree, commit, or tag
+ (with git-web--browse) on GitHub. Otherwise, open the
+ current file, blob, tree, commit, or tag in
+ git-instaweb (if you have issues, verify you can run
+ "git instaweb" from a terminal). If a range is given,
+ it is appropriately appended to the URL as an anchor.
+
+ To use with GitHub FI, point g:fugitive_github_domains
+ at a list of domains:
+>
+ let g:fugitive_github_domains = ['https://example.com']
+~
+:[range]Gbrowse! Like :Gbrowse, but put the URL on the clipboard rather
+ than opening it.
+
+:[range]Gbrowse {revision}
+ Like :Gbrowse, but for a given |fugitive-revision|. A
+ useful value here is -, which ties the URL to the
+ latest commit rather than a volatile branch.
+
+:[range]Gbrowse [...]@{remote}
+ Force using the given remote rather than the remote
+ for the current branch. The remote is used to
+ determine which GitHub repository to link to.
+
+MAPPINGS *fugitive-mappings*
+
+These maps are available everywhere.
+
+ *fugitive-c_CTRL-R_CTRL-G*
+<C-R><C-G> On the command line, recall the path to the current
+ object (that is, a representation of the object
+ recognized by |:Gedit|).
+
+ *fugitive-y_CTRL-G*
+["x]y<C-G> Yank the commit SHA and path to the current object.
+
+These maps are available in Git objects.
+
+ *fugitive-<CR>*
+<CR> Jump to the revision under the cursor.
+
+ *fugitive-o*
+o Jump to the revision under the cursor in a new split.
+
+ *fugitive-S*
+S Jump to the revision under the cursor in a new
+ vertical split.
+
+ *fugitive-O*
+O Jump to the revision under the cursor in a new tab.
+
+ *fugitive--*
+- Go to the tree containing the current tree or blob.
+
+ *fugitive-~*
+~ Go to the current file in the [count]th first
+ ancestor.
+
+ *fugitive-P*
+P Go to the current file in the [count]th parent.
+
+ *fugitive-C*
+C Go to the commit containing the current file.
+
+ *fugitive-.*
+. Start a |:| command line with the current revision
+ prepopulated at the end of the line.
+
+ *fugitive-a*
+a Show the current tag, commit, or tree in an alternate
+ format.
+
+SPECIFYING REVISIONS *fugitive-revision*
+
+Fugitive revisions are similar to Git revisions as defined in the "SPECIFYING
+REVISIONS" section in the git-rev-parse man page. For commands that accept an
+optional revision, the default is the file in the index for work tree files
+and the work tree file for everything else. Example revisions follow.
+
+Revision Meaning ~
+HEAD .git/HEAD
+master .git/refs/heads/master
+HEAD^{} The commit referenced by HEAD
+HEAD^ The parent of the commit referenced by HEAD
+HEAD: The tree referenced by HEAD
+/HEAD The file named HEAD in the work tree
+Makefile The file named Makefile in the work tree
+HEAD^:Makefile The file named Makefile in the parent of HEAD
+:Makefile The file named Makefile in the index (writable)
+- The current file in HEAD
+^ The current file in the previous commit
+~3 The current file 3 commits ago
+: .git/index (Same as |:Gstatus|)
+:0 The current file in the index
+:1 The current file's common ancestor during a conflict
+:2 The current file in the target branch during a conflict
+:3 The current file in the merged branch during a conflict
+:/foo The most recent commit with "foo" in the message
+
+STATUSLINE *fugitive-statusline*
+
+ *fugitive#statusline()*
+Add %{fugitive#statusline()} to your statusline to get an indicator including
+the current branch and the currently edited file's commit. If you don't have
+a statusline, this one matches the default when 'ruler' is set:
+>
+ set statusline=%<%f\ %h%m%r%{fugitive#statusline()}%=%-14.(%l,%c%V%)\ %P
+<
+ *fugitive#head(...)*
+Use fugitive#head() to return the name of the current branch. If the current
+HEAD is detached, fugitive#head() will return the empty string, unless the
+optional argument is given, in which case the hash of the current commit will
+be truncated to the given number of characters.
+
+ABOUT *fugitive-about*
+
+Grab the latest version or report a bug on GitHub:
+
+http://github.com/tpope/vim-fugitive
+
+ vim:tw=78:et:ft=help:norl:
diff --git a/vim/.vim/bundle/vim-fugitive/plugin/fugitive.vim b/vim/.vim/bundle/vim-fugitive/plugin/fugitive.vim
new file mode 100644
index 0000000..2043dfe
--- /dev/null
+++ b/vim/.vim/bundle/vim-fugitive/plugin/fugitive.vim
@@ -0,0 +1,2624 @@
+" fugitive.vim - A Git wrapper so awesome, it should be illegal
+" Maintainer: Tim Pope <http://tpo.pe/>
+" Version: 2.0
+" GetLatestVimScripts: 2975 1 :AutoInstall: fugitive.vim
+
+if exists('g:loaded_fugitive') || &cp
+ finish
+endif
+let g:loaded_fugitive = 1
+
+if !exists('g:fugitive_git_executable')
+ let g:fugitive_git_executable = 'git'
+endif
+
+" Utility {{{1
+
+function! s:function(name) abort
+ return function(substitute(a:name,'^s:',matchstr(expand('<sfile>'), '<SNR>\d\+_'),''))
+endfunction
+
+function! s:sub(str,pat,rep) abort
+ return substitute(a:str,'\v\C'.a:pat,a:rep,'')
+endfunction
+
+function! s:gsub(str,pat,rep) abort
+ return substitute(a:str,'\v\C'.a:pat,a:rep,'g')
+endfunction
+
+function! s:shellesc(arg) abort
+ if a:arg =~ '^[A-Za-z0-9_/.-]\+$'
+ return a:arg
+ elseif &shell =~# 'cmd' || &shell =~# 'power'
+ return '"'.s:gsub(s:gsub(a:arg, '"', '""'), '\%', '"%"').'"'
+ else
+ return shellescape(a:arg)
+ endif
+endfunction
+
+function! s:fnameescape(file) abort
+ if exists('*fnameescape')
+ return fnameescape(a:file)
+ else
+ return escape(a:file," \t\n*?[{`$\\%#'\"|!<")
+ endif
+endfunction
+
+function! s:throw(string) abort
+ let v:errmsg = 'fugitive: '.a:string
+ throw v:errmsg
+endfunction
+
+function! s:warn(str) abort
+ echohl WarningMsg
+ echomsg a:str
+ echohl None
+ let v:warningmsg = a:str
+endfunction
+
+function! s:shellslash(path) abort
+ if exists('+shellslash') && !&shellslash
+ return s:gsub(a:path,'\\','/')
+ else
+ return a:path
+ endif
+endfunction
+
+let s:git_versions = {}
+
+function! fugitive#git_version(...) abort
+ if !has_key(s:git_versions, g:fugitive_git_executable)
+ let s:git_versions[g:fugitive_git_executable] = matchstr(system(g:fugitive_git_executable.' --version'), "\\S\\+\n")
+ endif
+ return s:git_versions[g:fugitive_git_executable]
+endfunction
+
+function! s:recall() abort
+ let rev = s:sub(s:buffer().rev(), '^/', '')
+ if rev ==# ':'
+ return matchstr(getline('.'),'^#\t\%([[:alpha:] ]\+: *\)\=\zs.\{-\}\ze\%( ([^()[:digit:]]\+)\)\=$\|^\d\{6} \x\{40\} \d\t\zs.*')
+ elseif s:buffer().type('tree')
+ let file = matchstr(getline('.'), '\t\zs.*')
+ if empty(file) && line('.') > 2
+ let file = s:sub(getline('.'), '/$', '')
+ endif
+ if !empty(file) && rev !~# ':$'
+ return rev . '/' . file
+ else
+ return rev . file
+ endif
+ endif
+ return rev
+endfunction
+
+function! s:add_methods(namespace, method_names) abort
+ for name in a:method_names
+ let s:{a:namespace}_prototype[name] = s:function('s:'.a:namespace.'_'.name)
+ endfor
+endfunction
+
+let s:commands = []
+function! s:command(definition) abort
+ let s:commands += [a:definition]
+endfunction
+
+function! s:define_commands() abort
+ for command in s:commands
+ exe 'command! -buffer '.command
+ endfor
+endfunction
+
+augroup fugitive_utility
+ autocmd!
+ autocmd User Fugitive call s:define_commands()
+augroup END
+
+let s:abstract_prototype = {}
+
+" }}}1
+" Initialization {{{1
+
+function! fugitive#is_git_dir(path) abort
+ let path = s:sub(a:path, '[\/]$', '') . '/'
+ return isdirectory(path.'objects') && isdirectory(path.'refs') && getfsize(path.'HEAD') > 10
+endfunction
+
+function! fugitive#extract_git_dir(path) abort
+ if s:shellslash(a:path) =~# '^fugitive://.*//'
+ return matchstr(s:shellslash(a:path), '\C^fugitive://\zs.\{-\}\ze//')
+ endif
+ let root = s:shellslash(simplify(fnamemodify(a:path, ':p:s?[\/]$??')))
+ let previous = ""
+ while root !=# previous
+ if root =~# '\v^//%([^/]+/?)?$'
+ " This is for accessing network shares from Cygwin Vim. There won't be
+ " any git directory called //.git or //serverName/.git so let's avoid
+ " checking for them since such checks are extremely slow.
+ break
+ endif
+ if index(split($GIT_CEILING_DIRECTORIES, ':'), root) >= 0
+ break
+ endif
+ if root ==# $GIT_WORK_TREE && fugitive#is_git_dir($GIT_DIR)
+ return $GIT_DIR
+ endif
+ let dir = s:sub(root, '[\/]$', '') . '/.git'
+ let type = getftype(dir)
+ if type ==# 'dir' && fugitive#is_git_dir(dir)
+ return dir
+ elseif type ==# 'link' && fugitive#is_git_dir(dir)
+ return resolve(dir)
+ elseif type !=# '' && filereadable(dir)
+ let line = get(readfile(dir, '', 1), 0, '')
+ if line =~# '^gitdir: \.' && fugitive#is_git_dir(root.'/'.line[8:-1])
+ return simplify(root.'/'.line[8:-1])
+ elseif line =~# '^gitdir: ' && fugitive#is_git_dir(line[8:-1])
+ return line[8:-1]
+ endif
+ elseif fugitive#is_git_dir(root)
+ return root
+ endif
+ let previous = root
+ let root = fnamemodify(root, ':h')
+ endwhile
+ return ''
+endfunction
+
+function! fugitive#detect(path) abort
+ if exists('b:git_dir') && (b:git_dir ==# '' || b:git_dir =~# '/$')
+ unlet b:git_dir
+ endif
+ if !exists('b:git_dir')
+ let dir = fugitive#extract_git_dir(a:path)
+ if dir !=# ''
+ let b:git_dir = dir
+ endif
+ endif
+ if exists('b:git_dir')
+ silent doautocmd User FugitiveBoot
+ cnoremap <buffer> <expr> <C-R><C-G> fnameescape(<SID>recall())
+ nnoremap <buffer> <silent> y<C-G> :call setreg(v:register, <SID>recall())<CR>
+ let buffer = fugitive#buffer()
+ if expand('%:p') =~# '//'
+ call buffer.setvar('&path', s:sub(buffer.getvar('&path'), '^\.%(,|$)', ''))
+ endif
+ if stridx(buffer.getvar('&tags'), escape(b:git_dir.'/tags', ', ')) == -1
+ call buffer.setvar('&tags', escape(b:git_dir.'/tags', ', ').','.buffer.getvar('&tags'))
+ if &filetype !=# ''
+ call buffer.setvar('&tags', escape(b:git_dir.'/'.&filetype.'.tags', ', ').','.buffer.getvar('&tags'))
+ endif
+ endif
+ silent doautocmd User Fugitive
+ endif
+endfunction
+
+augroup fugitive
+ autocmd!
+ autocmd BufNewFile,BufReadPost * call fugitive#detect(expand('<amatch>:p'))
+ autocmd FileType netrw call fugitive#detect(expand('%:p'))
+ autocmd User NERDTreeInit,NERDTreeNewRoot call fugitive#detect(b:NERDTreeRoot.path.str())
+ autocmd VimEnter * if expand('<amatch>')==''|call fugitive#detect(getcwd())|endif
+ autocmd CmdWinEnter * call fugitive#detect(expand('#:p'))
+ autocmd BufWinLeave * execute getwinvar(+bufwinnr(+expand('<abuf>')), 'fugitive_leave')
+augroup END
+
+" }}}1
+" Repository {{{1
+
+let s:repo_prototype = {}
+let s:repos = {}
+
+function! s:repo(...) abort
+ let dir = a:0 ? a:1 : (exists('b:git_dir') && b:git_dir !=# '' ? b:git_dir : fugitive#extract_git_dir(expand('%:p')))
+ if dir !=# ''
+ if has_key(s:repos, dir)
+ let repo = get(s:repos, dir)
+ else
+ let repo = {'git_dir': dir}
+ let s:repos[dir] = repo
+ endif
+ return extend(extend(repo, s:repo_prototype, 'keep'), s:abstract_prototype, 'keep')
+ endif
+ call s:throw('not a git repository: '.expand('%:p'))
+endfunction
+
+function! fugitive#repo(...) abort
+ return call('s:repo', a:000)
+endfunction
+
+function! s:repo_dir(...) dict abort
+ return join([self.git_dir]+a:000,'/')
+endfunction
+
+function! s:repo_configured_tree() dict abort
+ if !has_key(self,'_tree')
+ let self._tree = ''
+ if filereadable(self.dir('config'))
+ let config = readfile(self.dir('config'),'',10)
+ call filter(config,'v:val =~# "^\\s*worktree *="')
+ if len(config) == 1
+ let self._tree = matchstr(config[0], '= *\zs.*')
+ endif
+ endif
+ endif
+ if self._tree =~# '^\.'
+ return simplify(self.dir(self._tree))
+ else
+ return self._tree
+ endif
+endfunction
+
+function! s:repo_tree(...) dict abort
+ if self.dir() =~# '/\.git$'
+ let dir = self.dir()[0:-6]
+ else
+ let dir = self.configured_tree()
+ endif
+ if dir ==# ''
+ call s:throw('no work tree')
+ else
+ return join([dir]+a:000,'/')
+ endif
+endfunction
+
+function! s:repo_bare() dict abort
+ if self.dir() =~# '/\.git$'
+ return 0
+ else
+ return self.configured_tree() ==# ''
+ endif
+endfunction
+
+function! s:repo_translate(spec) dict abort
+ if a:spec ==# '.' || a:spec ==# '/.'
+ return self.bare() ? self.dir() : self.tree()
+ elseif a:spec =~# '^/\=\.git$' && self.bare()
+ return self.dir()
+ elseif a:spec =~# '^/\=\.git/'
+ return self.dir(s:sub(a:spec, '^/=\.git/', ''))
+ elseif a:spec =~# '^/'
+ return self.tree().a:spec
+ elseif a:spec =~# '^:[0-3]:'
+ return 'fugitive://'.self.dir().'//'.a:spec[1].'/'.a:spec[3:-1]
+ elseif a:spec ==# ':'
+ if $GIT_INDEX_FILE =~# '/[^/]*index[^/]*\.lock$' && fnamemodify($GIT_INDEX_FILE,':p')[0:strlen(self.dir())] ==# self.dir('') && filereadable($GIT_INDEX_FILE)
+ return fnamemodify($GIT_INDEX_FILE,':p')
+ else
+ return self.dir('index')
+ endif
+ elseif a:spec =~# '^:/'
+ let ref = self.rev_parse(matchstr(a:spec,'.[^:]*'))
+ return 'fugitive://'.self.dir().'//'.ref
+ elseif a:spec =~# '^:'
+ return 'fugitive://'.self.dir().'//0/'.a:spec[1:-1]
+ elseif a:spec =~# 'HEAD\|^refs/' && a:spec !~ ':' && filereadable(self.dir(a:spec))
+ return self.dir(a:spec)
+ elseif filereadable(self.dir('refs/'.a:spec))
+ return self.dir('refs/'.a:spec)
+ elseif filereadable(self.dir('refs/tags/'.a:spec))
+ return self.dir('refs/tags/'.a:spec)
+ elseif filereadable(self.dir('refs/heads/'.a:spec))
+ return self.dir('refs/heads/'.a:spec)
+ elseif filereadable(self.dir('refs/remotes/'.a:spec))
+ return self.dir('refs/remotes/'.a:spec)
+ elseif filereadable(self.dir('refs/remotes/'.a:spec.'/HEAD'))
+ return self.dir('refs/remotes/'.a:spec,'/HEAD')
+ else
+ try
+ let ref = self.rev_parse(matchstr(a:spec,'[^:]*'))
+ let path = s:sub(matchstr(a:spec,':.*'),'^:','/')
+ return 'fugitive://'.self.dir().'//'.ref.path
+ catch /^fugitive:/
+ return self.tree(a:spec)
+ endtry
+ endif
+endfunction
+
+function! s:repo_head(...) dict abort
+ let head = s:repo().head_ref()
+
+ if head =~# '^ref: '
+ let branch = s:sub(head,'^ref: %(refs/%(heads/|remotes/|tags/)=)=','')
+ elseif head =~# '^\x\{40\}$'
+ " truncate hash to a:1 characters if we're in detached head mode
+ let len = a:0 ? a:1 : 0
+ let branch = len ? head[0:len-1] : ''
+ else
+ return ''
+ endif
+
+ return branch
+endfunction
+
+call s:add_methods('repo',['dir','configured_tree','tree','bare','translate','head'])
+
+function! s:repo_git_command(...) dict abort
+ let git = g:fugitive_git_executable . ' --git-dir='.s:shellesc(self.git_dir)
+ return git.join(map(copy(a:000),'" ".s:shellesc(v:val)'),'')
+endfunction
+
+function! s:repo_git_chomp(...) dict abort
+ return s:sub(system(call(self.git_command,a:000,self)),'\n$','')
+endfunction
+
+function! s:repo_git_chomp_in_tree(...) dict abort
+ let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd '
+ let dir = getcwd()
+ try
+ execute cd.'`=s:repo().tree()`'
+ return call(s:repo().git_chomp, a:000, s:repo())
+ finally
+ execute cd.'`=dir`'
+ endtry
+endfunction
+
+function! s:repo_rev_parse(rev) dict abort
+ let hash = self.git_chomp('rev-parse','--verify',a:rev)
+ if hash =~ '\<\x\{40\}$'
+ return matchstr(hash,'\<\x\{40\}$')
+ endif
+ call s:throw('rev-parse '.a:rev.': '.hash)
+endfunction
+
+call s:add_methods('repo',['git_command','git_chomp','git_chomp_in_tree','rev_parse'])
+
+function! s:repo_dirglob(base) dict abort
+ let base = s:sub(a:base,'^/','')
+ let matches = split(glob(self.tree(s:gsub(base,'/','*&').'*/')),"\n")
+ call map(matches,'v:val[ strlen(self.tree())+(a:base !~ "^/") : -1 ]')
+ return matches
+endfunction
+
+function! s:repo_superglob(base) dict abort
+ if a:base =~# '^/' || a:base !~# ':'
+ let results = []
+ if a:base !~# '^/'
+ let heads = ["HEAD","ORIG_HEAD","FETCH_HEAD","MERGE_HEAD"]
+ let heads += sort(split(s:repo().git_chomp("rev-parse","--symbolic","--branches","--tags","--remotes"),"\n"))
+ call filter(heads,'v:val[ 0 : strlen(a:base)-1 ] ==# a:base')
+ let results += heads
+ endif
+ if !self.bare()
+ let base = s:sub(a:base,'^/','')
+ let matches = split(glob(self.tree(s:gsub(base,'/','*&').'*')),"\n")
+ call map(matches,'s:shellslash(v:val)')
+ call map(matches,'v:val !~ "/$" && isdirectory(v:val) ? v:val."/" : v:val')
+ call map(matches,'v:val[ strlen(self.tree())+(a:base !~ "^/") : -1 ]')
+ let results += matches
+ endif
+ return results
+
+ elseif a:base =~# '^:'
+ let entries = split(self.git_chomp('ls-files','--stage'),"\n")
+ call map(entries,'s:sub(v:val,".*(\\d)\\t(.*)",":\\1:\\2")')
+ if a:base !~# '^:[0-3]\%(:\|$\)'
+ call filter(entries,'v:val[1] == "0"')
+ call map(entries,'v:val[2:-1]')
+ endif
+ call filter(entries,'v:val[ 0 : strlen(a:base)-1 ] ==# a:base')
+ return entries
+
+ else
+ let tree = matchstr(a:base,'.*[:/]')
+ let entries = split(self.git_chomp('ls-tree',tree),"\n")
+ call map(entries,'s:sub(v:val,"^04.*\\zs$","/")')
+ call map(entries,'tree.s:sub(v:val,".*\t","")')
+ return filter(entries,'v:val[ 0 : strlen(a:base)-1 ] ==# a:base')
+ endif
+endfunction
+
+call s:add_methods('repo',['dirglob','superglob'])
+
+function! s:repo_config(conf) dict abort
+ return matchstr(system(s:repo().git_command('config').' '.a:conf),"[^\r\n]*")
+endfun
+
+function! s:repo_user() dict abort
+ let username = s:repo().config('user.name')
+ let useremail = s:repo().config('user.email')
+ return username.' <'.useremail.'>'
+endfun
+
+function! s:repo_aliases() dict abort
+ if !has_key(self,'_aliases')
+ let self._aliases = {}
+ for line in split(self.git_chomp('config','--get-regexp','^alias[.]'),"\n")
+ let self._aliases[matchstr(line,'\.\zs\S\+')] = matchstr(line,' \zs.*')
+ endfor
+ endif
+ return self._aliases
+endfunction
+
+call s:add_methods('repo',['config', 'user', 'aliases'])
+
+function! s:repo_keywordprg() dict abort
+ let args = ' --git-dir='.escape(self.dir(),"\\\"' ")
+ if has('gui_running') && !has('win32')
+ return g:fugitive_git_executable . ' --no-pager' . args . ' log -1'
+ else
+ return g:fugitive_git_executable . args . ' show'
+ endif
+endfunction
+
+call s:add_methods('repo',['keywordprg'])
+
+" }}}1
+" Buffer {{{1
+
+let s:buffer_prototype = {}
+
+function! s:buffer(...) abort
+ let buffer = {'#': bufnr(a:0 ? a:1 : '%')}
+ call extend(extend(buffer,s:buffer_prototype,'keep'),s:abstract_prototype,'keep')
+ if buffer.getvar('git_dir') !=# ''
+ return buffer
+ endif
+ call s:throw('not a git repository: '.expand('%:p'))
+endfunction
+
+function! fugitive#buffer(...) abort
+ return s:buffer(a:0 ? a:1 : '%')
+endfunction
+
+function! s:buffer_getvar(var) dict abort
+ return getbufvar(self['#'],a:var)
+endfunction
+
+function! s:buffer_setvar(var,value) dict abort
+ return setbufvar(self['#'],a:var,a:value)
+endfunction
+
+function! s:buffer_getline(lnum) dict abort
+ return get(getbufline(self['#'], a:lnum), 0, '')
+endfunction
+
+function! s:buffer_repo() dict abort
+ return s:repo(self.getvar('git_dir'))
+endfunction
+
+function! s:buffer_type(...) dict abort
+ if self.getvar('fugitive_type') != ''
+ let type = self.getvar('fugitive_type')
+ elseif fnamemodify(self.spec(),':p') =~# '.\git/refs/\|\.git/\w*HEAD$'
+ let type = 'head'
+ elseif self.getline(1) =~ '^tree \x\{40\}$' && self.getline(2) == ''
+ let type = 'tree'
+ elseif self.getline(1) =~ '^\d\{6\} \w\{4\} \x\{40\}\>\t'
+ let type = 'tree'
+ elseif self.getline(1) =~ '^\d\{6\} \x\{40\}\> \d\t'
+ let type = 'index'
+ elseif isdirectory(self.spec())
+ let type = 'directory'
+ elseif self.spec() == ''
+ let type = 'null'
+ else
+ let type = 'file'
+ endif
+ if a:0
+ return !empty(filter(copy(a:000),'v:val ==# type'))
+ else
+ return type
+ endif
+endfunction
+
+if has('win32')
+
+ function! s:buffer_spec() dict abort
+ let bufname = bufname(self['#'])
+ let retval = ''
+ for i in split(bufname,'[^:]\zs\\')
+ let retval = fnamemodify((retval==''?'':retval.'\').i,':.')
+ endfor
+ return s:shellslash(fnamemodify(retval,':p'))
+ endfunction
+
+else
+
+ function! s:buffer_spec() dict abort
+ let bufname = bufname(self['#'])
+ return s:shellslash(bufname == '' ? '' : fnamemodify(bufname,':p'))
+ endfunction
+
+endif
+
+function! s:buffer_name() dict abort
+ return self.spec()
+endfunction
+
+function! s:buffer_commit() dict abort
+ return matchstr(self.spec(),'^fugitive://.\{-\}//\zs\w*')
+endfunction
+
+function! s:buffer_path(...) dict abort
+ let rev = matchstr(self.spec(),'^fugitive://.\{-\}//\zs.*')
+ if rev != ''
+ let rev = s:sub(rev,'\w*','')
+ elseif self.spec()[0 : len(self.repo().dir())] ==# self.repo().dir() . '/'
+ let rev = '/.git'.self.spec()[strlen(self.repo().dir()) : -1]
+ elseif !self.repo().bare() && self.spec()[0 : len(self.repo().tree())] ==# self.repo().tree() . '/'
+ let rev = self.spec()[strlen(self.repo().tree()) : -1]
+ endif
+ return s:sub(s:sub(rev,'.\zs/$',''),'^/',a:0 ? a:1 : '')
+endfunction
+
+function! s:buffer_rev() dict abort
+ let rev = matchstr(self.spec(),'^fugitive://.\{-\}//\zs.*')
+ if rev =~ '^\x/'
+ return ':'.rev[0].':'.rev[2:-1]
+ elseif rev =~ '.'
+ return s:sub(rev,'/',':')
+ elseif self.spec() =~ '\.git/index$'
+ return ':'
+ elseif self.spec() =~ '\.git/refs/\|\.git/.*HEAD$'
+ return self.spec()[strlen(self.repo().dir())+1 : -1]
+ else
+ return self.path('/')
+ endif
+endfunction
+
+function! s:buffer_sha1() dict abort
+ if self.spec() =~ '^fugitive://' || self.spec() =~ '\.git/refs/\|\.git/.*HEAD$'
+ return self.repo().rev_parse(self.rev())
+ else
+ return ''
+ endif
+endfunction
+
+function! s:buffer_expand(rev) dict abort
+ if a:rev =~# '^:[0-3]$'
+ let file = a:rev.self.path(':')
+ elseif a:rev =~# '^[-:]/$'
+ let file = '/'.self.path()
+ elseif a:rev =~# '^-'
+ let file = 'HEAD^{}'.a:rev[1:-1].self.path(':')
+ elseif a:rev =~# '^@{'
+ let file = 'HEAD'.a:rev.self.path(':')
+ elseif a:rev =~# '^[~^]'
+ let commit = s:sub(self.commit(),'^\d=$','HEAD')
+ let file = commit.a:rev.self.path(':')
+ else
+ let file = a:rev
+ endif
+ return s:sub(s:sub(file,'\%$',self.path()),'\.\@<=/$','')
+endfunction
+
+function! s:buffer_containing_commit() dict abort
+ if self.commit() =~# '^\d$'
+ return ':'
+ elseif self.commit() =~# '.'
+ return self.commit()
+ else
+ return 'HEAD'
+ endif
+endfunction
+
+function! s:buffer_up(...) dict abort
+ let rev = self.rev()
+ let c = a:0 ? a:1 : 1
+ while c
+ if rev =~# '^[/:]$'
+ let rev = 'HEAD'
+ elseif rev =~# '^:'
+ let rev = ':'
+ elseif rev =~# '^refs/[^^~:]*$\|^[^^~:]*HEAD$'
+ let rev .= '^{}'
+ elseif rev =~# '^/\|:.*/'
+ let rev = s:sub(rev, '.*\zs/.*', '')
+ elseif rev =~# ':.'
+ let rev = matchstr(rev, '^[^:]*:')
+ elseif rev =~# ':$'
+ let rev = rev[0:-2]
+ else
+ return rev.'~'.c
+ endif
+ let c -= 1
+ endwhile
+ return rev
+endfunction
+
+call s:add_methods('buffer',['getvar','setvar','getline','repo','type','spec','name','commit','path','rev','sha1','expand','containing_commit','up'])
+
+" }}}1
+" Git {{{1
+
+call s:command("-bang -nargs=? -complete=customlist,s:GitComplete Git :execute s:Git(<bang>0,<q-args>)")
+
+function! s:ExecuteInTree(cmd) abort
+ let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd '
+ let dir = getcwd()
+ try
+ execute cd.'`=s:repo().tree()`'
+ execute a:cmd
+ finally
+ execute cd.'`=dir`'
+ endtry
+endfunction
+
+function! s:Git(bang,cmd) abort
+ if a:bang
+ return s:Edit('edit',1,a:cmd)
+ endif
+ let git = s:repo().git_command()
+ if has('gui_running') && !has('win32')
+ let git .= ' --no-pager'
+ endif
+ let cmd = matchstr(a:cmd,'\v\C.{-}%($|\\@<!%(\\\\)*\|)@=')
+ call s:ExecuteInTree('!'.git.' '.cmd)
+ call fugitive#reload_status()
+ return matchstr(a:cmd,'\v\C\\@<!%(\\\\)*\|\zs.*')
+endfunction
+
+function! s:GitComplete(A,L,P) abort
+ if !exists('s:exec_path')
+ let s:exec_path = s:sub(system(g:fugitive_git_executable.' --exec-path'),'\n$','')
+ endif
+ let cmds = map(split(glob(s:exec_path.'/git-*'),"\n"),'s:sub(v:val[strlen(s:exec_path)+5 : -1],"\\.exe$","")')
+ if a:L =~ ' [[:alnum:]-]\+ '
+ return s:repo().superglob(a:A)
+ elseif a:A == ''
+ return sort(cmds+keys(s:repo().aliases()))
+ else
+ return filter(sort(cmds+keys(s:repo().aliases())),'v:val[0:strlen(a:A)-1] ==# a:A')
+ endif
+endfunction
+
+" }}}1
+" Gcd, Glcd {{{1
+
+function! s:DirComplete(A,L,P) abort
+ let matches = s:repo().dirglob(a:A)
+ return matches
+endfunction
+
+call s:command("-bar -bang -nargs=? -complete=customlist,s:DirComplete Gcd :cd<bang> `=s:repo().bare() ? s:repo().dir(<q-args>) : s:repo().tree(<q-args>)`")
+call s:command("-bar -bang -nargs=? -complete=customlist,s:DirComplete Glcd :lcd<bang> `=s:repo().bare() ? s:repo().dir(<q-args>) : s:repo().tree(<q-args>)`")
+
+" }}}1
+" Gstatus {{{1
+
+call s:command("-bar Gstatus :execute s:Status()")
+augroup fugitive_status
+ autocmd!
+ if !has('win32')
+ autocmd FocusGained,ShellCmdPost * call fugitive#reload_status()
+ endif
+augroup END
+
+function! s:Status() abort
+ try
+ Gpedit :
+ wincmd P
+ setlocal foldmethod=syntax foldlevel=1
+ nnoremap <buffer> <silent> q :<C-U>bdelete<CR>
+ catch /^fugitive:/
+ return 'echoerr v:errmsg'
+ endtry
+ return ''
+endfunction
+
+function! fugitive#reload_status() abort
+ if exists('s:reloading_status')
+ return
+ endif
+ try
+ let s:reloading_status = 1
+ let mytab = tabpagenr()
+ for tab in [mytab] + range(1,tabpagenr('$'))
+ for winnr in range(1,tabpagewinnr(tab,'$'))
+ if getbufvar(tabpagebuflist(tab)[winnr-1],'fugitive_type') ==# 'index'
+ execute 'tabnext '.tab
+ if winnr != winnr()
+ execute winnr.'wincmd w'
+ let restorewinnr = 1
+ endif
+ try
+ if !&modified
+ call s:BufReadIndex()
+ endif
+ finally
+ if exists('restorewinnr')
+ wincmd p
+ endif
+ execute 'tabnext '.mytab
+ endtry
+ endif
+ endfor
+ endfor
+ finally
+ unlet! s:reloading_status
+ endtry
+endfunction
+
+function! s:stage_info(lnum) abort
+ let filename = matchstr(getline(a:lnum),'^#\t\zs.\{-\}\ze\%( ([^()[:digit:]]\+)\)\=$')
+ let lnum = a:lnum
+ if has('multi_byte_encoding')
+ let colon = '\%(:\|\%uff1a\)'
+ else
+ let colon = ':'
+ endif
+ while lnum && getline(lnum) !~# colon.'$'
+ let lnum -= 1
+ endwhile
+ if !lnum
+ return ['', '']
+ elseif (getline(lnum+1) =~# '^# .*\<git \%(reset\|rm --cached\) ' && getline(lnum+2) ==# '#') || getline(lnum) ==# '# Changes to be committed:'
+ return [matchstr(filename, colon.' *\zs.*'), 'staged']
+ elseif (getline(lnum+1) =~# '^# .*\<git add ' && getline(lnum+2) ==# '#') || getline(lnum) ==# '# Untracked files:'
+ return [filename, 'untracked']
+ elseif getline(lnum+2) =~# '^# .*\<git checkout ' || getline(lnum) ==# '# Changes not staged for commit:'
+ return [matchstr(filename, colon.' *\zs.*'), 'unstaged']
+ elseif getline(lnum+2) =~# '^# .*\<git \%(add\|rm\)' || getline(lnum) ==# '# Unmerged paths:'
+ return [matchstr(filename, colon.' *\zs.*'), 'unmerged']
+ else
+ return ['', 'unknown']
+ endif
+endfunction
+
+function! s:StageNext(count) abort
+ for i in range(a:count)
+ call search('^#\t.*','W')
+ endfor
+ return '.'
+endfunction
+
+function! s:StagePrevious(count) abort
+ if line('.') == 1 && exists(':CtrlP') && get(g:, 'ctrl_p_map') =~? '^<c-p>$'
+ return 'CtrlP '.fnameescape(s:repo().tree())
+ else
+ for i in range(a:count)
+ call search('^#\t.*','Wbe')
+ endfor
+ return '.'
+ endif
+endfunction
+
+function! s:StageReloadSeek(target,lnum1,lnum2) abort
+ let jump = a:target
+ let f = matchstr(getline(a:lnum1-1),'^#\t\%([[:alpha:] ]\+: *\|.*\%uff1a *\)\=\zs.*')
+ if f !=# '' | let jump = f | endif
+ let f = matchstr(getline(a:lnum2+1),'^#\t\%([[:alpha:] ]\+: *\|.*\%uff1a *\)\=\zs.*')
+ if f !=# '' | let jump = f | endif
+ silent! edit!
+ 1
+ redraw
+ call search('^#\t\%([[:alpha:] ]\+: *\|.*\%uff1a *\)\=\V'.jump.'\%( ([^()[:digit:]]\+)\)\=\$','W')
+endfunction
+
+function! s:StageDiff(diff) abort
+ let [filename, section] = s:stage_info(line('.'))
+ if filename ==# '' && section ==# 'staged'
+ return 'Git! diff --no-ext-diff --cached'
+ elseif filename ==# ''
+ return 'Git! diff --no-ext-diff'
+ elseif filename =~# ' -> '
+ let [old, new] = split(filename,' -> ')
+ execute 'Gedit '.s:fnameescape(':0:'.new)
+ return a:diff.' HEAD:'.s:fnameescape(old)
+ elseif section ==# 'staged'
+ execute 'Gedit '.s:fnameescape(':0:'.filename)
+ return a:diff.' -'
+ else
+ execute 'Gedit '.s:fnameescape('/'.filename)
+ return a:diff
+ endif
+endfunction
+
+function! s:StageDiffEdit() abort
+ let [filename, section] = s:stage_info(line('.'))
+ let arg = (filename ==# '' ? '.' : filename)
+ if section ==# 'staged'
+ return 'Git! diff --no-ext-diff --cached '.s:shellesc(arg)
+ elseif section ==# 'untracked'
+ let repo = s:repo()
+ call repo.git_chomp_in_tree('add','--intent-to-add',arg)
+ if arg ==# '.'
+ silent! edit!
+ 1
+ if !search('^# .*:\n#.*\n# .*"git checkout \|^# Changes not staged for commit:$','W')
+ call search('^# .*:$','W')
+ endif
+ else
+ call s:StageReloadSeek(arg,line('.'),line('.'))
+ endif
+ return ''
+ else
+ return 'Git! diff --no-ext-diff '.s:shellesc(arg)
+ endif
+endfunction
+
+function! s:StageToggle(lnum1,lnum2) abort
+ if a:lnum1 == 1 && a:lnum2 == 1
+ return 'Gedit /.git|call search("^index$", "wc")'
+ endif
+ try
+ let output = ''
+ for lnum in range(a:lnum1,a:lnum2)
+ let [filename, section] = s:stage_info(lnum)
+ let repo = s:repo()
+ if getline('.') =~# '^# .*:$'
+ if section ==# 'staged'
+ call repo.git_chomp_in_tree('reset','-q')
+ silent! edit!
+ 1
+ if !search('^# .*:\n# .*"git add .*\n#\n\|^# Untracked files:$','W')
+ call search('^# .*:$','W')
+ endif
+ return ''
+ elseif section ==# 'unstaged'
+ call repo.git_chomp_in_tree('add','-u')
+ silent! edit!
+ 1
+ if !search('^# .*:\n# .*"git add .*\n#\n\|^# Untracked files:$','W')
+ call search('^# .*:$','W')
+ endif
+ return ''
+ else
+ call repo.git_chomp_in_tree('add','.')
+ silent! edit!
+ 1
+ call search('^# .*:$','W')
+ return ''
+ endif
+ endif
+ if filename ==# ''
+ continue
+ endif
+ if !exists('first_filename')
+ let first_filename = filename
+ endif
+ execute lnum
+ if filename =~ ' -> '
+ let cmd = ['mv','--'] + reverse(split(filename,' -> '))
+ let filename = cmd[-1]
+ elseif section ==# 'staged'
+ let cmd = ['reset','-q','--',filename]
+ elseif getline(lnum) =~# '^#\tdeleted:'
+ let cmd = ['rm','--',filename]
+ elseif getline(lnum) =~# '^#\tmodified:'
+ let cmd = ['add','--',filename]
+ else
+ let cmd = ['add','-A','--',filename]
+ endif
+ let output .= call(repo.git_chomp_in_tree,cmd,s:repo())."\n"
+ endfor
+ if exists('first_filename')
+ call s:StageReloadSeek(first_filename,a:lnum1,a:lnum2)
+ endif
+ echo s:sub(s:gsub(output,'\n+','\n'),'\n$','')
+ catch /^fugitive:/
+ return 'echoerr v:errmsg'
+ endtry
+ return 'checktime'
+endfunction
+
+function! s:StagePatch(lnum1,lnum2) abort
+ let add = []
+ let reset = []
+
+ for lnum in range(a:lnum1,a:lnum2)
+ let [filename, section] = s:stage_info(lnum)
+ if getline('.') =~# '^# .*:$' && section ==# 'staged'
+ return 'Git reset --patch'
+ elseif getline('.') =~# '^# .*:$' && section ==# 'unstaged'
+ return 'Git add --patch'
+ elseif getline('.') =~# '^# .*:$' && section ==# 'untracked'
+ return 'Git add -N .'
+ elseif filename ==# ''
+ continue
+ endif
+ if !exists('first_filename')
+ let first_filename = filename
+ endif
+ execute lnum
+ if filename =~ ' -> '
+ let reset += [split(filename,' -> ')[1]]
+ elseif section ==# 'staged'
+ let reset += [filename]
+ elseif getline(lnum) !~# '^#\tdeleted:'
+ let add += [filename]
+ endif
+ endfor
+ try
+ if !empty(add)
+ execute "Git add --patch -- ".join(map(add,'s:shellesc(v:val)'))
+ endif
+ if !empty(reset)
+ execute "Git reset --patch -- ".join(map(add,'s:shellesc(v:val)'))
+ endif
+ if exists('first_filename')
+ silent! edit!
+ 1
+ redraw
+ call search('^#\t\%([[:alpha:] ]\+: *\)\=\V'.first_filename.'\%( ([^()[:digit:]]\+)\)\=\$','W')
+ endif
+ catch /^fugitive:/
+ return 'echoerr v:errmsg'
+ endtry
+ return 'checktime'
+endfunction
+
+" }}}1
+" Gcommit {{{1
+
+call s:command("-nargs=? -complete=customlist,s:CommitComplete Gcommit :execute s:Commit(<q-args>)")
+
+function! s:Commit(args) abort
+ let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd '
+ let dir = getcwd()
+ let msgfile = s:repo().dir('COMMIT_EDITMSG')
+ let outfile = tempname()
+ let errorfile = tempname()
+ try
+ try
+ execute cd.s:fnameescape(s:repo().tree())
+ if &shell =~# 'cmd' || &shell =~# 'power'
+ let command = ''
+ let old_editor = $GIT_EDITOR
+ let $GIT_EDITOR = 'false'
+ else
+ let command = 'env GIT_EDITOR=false '
+ endif
+ let command .= s:repo().git_command('commit').' '.a:args
+ if &shell =~# 'csh'
+ noautocmd silent execute '!('.command.' > '.outfile.') >& '.errorfile
+ elseif a:args =~# '\%(^\| \)-\%(-interactive\|p\|-patch\)\>'
+ noautocmd execute '!'.command.' 2> '.errorfile
+ else
+ noautocmd silent execute '!'.command.' > '.outfile.' 2> '.errorfile
+ endif
+ finally
+ execute cd.'`=dir`'
+ endtry
+ if !has('gui_running')
+ redraw!
+ endif
+ if !v:shell_error
+ if filereadable(outfile)
+ for line in readfile(outfile)
+ echo line
+ endfor
+ endif
+ return ''
+ else
+ let errors = readfile(errorfile)
+ let error = get(errors,-2,get(errors,-1,'!'))
+ if error =~# 'false''\=\.$'
+ let args = a:args
+ let args = s:gsub(args,'%(%(^| )-- )@<!%(^| )@<=%(-[esp]|--edit|--interactive|patch|--signoff)%($| )','')
+ let args = s:gsub(args,'%(%(^| )-- )@<!%(^| )@<=%(-F|--file|-m|--message)%(\s+|\=)%(''[^'']*''|"%(\\.|[^"])*"|\\.|\S)*','')
+ let args = s:gsub(args,'%(^| )@<=[%#]%(:\w)*','\=expand(submatch(0))')
+ let args = '-F '.s:shellesc(msgfile).' '.args
+ if args !~# '\%(^\| \)--cleanup\>'
+ let args = '--cleanup=strip '.args
+ endif
+ if bufname('%') == '' && line('$') == 1 && getline(1) == '' && !&mod
+ execute 'keepalt edit '.s:fnameescape(msgfile)
+ elseif s:buffer().type() ==# 'index'
+ execute 'keepalt edit '.s:fnameescape(msgfile)
+ execute (search('^#','n')+1).'wincmd+'
+ setlocal nopreviewwindow
+ else
+ execute 'keepalt split '.s:fnameescape(msgfile)
+ endif
+ let b:fugitive_commit_arguments = args
+ setlocal bufhidden=wipe filetype=gitcommit
+ return '1'
+ elseif error ==# '!'
+ return s:Status()
+ else
+ call s:throw(error)
+ endif
+ endif
+ catch /^fugitive:/
+ return 'echoerr v:errmsg'
+ finally
+ if exists('old_editor')
+ let $GIT_EDITOR = old_editor
+ endif
+ call delete(outfile)
+ call delete(errorfile)
+ call fugitive#reload_status()
+ endtry
+endfunction
+
+function! s:CommitComplete(A,L,P) abort
+ if a:A =~ '^-' || type(a:A) == type(0) " a:A is 0 on :Gcommit -<Tab>
+ let args = ['-C', '-F', '-a', '-c', '-e', '-i', '-m', '-n', '-o', '-q', '-s', '-t', '-u', '-v', '--all', '--allow-empty', '--amend', '--author=', '--cleanup=', '--dry-run', '--edit', '--file=', '--include', '--interactive', '--message=', '--no-verify', '--only', '--quiet', '--reedit-message=', '--reuse-message=', '--signoff', '--template=', '--untracked-files', '--verbose']
+ return filter(args,'v:val[0 : strlen(a:A)-1] ==# a:A')
+ else
+ return s:repo().superglob(a:A)
+ endif
+endfunction
+
+function! s:FinishCommit() abort
+ let args = getbufvar(+expand('<abuf>'),'fugitive_commit_arguments')
+ if !empty(args)
+ call setbufvar(+expand('<abuf>'),'fugitive_commit_arguments','')
+ return s:Commit(args)
+ endif
+ return ''
+endfunction
+
+augroup fugitive_commit
+ autocmd!
+ autocmd VimLeavePre,BufDelete COMMIT_EDITMSG execute s:sub(s:FinishCommit(), '^echoerr (.*)', 'echohl ErrorMsg|echo \1|echohl NONE')
+augroup END
+
+" }}}1
+" Ggrep, Glog {{{1
+
+if !exists('g:fugitive_summary_format')
+ let g:fugitive_summary_format = '%s'
+endif
+
+call s:command("-bang -nargs=? -complete=customlist,s:EditComplete Ggrep :execute s:Grep('grep',<bang>0,<q-args>)")
+call s:command("-bang -nargs=? -complete=customlist,s:EditComplete Glgrep :execute s:Grep('lgrep',<bang>0,<q-args>)")
+call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Glog :execute s:Log('grep<bang>',<f-args>)")
+call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Gllog :execute s:Log('lgrep<bang>',<f-args>)")
+
+function! s:Grep(cmd,bang,arg) abort
+ let grepprg = &grepprg
+ let grepformat = &grepformat
+ let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd '
+ let dir = getcwd()
+ try
+ execute cd.'`=s:repo().tree()`'
+ let &grepprg = s:repo().git_command('--no-pager', 'grep', '-n')
+ let &grepformat = '%f:%l:%m'
+ exe a:cmd.'! '.escape(matchstr(a:arg,'\v\C.{-}%($|[''" ]\@=\|)@='),'|')
+ let list = a:cmd =~# '^l' ? getloclist(0) : getqflist()
+ for entry in list
+ if bufname(entry.bufnr) =~ ':'
+ let entry.filename = s:repo().translate(bufname(entry.bufnr))
+ unlet! entry.bufnr
+ elseif a:arg =~# '\%(^\| \)--cached\>'
+ let entry.filename = s:repo().translate(':0:'.bufname(entry.bufnr))
+ unlet! entry.bufnr
+ endif
+ endfor
+ if a:cmd =~# '^l'
+ call setloclist(0, list, 'r')
+ else
+ call setqflist(list, 'r')
+ endif
+ if !a:bang && !empty(list)
+ return (a:cmd =~# '^l' ? 'l' : 'c').'first'.matchstr(a:arg,'\v\C[''" ]\zs\|.*')
+ else
+ return matchstr(a:arg,'\v\C[''" ]\|\zs.*')
+ endif
+ finally
+ let &grepprg = grepprg
+ let &grepformat = grepformat
+ execute cd.'`=dir`'
+ endtry
+endfunction
+
+function! s:Log(cmd,...) abort
+ let path = s:buffer().path('/')
+ if path =~# '^/\.git\%(/\|$\)' || index(a:000,'--') != -1
+ let path = ''
+ endif
+ let cmd = ['--no-pager', 'log', '--no-color']
+ let cmd += ['--pretty=format:fugitive://'.s:repo().dir().'//%H'.path.'::'.g:fugitive_summary_format]
+ if empty(filter(a:000[0 : index(a:000,'--')],'v:val !~# "^-"'))
+ if s:buffer().commit() =~# '\x\{40\}'
+ let cmd += [s:buffer().commit()]
+ elseif s:buffer().path() =~# '^\.git/refs/\|^\.git/.*HEAD$'
+ let cmd += [s:buffer().path()[5:-1]]
+ endif
+ end
+ let cmd += map(copy(a:000),'s:sub(v:val,"^\\%(%(:\\w)*)","\\=fnamemodify(s:buffer().path(),submatch(1))")')
+ if path =~# '/.'
+ let cmd += ['--',path[1:-1]]
+ endif
+ let grepformat = &grepformat
+ let grepprg = &grepprg
+ let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd '
+ let dir = getcwd()
+ try
+ execute cd.'`=s:repo().tree()`'
+ let &grepprg = escape(call(s:repo().git_command,cmd,s:repo()),'%#')
+ let &grepformat = '%f::%m'
+ exe a:cmd
+ finally
+ let &grepformat = grepformat
+ let &grepprg = grepprg
+ execute cd.'`=dir`'
+ endtry
+endfunction
+
+" }}}1
+" Gedit, Gpedit, Gsplit, Gvsplit, Gtabedit, Gread {{{1
+
+function! s:Edit(cmd,bang,...) abort
+ let buffer = s:buffer()
+ if a:cmd !~# 'read'
+ if &previewwindow && getbufvar('','fugitive_type') ==# 'index'
+ wincmd p
+ if &diff
+ let mywinnr = winnr()
+ for winnr in range(winnr('$'),1,-1)
+ if winnr != mywinnr && getwinvar(winnr,'&diff')
+ execute winnr.'wincmd w'
+ close
+ wincmd p
+ endif
+ endfor
+ endif
+ endif
+ endif
+
+ if a:bang
+ let arglist = map(copy(a:000), 's:gsub(v:val, ''\\@<!%(\\\\)*\zs[%#]'', ''\=s:buffer().expand(submatch(0))'')')
+ let args = join(arglist, ' ')
+ if a:cmd =~# 'read'
+ let git = buffer.repo().git_command()
+ let last = line('$')
+ silent call s:ExecuteInTree((a:cmd ==# 'read' ? '$read' : a:cmd).'!'.git.' --no-pager '.args)
+ if a:cmd ==# 'read'
+ silent execute '1,'.last.'delete_'
+ endif
+ call fugitive#reload_status()
+ diffupdate
+ return 'redraw|echo '.string(':!'.git.' '.args)
+ else
+ let temp = resolve(tempname())
+ let s:temp_files[temp] = { 'dir': buffer.repo().dir(), 'args': arglist }
+ silent execute a:cmd.' '.temp
+ if a:cmd =~# 'pedit'
+ wincmd P
+ endif
+ let echo = s:Edit('read',1,args)
+ silent write!
+ setlocal buftype=nowrite nomodified filetype=git foldmarker=<<<<<<<,>>>>>>>
+ if getline(1) !~# '^diff '
+ setlocal readonly nomodifiable
+ endif
+ if a:cmd =~# 'pedit'
+ wincmd p
+ endif
+ return echo
+ endif
+ return ''
+ endif
+
+ if a:0 && a:1 == ''
+ return ''
+ elseif a:0
+ let file = buffer.expand(join(a:000, ' '))
+ elseif expand('%') ==# ''
+ let file = ':'
+ elseif buffer.commit() ==# '' && buffer.path('/') !~# '^/.git\>'
+ let file = buffer.path(':')
+ else
+ let file = buffer.path('/')
+ endif
+ try
+ let file = buffer.repo().translate(file)
+ catch /^fugitive:/
+ return 'echoerr v:errmsg'
+ endtry
+ if a:cmd ==# 'read'
+ return 'silent %delete_|read '.s:fnameescape(file).'|silent 1delete_|diffupdate|'.line('.')
+ else
+ return a:cmd.' '.s:fnameescape(file)
+ endif
+endfunction
+
+function! s:EditComplete(A,L,P) abort
+ return map(s:repo().superglob(a:A), 'fnameescape(v:val)')
+endfunction
+
+function! s:EditRunComplete(A,L,P) abort
+ if a:L =~# '^\w\+!'
+ return s:GitComplete(a:A,a:L,a:P)
+ else
+ return s:repo().superglob(a:A)
+ endif
+endfunction
+
+call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Ge :execute s:Edit('edit<bang>',0,<f-args>)")
+call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Gedit :execute s:Edit('edit<bang>',0,<f-args>)")
+call s:command("-bar -bang -nargs=* -complete=customlist,s:EditRunComplete Gpedit :execute s:Edit('pedit',<bang>0,<f-args>)")
+call s:command("-bar -bang -nargs=* -complete=customlist,s:EditRunComplete Gsplit :execute s:Edit('split',<bang>0,<f-args>)")
+call s:command("-bar -bang -nargs=* -complete=customlist,s:EditRunComplete Gvsplit :execute s:Edit('vsplit',<bang>0,<f-args>)")
+call s:command("-bar -bang -nargs=* -complete=customlist,s:EditRunComplete Gtabedit :execute s:Edit('tabedit',<bang>0,<f-args>)")
+call s:command("-bar -bang -nargs=* -count -complete=customlist,s:EditRunComplete Gread :execute s:Edit((!<count> && <line1> ? '' : <count>).'read',<bang>0,<f-args>)")
+
+" }}}1
+" Gwrite, Gwq {{{1
+
+call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Gwrite :execute s:Write(<bang>0,<f-args>)")
+call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Gw :execute s:Write(<bang>0,<f-args>)")
+call s:command("-bar -bang -nargs=* -complete=customlist,s:EditComplete Gwq :execute s:Wq(<bang>0,<f-args>)")
+
+function! s:Write(force,...) abort
+ if exists('b:fugitive_commit_arguments')
+ return 'write|bdelete'
+ elseif expand('%:t') == 'COMMIT_EDITMSG' && $GIT_INDEX_FILE != ''
+ return 'wq'
+ elseif s:buffer().type() == 'index'
+ return 'Gcommit'
+ elseif s:buffer().path() ==# '' && getline(4) =~# '^+++ '
+ let filename = getline(4)[6:-1]
+ setlocal buftype=
+ silent write
+ setlocal buftype=nowrite
+ if matchstr(getline(2),'index [[:xdigit:]]\+\.\.\zs[[:xdigit:]]\{7\}') ==# s:repo().rev_parse(':0:'.filename)[0:6]
+ let err = s:repo().git_chomp('apply','--cached','--reverse',s:buffer().spec())
+ else
+ let err = s:repo().git_chomp('apply','--cached',s:buffer().spec())
+ endif
+ if err !=# ''
+ let v:errmsg = split(err,"\n")[0]
+ return 'echoerr v:errmsg'
+ elseif a:force
+ return 'bdelete'
+ else
+ return 'Gedit '.fnameescape(filename)
+ endif
+ endif
+ let mytab = tabpagenr()
+ let mybufnr = bufnr('')
+ let path = a:0 ? join(a:000, ' ') : s:buffer().path()
+ if path =~# '^:\d\>'
+ return 'write'.(a:force ? '! ' : ' ').s:fnameescape(s:repo().translate(s:buffer().expand(path)))
+ endif
+ let always_permitted = (s:buffer().path() ==# path && s:buffer().commit() =~# '^0\=$')
+ if !always_permitted && !a:force && s:repo().git_chomp_in_tree('diff','--name-status','HEAD','--',path) . s:repo().git_chomp_in_tree('ls-files','--others','--',path) !=# ''
+ let v:errmsg = 'fugitive: file has uncommitted changes (use ! to override)'
+ return 'echoerr v:errmsg'
+ endif
+ let file = s:repo().translate(path)
+ let treebufnr = 0
+ for nr in range(1,bufnr('$'))
+ if fnamemodify(bufname(nr),':p') ==# file
+ let treebufnr = nr
+ endif
+ endfor
+
+ if treebufnr > 0 && treebufnr != bufnr('')
+ let temp = tempname()
+ silent execute '%write '.temp
+ for tab in [mytab] + range(1,tabpagenr('$'))
+ for winnr in range(1,tabpagewinnr(tab,'$'))
+ if tabpagebuflist(tab)[winnr-1] == treebufnr
+ execute 'tabnext '.tab
+ if winnr != winnr()
+ execute winnr.'wincmd w'
+ let restorewinnr = 1
+ endif
+ try
+ let lnum = line('.')
+ let last = line('$')
+ silent execute '$read '.temp
+ silent execute '1,'.last.'delete_'
+ silent write!
+ silent execute lnum
+ let did = 1
+ finally
+ if exists('restorewinnr')
+ wincmd p
+ endif
+ execute 'tabnext '.mytab
+ endtry
+ endif
+ endfor
+ endfor
+ if !exists('did')
+ call writefile(readfile(temp,'b'),file,'b')
+ endif
+ else
+ execute 'write! '.s:fnameescape(s:repo().translate(path))
+ endif
+
+ if a:force
+ let error = s:repo().git_chomp_in_tree('add', '--force', file)
+ else
+ let error = s:repo().git_chomp_in_tree('add', file)
+ endif
+ if v:shell_error
+ let v:errmsg = 'fugitive: '.error
+ return 'echoerr v:errmsg'
+ endif
+ if s:buffer().path() ==# path && s:buffer().commit() =~# '^\d$'
+ set nomodified
+ endif
+
+ let one = s:repo().translate(':1:'.path)
+ let two = s:repo().translate(':2:'.path)
+ let three = s:repo().translate(':3:'.path)
+ for nr in range(1,bufnr('$'))
+ let name = fnamemodify(bufname(nr), ':p')
+ if bufloaded(nr) && !getbufvar(nr,'&modified') && (name ==# one || name ==# two || name ==# three)
+ execute nr.'bdelete'
+ endif
+ endfor
+
+ unlet! restorewinnr
+ let zero = s:repo().translate(':0:'.path)
+ for tab in range(1,tabpagenr('$'))
+ for winnr in range(1,tabpagewinnr(tab,'$'))
+ let bufnr = tabpagebuflist(tab)[winnr-1]
+ let bufname = fnamemodify(bufname(bufnr), ':p')
+ if bufname ==# zero && bufnr != mybufnr
+ execute 'tabnext '.tab
+ if winnr != winnr()
+ execute winnr.'wincmd w'
+ let restorewinnr = 1
+ endif
+ try
+ let lnum = line('.')
+ let last = line('$')
+ silent execute '$read '.s:fnameescape(file)
+ silent execute '1,'.last.'delete_'
+ silent execute lnum
+ set nomodified
+ diffupdate
+ finally
+ if exists('restorewinnr')
+ wincmd p
+ endif
+ execute 'tabnext '.mytab
+ endtry
+ break
+ endif
+ endfor
+ endfor
+ call fugitive#reload_status()
+ return 'checktime'
+endfunction
+
+function! s:Wq(force,...) abort
+ let bang = a:force ? '!' : ''
+ if exists('b:fugitive_commit_arguments')
+ return 'wq'.bang
+ endif
+ let result = call(s:function('s:Write'),[a:force]+a:000)
+ if result =~# '^\%(write\|wq\|echoerr\)'
+ return s:sub(result,'^write','wq')
+ else
+ return result.'|quit'.bang
+ endif
+endfunction
+
+" }}}1
+" Gdiff {{{1
+
+call s:command("-bang -bar -nargs=* -complete=customlist,s:EditComplete Gdiff :execute s:Diff(<bang>0,<f-args>)")
+call s:command("-bar -nargs=* -complete=customlist,s:EditComplete Gvdiff :execute s:Diff(0,<f-args>)")
+call s:command("-bar -nargs=* -complete=customlist,s:EditComplete Gsdiff :execute s:Diff(1,<f-args>)")
+
+augroup fugitive_diff
+ autocmd!
+ autocmd BufWinLeave * if &diff && s:diff_window_count() == 2 && getbufvar(+expand('<abuf>'), 'git_dir') !=# '' | call s:diffoff_all(getbufvar(+expand('<abuf>'), 'git_dir')) | endif
+ autocmd BufWinEnter * if &diff && s:diff_window_count() == 1 && getbufvar(+expand('<abuf>'), 'git_dir') !=# '' | call s:diffoff() | endif
+augroup END
+
+function! s:diff_window_count() abort
+ let c = 0
+ for nr in range(1,winnr('$'))
+ let c += getwinvar(nr,'&diff')
+ endfor
+ return c
+endfunction
+
+function! s:diff_restore() abort
+ let restore = 'setlocal nodiff noscrollbind'
+ \ . ' scrollopt=' . &l:scrollopt
+ \ . (&l:wrap ? ' wrap' : ' nowrap')
+ \ . ' foldlevel=999'
+ \ . ' foldmethod=' . &l:foldmethod
+ \ . ' foldcolumn=' . &l:foldcolumn
+ \ . ' foldlevel=' . &l:foldlevel
+ if has('cursorbind')
+ let restore .= (&l:cursorbind ? ' ' : ' no') . 'cursorbind'
+ endif
+ return restore
+endfunction
+
+function! s:diffthis() abort
+ if !&diff
+ let w:fugitive_diff_restore = s:diff_restore()
+ diffthis
+ endif
+endfunction
+
+function! s:diffoff() abort
+ if exists('w:fugitive_diff_restore')
+ execute w:fugitive_diff_restore
+ unlet w:fugitive_diff_restore
+ else
+ diffoff
+ endif
+endfunction
+
+function! s:diffoff_all(dir) abort
+ for nr in range(1,winnr('$'))
+ if getwinvar(nr,'&diff')
+ if nr != winnr()
+ execute nr.'wincmd w'
+ let restorewinnr = 1
+ endif
+ if exists('b:git_dir') && b:git_dir ==# a:dir
+ call s:diffoff()
+ endif
+ endif
+ endfor
+endfunction
+
+function! s:buffer_compare_age(commit) dict abort
+ let scores = {':0': 1, ':1': 2, ':2': 3, ':': 4, ':3': 5}
+ let my_score = get(scores,':'.self.commit(),0)
+ let their_score = get(scores,':'.a:commit,0)
+ if my_score || their_score
+ return my_score < their_score ? -1 : my_score != their_score
+ elseif self.commit() ==# a:commit
+ return 0
+ endif
+ let base = self.repo().git_chomp('merge-base',self.commit(),a:commit)
+ if base ==# self.commit()
+ return -1
+ elseif base ==# a:commit
+ return 1
+ endif
+ let my_time = +self.repo().git_chomp('log','--max-count=1','--pretty=format:%at',self.commit())
+ let their_time = +self.repo().git_chomp('log','--max-count=1','--pretty=format:%at',a:commit)
+ return my_time < their_time ? -1 : my_time != their_time
+endfunction
+
+call s:add_methods('buffer',['compare_age'])
+
+function! s:Diff(bang,...) abort
+ let vert = a:bang ? '' : 'vertical '
+ if exists(':DiffGitCached')
+ return 'DiffGitCached'
+ elseif (!a:0 || a:1 == ':') && s:buffer().commit() =~# '^[0-1]\=$' && s:repo().git_chomp_in_tree('ls-files', '--unmerged', '--', s:buffer().path()) !=# ''
+ let nr = bufnr('')
+ execute 'leftabove '.vert.'split `=fugitive#buffer().repo().translate(s:buffer().expand('':2''))`'
+ execute 'nnoremap <buffer> <silent> dp :diffput '.nr.'<Bar>diffupdate<CR>'
+ call s:diffthis()
+ wincmd p
+ execute 'rightbelow '.vert.'split `=fugitive#buffer().repo().translate(s:buffer().expand('':3''))`'
+ execute 'nnoremap <buffer> <silent> dp :diffput '.nr.'<Bar>diffupdate<CR>'
+ call s:diffthis()
+ wincmd p
+ call s:diffthis()
+ return ''
+ elseif a:0
+ let arg = join(a:000, ' ')
+ if arg ==# ''
+ return ''
+ elseif arg ==# '/'
+ let file = s:buffer().path('/')
+ elseif arg ==# ':'
+ let file = s:buffer().path(':0:')
+ elseif arg =~# '^:/.'
+ try
+ let file = s:repo().rev_parse(arg).s:buffer().path(':')
+ catch /^fugitive:/
+ return 'echoerr v:errmsg'
+ endtry
+ else
+ let file = s:buffer().expand(arg)
+ endif
+ if file !~# ':' && file !~# '^/' && s:repo().git_chomp('cat-file','-t',file) =~# '^\%(tag\|commit\)$'
+ let file = file.s:buffer().path(':')
+ endif
+ else
+ let file = s:buffer().path(s:buffer().commit() == '' ? ':0:' : '/')
+ endif
+ try
+ let spec = s:repo().translate(file)
+ let commit = matchstr(spec,'\C[^:/]//\zs\x\+')
+ let restore = s:diff_restore()
+ if exists('+cursorbind')
+ setlocal cursorbind
+ endif
+ let w:fugitive_diff_restore = restore
+ if s:buffer().compare_age(commit) < 0
+ execute 'rightbelow '.vert.'diffsplit '.s:fnameescape(spec)
+ else
+ execute 'leftabove '.vert.'diffsplit '.s:fnameescape(spec)
+ endif
+ let w:fugitive_diff_restore = restore
+ let winnr = winnr()
+ if getwinvar('#', '&diff')
+ wincmd p
+ call feedkeys("\<C-W>p", 'n')
+ endif
+ return ''
+ catch /^fugitive:/
+ return 'echoerr v:errmsg'
+ endtry
+endfunction
+
+" }}}1
+" Gmove, Gremove {{{1
+
+function! s:Move(force,destination) abort
+ if a:destination =~# '^/'
+ let destination = a:destination[1:-1]
+ else
+ let destination = s:shellslash(fnamemodify(s:sub(a:destination,'[%#]%(:\w)*','\=expand(submatch(0))'),':p'))
+ if destination[0:strlen(s:repo().tree())] ==# s:repo().tree('')
+ let destination = destination[strlen(s:repo().tree('')):-1]
+ endif
+ endif
+ if isdirectory(s:buffer().spec())
+ " Work around Vim parser idiosyncrasy
+ let discarded = s:buffer().setvar('&swapfile',0)
+ endif
+ let message = call(s:repo().git_chomp_in_tree,['mv']+(a:force ? ['-f'] : [])+['--', s:buffer().path(), destination], s:repo())
+ if v:shell_error
+ let v:errmsg = 'fugitive: '.message
+ return 'echoerr v:errmsg'
+ endif
+ let destination = s:repo().tree(destination)
+ if isdirectory(destination)
+ let destination = fnamemodify(s:sub(destination,'/$','').'/'.expand('%:t'),':.')
+ endif
+ call fugitive#reload_status()
+ if s:buffer().commit() == ''
+ if isdirectory(destination)
+ return 'keepalt edit '.s:fnameescape(destination)
+ else
+ return 'keepalt saveas! '.s:fnameescape(destination)
+ endif
+ else
+ return 'file '.s:fnameescape(s:repo().translate(':0:'.destination))
+ endif
+endfunction
+
+function! s:MoveComplete(A,L,P) abort
+ if a:A =~ '^/'
+ return s:repo().superglob(a:A)
+ else
+ let matches = split(glob(a:A.'*'),"\n")
+ call map(matches,'v:val !~ "/$" && isdirectory(v:val) ? v:val."/" : v:val')
+ return matches
+ endif
+endfunction
+
+function! s:Remove(force) abort
+ if s:buffer().commit() ==# ''
+ let cmd = ['rm']
+ elseif s:buffer().commit() ==# '0'
+ let cmd = ['rm','--cached']
+ else
+ let v:errmsg = 'fugitive: rm not supported here'
+ return 'echoerr v:errmsg'
+ endif
+ if a:force
+ let cmd += ['--force']
+ endif
+ let message = call(s:repo().git_chomp_in_tree,cmd+['--',s:buffer().path()],s:repo())
+ if v:shell_error
+ let v:errmsg = 'fugitive: '.s:sub(message,'error:.*\zs\n\(.*-f.*',' (add ! to force)')
+ return 'echoerr '.string(v:errmsg)
+ else
+ call fugitive#reload_status()
+ return 'bdelete'.(a:force ? '!' : '')
+ endif
+endfunction
+
+augroup fugitive_remove
+ autocmd!
+ autocmd User Fugitive if s:buffer().commit() =~# '^0\=$' |
+ \ exe "command! -buffer -bar -bang -nargs=1 -complete=customlist,s:MoveComplete Gmove :execute s:Move(<bang>0,<q-args>)" |
+ \ exe "command! -buffer -bar -bang Gremove :execute s:Remove(<bang>0)" |
+ \ endif
+augroup END
+
+" }}}1
+" Gblame {{{1
+
+augroup fugitive_blame
+ autocmd!
+ autocmd BufReadPost *.fugitiveblame setfiletype fugitiveblame
+ autocmd FileType fugitiveblame setlocal nomodeline | if exists('b:git_dir') | let &l:keywordprg = s:repo().keywordprg() | endif
+ autocmd Syntax fugitiveblame call s:BlameSyntax()
+ autocmd User Fugitive if s:buffer().type('file', 'blob') | exe "command! -buffer -bar -bang -range=0 -nargs=* Gblame :execute s:Blame(<bang>0,<line1>,<line2>,<count>,[<f-args>])" | endif
+augroup END
+
+function! s:linechars(pattern) abort
+ let chars = strlen(s:gsub(matchstr(getline('.'), a:pattern), '.', '.'))
+ if exists('*synconcealed') && &conceallevel > 1
+ for col in range(1, chars)
+ let chars -= synconcealed(line('.'), col)[0]
+ endfor
+ endif
+ return chars
+endfunction
+
+function! s:Blame(bang,line1,line2,count,args) abort
+ try
+ if s:buffer().path() == ''
+ call s:throw('file or blob required')
+ endif
+ if filter(copy(a:args),'v:val !~# "^\\%(--root\|--show-name\\|-\\=\\%([ltfnsew]\\|[MC]\\d*\\)\\+\\)$"') != []
+ call s:throw('unsupported option')
+ endif
+ call map(a:args,'s:sub(v:val,"^\\ze[^-]","-")')
+ let cmd = ['--no-pager', 'blame', '--show-number'] + a:args
+ if s:buffer().commit() =~# '\D\|..'
+ let cmd += [s:buffer().commit()]
+ else
+ let cmd += ['--contents', '-']
+ endif
+ let cmd += ['--', s:buffer().path()]
+ let basecmd = escape(call(s:repo().git_command,cmd,s:repo()),'!')
+ try
+ let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd '
+ if !s:repo().bare()
+ let dir = getcwd()
+ execute cd.'`=s:repo().tree()`'
+ endif
+ if a:count
+ execute 'write !'.substitute(basecmd,' blame ',' blame -L '.a:line1.','.a:line2.' ','g')
+ else
+ let error = resolve(tempname())
+ let temp = error.'.fugitiveblame'
+ if &shell =~# 'csh'
+ silent! execute '%write !('.basecmd.' > '.temp.') >& '.error
+ else
+ silent! execute '%write !'.basecmd.' > '.temp.' 2> '.error
+ endif
+ if exists('l:dir')
+ execute cd.'`=dir`'
+ unlet dir
+ endif
+ if v:shell_error
+ call s:throw(join(readfile(error),"\n"))
+ endif
+ for winnr in range(winnr('$'),1,-1)
+ call setwinvar(winnr, '&scrollbind', 0)
+ if getbufvar(winbufnr(winnr), 'fugitive_blamed_bufnr')
+ execute winbufnr(winnr).'bdelete'
+ endif
+ endfor
+ let bufnr = bufnr('')
+ let restore = 'call setwinvar(bufwinnr('.bufnr.'),"&scrollbind",0)'
+ if &l:wrap
+ let restore .= '|call setwinvar(bufwinnr('.bufnr.'),"&wrap",1)'
+ endif
+ if &l:foldenable
+ let restore .= '|call setwinvar(bufwinnr('.bufnr.'),"&foldenable",1)'
+ endif
+ setlocal scrollbind nowrap nofoldenable
+ let top = line('w0') + &scrolloff
+ let current = line('.')
+ let s:temp_files[temp] = { 'dir': s:repo().dir(), 'args': cmd }
+ exe 'keepalt leftabove vsplit '.temp
+ let b:fugitive_blamed_bufnr = bufnr
+ let w:fugitive_leave = restore
+ let b:fugitive_blame_arguments = join(a:args,' ')
+ execute top
+ normal! zt
+ execute current
+ setlocal nomodified nomodifiable nonumber scrollbind nowrap foldcolumn=0 nofoldenable winfixwidth filetype=fugitiveblame
+ if exists('+concealcursor')
+ setlocal concealcursor=nc conceallevel=2
+ endif
+ if exists('+relativenumber')
+ setlocal norelativenumber
+ endif
+ execute "vertical resize ".(s:linechars('.\{-\}\ze\s\+\d\+)')+1)
+ nnoremap <buffer> <silent> <F1> :help fugitive-:Gblame<CR>
+ nnoremap <buffer> <silent> g? :help fugitive-:Gblame<CR>
+ nnoremap <buffer> <silent> q :exe substitute(bufwinnr(b:fugitive_blamed_bufnr).' wincmd w<Bar>'.bufnr('').'bdelete','^-1','','')<CR>
+ nnoremap <buffer> <silent> gq :exe substitute(bufwinnr(b:fugitive_blamed_bufnr).' wincmd w<Bar>'.bufnr('').'bdelete<Bar>if expand("%:p") =~# "^fugitive:[\\/][\\/]"<Bar>Gedit<Bar>endif','^-1','','')<CR>
+ nnoremap <buffer> <silent> <CR> :<C-U>exe <SID>BlameCommit("exe 'norm q'<Bar>edit")<CR>
+ nnoremap <buffer> <silent> - :<C-U>exe <SID>BlameJump('')<CR>
+ nnoremap <buffer> <silent> P :<C-U>exe <SID>BlameJump('^'.v:count1)<CR>
+ nnoremap <buffer> <silent> ~ :<C-U>exe <SID>BlameJump('~'.v:count1)<CR>
+ nnoremap <buffer> <silent> i :<C-U>exe <SID>BlameCommit("exe 'norm q'<Bar>edit")<CR>
+ nnoremap <buffer> <silent> o :<C-U>exe <SID>BlameCommit((&splitbelow ? "botright" : "topleft")." split")<CR>
+ nnoremap <buffer> <silent> O :<C-U>exe <SID>BlameCommit("tabedit")<CR>
+ nnoremap <buffer> <silent> A :<C-u>exe "vertical resize ".(<SID>linechars('.\{-\}\ze [0-9:/+-][0-9:/+ -]* \d\+)')+1+v:count)<CR>
+ nnoremap <buffer> <silent> C :<C-u>exe "vertical resize ".(<SID>linechars('^\S\+')+1+v:count)<CR>
+ nnoremap <buffer> <silent> D :<C-u>exe "vertical resize ".(<SID>linechars('.\{-\}\ze\d\ze\s\+\d\+)')+1-v:count)<CR>
+ redraw
+ syncbind
+ endif
+ finally
+ if exists('l:dir')
+ execute cd.'`=dir`'
+ endif
+ endtry
+ return ''
+ catch /^fugitive:/
+ return 'echoerr v:errmsg'
+ endtry
+endfunction
+
+function! s:BlameCommit(cmd) abort
+ let cmd = s:Edit(a:cmd, 0, matchstr(getline('.'),'\x\+'))
+ if cmd =~# '^echoerr'
+ return cmd
+ endif
+ let lnum = matchstr(getline('.'),' \zs\d\+\ze\s\+[([:digit:]]')
+ let path = matchstr(getline('.'),'^\^\=\x\+\s\+\zs.\{-\}\ze\s*\d\+ ')
+ if path ==# ''
+ let path = s:buffer(b:fugitive_blamed_bufnr).path()
+ endif
+ execute cmd
+ if search('^diff .* b/\M'.escape(path,'\').'$','W')
+ call search('^+++')
+ let head = line('.')
+ while search('^@@ \|^diff ') && getline('.') =~# '^@@ '
+ let top = +matchstr(getline('.'),' +\zs\d\+')
+ let len = +matchstr(getline('.'),' +\d\+,\zs\d\+')
+ if lnum >= top && lnum <= top + len
+ let offset = lnum - top
+ if &scrolloff
+ +
+ normal! zt
+ else
+ normal! zt
+ +
+ endif
+ while offset > 0 && line('.') < line('$')
+ +
+ if getline('.') =~# '^[ +]'
+ let offset -= 1
+ endif
+ endwhile
+ return 'if foldlevel(".")|foldopen!|endif'
+ endif
+ endwhile
+ execute head
+ normal! zt
+ endif
+ return ''
+endfunction
+
+function! s:BlameJump(suffix) abort
+ let commit = matchstr(getline('.'),'^\^\=\zs\x\+')
+ if commit =~# '^0\+$'
+ let commit = ':0'
+ endif
+ let lnum = matchstr(getline('.'),' \zs\d\+\ze\s\+[([:digit:]]')
+ let path = matchstr(getline('.'),'^\^\=\x\+\s\+\zs.\{-\}\ze\s*\d\+ ')
+ if path ==# ''
+ let path = s:buffer(b:fugitive_blamed_bufnr).path()
+ endif
+ let args = b:fugitive_blame_arguments
+ let offset = line('.') - line('w0')
+ let bufnr = bufnr('%')
+ let winnr = bufwinnr(b:fugitive_blamed_bufnr)
+ if winnr > 0
+ exe winnr.'wincmd w'
+ endif
+ execute s:Edit('edit', 0, commit.a:suffix.':'.path)
+ execute lnum
+ if winnr > 0
+ exe bufnr.'bdelete'
+ endif
+ execute 'Gblame '.args
+ execute lnum
+ let delta = line('.') - line('w0') - offset
+ if delta > 0
+ execute 'normal! '.delta."\<C-E>"
+ elseif delta < 0
+ execute 'normal! '.(-delta)."\<C-Y>"
+ endif
+ syncbind
+ return ''
+endfunction
+
+function! s:BlameSyntax() abort
+ let b:current_syntax = 'fugitiveblame'
+ let conceal = has('conceal') ? ' conceal' : ''
+ let arg = exists('b:fugitive_blame_arguments') ? b:fugitive_blame_arguments : ''
+ syn match FugitiveblameBoundary "^\^"
+ syn match FugitiveblameBlank "^\s\+\s\@=" nextgroup=FugitiveblameAnnotation,fugitiveblameOriginalFile,FugitiveblameOriginalLineNumber skipwhite
+ syn match FugitiveblameHash "\%(^\^\=\)\@<=\x\{7,40\}\>" nextgroup=FugitiveblameAnnotation,FugitiveblameOriginalLineNumber,fugitiveblameOriginalFile skipwhite
+ syn match FugitiveblameUncommitted "\%(^\^\=\)\@<=0\{7,40\}\>" nextgroup=FugitiveblameAnnotation,FugitiveblameOriginalLineNumber,fugitiveblameOriginalFile skipwhite
+ syn region FugitiveblameAnnotation matchgroup=FugitiveblameDelimiter start="(" end="\%( \d\+\)\@<=)" contained keepend oneline
+ syn match FugitiveblameTime "[0-9:/+-][0-9:/+ -]*[0-9:/+-]\%( \+\d\+)\)\@=" contained containedin=FugitiveblameAnnotation
+ exec 'syn match FugitiveblameLineNumber " *\d\+)\@=" contained containedin=FugitiveblameAnnotation'.conceal
+ exec 'syn match FugitiveblameOriginalFile " \%(\f\+\D\@<=\|\D\@=\f\+\)\%(\%(\s\+\d\+\)\=\s\%((\|\s*\d\+)\)\)\@=" contained nextgroup=FugitiveblameOriginalLineNumber,FugitiveblameAnnotation skipwhite'.(arg =~# 'f' ? '' : conceal)
+ exec 'syn match FugitiveblameOriginalLineNumber " *\d\+\%(\s(\)\@=" contained nextgroup=FugitiveblameAnnotation skipwhite'.(arg =~# 'n' ? '' : conceal)
+ exec 'syn match FugitiveblameOriginalLineNumber " *\d\+\%(\s\+\d\+)\)\@=" contained nextgroup=FugitiveblameShort skipwhite'.(arg =~# 'n' ? '' : conceal)
+ syn match FugitiveblameShort " \d\+)" contained contains=FugitiveblameLineNumber
+ syn match FugitiveblameNotCommittedYet "(\@<=Not Committed Yet\>" contained containedin=FugitiveblameAnnotation
+ hi def link FugitiveblameBoundary Keyword
+ hi def link FugitiveblameHash Identifier
+ hi def link FugitiveblameUncommitted Function
+ hi def link FugitiveblameTime PreProc
+ hi def link FugitiveblameLineNumber Number
+ hi def link FugitiveblameOriginalFile String
+ hi def link FugitiveblameOriginalLineNumber Float
+ hi def link FugitiveblameShort FugitiveblameDelimiter
+ hi def link FugitiveblameDelimiter Delimiter
+ hi def link FugitiveblameNotCommittedYet Comment
+endfunction
+
+" }}}1
+" Gbrowse {{{1
+
+call s:command("-bar -bang -range -nargs=* -complete=customlist,s:EditComplete Gbrowse :execute s:Browse(<bang>0,<line1>,<count>,<f-args>)")
+
+function! s:Browse(bang,line1,count,...) abort
+ try
+ let rev = a:0 ? substitute(join(a:000, ' '),'@[[:alnum:]_-]*\%(://.\{-\}\)\=$','','') : ''
+ if rev ==# ''
+ let expanded = s:buffer().rev()
+ elseif rev ==# ':'
+ let expanded = s:buffer().path('/')
+ else
+ let expanded = s:buffer().expand(rev)
+ endif
+ let full = s:repo().translate(expanded)
+ let commit = ''
+ if full =~# '^fugitive://'
+ let commit = matchstr(full,'://.*//\zs\w\+')
+ let path = matchstr(full,'://.*//\w\+\zs/.*')
+ if commit =~ '..'
+ let type = s:repo().git_chomp('cat-file','-t',commit.s:sub(path,'^/',':'))
+ else
+ let type = 'blob'
+ endif
+ let path = path[1:-1]
+ elseif s:repo().bare()
+ let path = '.git/' . full[strlen(s:repo().dir())+1:-1]
+ let type = ''
+ else
+ let path = full[strlen(s:repo().tree())+1:-1]
+ if path =~# '^\.git/'
+ let type = ''
+ elseif isdirectory(full)
+ let type = 'tree'
+ else
+ let type = 'blob'
+ endif
+ endif
+ if path =~# '^\.git/.*HEAD' && filereadable(s:repo().dir(path[5:-1]))
+ let body = readfile(s:repo().dir(path[5:-1]))[0]
+ if body =~# '^\x\{40\}$'
+ let commit = body
+ let type = 'commit'
+ let path = ''
+ elseif body =~# '^ref: refs/'
+ let path = '.git/' . matchstr(body,'ref: \zs.*')
+ endif
+ endif
+
+ if a:0 && join(a:000, ' ') =~# '@[[:alnum:]_-]*\%(://.\{-\}\)\=$'
+ let remote = matchstr(join(a:000, ' '),'@\zs[[:alnum:]_-]\+\%(://.\{-\}\)\=$')
+ elseif path =~# '^\.git/refs/remotes/.'
+ let remote = matchstr(path,'^\.git/refs/remotes/\zs[^/]\+')
+ else
+ let remote = 'origin'
+ let branch = matchstr(rev,'^[[:alnum:]/._-]\+\ze[:^~@]')
+ if branch ==# '' && path =~# '^\.git/refs/\w\+/'
+ let branch = s:sub(path,'^\.git/refs/\w+/','')
+ endif
+ if filereadable(s:repo().dir('refs/remotes/'.branch))
+ let remote = matchstr(branch,'[^/]\+')
+ let rev = rev[strlen(remote)+1:-1]
+ else
+ if branch ==# ''
+ let branch = matchstr(s:repo().head_ref(),'\<refs/heads/\zs.*')
+ endif
+ if branch != ''
+ let remote = s:repo().git_chomp('config','branch.'.branch.'.remote')
+ if remote =~# '^\.\=$'
+ let remote = 'origin'
+ elseif rev[0:strlen(branch)-1] ==# branch && rev[strlen(branch)] =~# '[:^~@]'
+ let rev = s:repo().git_chomp('config','branch.'.branch.'.merge')[11:-1] . rev[strlen(branch):-1]
+ endif
+ endif
+ endif
+ endif
+
+ let raw = s:repo().git_chomp('config','remote.'.remote.'.url')
+ if raw ==# ''
+ let raw = remote
+ endif
+
+ let url = s:github_url(s:repo(),raw,rev,commit,path,type,a:line1,a:count)
+ if url == ''
+ let url = s:instaweb_url(s:repo(),rev,commit,path,type,a:count > 0 ? a:line1 : 0)
+ endif
+
+ if url == ''
+ call s:throw("Instaweb failed to start and '".remote."' is not a GitHub remote")
+ endif
+
+ if a:bang
+ let @* = url
+ return 'echomsg '.string(url)
+ else
+ return 'echomsg '.string(url).'|call fugitive#buffer().repo().git_chomp("web--browse",'.string(url).')'
+ endif
+ catch /^fugitive:/
+ return 'echoerr v:errmsg'
+ endtry
+endfunction
+
+function! s:github_url(repo,url,rev,commit,path,type,line1,line2) abort
+ let path = a:path
+ let domain_pattern = 'github\.com'
+ let domains = exists('g:fugitive_github_domains') ? g:fugitive_github_domains : []
+ for domain in domains
+ let domain_pattern .= '\|' . escape(split(domain, '://')[-1], '.')
+ endfor
+ let repo = matchstr(a:url,'^\%(https\=://\|git://\|git@\)\=\zs\('.domain_pattern.'\)[/:].\{-\}\ze\%(\.git\)\=$')
+ if repo ==# ''
+ return ''
+ endif
+ if index(domains, 'http://' . matchstr(repo, '^[^:/]*')) >= 0
+ let root = 'http://' . s:sub(repo,':','/')
+ else
+ let root = 'https://' . s:sub(repo,':','/')
+ endif
+ if path =~# '^\.git/refs/heads/'
+ let branch = a:repo.git_chomp('config','branch.'.path[16:-1].'.merge')[11:-1]
+ if branch ==# ''
+ return root . '/commits/' . path[16:-1]
+ else
+ return root . '/commits/' . branch
+ endif
+ elseif path =~# '^\.git/refs/.'
+ return root . '/commits/' . matchstr(path,'[^/]\+$')
+ elseif path =~# '.git/\%(config$\|hooks\>\)'
+ return root . '/admin'
+ elseif path =~# '^\.git\>'
+ return root
+ endif
+ if a:rev =~# '^[[:alnum:]._-]\+:'
+ let commit = matchstr(a:rev,'^[^:]*')
+ elseif a:commit =~# '^\d\=$'
+ let local = matchstr(a:repo.head_ref(),'\<refs/heads/\zs.*')
+ let commit = a:repo.git_chomp('config','branch.'.local.'.merge')[11:-1]
+ if commit ==# ''
+ let commit = local
+ endif
+ else
+ let commit = a:commit
+ endif
+ if a:type == 'tree'
+ let url = s:sub(root . '/tree/' . commit . '/' . path,'/$','')
+ elseif a:type == 'blob'
+ let url = root . '/blob/' . commit . '/' . path
+ if a:line2 > 0 && a:line1 == a:line2
+ let url .= '#L' . a:line1
+ elseif a:line2 > 0
+ let url .= '#L' . a:line1 . '-' . a:line2
+ endif
+ elseif a:type == 'tag'
+ let commit = matchstr(getline(3),'^tag \zs.*')
+ let url = root . '/tree/' . commit
+ else
+ let url = root . '/commit/' . commit
+ endif
+ return url
+endfunction
+
+function! s:instaweb_url(repo,rev,commit,path,type,...) abort
+ let output = a:repo.git_chomp('instaweb','-b','unknown')
+ if output =~# 'http://'
+ let root = matchstr(output,'http://.*').'/?p='.fnamemodify(a:repo.dir(),':t')
+ else
+ return ''
+ endif
+ if a:path =~# '^\.git/refs/.'
+ return root . ';a=shortlog;h=' . matchstr(a:path,'^\.git/\zs.*')
+ elseif a:path =~# '^\.git\>'
+ return root
+ endif
+ let url = root
+ if a:commit =~# '^\x\{40\}$'
+ if a:type ==# 'commit'
+ let url .= ';a=commit'
+ endif
+ let url .= ';h=' . a:repo.rev_parse(a:commit . (a:path == '' ? '' : ':' . a:path))
+ else
+ if a:type ==# 'blob'
+ let tmp = tempname()
+ silent execute 'write !'.a:repo.git_command('hash-object','-w','--stdin').' > '.tmp
+ let url .= ';h=' . readfile(tmp)[0]
+ else
+ try
+ let url .= ';h=' . a:repo.rev_parse((a:commit == '' ? 'HEAD' : ':' . a:commit) . ':' . a:path)
+ catch /^fugitive:/
+ call s:throw('fugitive: cannot browse uncommitted file')
+ endtry
+ endif
+ let root .= ';hb=' . matchstr(a:repo.head_ref(),'[^ ]\+$')
+ endif
+ if a:path !=# ''
+ let url .= ';f=' . a:path
+ endif
+ if a:0 && a:1
+ let url .= '#l' . a:1
+ endif
+ return url
+endfunction
+
+" }}}1
+" File access {{{1
+
+function! s:ReplaceCmd(cmd,...) abort
+ let fn = expand('%:p')
+ let tmp = tempname()
+ let prefix = ''
+ try
+ if a:0 && a:1 != ''
+ if &shell =~# 'cmd' || &shell =~# 'power'
+ let old_index = $GIT_INDEX_FILE
+ let $GIT_INDEX_FILE = a:1
+ else
+ let prefix = 'env GIT_INDEX_FILE='.s:shellesc(a:1).' '
+ endif
+ endif
+ if &shell =~# 'cmd' || &shell =~# 'power'
+ let cmd_escape_char = &shellxquote == '(' ? '^' : '^^^'
+ call system('cmd /c "'.prefix.s:gsub(a:cmd,'[<>]', cmd_escape_char.'&').' > '.tmp.'"')
+ else
+ call system(' ('.prefix.a:cmd.' > '.tmp.') ')
+ endif
+ finally
+ if exists('old_index')
+ let $GIT_INDEX_FILE = old_index
+ endif
+ endtry
+ silent exe 'keepalt file '.tmp
+ try
+ silent edit!
+ finally
+ silent exe 'keepalt file '.s:fnameescape(fn)
+ call delete(tmp)
+ if fnamemodify(bufname('$'), ':p') ==# tmp
+ silent execute 'bwipeout '.bufnr('$')
+ endif
+ silent exe 'doau BufReadPost '.s:fnameescape(fn)
+ endtry
+endfunction
+
+function! s:BufReadIndex() abort
+ if !exists('b:fugitive_display_format')
+ let b:fugitive_display_format = filereadable(expand('%').'.lock')
+ endif
+ let b:fugitive_display_format = b:fugitive_display_format % 2
+ let b:fugitive_type = 'index'
+ try
+ let b:git_dir = s:repo().dir()
+ setlocal noro ma nomodeline
+ if fnamemodify($GIT_INDEX_FILE !=# '' ? $GIT_INDEX_FILE : b:git_dir . '/index', ':p') ==# expand('%:p')
+ let index = ''
+ else
+ let index = expand('%:p')
+ endif
+ if b:fugitive_display_format
+ call s:ReplaceCmd(s:repo().git_command('ls-files','--stage'),index)
+ set ft=git nospell
+ else
+ let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd '
+ let dir = getcwd()
+ if fugitive#git_version() =~# '^0\|^1\.[1-7]\.'
+ let cmd = s:repo().git_command('status')
+ else
+ let cmd = s:repo().git_command(
+ \ '-c', 'status.displayCommentPrefix=true',
+ \ '-c', 'color.status=false',
+ \ 'status')
+ endif
+ try
+ execute cd.'`=s:repo().tree()`'
+ call s:ReplaceCmd(cmd, index)
+ finally
+ execute cd.'`=dir`'
+ endtry
+ set ft=gitcommit
+ set foldtext=fugitive#foldtext()
+ endif
+ setlocal ro noma nomod noswapfile
+ if &bufhidden ==# ''
+ setlocal bufhidden=delete
+ endif
+ call s:JumpInit()
+ nunmap <buffer> P
+ nunmap <buffer> ~
+ nnoremap <buffer> <silent> <C-N> :<C-U>execute <SID>StageNext(v:count1)<CR>
+ nnoremap <buffer> <silent> <C-P> :<C-U>execute <SID>StagePrevious(v:count1)<CR>
+ nnoremap <buffer> <silent> - :<C-U>silent execute <SID>StageToggle(line('.'),line('.')+v:count1-1)<CR>
+ xnoremap <buffer> <silent> - :<C-U>silent execute <SID>StageToggle(line("'<"),line("'>"))<CR>
+ nnoremap <buffer> <silent> a :<C-U>let b:fugitive_display_format += 1<Bar>exe <SID>BufReadIndex()<CR>
+ nnoremap <buffer> <silent> i :<C-U>let b:fugitive_display_format -= 1<Bar>exe <SID>BufReadIndex()<CR>
+ nnoremap <buffer> <silent> C :<C-U>Gcommit<CR>
+ nnoremap <buffer> <silent> cA :<C-U>Gcommit --amend --reuse-message=HEAD<CR>
+ nnoremap <buffer> <silent> ca :<C-U>Gcommit --amend<CR>
+ nnoremap <buffer> <silent> cc :<C-U>Gcommit<CR>
+ nnoremap <buffer> <silent> cva :<C-U>Gcommit --amend --verbose<CR>
+ nnoremap <buffer> <silent> cvc :<C-U>Gcommit --verbose<CR>
+ nnoremap <buffer> <silent> D :<C-U>execute <SID>StageDiff('Gvdiff')<CR>
+ nnoremap <buffer> <silent> dd :<C-U>execute <SID>StageDiff('Gvdiff')<CR>
+ nnoremap <buffer> <silent> dh :<C-U>execute <SID>StageDiff('Gsdiff')<CR>
+ nnoremap <buffer> <silent> ds :<C-U>execute <SID>StageDiff('Gsdiff')<CR>
+ nnoremap <buffer> <silent> dp :<C-U>execute <SID>StageDiffEdit()<CR>
+ nnoremap <buffer> <silent> dv :<C-U>execute <SID>StageDiff('Gvdiff')<CR>
+ nnoremap <buffer> <silent> p :<C-U>execute <SID>StagePatch(line('.'),line('.')+v:count1-1)<CR>
+ xnoremap <buffer> <silent> p :<C-U>execute <SID>StagePatch(line("'<"),line("'>"))<CR>
+ nnoremap <buffer> <silent> q :<C-U>if bufnr('$') == 1<Bar>quit<Bar>else<Bar>bdelete<Bar>endif<CR>
+ nnoremap <buffer> <silent> R :<C-U>edit<CR>
+ nnoremap <buffer> <silent> g? :help fugitive-:Gstatus<CR>
+ nnoremap <buffer> <silent> <F1> :help fugitive-:Gstatus<CR>
+ catch /^fugitive:/
+ return 'echoerr v:errmsg'
+ endtry
+endfunction
+
+function! s:FileRead() abort
+ try
+ let repo = s:repo(fugitive#extract_git_dir(expand('<amatch>')))
+ let path = s:sub(s:sub(matchstr(expand('<amatch>'),'fugitive://.\{-\}//\zs.*'),'/',':'),'^\d:',':&')
+ let hash = repo.rev_parse(path)
+ if path =~ '^:'
+ let type = 'blob'
+ else
+ let type = repo.git_chomp('cat-file','-t',hash)
+ endif
+ " TODO: use count, if possible
+ return "read !".escape(repo.git_command('cat-file',type,hash),'%#\')
+ catch /^fugitive:/
+ return 'echoerr v:errmsg'
+ endtry
+endfunction
+
+function! s:BufReadIndexFile() abort
+ try
+ let b:fugitive_type = 'blob'
+ let b:git_dir = s:repo().dir()
+ try
+ call s:ReplaceCmd(s:repo().git_command('cat-file','blob',s:buffer().sha1()))
+ finally
+ if &bufhidden ==# ''
+ setlocal bufhidden=delete
+ endif
+ setlocal noswapfile
+ endtry
+ return ''
+ catch /^fugitive: rev-parse/
+ silent exe 'doau BufNewFile '.s:fnameescape(expand('%:p'))
+ return ''
+ catch /^fugitive:/
+ return 'echoerr v:errmsg'
+ endtry
+endfunction
+
+function! s:BufWriteIndexFile() abort
+ let tmp = tempname()
+ try
+ let path = matchstr(expand('<amatch>'),'//\d/\zs.*')
+ let stage = matchstr(expand('<amatch>'),'//\zs\d')
+ silent execute 'write !'.s:repo().git_command('hash-object','-w','--stdin').' > '.tmp
+ let sha1 = readfile(tmp)[0]
+ let old_mode = matchstr(s:repo().git_chomp('ls-files','--stage',path),'^\d\+')
+ if old_mode == ''
+ let old_mode = executable(s:repo().tree(path)) ? '100755' : '100644'
+ endif
+ let info = old_mode.' '.sha1.' '.stage."\t".path
+ call writefile([info],tmp)
+ if &shell =~# 'cmd' || &shell =~# 'power'
+ let error = system('type '.s:gsub(tmp,'/','\\').'|'.s:repo().git_command('update-index','--index-info'))
+ else
+ let error = system(s:repo().git_command('update-index','--index-info').' < '.tmp)
+ endif
+ if v:shell_error == 0
+ setlocal nomodified
+ silent execute 'doautocmd BufWritePost '.s:fnameescape(expand('%:p'))
+ call fugitive#reload_status()
+ return ''
+ else
+ return 'echoerr '.string('fugitive: '.error)
+ endif
+ finally
+ call delete(tmp)
+ endtry
+endfunction
+
+function! s:BufReadObject() abort
+ try
+ setlocal noro ma
+ let b:git_dir = s:repo().dir()
+ let hash = s:buffer().sha1()
+ if !exists("b:fugitive_type")
+ let b:fugitive_type = s:repo().git_chomp('cat-file','-t',hash)
+ endif
+ if b:fugitive_type !~# '^\%(tag\|commit\|tree\|blob\)$'
+ return "echoerr 'fugitive: unrecognized git type'"
+ endif
+ let firstline = getline('.')
+ if !exists('b:fugitive_display_format') && b:fugitive_type != 'blob'
+ let b:fugitive_display_format = +getbufvar('#','fugitive_display_format')
+ endif
+
+ if b:fugitive_type !=# 'blob'
+ setlocal nomodeline
+ endif
+
+ let pos = getpos('.')
+ silent keepjumps %delete_
+ setlocal endofline
+
+ try
+ if b:fugitive_type ==# 'tree'
+ let b:fugitive_display_format = b:fugitive_display_format % 2
+ if b:fugitive_display_format
+ call s:ReplaceCmd(s:repo().git_command('ls-tree',hash))
+ else
+ call s:ReplaceCmd(s:repo().git_command('show','--no-color',hash))
+ endif
+ elseif b:fugitive_type ==# 'tag'
+ let b:fugitive_display_format = b:fugitive_display_format % 2
+ if b:fugitive_display_format
+ call s:ReplaceCmd(s:repo().git_command('cat-file',b:fugitive_type,hash))
+ else
+ call s:ReplaceCmd(s:repo().git_command('cat-file','-p',hash))
+ endif
+ elseif b:fugitive_type ==# 'commit'
+ let b:fugitive_display_format = b:fugitive_display_format % 2
+ if b:fugitive_display_format
+ call s:ReplaceCmd(s:repo().git_command('cat-file',b:fugitive_type,hash))
+ else
+ call s:ReplaceCmd(s:repo().git_command('show','--no-color','--pretty=format:tree %T%nparent %P%nauthor %an <%ae> %ad%ncommitter %cn <%ce> %cd%nencoding %e%n%n%s%n%n%b',hash))
+ keepjumps call search('^parent ')
+ if getline('.') ==# 'parent '
+ silent keepjumps delete_
+ else
+ silent keepjumps s/\%(^parent\)\@<! /\rparent /ge
+ endif
+ keepjumps let lnum = search('^encoding \%(<unknown>\)\=$','W',line('.')+3)
+ if lnum
+ silent keepjumps delete_
+ end
+ keepjumps 1
+ endif
+ elseif b:fugitive_type ==# 'blob'
+ call s:ReplaceCmd(s:repo().git_command('cat-file',b:fugitive_type,hash))
+ setlocal nomodeline
+ endif
+ finally
+ keepjumps call setpos('.',pos)
+ setlocal ro noma nomod noswapfile
+ if &bufhidden ==# ''
+ setlocal bufhidden=delete
+ endif
+ if b:fugitive_type !=# 'blob'
+ set filetype=git
+ nnoremap <buffer> <silent> a :<C-U>let b:fugitive_display_format += v:count1<Bar>exe <SID>BufReadObject()<CR>
+ nnoremap <buffer> <silent> i :<C-U>let b:fugitive_display_format -= v:count1<Bar>exe <SID>BufReadObject()<CR>
+ else
+ call s:JumpInit()
+ endif
+ endtry
+
+ return ''
+ catch /^fugitive:/
+ return 'echoerr v:errmsg'
+ endtry
+endfunction
+
+augroup fugitive_files
+ autocmd!
+ autocmd BufReadCmd index{,.lock}
+ \ if fugitive#is_git_dir(expand('<amatch>:p:h')) |
+ \ exe s:BufReadIndex() |
+ \ elseif filereadable(expand('<amatch>')) |
+ \ read <amatch> |
+ \ 1delete |
+ \ endif
+ autocmd FileReadCmd fugitive://**//[0-3]/** exe s:FileRead()
+ autocmd BufReadCmd fugitive://**//[0-3]/** exe s:BufReadIndexFile()
+ autocmd BufWriteCmd fugitive://**//[0-3]/** exe s:BufWriteIndexFile()
+ autocmd BufReadCmd fugitive://**//[0-9a-f][0-9a-f]* exe s:BufReadObject()
+ autocmd FileReadCmd fugitive://**//[0-9a-f][0-9a-f]* exe s:FileRead()
+ autocmd FileType git
+ \ if exists('b:git_dir') |
+ \ call s:JumpInit() |
+ \ endif
+augroup END
+
+" }}}1
+" Temp files {{{1
+
+if !exists('s:temp_files')
+ let s:temp_files = {}
+endif
+
+augroup fugitive_temp
+ autocmd!
+ autocmd BufNewFile,BufReadPost *
+ \ if has_key(s:temp_files,expand('<afile>:p')) |
+ \ let b:git_dir = s:temp_files[expand('<afile>:p')].dir |
+ \ let b:git_type = 'temp' |
+ \ let b:git_args = s:temp_files[expand('<afile>:p')].args |
+ \ call fugitive#detect(expand('<afile>:p')) |
+ \ setlocal bufhidden=delete |
+ \ nnoremap <buffer> <silent> q :<C-U>bdelete<CR>|
+ \ endif
+augroup END
+
+" }}}1
+" Go to file {{{1
+
+function! s:JumpInit() abort
+ nnoremap <buffer> <silent> <CR> :<C-U>exe <SID>GF("edit")<CR>
+ if !&modifiable
+ nnoremap <buffer> <silent> o :<C-U>exe <SID>GF("split")<CR>
+ nnoremap <buffer> <silent> S :<C-U>exe <SID>GF("vsplit")<CR>
+ nnoremap <buffer> <silent> O :<C-U>exe <SID>GF("tabedit")<CR>
+ nnoremap <buffer> <silent> - :<C-U>exe <SID>Edit('edit',0,<SID>buffer().up(v:count1))<Bar> if fugitive#buffer().type('tree')<Bar>call search('^'.escape(expand('#:t'),'.*[]~\').'/\=$','wc')<Bar>endif<CR>
+ nnoremap <buffer> <silent> P :<C-U>exe <SID>Edit('edit',0,<SID>buffer().commit().'^'.v:count1.<SID>buffer().path(':'))<CR>
+ nnoremap <buffer> <silent> ~ :<C-U>exe <SID>Edit('edit',0,<SID>buffer().commit().'~'.v:count1.<SID>buffer().path(':'))<CR>
+ nnoremap <buffer> <silent> C :<C-U>exe <SID>Edit('edit',0,<SID>buffer().containing_commit())<CR>
+ nnoremap <buffer> <silent> cc :<C-U>exe <SID>Edit('edit',0,<SID>buffer().containing_commit())<CR>
+ nnoremap <buffer> <silent> co :<C-U>exe <SID>Edit('split',0,<SID>buffer().containing_commit())<CR>
+ nnoremap <buffer> <silent> cS :<C-U>exe <SID>Edit('vsplit',0,<SID>buffer().containing_commit())<CR>
+ nnoremap <buffer> <silent> cO :<C-U>exe <SID>Edit('tabedit',0,<SID>buffer().containing_commit())<CR>
+ nnoremap <buffer> <silent> cP :<C-U>exe <SID>Edit('pedit',0,<SID>buffer().containing_commit())<CR>
+ nnoremap <buffer> . : <C-R>=fnameescape(<SID>recall())<CR><Home>
+ endif
+endfunction
+
+function! s:GF(mode) abort
+ try
+ let buffer = s:buffer()
+ let myhash = buffer.sha1()
+ if myhash ==# '' && getline(1) =~# '^\%(commit\|tag\) \w'
+ let myhash = matchstr(getline(1),'^\w\+ \zs\S\+')
+ endif
+
+ if buffer.type('tree')
+ let showtree = (getline(1) =~# '^tree ' && getline(2) == "")
+ if showtree && line('.') == 1
+ return ""
+ elseif showtree && line('.') > 2
+ return s:Edit(a:mode,0,buffer.commit().':'.s:buffer().path().(buffer.path() =~# '^$\|/$' ? '' : '/').s:sub(getline('.'),'/$',''))
+ elseif getline('.') =~# '^\d\{6\} \l\{3,8\} \x\{40\}\t'
+ return s:Edit(a:mode,0,buffer.commit().':'.s:buffer().path().(buffer.path() =~# '^$\|/$' ? '' : '/').s:sub(matchstr(getline('.'),'\t\zs.*'),'/$',''))
+ endif
+
+ elseif buffer.type('blob')
+ let ref = expand("<cfile>")
+ try
+ let sha1 = buffer.repo().rev_parse(ref)
+ catch /^fugitive:/
+ endtry
+ if exists('sha1')
+ return s:Edit(a:mode,0,ref)
+ endif
+
+ else
+
+ " Index
+ if getline('.') =~# '^\d\{6\} \x\{40\} \d\t'
+ let ref = matchstr(getline('.'),'\x\{40\}')
+ let file = ':'.s:sub(matchstr(getline('.'),'\d\t.*'),'\t',':')
+ return s:Edit(a:mode,0,file)
+
+ elseif getline('.') =~# '^#\trenamed:.* -> '
+ let file = '/'.matchstr(getline('.'),' -> \zs.*')
+ return s:Edit(a:mode,0,file)
+ elseif getline('.') =~# '^#\t[[:alpha:] ]\+: *.'
+ let file = '/'.matchstr(getline('.'),': *\zs.\{-\}\ze\%( ([^()[:digit:]]\+)\)\=$')
+ return s:Edit(a:mode,0,file)
+ elseif getline('.') =~# '^#\t.'
+ let file = '/'.matchstr(getline('.'),'#\t\zs.*')
+ return s:Edit(a:mode,0,file)
+ elseif getline('.') =~# ': needs merge$'
+ let file = '/'.matchstr(getline('.'),'.*\ze: needs merge$')
+ return s:Edit(a:mode,0,file).'|Gdiff'
+
+ elseif getline('.') ==# '# Not currently on any branch.'
+ return s:Edit(a:mode,0,'HEAD')
+ elseif getline('.') =~# '^# On branch '
+ let file = 'refs/heads/'.getline('.')[12:]
+ return s:Edit(a:mode,0,file)
+ elseif getline('.') =~# "^# Your branch .*'"
+ let file = matchstr(getline('.'),"'\\zs\\S\\+\\ze'")
+ return s:Edit(a:mode,0,file)
+ endif
+
+ let showtree = (getline(1) =~# '^tree ' && getline(2) == "")
+
+ if getline('.') =~# '^ref: '
+ let ref = strpart(getline('.'),5)
+
+ elseif getline('.') =~# '^commit \x\{40\}\>'
+ let ref = matchstr(getline('.'),'\x\{40\}')
+ return s:Edit(a:mode,0,ref)
+
+ elseif getline('.') =~# '^parent \x\{40\}\>'
+ let ref = matchstr(getline('.'),'\x\{40\}')
+ let line = line('.')
+ let parent = 0
+ while getline(line) =~# '^parent '
+ let parent += 1
+ let line -= 1
+ endwhile
+ return s:Edit(a:mode,0,ref)
+
+ elseif getline('.') =~ '^tree \x\{40\}$'
+ let ref = matchstr(getline('.'),'\x\{40\}')
+ if s:repo().rev_parse(myhash.':') == ref
+ let ref = myhash.':'
+ endif
+ return s:Edit(a:mode,0,ref)
+
+ elseif getline('.') =~# '^object \x\{40\}$' && getline(line('.')+1) =~ '^type \%(commit\|tree\|blob\)$'
+ let ref = matchstr(getline('.'),'\x\{40\}')
+ let type = matchstr(getline(line('.')+1),'type \zs.*')
+
+ elseif getline('.') =~# '^\l\{3,8\} '.myhash.'$'
+ return ''
+
+ elseif getline('.') =~# '^\l\{3,8\} \x\{40\}\>'
+ let ref = matchstr(getline('.'),'\x\{40\}')
+ echoerr "warning: unknown context ".matchstr(getline('.'),'^\l*')
+
+ elseif getline('.') =~# '^[+-]\{3\} [ab/]'
+ let ref = getline('.')[4:]
+
+ elseif getline('.') =~# '^[+-]' && search('^@@ -\d\+,\d\+ +\d\+,','bnW')
+ let type = getline('.')[0]
+ let lnum = line('.') - 1
+ let offset = -1
+ while getline(lnum) !~# '^@@ -\d\+,\d\+ +\d\+,'
+ if getline(lnum) =~# '^[ '.type.']'
+ let offset += 1
+ endif
+ let lnum -= 1
+ endwhile
+ let offset += matchstr(getline(lnum), type.'\zs\d\+')
+ let ref = getline(search('^'.type.'\{3\} [ab]/','bnW'))[4:-1]
+ let dcmd = '+'.offset.'|if foldlevel(".")|foldopen!|endif'
+ let dref = ''
+
+ elseif getline('.') =~# '^rename from '
+ let ref = 'a/'.getline('.')[12:]
+ elseif getline('.') =~# '^rename to '
+ let ref = 'b/'.getline('.')[10:]
+
+ elseif getline('.') =~# '^diff --git \%(a/.*\|/dev/null\) \%(b/.*\|/dev/null\)'
+ let dref = matchstr(getline('.'),'\Cdiff --git \zs\%(a/.*\|/dev/null\)\ze \%(b/.*\|/dev/null\)')
+ let ref = matchstr(getline('.'),'\Cdiff --git \%(a/.*\|/dev/null\) \zs\%(b/.*\|/dev/null\)')
+ let dcmd = 'Gdiff'
+
+ elseif getline('.') =~# '^index ' && getline(line('.')-1) =~# '^diff --git \%(a/.*\|/dev/null\) \%(b/.*\|/dev/null\)'
+ let line = getline(line('.')-1)
+ let dref = matchstr(line,'\Cdiff --git \zs\%(a/.*\|/dev/null\)\ze \%(b/.*\|/dev/null\)')
+ let ref = matchstr(line,'\Cdiff --git \%(a/.*\|/dev/null\) \zs\%(b/.*\|/dev/null\)')
+ let dcmd = 'Gdiff!'
+
+ elseif line('$') == 1 && getline('.') =~ '^\x\{40\}$'
+ let ref = getline('.')
+ else
+ let ref = ''
+ endif
+
+ if myhash ==# ''
+ let ref = s:sub(ref,'^a/','HEAD:')
+ let ref = s:sub(ref,'^b/',':0:')
+ if exists('dref')
+ let dref = s:sub(dref,'^a/','HEAD:')
+ endif
+ else
+ let ref = s:sub(ref,'^a/',myhash.'^:')
+ let ref = s:sub(ref,'^b/',myhash.':')
+ if exists('dref')
+ let dref = s:sub(dref,'^a/',myhash.'^:')
+ endif
+ endif
+
+ if ref ==# '/dev/null'
+ " Empty blob
+ let ref = 'e69de29bb2d1d6434b8b29ae775ad8c2e48c5391'
+ endif
+
+ if exists('dref')
+ return s:Edit(a:mode,0,ref) . '|'.dcmd.' '.s:fnameescape(dref)
+ elseif ref != ""
+ return s:Edit(a:mode,0,ref)
+ endif
+
+ endif
+ return ''
+ catch /^fugitive:/
+ return 'echoerr v:errmsg'
+ endtry
+endfunction
+
+" }}}1
+" Statusline {{{1
+
+function! s:repo_head_ref() dict abort
+ if !filereadable(self.dir('HEAD'))
+ return ''
+ endif
+ return readfile(self.dir('HEAD'))[0]
+endfunction
+
+call s:add_methods('repo',['head_ref'])
+
+function! fugitive#statusline(...) abort
+ if !exists('b:git_dir')
+ return ''
+ endif
+ let status = ''
+ if s:buffer().commit() != ''
+ let status .= ':' . s:buffer().commit()[0:7]
+ endif
+ let status .= '('.fugitive#head(7).')'
+ if &statusline =~# '%[MRHWY]' && &statusline !~# '%[mrhwy]'
+ return ',GIT'.status
+ else
+ return '[Git'.status.']'
+ endif
+endfunction
+
+function! fugitive#head(...) abort
+ if !exists('b:git_dir')
+ return ''
+ endif
+
+ return s:repo().head(a:0 ? a:1 : 0)
+endfunction
+
+" }}}1
+" Folding {{{1
+
+function! fugitive#foldtext() abort
+ if &foldmethod !=# 'syntax'
+ return foldtext()
+ elseif getline(v:foldstart) =~# '^diff '
+ let [add, remove] = [-1, -1]
+ let filename = ''
+ for lnum in range(v:foldstart, v:foldend)
+ if filename ==# '' && getline(lnum) =~# '^[+-]\{3\} [abciow12]/'
+ let filename = getline(lnum)[6:-1]
+ endif
+ if getline(lnum) =~# '^+'
+ let add += 1
+ elseif getline(lnum) =~# '^-'
+ let remove += 1
+ elseif getline(lnum) =~# '^Binary '
+ let binary = 1
+ endif
+ endfor
+ if filename ==# ''
+ let filename = matchstr(getline(v:foldstart), '^diff .\{-\} a/\zs.*\ze b/')
+ endif
+ if filename ==# ''
+ let filename = getline(v:foldstart)[5:-1]
+ endif
+ if exists('binary')
+ return 'Binary: '.filename
+ else
+ return (add<10&&remove<100?' ':'') . add . '+ ' . (remove<10&&add<100?' ':'') . remove . '- ' . filename
+ endif
+ elseif getline(v:foldstart) =~# '^# .*:$'
+ let lines = getline(v:foldstart, v:foldend)
+ call filter(lines, 'v:val =~# "^#\t"')
+ cal map(lines,'s:sub(v:val, "^#\t%(modified: +|renamed: +)=", "")')
+ cal map(lines,'s:sub(v:val, "^([[:alpha:] ]+): +(.*)", "\\2 (\\1)")')
+ return getline(v:foldstart).' '.join(lines, ', ')
+ endif
+ return foldtext()
+endfunction
+
+augroup fugitive_foldtext
+ autocmd!
+ autocmd User Fugitive
+ \ if &filetype =~# '^git\%(commit\)\=$' && &foldtext ==# 'foldtext()' |
+ \ set foldtext=fugitive#foldtext() |
+ \ endif
+augroup END
+
+" }}}1
+
+" vim:set et sw=2:
diff --git a/vim/.vim/bundle/vim-startify/.gitignore b/vim/.vim/bundle/vim-startify/.gitignore
new file mode 100644
index 0000000..51e3cf0
--- /dev/null
+++ b/vim/.vim/bundle/vim-startify/.gitignore
@@ -0,0 +1,11 @@
+*
+
+!.gitignore
+!CONTRIBUTING.md
+!LICENSE
+!README.md
+!autoload/startify.vim
+!doc/startify.txt
+!plugin/startify.vim
+!startify.png
+!syntax/startify.vim
diff --git a/vim/.vim/bundle/vim-startify/CONTRIBUTING.md b/vim/.vim/bundle/vim-startify/CONTRIBUTING.md
new file mode 100644
index 0000000..a01753e
--- /dev/null
+++ b/vim/.vim/bundle/vim-startify/CONTRIBUTING.md
@@ -0,0 +1,28 @@
+CONTRIBUTING
+============
+
+If you intend to contribute to this project, please keep some simple rules in
+mind:
+
+ - one commit per feature/fix
+ - the short commit message shouldn't be longer than 50 characters
+ - the short commit message should start with an uppercase character
+ - use the imperative for the short commit message
+ - don't finish the short commit message with a '.'
+ - don't use github-specific syntax to close an issue (I'll do that, when
+ merging into master)
+ - it's always a good idea to have a look at 'git log' to get an idea how to
+ format one's own commits
+ - if you have questions about a certain patch or feature requests, just open
+ a Github issue
+
+Examples
+--------
+
+```
+Bad: "fixed loop to start from 0 instead of 1"
+Good: "Avoid off-by-one issue in skiplist loop"
+
+Bad: "fixed typo"
+Good: "Docs: typo"
+```
diff --git a/vim/.vim/bundle/vim-startify/LICENSE b/vim/.vim/bundle/vim-startify/LICENSE
new file mode 100644
index 0000000..fb241d2
--- /dev/null
+++ b/vim/.vim/bundle/vim-startify/LICENSE
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2013 Marco Hinz
+
+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.
diff --git a/vim/.vim/bundle/vim-startify/README.md b/vim/.vim/bundle/vim-startify/README.md
new file mode 100644
index 0000000..7b26c72
--- /dev/null
+++ b/vim/.vim/bundle/vim-startify/README.md
@@ -0,0 +1,173 @@
+[![Stories in Ready](https://badge.waffle.io/mhinz/vim-startify.png?label=ready&title=Ready)](https://waffle.io/mhinz/vim-startify)
+
+![Example:startify in action](https://github.com/mhinz/vim-startify/raw/master/startify.png)
+
+This is it. A start screen for Vim. _( all features enabled - freely customizable )_
+
+What does it provide?
+---------------------
+
+It does 3 things that will be explained in detail further below:
+
+* it shows lists of files and directories
+* eased session handling
+* powerful menu entry handling
+
+#### 1) It shows things on start!
+
+If you start Vim without giving any filenames or piping text to it, Startify
+will show a pretty start screen that shows a configurable list of files or
+directories:
+
+---
+
+__Custom header__ ( _empty by default_ ):
+
+How about some ASCII art action?
+
+---
+
+__Files from directory__ ( _enabled by default_ ):
+
+This lists all files from the current directory sorted by modification time.
+
+---
+
+__Recently used files__ ( _enabled by default_ ):
+
+This uses the viminfo file to get a list of most recently used files. The list
+can also be filtered.
+
+---
+
+__Sessions__ ( _enabled by default_ ):
+
+This will list all your sessions from a certain directory.
+
+---
+
+__Bookmarks__ ( _empty by default_ ):
+
+Additionally, you can define bookmarks, thus entries for files that always
+should be available on the start screen.
+
+---
+
+__Custom footer__ ( _empty by default_ ):
+
+Same as the custom header.. but at the bottom.
+
+---
+
+See `:h startify-options` for more information.
+
+#### 2) Easy session handling
+
+_Please read and understand `:help 'sessionoptions'` if you work with sessions._
+
+Essentially there are two kinds of supported workflows for handling sessions
+that will be shown here.
+
+---
+
+__a)__ The Startify way.
+
+The handling of loading, saving and deleting sessions is eased by always
+working with one and the same directory. These commands are used for
+convenience:
+
+ :SLoad load a session
+ :SSave save a session
+ :SDelete delete a session
+
+_See `:h startify-commands` for more information._
+
+The advantage of always using the same directory is that Startify can show you a
+list of all your sessions that are scattered around the system.
+
+---
+
+__b)__ The old way.
+
+The old way means using `:mksession` to save a `Session.vim` file to the current
+directory. Imagine a project folder with a Session.vim at its root directory.
+This way makes it very portable.
+
+When Vim gets started and the file Session.vim is found in the current
+directory, it will be shown at the top of all lists as entry `[0]` as a
+shortcut.
+
+If you bookmark a directory (project folder, anyone?) that contains a
+Session.vim, and you access that directory via Startify, that session will be
+loaded automatically.
+
+---
+
+Optionally, there is even support for persistent sessions. Thus you load a
+session via Startify, add some buffers, remove some buffers, change the window
+layout, .. and when you finish and exit Vim, the session will be saved
+automatically. This works for both ways of handling sessions.
+
+_Read `:help startify-options` to learn more about how to configure session
+handling to your liking._
+
+#### 3) Powerful menu handling
+
+You can either navigate the menu by using the usual suspects (`j`, `G`, `}`
+etc.) and hit `<cr>` or just key in whatever is written between the square
+brackets on that line. You can even double-click anywhere on the line.
+
+Moreover, you can open several files at one go! Navigate to an entry and hit
+either `b` (open in same window), `s` (open in split), `v` (open in vertical
+split) or `t` (open in tab) for marking it. You can mark several entries and
+also mix different markers. Afterwards execute all the markers in the order they
+were given via `<cr>`.
+
+In case you don't want to open a file, there is also `e` for creating an empty
+buffer, `i` for creating an empty buffer and jumping into insert mode and `q`
+for quitting.
+
+When one or more files were opened by Startify, it will close automatically. You
+can always reopen the screen via `:Startify`.
+
+Author & Feedback
+-----------------
+
+If you like any of my plugins, please star it on github. That is a great way of
+getting feedback. Same for issues reports or feature requests.
+
+---
+
+Marco Hinz _aka_ mhinz _aka_ mhi^ _aka_ mhi
+
+Mail: `<mh.codebro@gmail.com>`
+
+Twitter: [@_mhinz_](https://twitter.com/_mhinz_)
+
+Stackoverflow: [mhinz](http://stackoverflow.com/users/1606959/mhinz)
+
+---
+
+Thank you for flying mhi airlines. Get your Vim on!
+
+Installation & Documentation
+----------------------------
+
+If you have no preferred installation method, I suggest using tpope's
+[pathogen](https://github.com/tpope/vim-pathogen). Afterwards installing
+vim-startify is as easy as pie:
+
+ $ git clone https://github.com/mhinz/vim-startify ~/.vim/bundle/vim-startify
+ $ vim
+
+It works without any configuration, but you might want to look into the
+documentation for further customization:
+
+ :Helptags " rebuilding tags files
+ :h startify
+ :h startify-faq
+
+License
+-------
+
+MIT license. Copyright (c) 2013 Marco Hinz.
diff --git a/vim/.vim/bundle/vim-startify/startify.png b/vim/.vim/bundle/vim-startify/startify.png
new file mode 100644
index 0000000..f103a40
--- /dev/null
+++ b/vim/.vim/bundle/vim-startify/startify.png
Binary files differ
diff --git a/vim/.vim/colors/monokai.vim b/vim/.vim/colors/monokai.vim
new file mode 100644
index 0000000..6fbadfa
--- /dev/null
+++ b/vim/.vim/colors/monokai.vim
@@ -0,0 +1,107 @@
+" Vim color file
+" Converted from Textmate theme Monokai using Coloration v0.3.2 (http://github.com/sickill/coloration)
+
+set background=dark
+highlight clear
+
+if exists("syntax_on")
+ syntax reset
+endif
+
+let g:colors_name = "monokai"
+
+hi Cursor ctermfg=235 ctermbg=231 cterm=NONE guifg=#272822 guibg=#f8f8f0 gui=NONE
+hi Visual ctermfg=NONE ctermbg=59 cterm=NONE guifg=NONE guibg=#49483e gui=NONE
+hi CursorLine ctermfg=NONE ctermbg=237 cterm=NONE guifg=NONE guibg=#3c3d37 gui=NONE
+hi CursorColumn ctermfg=NONE ctermbg=237 cterm=NONE guifg=NONE guibg=#3c3d37 gui=NONE
+hi ColorColumn ctermfg=NONE ctermbg=237 cterm=NONE guifg=NONE guibg=#3c3d37 gui=NONE
+hi LineNr ctermfg=102 ctermbg=237 cterm=NONE guifg=#90908a guibg=#3c3d37 gui=NONE
+hi VertSplit ctermfg=241 ctermbg=241 cterm=NONE guifg=#64645e guibg=#64645e gui=NONE
+hi MatchParen ctermfg=197 ctermbg=NONE cterm=underline guifg=#f92672 guibg=NONE gui=underline
+hi StatusLine ctermfg=231 ctermbg=241 cterm=bold guifg=#f8f8f2 guibg=#64645e gui=bold
+hi StatusLineNC ctermfg=231 ctermbg=241 cterm=NONE guifg=#f8f8f2 guibg=#64645e gui=NONE
+hi Pmenu ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi PmenuSel ctermfg=NONE ctermbg=59 cterm=NONE guifg=NONE guibg=#49483e gui=NONE
+hi IncSearch ctermfg=235 ctermbg=186 cterm=NONE guifg=#272822 guibg=#e6db74 gui=NONE
+hi Search ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline
+hi Directory ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
+hi Folded ctermfg=242 ctermbg=235 cterm=NONE guifg=#75715e guibg=#272822 gui=NONE
+
+hi Normal ctermfg=231 ctermbg=235 cterm=NONE guifg=#f8f8f2 guibg=#272822 gui=NONE
+hi Boolean ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
+hi Character ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
+hi Comment ctermfg=242 ctermbg=NONE cterm=NONE guifg=#75715e guibg=NONE gui=NONE
+hi Conditional ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
+hi Constant ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi Define ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
+hi DiffAdd ctermfg=231 ctermbg=64 cterm=bold guifg=#f8f8f2 guibg=#46830c gui=bold
+hi DiffDelete ctermfg=88 ctermbg=NONE cterm=NONE guifg=#8b0807 guibg=NONE gui=NONE
+hi DiffChange ctermfg=231 ctermbg=23 cterm=NONE guifg=#f8f8f2 guibg=#243955 gui=NONE
+hi DiffText ctermfg=231 ctermbg=24 cterm=bold guifg=#f8f8f2 guibg=#204a87 gui=bold
+hi ErrorMsg ctermfg=231 ctermbg=197 cterm=NONE guifg=#f8f8f0 guibg=#f92672 gui=NONE
+hi WarningMsg ctermfg=231 ctermbg=197 cterm=NONE guifg=#f8f8f0 guibg=#f92672 gui=NONE
+hi Float ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
+hi Function ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE
+hi Identifier ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic
+hi Keyword ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
+hi Label ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE
+hi NonText ctermfg=59 ctermbg=236 cterm=NONE guifg=#49483e guibg=#31322c gui=NONE
+hi Number ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
+hi Operator ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
+hi PreProc ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
+hi Special ctermfg=231 ctermbg=NONE cterm=NONE guifg=#f8f8f2 guibg=NONE gui=NONE
+hi SpecialKey ctermfg=59 ctermbg=237 cterm=NONE guifg=#49483e guibg=#3c3d37 gui=NONE
+hi Statement ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
+hi StorageClass ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic
+hi String ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE
+hi Tag ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
+hi Title ctermfg=231 ctermbg=NONE cterm=bold guifg=#f8f8f2 guibg=NONE gui=bold
+hi Todo ctermfg=95 ctermbg=NONE cterm=inverse,bold guifg=#75715e guibg=NONE gui=inverse,bold
+hi Type ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi Underlined ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline
+hi rubyClass ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
+hi rubyFunction ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE
+hi rubyInterpolationDelimiter ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi rubySymbol ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
+hi rubyConstant ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic
+hi rubyStringDelimiter ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE
+hi rubyBlockParameter ctermfg=208 ctermbg=NONE cterm=NONE guifg=#fd971f guibg=NONE gui=italic
+hi rubyInstanceVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi rubyInclude ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
+hi rubyGlobalVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi rubyRegexp ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE
+hi rubyRegexpDelimiter ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE
+hi rubyEscape ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
+hi rubyControl ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
+hi rubyClassVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi rubyOperator ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
+hi rubyException ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
+hi rubyPseudoVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi rubyRailsUserClass ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic
+hi rubyRailsARAssociationMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
+hi rubyRailsARMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
+hi rubyRailsRenderMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
+hi rubyRailsMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
+hi erubyDelimiter ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi erubyComment ctermfg=95 ctermbg=NONE cterm=NONE guifg=#75715e guibg=NONE gui=NONE
+hi erubyRailsMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
+hi htmlTag ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi htmlEndTag ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi htmlTagName ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi htmlArg ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi htmlSpecialChar ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
+hi javaScriptFunction ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic
+hi javaScriptRailsFunction ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
+hi javaScriptBraces ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi yamlKey ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
+hi yamlAnchor ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi yamlAlias ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
+hi yamlDocumentHeader ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE
+hi cssURL ctermfg=208 ctermbg=NONE cterm=NONE guifg=#fd971f guibg=NONE gui=italic
+hi cssFunctionName ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
+hi cssColor ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
+hi cssPseudoClassId ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE
+hi cssClassName ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE
+hi cssValueLength ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
+hi cssCommonAttr ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
+hi cssBraces ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
diff --git a/vim/.vimrc b/vim/.vimrc
new file mode 100644
index 0000000..1617565
--- /dev/null
+++ b/vim/.vimrc
@@ -0,0 +1,46 @@
+"█▓▒░ autoload
+execute pathogen#infect()
+
+let g:airline#extensions#tabline#enabled = 1
+let g:airline_powerline_fonts = 0
+let g:airline_theme = 'tomorrow'
+let g:airline_enable_branch = 1
+let g:airline_enable_syntastic = 1
+
+if !exists('g:airline_symbols')
+ let g:airline_symbols = {}
+endif
+let g:airline_left_sep = '▒'
+let g:airline_left_alt_sep = '▒'
+let g:airline_right_sep = '▒'
+let g:airline_right_alt_sep = '▒'
+let g:airline_symbols.branch = '⎇'
+let g:airline_symbols.linenr = '░'
+let g:airline_symbols.linenr = '░'
+let g:airline_symbols.linenr = '░'
+let g:airline_symbols.branch = '⎇'
+let g:airline_symbols.paste = 'ρ'
+let g:airline_symbols.paste = 'Þ'
+let g:airline_symbols.paste = '∥'
+let g:airline_symbols.whitespace = '░'
+let g:airline_symbols.readonly = 'x'
+
+let g:startify_custom_header = [
+ \ '',
+ \ ' ██ ██ ████ ██ ',
+ \ ' ░██ ░██ ░██░ ░░ ',
+ \ ' █████ ░██ ██ ██ ██████ ██████ ██████ ██ ██ ██ ██████████ ',
+ \ ' ██░░░██ ░██░██ ░██░░░██░ ██░░░░██░░░██░ ░██ ░██░██░░██░░██░░██',
+ \ '░██ ░░ ░██░██ ░██ ░██ ░██ ░██ ░██ ░░██ ░██ ░██ ░██ ░██ ░██',
+ \ '░██ ██ ░██░██ ░██ ░██ ░██ ░██ ░██ ░░████ ░██ ░██ ░██ ░██',
+ \ '░░█████ ███░░██████ ░░██ ░░██████ ░██ ░░██ ░██ ███ ░██ ░██',
+ \ ' ░░░░░ ░░░ ░░░░░░ ░░ ░░░░░░ ░░ ░░ ░░ ░░░ ░░ ░░ ',
+ \ '',
+ \ ]
+
+set laststatus=2
+set lazyredraw
+
+syntax on
+colorscheme monokai
+filetype plugin indent on