aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/.netrwhist3
-rw-r--r--vim/autoload/Powerline/Colorschemes/default.vim161
-rw-r--r--vim/autoload/Powerline/Functions.vim90
-rw-r--r--vim/autoload/Powerline/Functions/cfi.vim3
-rw-r--r--vim/autoload/Powerline/Functions/ft_man.vim12
-rw-r--r--vim/autoload/Powerline/Functions/fugitive.vim7
-rw-r--r--vim/autoload/Powerline/Functions/syntastic.vim16
-rw-r--r--vim/autoload/Powerline/Matches.vim13
-rw-r--r--vim/autoload/Powerline/Segments.vim28
-rw-r--r--vim/autoload/Powerline/Segments/cfi.vim5
-rw-r--r--vim/autoload/Powerline/Segments/ctrlp.vim10
-rw-r--r--vim/autoload/Powerline/Segments/ft_man.vim3
-rw-r--r--vim/autoload/Powerline/Segments/fugitive.vim5
-rw-r--r--vim/autoload/Powerline/Segments/rvm.vim5
-rw-r--r--vim/autoload/Powerline/Segments/syntastic.vim5
-rw-r--r--vim/autoload/Powerline/Segments/virtualenv.vim5
-rw-r--r--vim/autoload/Powerline/Themes/default.vim114
-rw-r--r--vim/doc/Powerline.txt322
-rw-r--r--vim/plugin/Powerline.vim56
19 files changed, 2 insertions, 861 deletions
diff --git a/vim/.netrwhist b/vim/.netrwhist
index 6e853d2..03884d9 100644
--- a/vim/.netrwhist
+++ b/vim/.netrwhist
@@ -1,5 +1,6 @@
let g:netrw_dirhistmax =10
-let g:netrw_dirhist_cnt =3
+let g:netrw_dirhist_cnt =4
let g:netrw_dirhist_1='/Users/benbeltran/.newsbeuter'
let g:netrw_dirhist_2='/Users/benbeltran/.vim'
let g:netrw_dirhist_3='/Users/benbeltran/.dotfiles/tmux-powerline'
+let g:netrw_dirhist_4='/Users/benbeltran/.config'
diff --git a/vim/autoload/Powerline/Colorschemes/default.vim b/vim/autoload/Powerline/Colorschemes/default.vim
deleted file mode 100644
index 1452cf4..0000000
--- a/vim/autoload/Powerline/Colorschemes/default.vim
+++ /dev/null
@@ -1,161 +0,0 @@
-call Pl#Hi#Allocate({
- \ 'black' : 16,
- \ 'white' : 231,
- \
- \ 'darkestgreen' : 22,
- \ 'darkgreen' : 28,
- \ 'mediumgreen' : 70,
- \ 'brightgreen' : 148,
- \
- \ 'darkestcyan' : 23,
- \ 'mediumcyan' : 117,
- \
- \ 'darkestblue' : 24,
- \ 'darkblue' : 31,
- \
- \ 'darkestred' : 52,
- \ 'darkred' : 88,
- \ 'mediumred' : 124,
- \ 'brightred' : 160,
- \ 'brightestred' : 196,
- \
- \ 'darkestpurple' : 55,
- \ 'mediumpurple' : 98,
- \ 'brightpurple' : 189,
- \
- \ 'brightorange' : 208,
- \ 'brightestorange': 214,
- \
- \ 'gray0' : 233,
- \ 'gray1' : 235,
- \ 'gray2' : 236,
- \ 'gray3' : 239,
- \ 'gray4' : 240,
- \ 'gray5' : 241,
- \ 'gray6' : 244,
- \ 'gray7' : 245,
- \ 'gray8' : 247,
- \ 'gray9' : 250,
- \ 'gray10' : 252,
- \ })
-
-let g:Powerline#Colorschemes#default#colorscheme = Pl#Colorscheme#Init([
- \ Pl#Hi#Segments(['SPLIT'], {
- \ 'n': ['white', 'gray2'],
- \ 'N': ['white', 'gray0'],
- \ 'i': ['white', 'darkestblue'],
- \ }),
- \
- \ Pl#Hi#Segments(['mode_indicator'], {
- \ 'n': ['darkestgreen', 'brightgreen', ['bold']],
- \ 'i': ['darkestcyan', 'white', ['bold']],
- \ 'v': ['darkred', 'brightorange', ['bold']],
- \ 'r': ['white', 'brightred', ['bold']],
- \ 's': ['white', 'gray5', ['bold']],
- \ }),
- \
- \ Pl#Hi#Segments(['branch', 'scrollpercent', 'raw', 'filesize'], {
- \ 'n': ['gray9', 'gray4'],
- \ 'N': ['gray3', 'gray1'],
- \ 'i': ['mediumcyan', 'darkblue'],
- \ }),
- \
- \ Pl#Hi#Segments(['fileinfo', 'filename'], {
- \ 'n': ['white', 'gray4', ['bold']],
- \ 'N': ['gray7', 'gray1', ['bold']],
- \ 'i': ['white', 'darkblue', ['bold']],
- \ }),
- \
- \ Pl#Hi#Segments(['static_str'], {
- \ 'n': ['white', 'gray4'],
- \ 'N': ['gray7', 'gray1'],
- \ 'i': ['white', 'darkblue'],
- \ }),
- \
- \ Pl#Hi#Segments(['fileinfo.flags'], {
- \ 'n': ['brightestred', ['bold']],
- \ 'N': ['darkred'],
- \ 'i': ['brightestred', ['bold']],
- \ }),
- \
- \ Pl#Hi#Segments(['current_function', 'fileformat', 'fileencoding', 'pwd', 'filetype', 'rvm:string', 'rvm:statusline', 'virtualenv:statusline', 'charcode', 'currhigroup'], {
- \ 'n': ['gray8', 'gray2'],
- \ 'i': ['mediumcyan', 'darkestblue'],
- \ }),
- \
- \ Pl#Hi#Segments(['lineinfo'], {
- \ 'n': ['gray2', 'gray10', ['bold']],
- \ 'N': ['gray7', 'gray1', ['bold']],
- \ 'i': ['darkestcyan', 'mediumcyan', ['bold']],
- \ }),
- \
- \ Pl#Hi#Segments(['errors'], {
- \ 'n': ['brightestorange', 'gray2', ['bold']],
- \ 'i': ['brightestorange', 'darkestblue', ['bold']],
- \ }),
- \
- \ Pl#Hi#Segments(['lineinfo.line.tot'], {
- \ 'n': ['gray6'],
- \ 'N': ['gray5'],
- \ 'i': ['darkestcyan'],
- \ }),
- \
- \ Pl#Hi#Segments(['ws_marker'], {
- \ 'n': ['white', 'brightestred'],
- \ 'i': ['darkestcyan', 'white'],
- \ }),
- \
- \ Pl#Hi#Segments(['gundo:static_str.name', 'command_t:static_str.name'], {
- \ 'n': ['white', 'mediumred', ['bold']],
- \ 'N': ['brightred', 'darkestred', ['bold']],
- \ }),
- \
- \ Pl#Hi#Segments(['gundo:static_str.buffer', 'command_t:raw.line'], {
- \ 'n': ['white', 'darkred'],
- \ 'N': ['brightred', 'darkestred'],
- \ }),
- \
- \ Pl#Hi#Segments(['gundo:SPLIT', 'command_t:SPLIT'], {
- \ 'n': ['white', 'darkred'],
- \ 'N': ['white', 'darkestred'],
- \ }),
- \
- \ Pl#Hi#Segments(['lustyexplorer:static_str.name', 'minibufexplorer.static_str.name', 'nerdtree:raw.name', 'tagbar:static_str.name'], {
- \ 'n': ['white', 'mediumgreen', ['bold']],
- \ 'N': ['mediumgreen', 'darkestgreen', ['bold']],
- \ }),
- \
- \ Pl#Hi#Segments(['lustyexplorer:static_str.buffer', 'tagbar:static_str.buffer'], {
- \ 'n': ['brightgreen', 'darkgreen'],
- \ 'N': ['mediumgreen', 'darkestgreen'],
- \ }),
- \
- \ Pl#Hi#Segments(['lustyexplorer:SPLIT', 'minibufexplorer:SPLIT', 'nerdtree:SPLIT', 'tagbar:SPLIT'], {
- \ 'n': ['white', 'darkgreen'],
- \ 'N': ['white', 'darkestgreen'],
- \ }),
- \
- \ Pl#Hi#Segments(['ctrlp:focus', 'ctrlp:byfname'], {
- \ 'n': ['brightpurple', 'darkestpurple'],
- \ }),
- \
- \ Pl#Hi#Segments(['ctrlp:prev', 'ctrlp:next', 'ctrlp:pwd'], {
- \ 'n': ['white', 'mediumpurple'],
- \ }),
- \
- \ Pl#Hi#Segments(['ctrlp:item'], {
- \ 'n': ['darkestpurple', 'white', ['bold']],
- \ }),
- \
- \ Pl#Hi#Segments(['ctrlp:marked'], {
- \ 'n': ['brightestred', 'darkestpurple', ['bold']],
- \ }),
- \
- \ Pl#Hi#Segments(['ctrlp:count'], {
- \ 'n': ['darkestpurple', 'white'],
- \ }),
- \
- \ Pl#Hi#Segments(['ctrlp:SPLIT'], {
- \ 'n': ['white', 'darkestpurple'],
- \ }),
- \ ])
diff --git a/vim/autoload/Powerline/Functions.vim b/vim/autoload/Powerline/Functions.vim
deleted file mode 100644
index b170ca8..0000000
--- a/vim/autoload/Powerline/Functions.vim
+++ /dev/null
@@ -1,90 +0,0 @@
-" Recalculate the trailing whitespace warning when idle, and after saving
-autocmd CursorHold,BufWritePost,InsertLeave * unlet! b:statusline_trailing_space_warning
-
-function! Powerline#Functions#GetMode() " {{{
- let mode = mode()
-
- if mode =~# '\v(v|V|)'
- " Visual mode
- if mode ==# 'v'
- let mode = 'VISUAL'
- elseif mode ==# 'V'
- let mode = 'V·LINE'
- elseif mode ==# ''
- let mode = 'V·BLOCK'
- endif
- elseif mode =~# '\v(s|S|)'
- " Select mode
- if mode ==# 's'
- let mode = 'SELECT'
- elseif mode ==# 'S'
- let mode = 'S·LINE'
- elseif mode ==# ''
- let mode = 'S·BLOCK'
- endif
- elseif mode =~# '\vi'
- let mode = 'INSERT' " Insert mode
- elseif mode =~# '\v(R|Rv)'
- let mode = 'REPLACE' " Replace mode
- else
- " Fallback to normal mode
- let mode = ' N ' " Normal (current)
- endif
-
- return mode
-endfunction " }}}
-function! Powerline#Functions#GetFilesize() " {{{
- let bytes = getfsize(expand("%:p"))
-
- if bytes <= 0
- return ''
- endif
-
- if bytes < 1024
- return bytes . 'B'
- else
- return (bytes / 1024) . 'kB'
- endif
-endfunction "}}}
-function! Powerline#Functions#GetCharCode() " {{{
- " Get the output of :ascii
- redir => ascii
- silent! ascii
- redir END
-
- if match(ascii, 'NUL') != -1
- return 'NUL'
- endif
-
- " Zero pad hex values
- let nrformat = '0x%02x'
-
- let encoding = (&fenc == '' ? &enc : &fenc)
-
- if encoding == 'utf-8'
- " Zero pad with 4 zeroes in unicode files
- let nrformat = '0x%04x'
- endif
-
- " Get the character and the numeric value from the return value of :ascii
- " This matches the two first pieces of the return value, e.g.
- " "<F> 70" => char: 'F', nr: '70'
- let [str, char, nr; rest] = matchlist(ascii, '\v\<(.{-1,})\>\s*([0-9]+)')
-
- " Format the numeric value
- let nr = printf(nrformat, nr)
-
- return "'". char ."' ". nr
-endfunction "}}}
-function! Powerline#Functions#GetWSMarker() " {{{
- " Return '...' if trailing white space is detected
- " Return '' otherwise
- if ! exists("b:statusline_trailing_space_warning")
- if search('\s$', 'nw') != 0
- let b:statusline_trailing_space_warning = ' … '
- else
- let b:statusline_trailing_space_warning = ''
- endif
- endif
- return b:statusline_trailing_space_warning
-endfunction " }}}
diff --git a/vim/autoload/Powerline/Functions/cfi.vim b/vim/autoload/Powerline/Functions/cfi.vim
deleted file mode 100644
index a7b472c..0000000
--- a/vim/autoload/Powerline/Functions/cfi.vim
+++ /dev/null
@@ -1,3 +0,0 @@
-function! Powerline#Functions#cfi#GetCurrentFunction() " {{{
- return cfi#format('%s', '')
-endfunction " }}}
diff --git a/vim/autoload/Powerline/Functions/ft_man.vim b/vim/autoload/Powerline/Functions/ft_man.vim
deleted file mode 100644
index 29135e4..0000000
--- a/vim/autoload/Powerline/Functions/ft_man.vim
+++ /dev/null
@@ -1,12 +0,0 @@
-function! Powerline#Functions#ft_man#GetName() " {{{
- let matches = matchlist(getline(1), '\v^([a-zA-Z_\.\-]+)\((\d+)\)')
-
- if ! len(matches)
- return 'n/a'
- endif
-
- let file = tolower(matches[1])
- let num = matches[2]
-
- return file
-endfunction " }}}
diff --git a/vim/autoload/Powerline/Functions/fugitive.vim b/vim/autoload/Powerline/Functions/fugitive.vim
deleted file mode 100644
index bb00131..0000000
--- a/vim/autoload/Powerline/Functions/fugitive.vim
+++ /dev/null
@@ -1,7 +0,0 @@
-function! Powerline#Functions#fugitive#GetBranch(symbol) " {{{
- let ret = fugitive#statusline()
-
- let ret = substitute(ret, '\c\v\[?GIT\(([a-z0-9\-_\./:]+)\)\]?', a:symbol .' \1', 'g')
-
- return ret
-endfunction " }}}
diff --git a/vim/autoload/Powerline/Functions/syntastic.vim b/vim/autoload/Powerline/Functions/syntastic.vim
deleted file mode 100644
index e2c04fa..0000000
--- a/vim/autoload/Powerline/Functions/syntastic.vim
+++ /dev/null
@@ -1,16 +0,0 @@
-function! Powerline#Functions#syntastic#GetErrors(line_symbol) " {{{
- if ! exists('g:syntastic_stl_format')
- " Syntastic hasn't been loaded yet
- return ''
- endif
-
- " Temporarily change syntastic output format
- let old_stl_format = g:syntastic_stl_format
- let g:syntastic_stl_format = '╱╱╱%E{ ERRORS (%e) '. a:line_symbol .' %fe }%W{ WARNINGS (%w) '. a:line_symbol .' %fw }╱╱╱'
-
- let ret = SyntasticStatuslineFlag()
-
- let g:syntastic_stl_format = old_stl_format
-
- return ret
-endfunction " }}}
diff --git a/vim/autoload/Powerline/Matches.vim b/vim/autoload/Powerline/Matches.vim
deleted file mode 100644
index a71f734..0000000
--- a/vim/autoload/Powerline/Matches.vim
+++ /dev/null
@@ -1,13 +0,0 @@
-let g:Powerline#Matches#matches = {
- \ 'command_t' : Pl#Match#Add('bufname("%")', 'GoToFile'),
- \ 'ft_help' : Pl#Match#Add('&ft' , 'help'),
- \ 'ft_man' : Pl#Match#Add('&ft' , 'man'),
- \ 'ft_qf' : Pl#Match#Add('&ft' , 'qf'),
- \ 'ft_vimpager' : Pl#Match#Add('&ft' , 'vimpager'),
- \ 'gundo_preview' : Pl#Match#Add('bufname("%")', '__Gundo_Preview__'),
- \ 'gundo_tree' : Pl#Match#Add('bufname("%")', '__Gundo__'),
- \ 'lustyexplorer' : Pl#Match#Add('bufname("%")', '\[LustyExplorer-Buffers\]'),
- \ 'minibufexplorer' : Pl#Match#Add('bufname("%")', '\-MiniBufExplorer\-'),
- \ 'tagbar' : Pl#Match#Add('&ft' , 'tagbar'),
- \ 'nerdtree' : Pl#Match#Add('&ft' , 'nerdtree'),
-\ }
diff --git a/vim/autoload/Powerline/Segments.vim b/vim/autoload/Powerline/Segments.vim
deleted file mode 100644
index 837ec5f..0000000
--- a/vim/autoload/Powerline/Segments.vim
+++ /dev/null
@@ -1,28 +0,0 @@
-let g:Powerline#Segments#segments = Pl#Segment#Init(
- \ Pl#Segment#Create('SPLIT' , '__split__'),
- \ Pl#Segment#Create('TRUNCATE', '__truncate__'),
- \
- \ Pl#Segment#Create('mode_indicator' , '%{Powerline#Functions#GetMode()}', Pl#Segment#Modes('!N')),
- \ Pl#Segment#Create('fileinfo',
- \ Pl#Segment#Create('flags.ro' , '%{&readonly ? "$RO" : ""}'),
- \ Pl#Segment#Create('name' , '%t'),
- \ Pl#Segment#Create('flags.mod' , '%M'),
- \ Pl#Segment#Create('flags.type' , '%H%W'),
- \ ),
- \ Pl#Segment#Create('filename' , '%t'),
- \ Pl#Segment#Create('filesize' , '%{Powerline#Functions#GetFilesize()}', Pl#Segment#Modes('!N')),
- \ Pl#Segment#Create('pwd' , '%{substitute(getcwd(), expand("$HOME"), "~", "g")}'),
- \ Pl#Segment#Create('static_str' , '%%{"%s"}'),
- \ Pl#Segment#Create('raw' , '%s'),
- \ Pl#Segment#Create('fileformat' , '%{&fileformat}', Pl#Segment#Modes('!N')),
- \ Pl#Segment#Create('fileencoding' , '%{(&fenc == "" ? &enc : &fenc)}', Pl#Segment#Modes('!N')),
- \ Pl#Segment#Create('filetype' , '%{strlen(&ft) ? &ft : "no ft"}', Pl#Segment#Modes('!N')),
- \ Pl#Segment#Create('scrollpercent' , '%3p%%'),
- \ Pl#Segment#Create('lineinfo',
- \ Pl#Segment#Create('line.cur' , '$LINE %3l'),
- \ Pl#Segment#Create('line.tot' , '$COL %-2c'),
- \ ),
- \ Pl#Segment#Create('charcode' , '%{Powerline#Functions#GetCharCode()}', Pl#Segment#Modes('!N')),
- \ Pl#Segment#Create('currhigroup' , '%{synIDattr(synID(line("."), col("."), 1), "name")}', Pl#Segment#Modes('!N')),
- \ Pl#Segment#Create('ws_marker' , '%{Powerline#Functions#GetWSMarker()}', Pl#Segment#Modes('!N')),
-\ )
diff --git a/vim/autoload/Powerline/Segments/cfi.vim b/vim/autoload/Powerline/Segments/cfi.vim
deleted file mode 100644
index bde558b..0000000
--- a/vim/autoload/Powerline/Segments/cfi.vim
+++ /dev/null
@@ -1,5 +0,0 @@
-let g:Powerline#Segments#cfi#segments = Pl#Segment#Init('cfi',
- \ (exists('g:cfi_disable') && g:cfi_disable == 0),
- \
- \ Pl#Segment#Create('current_function', '%{Powerline#Functions#cfi#GetCurrentFunction()}', Pl#Segment#Modes('!N'))
-\ )
diff --git a/vim/autoload/Powerline/Segments/ctrlp.vim b/vim/autoload/Powerline/Segments/ctrlp.vim
deleted file mode 100644
index bab5193..0000000
--- a/vim/autoload/Powerline/Segments/ctrlp.vim
+++ /dev/null
@@ -1,10 +0,0 @@
-let g:Powerline#Segments#ctrlp#segments = Pl#Segment#Init('ctrlp'
- \ , Pl#Segment#Create('focus', '%{"%0"}')
- \ , Pl#Segment#Create('byfname', '%{"%1"}')
- \ , Pl#Segment#Create('prev', '%-3{"%3"}')
- \ , Pl#Segment#Create('item', '%-9{"%4"}')
- \ , Pl#Segment#Create('next', '%-3{"%5"}')
- \ , Pl#Segment#Create('marked', '%{"%6" == " <+>" ? "" : strpart("%6", 2, len("%6") - 3)}')
- \
- \ , Pl#Segment#Create('count', '%-6{"%0"}')
-\ )
diff --git a/vim/autoload/Powerline/Segments/ft_man.vim b/vim/autoload/Powerline/Segments/ft_man.vim
deleted file mode 100644
index ee11849..0000000
--- a/vim/autoload/Powerline/Segments/ft_man.vim
+++ /dev/null
@@ -1,3 +0,0 @@
-let g:Powerline#Segments#ft_man#segments = Pl#Segment#Init('ft_man',
- \ Pl#Segment#Create('filename', '%{Powerline#Functions#ft_man#GetName()}')
-\ )
diff --git a/vim/autoload/Powerline/Segments/fugitive.vim b/vim/autoload/Powerline/Segments/fugitive.vim
deleted file mode 100644
index 297556b..0000000
--- a/vim/autoload/Powerline/Segments/fugitive.vim
+++ /dev/null
@@ -1,5 +0,0 @@
-let g:Powerline#Segments#fugitive#segments = Pl#Segment#Init('fugitive',
- \ (exists('g:loaded_fugitive') && g:loaded_fugitive == 1),
- \
- \ Pl#Segment#Create('branch', '%{Powerline#Functions#fugitive#GetBranch("$BRANCH")}')
-\ )
diff --git a/vim/autoload/Powerline/Segments/rvm.vim b/vim/autoload/Powerline/Segments/rvm.vim
deleted file mode 100644
index 7e34245..0000000
--- a/vim/autoload/Powerline/Segments/rvm.vim
+++ /dev/null
@@ -1,5 +0,0 @@
-let g:Powerline#Segments#rvm#segments = Pl#Segment#Init('rvm',
- \ (exists('g:loaded_rvm') && g:loaded_rvm == 1),
- \ Pl#Segment#Create('string', '%{rvm#string()}'),
- \ Pl#Segment#Create('statusline', '%{rvm#statusline()}')
-\ )
diff --git a/vim/autoload/Powerline/Segments/syntastic.vim b/vim/autoload/Powerline/Segments/syntastic.vim
deleted file mode 100644
index 2f0caa9..0000000
--- a/vim/autoload/Powerline/Segments/syntastic.vim
+++ /dev/null
@@ -1,5 +0,0 @@
-let g:Powerline#Segments#syntastic#segments = Pl#Segment#Init('syntastic',
- \ (exists('g:loaded_syntastic_plugin') && g:loaded_syntastic_plugin == 1),
- \
- \ Pl#Segment#Create('errors', '%{Powerline#Functions#syntastic#GetErrors("$LINE")}', Pl#Segment#Modes('!N'))
-\ )
diff --git a/vim/autoload/Powerline/Segments/virtualenv.vim b/vim/autoload/Powerline/Segments/virtualenv.vim
deleted file mode 100644
index 90661f1..0000000
--- a/vim/autoload/Powerline/Segments/virtualenv.vim
+++ /dev/null
@@ -1,5 +0,0 @@
-let g:Powerline#Segments#virtualenv#segments = Pl#Segment#Init('virtualenv',
- \ has('python') && (exists('g:virtualenv_loaded') && g:virtualenv_loaded == 1),
- \
- \ Pl#Segment#Create('statusline', '%{VirtualEnvStatusline()}')
-\ )
diff --git a/vim/autoload/Powerline/Themes/default.vim b/vim/autoload/Powerline/Themes/default.vim
deleted file mode 100644
index 75106eb..0000000
--- a/vim/autoload/Powerline/Themes/default.vim
+++ /dev/null
@@ -1,114 +0,0 @@
-let g:Powerline#Themes#default#theme = Pl#Theme#Create(
- \ Pl#Theme#Buffer(''
- \ , 'mode_indicator'
- \ , 'fugitive:branch'
- \ , 'fileinfo'
- \ , 'syntastic:errors'
- \ , Pl#Segment#Truncate()
- \ , 'cfi:current_function'
- \ , Pl#Segment#Split()
- \ , 'rvm:string'
- \ , 'virtualenv:statusline'
- \ , 'fileformat'
- \ , 'fileencoding'
- \ , 'filetype'
- \ , 'scrollpercent'
- \ , 'lineinfo'
- \ ),
- \
- \ Pl#Theme#Buffer('command_t'
- \ , ['static_str.name', 'Command-T']
- \ , Pl#Segment#Truncate()
- \ , Pl#Segment#Split()
- \ , ['raw.line', '%10(Match #%l%)']
- \ ),
- \
- \ Pl#Theme#Buffer('gundo', Pl#Match#Any('gundo_tree')
- \ , ['static_str.name', 'Gundo']
- \ , ['static_str.buffer', 'Undo tree']
- \ , Pl#Segment#Truncate()
- \ , Pl#Segment#Split()
- \ ),
- \
- \ Pl#Theme#Buffer('gundo', Pl#Match#Any('gundo_preview')
- \ , ['static_str.name', 'Gundo']
- \ , ['static_str.buffer', 'Diff preview']
- \ , Pl#Segment#Truncate()
- \ , Pl#Segment#Split()
- \ ),
- \
- \ Pl#Theme#Buffer('ft_help'
- \ , ['static_str.name', 'Help']
- \ , 'filename'
- \ , Pl#Segment#Truncate()
- \ , Pl#Segment#Split()
- \ , 'scrollpercent'
- \ ),
- \
- \ Pl#Theme#Buffer('ft_vimpager'
- \ , ['static_str.name', 'Pager']
- \ , 'filename'
- \ , Pl#Segment#Truncate()
- \ , Pl#Segment#Split()
- \ , 'scrollpercent'
- \ ),
- \
- \ Pl#Theme#Buffer('lustyexplorer'
- \ , ['static_str.name', 'LustyExplorer']
- \ , ['static_str.buffer', 'Buffer list']
- \ , Pl#Segment#Truncate()
- \ , Pl#Segment#Split()
- \ ),
- \
- \ Pl#Theme#Buffer('ft_man'
- \ , ['static_str.name', 'Man page']
- \ , 'filename'
- \ , Pl#Segment#Truncate()
- \ , Pl#Segment#Split()
- \ , 'scrollpercent'
- \ ),
- \
- \ Pl#Theme#Buffer('minibufexplorer'
- \ , ['static_str.name', 'MiniBufExplorer']
- \ , Pl#Segment#Truncate()
- \ , Pl#Segment#Split()
- \ ),
- \
- \ Pl#Theme#Buffer('ft_qf'
- \ , ['static_str.name', 'Quickfix']
- \ , Pl#Segment#Truncate()
- \ , Pl#Segment#Split()
- \ ),
- \
- \ Pl#Theme#Buffer('tagbar'
- \ , ['static_str.name', 'Tagbar']
- \ , ['static_str.buffer', 'Tree']
- \ , Pl#Segment#Truncate()
- \ , Pl#Segment#Split()
- \ ),
- \
- \ Pl#Theme#Buffer('ctrlp', Pl#Theme#Callback('ctrlp_main', 'if ! exists("g:ctrlp_status_func") | let g:ctrlp_status_func = {} | endif | let g:ctrlp_status_func.main = "%s"')
- \ , 'ctrlp:prev'
- \ , 'ctrlp:item'
- \ , 'ctrlp:next'
- \ , 'ctrlp:marked'
- \ , Pl#Segment#Truncate()
- \ , Pl#Segment#Split()
- \ , 'ctrlp:focus'
- \ , 'ctrlp:byfname'
- \ , 'pwd'
- \ ),
- \
- \ Pl#Theme#Buffer('ctrlp', Pl#Theme#Callback('ctrlp_prog', 'if ! exists("g:ctrlp_status_func") | let g:ctrlp_status_func = {} | endif | let g:ctrlp_status_func.prog = "%s"')
- \ , 'ctrlp:count'
- \ , Pl#Segment#Truncate()
- \ , Pl#Segment#Split()
- \ , 'pwd'
- \ ),
- \
- \ Pl#Theme#Buffer('nerdtree'
- \ , ['raw.name', '%{expand("%:p:h")}']
- \ , Pl#Segment#Truncate()
- \ , Pl#Segment#Split()
- \ )
-\ )
diff --git a/vim/doc/Powerline.txt b/vim/doc/Powerline.txt
deleted file mode 100644
index 7ec7a50..0000000
--- a/vim/doc/Powerline.txt
+++ /dev/null
@@ -1,322 +0,0 @@
-*Powerline.txt* For Vim version 7.3. Last change: 2011 Nov 23
-
- ______
- _________ \ /__
- \_____ \______ _ _____________ / /'__' ___ ____
- | ___/ _ \ \/ \/ / __ \_ ___\ / | |/ \_/ __ \
- | | | (_) \ _ / ___/| | / /__| | | \ ___/
- '___' \____/ \/ \/ \___ |__' /___ /'__'__| /\___ \
- \/ / / \/ \/
- | /
- |/
- '
-
-==============================================================================
-CONTENTS *Powerline-contents*
-
- 1. Introduction ....................... |Powerline-introduction|
- 2. Usage .............................. |Powerline-usage|
- 3. Requirements ....................... |Powerline-requirements|
- 3.1 Recommended settings ........... |Powerline-recommended-settings|
- 4. Configuration ...................... |Powerline-configuration|
- 4.1 Powerline_cache_file ........... |Powerline_cache_file|
- 4.1.1 Clearing the cache ....... |:PowerlineClearCache|
- 4.2 Powerline_cache_enabled ........ |Powerline_cache_enabled|
- 4.3 Powerline_symbols .............. |Powerline_symbols|
- 4.3.1 Compatible symbols ....... |Powerline-symbols-compatible|
- 4.3.2 Fancy symbols ............ |Powerline-symbols-fancy|
- 4.4 Powerline_theme ................ |Powerline_theme|
- 4.5 Powerline_colorscheme .......... |Powerline_colorscheme|
- 5. Fonts .............................. |Powerline-fonts|
- 6. Customization ...................... |Powerline-customization|
- 6.1 Basic customization ............ |Powerline-basic-customization|
- 6.2 Advanced customization ......... |Powerline-advanced-customization|
- 6.2.1 Colorschemes ............. |Powerline-cust-colorschemes|
- 6.2.2 Functions ................ |Powerline-cust-functions|
- 6.2.3 Segments ................. |Powerline-cust-segments|
- 6.2.4 Themes ................... |Powerline-cust-themes|
- 7. License ............................ |Powerline-license|
- 8. Known issues ....................... |Powerline-known-issues|
- 9. Contributing ....................... |Powerline-contributing|
-
-==============================================================================
-1. Introduction *Powerline* *Powerline-introduction*
-
-Powerline is a utility plugin which allows you to create better-looking, more
-functional vim statuslines.
-
-==============================================================================
-2. Usage *Powerline-usage*
-
-Powerline is automatically enabled when it's installed, either by unzipping
-the provided archive or by adding it as a Pathogen/Vundle bundle.
-
-==============================================================================
-3. Requirements *Powerline-requirements*
-
-Powerline has been developed and tested in vim 7.3, but it should run without
-any problems in vim 7.2. The default configuration requires a Unix-like system
-to work properly.
-
-The plugin only works with vim running in an 88/256-color terminal or gvim.
-
-Vi-compatible mode must be disabled.
-
-------------------------------------------------------------------------------
-3.1 Recommended settings *Powerline-recommended-settings*
-
-The following configuration options should be set in your |vimrc|: >
-
- set nocompatible " Disable vi-compatibility
- set laststatus=2 " Always show the statusline
- set encoding=utf-8 " Necessary to show unicode glyphs
-
-Note: If you're using an 88/256-color terminal but still don't see the colored
-statusline, you may have to set the following option as well: >
-
- set t_Co=256 " Explicitly tell vim that the terminal supports 256 colors
-
-==============================================================================
-4. Configuration *Powerline-configuration*
-
-Powerline will work fine without any user configuration, but default behavior
-can be overridden by setting configuration variables globally in your |vimrc|
-file.
-
-------------------------------------------------------------------------------
-4.1 Powerline_cache_file *Powerline_cache_file*
-
-By default Powerline caches all the statuslines and colors in a cache file in
-the plugin's directory (or the vim directory, depending on the installation
-method used).
-
-It's recommended that you enable the cache, as this dramatically improves vim
-startup time after the cache file has been generated (the plugin usually loads
-within ~100ms without the cache and ~1ms with the cache).
-
-Note: The default cache filename includes the current theme, colorscheme and
-symbol settings in order to tie the cache file your current configuration, so
-the cache file will be regenerated when you change any settings. This may
-leave several old cache files in your vim folder, and these may safely be
-deleted.
-
-Defaults: "<plugin_directory>/Powerline_<theme>_<colorscheme>_<symbols>.cache"
-
-------------------------------------------------------------------------------
-4.1.1 Clearing the cache *:PowerlineClearCache*
-
-Powerline provides a command to easily clear the cache after changing your
-settings or updating your theme. Simply run the following command to clear
-your cache, and restart vim afterwards: >
-
- :PowerlineClearCache
-<
-------------------------------------------------------------------------------
-4.2 Powerline_cache_enabled *Powerline_cache_enabled*
-
-It's possible to disable statusline caching by setting this option to 0. This
-is mostly useful when developing statuslines.
-
-Default: 1
-
-------------------------------------------------------------------------------
-4.3 Powerline_symbols *Powerline_symbols*
-
-This option defines which set of symbols and dividers you want to use. There
-are currently three available options: "compatible", "unicode" and "fancy".
-
- TYPE DESCRIPTION ~
- compatible Doesn't use any special characters.
- unicode Simulates icons and arrows using similar unicode glyphs.
- fancy Custom icons and arrows. Requires a patched font.
-
-Symbols can be inserted into statuslines by using the following variables
-(just insert the variables as text in your segments):
-
- VARIABLE DESCRIPTION ~
- $BRANCH Inserts a branch symbol
- $RO Inserts a read-only symbol
- $FT Inserts a filetype symbol
- $LINE Inserts a line number symbol
-
-Default: "compatible"
-
-------------------------------------------------------------------------------
-4.3.1 Compatible symbols *Powerline-symbols-compatible*
-
-These symbols will work in any configuration, and do not require a special
-font to work. This option will replace the fancy icons with plain text, and
-the pointy dividers with straight lines.
-
-------------------------------------------------------------------------------
-4.3.2 Fancy symbols *Powerline-symbols-fancy*
-
-These symbols require a custom font to work. A font patcher is provided for
-adding the required symbols to any outline font and some bitmap fonts, see
-|Powerline-fonts| and the provided README file for usage details.
-
-------------------------------------------------------------------------------
-4.4 Powerline_theme *Powerline_theme*
-
-This option defines the theme Powerline uses. The available themes are located
-in autoload/Powerline/Themes/.
-
-Default: "default"
-
-------------------------------------------------------------------------------
-4.5 Powerline_colorscheme *Powerline_colorscheme*
-
-This option defines the colorscheme Powerline uses. The available colorschemes
-are located in autoload/Powerline/Colorschemes/.
-
-Default: "default"
-
-==============================================================================
-5. Fonts *Powerline-fonts*
-
-TODO
-
-==============================================================================
-6. Customization *Powerline-customization*
-
-There are currently two ways of customizing Powerline: Basic customization
-using a couple of functions to insert and remove existing segments from the
-statusline, and advanced customization using your own autoload files. The
-customization features of Powerline allow you to create your own statuslines
-without ever touching the original source code.
-
-------------------------------------------------------------------------------
-6.1 Basic customization *Powerline-basic-customization*
-
-Powerline provides the following functions to alter the default statusline
-look. These functions should be called from your |vimrc| file or another file
-which is sourced at vim startup.
-
-Note: These functions are currently applied to all statuslines, so if you
-insert a segment after a segment which is present in many statuslines (e.g.
-the "filename" segment), all the statuslines will have the inserted segment.
-This behavior may be changed in a future version of Powerline.
-
-Note: Remember to clear your cache with |:PowerlineClearCache| after changing
-your statusline!
-
-Example: >
-
- " Insert the charcode segment after the filetype segment
- call Pl#Theme#InsertSegment('charcode', 'after', 'filetype')
-
- " Replace the scrollpercent segment with the charcode segment
- call Pl#Theme#ReplaceSegment('scrollpercent', 'fileinfo')
-<
- *Pl#Theme#InsertSegment*
-Pl#Theme#InsertSegment({newsegment}, {location}, {targetsegment})
-
-This function inserts {newsegment} before or after {targetsegment}. The
-{location} parameter specifies the location of the new segment, valid values
-are "before" and "after". You can see all the available segments in
-autoload/Powerline/Segments.vim and the files specified in
-|Powerline-cust-segments|.
-
-Pl#Theme#RemoveSegment({targetsegment}) *Pl#Theme#RemoveSegment*
-
-This function removes the {targetsegment} segment entirely.
-
-Pl#Theme#ReplaceSegment({oldsegment}, {newsegment}) *Pl#Theme#ReplaceSegment*
-
-This function replaces {oldsegment} with {newsegment}.
-
-------------------------------------------------------------------------------
-6.2 Advanced customization *Powerline-advanced-customization*
-
-Because Powerline utilizes vim's autoload functionality, you can easily create
-your own segments, themes, functions and colorschemes without touching the
-original source code. This is a bit more complex than using the utility
-functions, but it allows you to do a lot more with your statusline.
-
-Your custom autoload files should be stored in your |runtimepath| (usually in
-"~/.vim/autoload/Powerline/*").
-
-Note: Remember to clear your cache with |:PowerlineClearCache| after changing
-your statusline!
-
-6.2.1 Colorschemes *Powerline-cust-colorschemes*
-------------------------------------------------------------------------------
-
-Colorschemes should be stored as separate files in
-{runtimepath}/autoload/Powerline/Colorschemes/.
-
-SYNTAX ~
-
-TODO
-
-EXAMPLE ~
-
-TODO
-
-6.2.2 Functions *Powerline-cust-functions*
-------------------------------------------------------------------------------
-
-Functions should be stored as separate files in
-{runtimepath}/autoload/Powerline/Functions/.
-
-SYNTAX ~
-
-TODO
-
-EXAMPLE ~
-
-TODO
-
-6.2.3 Segments *Powerline-cust-segments*
-------------------------------------------------------------------------------
-
-Segments should be stored as separate files in
-{runtimepath}/autoload/Powerline/Segments/.
-
-SYNTAX ~
-
-TODO
-
-EXAMPLE ~
-
-TODO
-
-6.2.4 Themes *Powerline-cust-themes*
-------------------------------------------------------------------------------
-
-Themes should be stored as separate files in
-{runtimepath}/autoload/Powerline/Themes/.
-
-SYNTAX ~
-
-TODO
-
-EXAMPLE ~
-
-TODO
-
-==============================================================================
-7. License *Powerline-license*
-
-Creative Commons Attribution-ShareAlike 3.0 Unported
-
-http://creativecommons.org/licenses/by-sa/3.0/
-
-==============================================================================
-8. Known issues *Powerline-known-issues*
-
-See the issue tracker at
-https://github.com/Lokaltog/vim-powerline/issues
-
-==============================================================================
-9. Contributing *Powerline-contributing*
-
-If you experience any bugs or have feature requests, please open an issue on
-GitHub. Fork the source repository on GitHub and send a pull request if you
-have any code improvements.
-
-Author: Kim Silkebækken <kim.silkebaekken+vim@gmail.com>
-Source repository: https://github.com/Lokaltog/vim-powerline
-
-==============================================================================
-vim:tw=78:sw=4:ts=8:ft=help:norl:
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
-" }}}