aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin/Powerline.vim
diff options
context:
space:
mode:
authorBen Beltran <ben@freshout.us>2013-04-23 08:46:40 -0500
committerBen Beltran <ben@freshout.us>2013-04-23 08:46:40 -0500
commit5fab93bf6c853f0f37d30f9cb91a0760d3e006cb (patch)
treef1d69f20fa36b2998ee9774074c6f5d0b10a4776 /vim/plugin/Powerline.vim
parent400b7c363c615dca6674a0381122d35f0949b6e6 (diff)
parent577b791c99b07471ec27e1f9c09e756a6f1da0cd (diff)
Merge branch 'master' of github.com:benbeltran/dotfiles
Diffstat (limited to 'vim/plugin/Powerline.vim')
-rw-r--r--vim/plugin/Powerline.vim56
1 files changed, 0 insertions, 56 deletions
diff --git a/vim/plugin/Powerline.vim b/vim/plugin/Powerline.vim
deleted file mode 100644
index 12b4204..0000000
--- a/vim/plugin/Powerline.vim
+++ /dev/null
@@ -1,56 +0,0 @@
-" Powerline - The ultimate statusline utility
-"
-" Author: Kim Silkebækken <kim.silkebaekken+vim@gmail.com>
-" Source repository: https://github.com/Lokaltog/vim-powerline
-
-" Script initialization {{{
- if exists('g:Powerline_loaded') || &compatible || version < 702
- finish
- endif
-
- let g:Powerline_loaded = 1
-" }}}
-" Commands {{{
- command! PowerlineClearCache call Pl#ClearCache()
- command! PowerlineReloadColorscheme call Pl#ReloadColorscheme()
-" }}}
-" Set default options {{{
- for [s:key, s:value] in items({
- \ 'theme' : 'default'
- \ , 'colorscheme' : 'default'
- \ , 'symbols' : 'compatible'
- \ , 'cache_enabled': 1
- \ })
-
- if ! exists('g:Powerline_' . s:key)
- exec printf('let g:Powerline_%s = %s', s:key, string(s:value))
- endif
- endfor
-
- if ! exists('g:Powerline_cache_file')
- exec 'let g:Powerline_cache_file = '. string(printf('%s/Powerline_%s_%s_%s.cache'
- \ , simplify(expand('<sfile>:p:h') .'/..')
- \ , g:Powerline_theme
- \ , g:Powerline_colorscheme
- \ , g:Powerline_symbols
- \ ))
- endif
-" }}}
-" Autocommands {{{
- augroup Powerline
- autocmd!
-
- " Reload statuslines when changing color scheme
- au ColorScheme *
- \ call Pl#Load()
-
- au BufEnter,WinEnter,FileType,BufUnload *
- \ call Pl#UpdateStatusline(1)
-
- au BufLeave,WinLeave *
- \ call Pl#UpdateStatusline(0)
-
- au BufWritePost */autoload/Powerline/Colorschemes/*.vim
- \ :PowerlineReloadColorscheme
- augroup END
-" }}}