From 37b949491ebd1cb928c4fbe272ab60b74e0eaa41 Mon Sep 17 00:00:00 2001 From: xero Date: Sun, 16 Nov 2014 16:47:50 -0500 Subject: vim theme updates --- vim/.vim/.netrwhist | 4 +- vim/.vim/bundle/colorizer/Makefile | 12 - vim/.vim/bundle/colorizer/README.mkd | 7 - vim/.vim/bundle/colorizer/autoload/colorizer.vim | 377 ----------------------- vim/.vim/bundle/colorizer/plugin/colorizer.vim | 62 ---- vim/.vim/bundle/colorizer/screenshot.png | Bin 38279 -> 0 bytes vim/.vimrc | 11 +- 7 files changed, 8 insertions(+), 465 deletions(-) delete mode 100644 vim/.vim/bundle/colorizer/Makefile delete mode 100644 vim/.vim/bundle/colorizer/README.mkd delete mode 100644 vim/.vim/bundle/colorizer/autoload/colorizer.vim delete mode 100644 vim/.vim/bundle/colorizer/plugin/colorizer.vim delete mode 100644 vim/.vim/bundle/colorizer/screenshot.png diff --git a/vim/.vim/.netrwhist b/vim/.vim/.netrwhist index 8b13789..a8883e6 100644 --- a/vim/.vim/.netrwhist +++ b/vim/.vim/.netrwhist @@ -1 +1,3 @@ - +let g:netrw_dirhistmax =10 +let g:netrw_dirhist_cnt =1 +let g:netrw_dirhist_1='/etc/fonts/conf.d' diff --git a/vim/.vim/bundle/colorizer/Makefile b/vim/.vim/bundle/colorizer/Makefile deleted file mode 100644 index 7f91e3b..0000000 --- a/vim/.vim/bundle/colorizer/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -.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 deleted file mode 100644 index f8c4598..0000000 --- a/vim/.vim/bundle/colorizer/README.mkd +++ /dev/null @@ -1,7 +0,0 @@ -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 deleted file mode 100644 index 985c9f7..0000000 --- a/vim/.vim/bundle/colorizer/autoload/colorizer.vim +++ /dev/null @@ -1,377 +0,0 @@ -" colorizer.vim Colorize all text in the form #rrggbb or #rgb; autoload functions -" Maintainer: lilydjwg -" 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=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 = '\ 255 || g > 255 || b > 255 - break - endif - let pat = printf('\ 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('\ 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 = '\ 255 || ag > 255 || ab > 255 - break - endif - let pat = printf('\ 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 deleted file mode 100644 index 431098c..0000000 --- a/vim/.vim/bundle/colorizer/plugin/colorizer.vim +++ /dev/null @@ -1,62 +0,0 @@ -" colorizer.vim Colorize all text in the form #rrggbb or #rgb; entrance -" Maintainer: lilydjwg -" 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, tc is mapped to ColorToggle. If you want to use another -" key map, do like this: -" nmap ,tc 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, "") -command! -bar ColorClear call colorizer#ColorClear() -command! -bar ColorToggle call colorizer#ColorToggle() -nnoremap Colorizer :ColorToggle -if !hasmapto("Colorizer") && (!exists("g:colorizer_nomap") || g:colorizer_nomap == 0) - nmap tc 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 deleted file mode 100644 index e400ea2..0000000 Binary files a/vim/.vim/bundle/colorizer/screenshot.png and /dev/null differ diff --git a/vim/.vimrc b/vim/.vimrc index 1617565..525255a 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -2,6 +2,7 @@ execute pathogen#infect() let g:airline#extensions#tabline#enabled = 1 +let g:airline#extensions#whitespace#enabled = 0 let g:airline_powerline_fonts = 0 let g:airline_theme = 'tomorrow' let g:airline_enable_branch = 1 @@ -14,16 +15,14 @@ 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.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.branch = '▓' +let g:airline_symbols.paste = '▓' let g:airline_symbols.whitespace = '░' -let g:airline_symbols.readonly = 'x' +let g:airline_symbols.readonly = '█' let g:startify_custom_header = [ \ '', -- cgit v1.2.1