Reorganize files for easier restoring via stow, more familiar file structure.
This commit is contained in:
1
.vim/.VimballRecord
Normal file
1
.vim/.VimballRecord
Normal file
@@ -0,0 +1 @@
|
||||
Colorizer.vmb: call delete('/home/kapper/.vim/plugin/ColorizerPlugin.vim')|call delete('/home/kapper/.vim/doc/Colorizer.txt')|call delete('/home/kapper/.vim/autoload/Colorizer.vim')
|
||||
5
.vim/.netrwhist
Normal file
5
.vim/.netrwhist
Normal file
@@ -0,0 +1,5 @@
|
||||
let g:netrw_dirhistmax =10
|
||||
let g:netrw_dirhistcnt =3
|
||||
let g:netrw_dirhist_3='/home/kapper/.ssh'
|
||||
let g:netrw_dirhist_2='/home/kapper'
|
||||
let g:netrw_dirhist_1='/home/kapper/dot/vim/.vim/bundle/vim-airline-themes'
|
||||
2595
.vim/autoload/Colorizer.vim
Normal file
2595
.vim/autoload/Colorizer.vim
Normal file
File diff suppressed because it is too large
Load Diff
264
.vim/autoload/pathogen.vim
Normal file
264
.vim/autoload/pathogen.vim
Normal file
@@ -0,0 +1,264 @@
|
||||
" pathogen.vim - path option manipulation
|
||||
" Maintainer: Tim Pope <http://tpo.pe/>
|
||||
" Version: 2.4
|
||||
|
||||
" 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() 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.
|
||||
" If no arguments are given, defaults "bundle/{}", and also "pack/{}/start/{}"
|
||||
" on versions of Vim without native package support.
|
||||
function! pathogen#infect(...) abort
|
||||
if a:0
|
||||
let paths = filter(reverse(copy(a:000)), 'type(v:val) == type("")')
|
||||
else
|
||||
let paths = ['bundle/{}', 'pack/{}/start/{}']
|
||||
endif
|
||||
if has('packages')
|
||||
call filter(paths, 'v:val !~# "^pack/[^/]*/start/[^/]*$"')
|
||||
endif
|
||||
let static = '^\%([$~\\/]\|\w:[\\/]\)[^{}*]*$'
|
||||
for path in filter(copy(paths), 'v:val =~# static')
|
||||
call pathogen#surround(path)
|
||||
endfor
|
||||
for path in filter(copy(paths), 'v:val !~# static')
|
||||
if path =~# '^\%([$~\\/]\|\w:[\\/]\)'
|
||||
call pathogen#surround(path)
|
||||
else
|
||||
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_blacklist or the
|
||||
" comma delimited environment variable $VIMBLACKLIST.
|
||||
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)
|
||||
if !empty(blacklist)
|
||||
call map(blacklist, 'substitute(v:val, "[\\/]$", "", "")')
|
||||
endif
|
||||
return index(blacklist, fnamemodify(a:path, ':t')) != -1 || index(blacklist, a:path) != -1
|
||||
endfunction
|
||||
|
||||
" 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, ':s?[\\/]\=$??')
|
||||
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
|
||||
let after = a:0 ? a:1 : ''
|
||||
let pattern = substitute(a:pattern, '^[~$][^\/]*', '\=expand(submatch(0))', '')
|
||||
if pattern =~# '{[^{}]\+}'
|
||||
let [pre, pat, post] = split(substitute(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
|
||||
elseif pattern =~# '{}'
|
||||
let pat = matchstr(pattern, '^.*{}[^*]*\%($\|[\\/]\)')
|
||||
let post = pattern[strlen(pat) : -1]
|
||||
let results = map(split(glob(substitute(pat, '{}', '*', 'g')), "\n"), 'v:val.post')
|
||||
else
|
||||
let results = [pattern]
|
||||
endif
|
||||
let vf = pathogen#slash() . 'vimfiles'
|
||||
call map(results, 'v:val =~# "\\*" ? v:val.after : isdirectory(v:val.vf.after) ? v:val.vf.after : isdirectory(v:val.after) ? v:val.after : ""')
|
||||
return filter(results, '!empty(v:val)')
|
||||
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
|
||||
|
||||
" 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
|
||||
|
||||
" 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
|
||||
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
|
||||
|
||||
" vim:set et sw=2 foldmethod=expr foldexpr=getline(v\:lnum)=~'^\"\ Section\:'?'>1'\:getline(v\:lnum)=~#'^fu'?'a1'\:getline(v\:lnum)=~#'^endf'?'s1'\:'=':
|
||||
1
.vim/bundle/Colorizer
Submodule
1
.vim/bundle/Colorizer
Submodule
Submodule .vim/bundle/Colorizer added at 53ada285f0
1
.vim/bundle/clang_complete
Submodule
1
.vim/bundle/clang_complete
Submodule
Submodule .vim/bundle/clang_complete added at 0b98d7533a
1
.vim/bundle/supertab
Submodule
1
.vim/bundle/supertab
Submodule
Submodule .vim/bundle/supertab added at 40fe711e08
1
.vim/bundle/unicode.vim
Submodule
1
.vim/bundle/unicode.vim
Submodule
Submodule .vim/bundle/unicode.vim added at 29f43f7b1b
1
.vim/bundle/vim-airline
Submodule
1
.vim/bundle/vim-airline
Submodule
Submodule .vim/bundle/vim-airline added at 6d665580a3
1
.vim/bundle/vim-airline-themes
Submodule
1
.vim/bundle/vim-airline-themes
Submodule
Submodule .vim/bundle/vim-airline-themes added at 0d5c5c1e29
1
.vim/bundle/vim-signify
Submodule
1
.vim/bundle/vim-signify
Submodule
Submodule .vim/bundle/vim-signify added at 16eee41d2b
216
.vim/colors/sourcerer.vim
Normal file
216
.vim/colors/sourcerer.vim
Normal file
@@ -0,0 +1,216 @@
|
||||
" ██████ ██████ ██ ██ ██████ █████ █████ ██████ █████ ██████
|
||||
" ██░░░░ ██░░░░██░██ ░██░░██░░████░░░██ ██░░░██░░██░░████░░░██░░██░░██
|
||||
" ░░█████ ░██ ░██░██ ░██ ░██ ░░░██ ░░ ░███████ ░██ ░░░███████ ░██ ░░
|
||||
" ░░░░░██░██ ░██░██ ░██ ░██ ░██ ██░██░░░░ ░██ ░██░░░░ ░██
|
||||
" ██████ ░░██████ ░░██████░███ ░░█████ ░░██████░███ ░░██████░███
|
||||
" ░░░░░░ ░░░░░░ ░░░░░░ ░░░ ░░░░░ ░░░░░░ ░░░ ░░░░░░ ░░░
|
||||
" r e a d c o d e l i k e a w i z a r d
|
||||
"
|
||||
" sourcerer by xero harrison (http://sourcerer.xero.nu)
|
||||
" ├─ based on sorcerer by Jeet Sukumaran (http://jeetworks.org)
|
||||
" └─ based on mustang by Henrique C. Alves (hcarvalhoalves@gmail.com)
|
||||
|
||||
set background=dark
|
||||
hi clear
|
||||
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
endif
|
||||
|
||||
let colors_name = "sourcerer"
|
||||
|
||||
|
||||
" █▓▒░ GUI colors
|
||||
hi Normal guifg=#c2c2b0 guibg=#222222 gui=NONE
|
||||
hi ColorColumn guifg=NONE guibg=#1c1c1c
|
||||
hi Cursor guifg=NONE guibg=#626262 gui=NONE
|
||||
hi CursorColumn guibg=#2d2d2d
|
||||
hi CursorLine guibg=#2d2d2d
|
||||
hi DiffAdd guifg=#000000 guibg=#3cb371 gui=NONE
|
||||
hi DiffDelete guifg=#000000 guibg=#aa4450 gui=NONE
|
||||
hi DiffChange guifg=#000000 guibg=#4f94cd gui=NONE
|
||||
hi DiffText guifg=#000000 guibg=#8ee5ee gui=NONE
|
||||
hi Directory guifg=#1e90ff guibg=NONE gui=NONE
|
||||
hi ErrorMsg guifg=#ff6a6a guibg=NONE gui=bold
|
||||
hi FoldColumn guifg=#68838b guibg=#4B4B4B gui=bold
|
||||
hi Folded guifg=#406060 guibg=#232c2c gui=NONE
|
||||
hi IncSearch guifg=#ffffff guibg=#ff4500 gui=bold
|
||||
hi LineNr guifg=#878787 guibg=#3A3A3A gui=NONE
|
||||
hi MatchParen guifg=#fff000 guibg=NONE gui=bold
|
||||
hi ModeMsg guifg=#afafaf guibg=#222222 gui=bold
|
||||
hi MoreMsg guifg=#2e8b57 guibg=NONE gui=bold
|
||||
hi NonText guifg=#404050 guibg=NONE gui=NONE
|
||||
|
||||
" completions
|
||||
hi Pmenu guifg=#A8A8A8 guibg=#3A3A3A
|
||||
hi PmenuSel guifg=#000000 guibg=#528B8B
|
||||
hi PmenuSbar guifg=#000000 guibg=#528B8B
|
||||
hi PmenuThumb guifg=#000000 guibg=#528B8B
|
||||
|
||||
hi Question guifg=#00ee00 guibg=NONE gui=bold
|
||||
hi Search guifg=#000000 guibg=#d6e770 gui=bold
|
||||
hi SignColumn guifg=#ffffff guibg=NONE gui=NONE
|
||||
hi SpecialKey guifg=#505060 guibg=NONE gui=NONE
|
||||
hi SpellBad guisp=#ee2c2c gui=undercurl
|
||||
hi SpellCap guisp=#0000ff gui=undercurl
|
||||
hi SpellLocal guisp=#008b8b gui=undercurl
|
||||
hi SpellRare guisp=#ff00ff gui=undercurl
|
||||
hi StatusLine guifg=#000000 guibg=#808070 gui=bold
|
||||
hi StatusLineNC guifg=#000000 guibg=#404c4c gui=italic
|
||||
hi VertSplit guifg=#404c4c guibg=#404c4c gui=NONE
|
||||
hi TabLine guifg=fg guibg=#d3d3d3 gui=underline
|
||||
hi TabLineFill guifg=fg guibg=NONE gui=reverse
|
||||
hi TabLineSel guifg=fg guibg=NONE gui=bold
|
||||
hi Title guifg=#528b8b guibg=NONE gui=bold
|
||||
hi Visual guifg=#000000 guibg=#6688aa gui=NONE
|
||||
hi WarningMsg guifg=#ee9a00 guibg=NONE gui=NONE
|
||||
hi WildMenu guifg=#000000 guibg=#87ceeb gui=NONE
|
||||
hi ExtraWhitespace guifg=fg guibg=#528b8b gui=NONE
|
||||
|
||||
" syntax highlighting
|
||||
hi Comment guifg=#686858 gui=italic
|
||||
hi Boolean guifg=#ff9800 gui=NONE
|
||||
hi String guifg=#779b70 gui=NONE
|
||||
hi Identifier guifg=#9ebac2 gui=NONE
|
||||
hi Function guifg=#faf4c6 gui=NONE
|
||||
hi Type guifg=#7e8aa2 gui=NONE
|
||||
hi Statement guifg=#90b0d1 gui=NONE
|
||||
hi Keyword guifg=#90b0d1 gui=NONE
|
||||
hi Constant guifg=#ff9800 gui=NONE
|
||||
hi Number guifg=#cc8800 gui=NONE
|
||||
hi Special guifg=#719611 gui=NONE
|
||||
hi PreProc guifg=#528b8b gui=NONE
|
||||
hi Todo guifg=#8f6f8f guibg=#202020 gui=italic,underline,bold
|
||||
|
||||
" diff
|
||||
hi diffOldFile guifg=#88afcb guibg=NONE gui=italic
|
||||
hi diffNewFile guifg=#88afcb guibg=NONE gui=italic
|
||||
hi diffFile guifg=#88afcb guibg=NONE gui=italic
|
||||
hi diffLine guifg=#88afcb guibg=NONE gui=italic
|
||||
hi link diffSubname diffLine
|
||||
hi diffAdded guifg=#3cb371 guibg=NONE gui=NONE
|
||||
hi diffRemoved guifg=#aa4450 guibg=NONE gui=NONE
|
||||
hi diffChanged guifg=#4f94cd guibg=NONE gui=NONE
|
||||
hi link diffOnly Constant
|
||||
hi link diffIdentical Constant
|
||||
hi link diffDiffer Constant
|
||||
hi link diffBDiffer Constant
|
||||
hi link diffIsA Constant
|
||||
hi link diffNoEOL Constant
|
||||
hi link diffCommon Constant
|
||||
hi link diffComment Constant
|
||||
|
||||
" python
|
||||
hi pythonException guifg=#90b0d1 guibg=NONE gui=NONE
|
||||
hi pythonExClass guifg=#996666 guibg=NONE gui=NONE
|
||||
hi pythonDecorator guifg=#888555 guibg=NONE gui=NONE
|
||||
hi link pythonDecoratorFunction pythonDecorator
|
||||
|
||||
" █▓▒░ 256 colors
|
||||
hi Normal cterm=NONE ctermbg=NONE ctermfg=145
|
||||
hi ColorColumn cterm=NONE ctermbg=16 ctermfg=NONE
|
||||
hi Cursor cterm=NONE ctermbg=241 ctermfg=fg
|
||||
hi CursorColumn cterm=NONE ctermbg=16 ctermfg=fg
|
||||
hi CursorLine cterm=NONE ctermbg=236 ctermfg=fg
|
||||
hi DiffAdd cterm=NONE ctermbg=71 ctermfg=16
|
||||
hi DiffDelete cterm=NONE ctermbg=124 ctermfg=16
|
||||
hi DiffChange cterm=NONE ctermbg=68 ctermfg=16
|
||||
hi DiffText cterm=NONE ctermbg=117 ctermfg=16
|
||||
hi Directory cterm=NONE ctermbg=234 ctermfg=33
|
||||
hi ErrorMsg cterm=bold ctermbg=NONE ctermfg=203
|
||||
hi FoldColumn cterm=bold ctermbg=239 ctermfg=66
|
||||
hi Folded cterm=NONE ctermbg=16 ctermfg=60
|
||||
hi IncSearch cterm=bold ctermbg=202 ctermfg=231
|
||||
hi LineNr cterm=NONE ctermbg=237 ctermfg=102
|
||||
hi MatchParen cterm=bold ctermbg=NONE ctermfg=226
|
||||
hi ModeMsg cterm=bold ctermbg=NONE ctermfg=145
|
||||
hi MoreMsg cterm=bold ctermbg=234 ctermfg=29
|
||||
hi NonText cterm=NONE ctermbg=NONE ctermfg=59
|
||||
hi Pmenu cterm=NONE ctermbg=238 ctermfg=231
|
||||
hi PmenuSbar cterm=NONE ctermbg=250 ctermfg=fg
|
||||
hi PmenuSel cterm=NONE ctermbg=149 ctermfg=16
|
||||
hi Question cterm=bold ctermbg=NONE ctermfg=46
|
||||
hi Search cterm=bold ctermbg=185 ctermfg=16
|
||||
hi SignColumn cterm=NONE ctermbg=NONE ctermfg=231
|
||||
hi SpecialKey cterm=NONE ctermbg=NONE ctermfg=59
|
||||
hi SpellBad cterm=undercurl ctermbg=NONE ctermfg=196
|
||||
hi SpellCap cterm=undercurl ctermbg=NONE ctermfg=21
|
||||
hi SpellLocal cterm=undercurl ctermbg=NONE ctermfg=30
|
||||
hi SpellRare cterm=undercurl ctermbg=NONE ctermfg=201
|
||||
hi StatusLine cterm=bold ctermbg=101 ctermfg=16
|
||||
hi StatusLineNC cterm=NONE ctermbg=102 ctermfg=16
|
||||
hi VertSplit cterm=NONE ctermbg=102 ctermfg=102
|
||||
hi TabLine cterm=bold ctermbg=102 ctermfg=16
|
||||
hi TabLineFill cterm=NONE ctermbg=102 ctermfg=16
|
||||
hi TabLineSel cterm=bold ctermbg=16 ctermfg=59
|
||||
hi Title cterm=bold ctermbg=NONE ctermfg=66
|
||||
hi Visual cterm=NONE ctermbg=67 ctermfg=16
|
||||
hi WarningMsg cterm=NONE ctermbg=234 ctermfg=208
|
||||
hi WildMenu cterm=NONE ctermbg=116 ctermfg=16
|
||||
hi ExtraWhitespace cterm=NONE ctermbg=66 ctermfg=fg
|
||||
|
||||
hi Comment cterm=NONE ctermbg=NONE ctermfg=59
|
||||
hi Boolean cterm=NONE ctermbg=NONE ctermfg=208
|
||||
hi String cterm=NONE ctermbg=NONE ctermfg=101
|
||||
hi Identifier cterm=NONE ctermbg=NONE ctermfg=145
|
||||
hi Function cterm=NONE ctermbg=NONE ctermfg=230
|
||||
hi Type cterm=NONE ctermbg=NONE ctermfg=103
|
||||
hi Statement cterm=NONE ctermbg=NONE ctermfg=110
|
||||
hi Keyword cterm=NONE ctermbg=NONE ctermfg=110
|
||||
hi Constant cterm=NONE ctermbg=NONE ctermfg=208
|
||||
hi Number cterm=NONE ctermbg=NONE ctermfg=172
|
||||
hi Special cterm=NONE ctermbg=NONE ctermfg=64
|
||||
hi PreProc cterm=NONE ctermbg=NONE ctermfg=66
|
||||
hi Todo cterm=bold,underline ctermbg=234 ctermfg=96
|
||||
|
||||
hi diffOldFile cterm=NONE ctermbg=NONE ctermfg=67
|
||||
hi diffNewFile cterm=NONE ctermbg=NONE ctermfg=67
|
||||
hi diffFile cterm=NONE ctermbg=NONE ctermfg=67
|
||||
hi diffLine cterm=NONE ctermbg=NONE ctermfg=67
|
||||
hi diffAdded cterm=NONE ctermfg=NONE ctermfg=71
|
||||
hi diffRemoved cterm=NONE ctermfg=NONE ctermfg=124
|
||||
hi diffChanged cterm=NONE ctermfg=NONE ctermfg=68
|
||||
hi link diffSubname diffLine
|
||||
hi link diffOnly Constant
|
||||
hi link diffIdentical Constant
|
||||
hi link diffDiffer Constant
|
||||
hi link diffBDiffer Constant
|
||||
hi link diffIsA Constant
|
||||
hi link diffNoEOL Constant
|
||||
hi link diffCommon Constant
|
||||
hi link diffComment Constant
|
||||
|
||||
hi pythonClass cterm=NONE ctermbg=NONE ctermfg=fg
|
||||
hi pythonDecorator cterm=NONE ctermbg=NONE ctermfg=101
|
||||
hi pythonExClass cterm=NONE ctermbg=NONE ctermfg=95
|
||||
hi pythonException cterm=NONE ctermbg=NONE ctermfg=110
|
||||
hi pythonFunc cterm=NONE ctermbg=NONE ctermfg=fg
|
||||
hi pythonFuncParams cterm=NONE ctermbg=NONE ctermfg=fg
|
||||
hi pythonKeyword cterm=NONE ctermbg=NONE ctermfg=fg
|
||||
hi pythonParam cterm=NONE ctermbg=NONE ctermfg=fg
|
||||
hi pythonRawEscape cterm=NONE ctermbg=NONE ctermfg=fg
|
||||
hi pythonSuperclasses cterm=NONE ctermbg=NONE ctermfg=fg
|
||||
hi pythonSync cterm=NONE ctermbg=NONE ctermfg=fg
|
||||
|
||||
hi Conceal cterm=NONE ctermbg=248 ctermfg=252
|
||||
hi Error cterm=NONE ctermbg=196 ctermfg=231
|
||||
hi Ignore cterm=NONE ctermbg=NONE ctermfg=234
|
||||
hi InsertModeCursorLine cterm=NONE ctermbg=16 ctermfg=fg
|
||||
hi NormalModeCursorLine cterm=NONE ctermbg=235 ctermfg=fg
|
||||
hi PmenuThumb cterm=reverse ctermbg=NONE ctermfg=fg
|
||||
hi StatusLineAlert cterm=NONE ctermbg=160 ctermfg=231
|
||||
hi StatusLineUnalert cterm=NONE ctermbg=238 ctermfg=144
|
||||
hi Test cterm=NONE ctermbg=NONE ctermfg=fg
|
||||
hi Underlined cterm=underline ctermbg=NONE ctermfg=111
|
||||
hi VisualNOS cterm=bold,underline ctermbg=NONE ctermfg=fg
|
||||
hi cCursor cterm=reverse ctermbg=NONE ctermfg=fg
|
||||
hi iCursor cterm=NONE ctermbg=210 ctermfg=16
|
||||
hi lCursor cterm=NONE ctermbg=145 ctermfg=234
|
||||
hi nCursor cterm=NONE ctermbg=NONE ctermfg=145
|
||||
hi vCursor cterm=NONE ctermbg=201 ctermfg=16
|
||||
|
||||
hi Pmenu cterm=NONE ctermfg=248 ctermbg=237
|
||||
hi PmenuSel cterm=NONE ctermfg=16 ctermbg=66
|
||||
hi PmenuSbar cterm=NONE ctermfg=16 ctermbg=66
|
||||
hi PmenuThumb cterm=NONE ctermfg=16 ctermbg=66
|
||||
|
||||
520
.vim/doc/Colorizer.txt
Normal file
520
.vim/doc/Colorizer.txt
Normal file
@@ -0,0 +1,520 @@
|
||||
*Colorizer.txt* A plugin to color colornames and codes
|
||||
|
||||
Author: Christian Brabandt <cb@256bit.org>
|
||||
Version: 0.11 Thu, 15 Jan 2015 21:49:17 +0100
|
||||
Copyright: (c) 2009-2013 by Christian Brabandt
|
||||
The VIM LICENSE applies to Colorizer.txt
|
||||
(see |copyright|) except use ColorizerPlugin instead of "Vim".
|
||||
NO WARRANTY, EXPRESS OR IMPLIED. USE AT-YOUR-OWN-RISK.
|
||||
|
||||
==============================================================================
|
||||
Contents *Colorizer*
|
||||
==============================================================================
|
||||
|
||||
1. Colorizer Manual.............................|Colorizer-manual|
|
||||
1.1 :ColorHighlight......................|:ColorHighlight|
|
||||
1.2 :ColorClear..........................|:ColorClear|
|
||||
1.3 :RGB2Term............................|:RGB2Term|
|
||||
1.4 :HSL2RGB.............................|:HSL2RGB|
|
||||
1.5 :Term2RGB............................|:Term2RGB|
|
||||
1.6 :ColorContrast.......................|:ColorContrast|
|
||||
1.7 :ColorSwapFgBg.......................|:ColorSwapFgBg|
|
||||
1.8 :ColorToggle.........................|:ColorToggle|
|
||||
2. Configuration................................|Colorizer-config|
|
||||
2.1 Automatic loading...................|Colorizer-auto|
|
||||
2.2 Automatically highlight filetypes...|Colorizer-hl-ft|
|
||||
2.3 Skip coloring comments..............|Colorizer-comments|
|
||||
2.4 Adjust the contrast.................|Colorizer-contrast|
|
||||
2.5 Highlight colornames................|Colorizer-hl-names|
|
||||
2.6 Use X11 colornames..................|Colorizer-names|
|
||||
2.7 Use syntax highlighting.............|Colorizer-syntax|
|
||||
2.8 Specify patterns to highlight.......|Colorizer-pattern|
|
||||
2.9 Colorizing Taskwarrior files........|Colorizer-taskwarrior-files|
|
||||
2.10 Colorizing vim syntax files.........|Colorizer-vim-files|
|
||||
2.11 Use custom colornames...............|Colorizer-custom-colornames|
|
||||
2.12 Colorizing :hi statements...........|Colorizer-vim-hi|
|
||||
3. Colorizer Mappings...........................|Colorizer-maps|
|
||||
4. Colorizer Tips...............................|Colorizer-tips|
|
||||
5. Colorizer Feedback...........................|Colorizer-feedback|
|
||||
6. Colorizer History............................|Colorizer-history|
|
||||
|
||||
==============================================================================
|
||||
1. Colorizer Manual *Colorizer-manual*
|
||||
==============================================================================
|
||||
|
||||
Functionality
|
||||
|
||||
This plugin is based on the css_color plugin by Nikolaus Hofer. The idea is to
|
||||
highlight color names and codes in the same color that they represent.
|
||||
|
||||
The plugin understands the W3C colors (used for CSS files for example), the
|
||||
color names from the X11 Window System and also codes in hex notation, like
|
||||
#FF0000 (which represents Red in the RGB color system). Additionally, it
|
||||
supports the CSS color specifications, e.g. rgb(RR,GG,BB) color representation
|
||||
in either absolute or percentage values and also the HVL color
|
||||
representation like hvl(H,V,L)
|
||||
|
||||
It works best in the gui version of Vim, but the plugin also supports 256 and
|
||||
88 color terminals and translates the colors to those supported by the
|
||||
terminal. 16 and 8 color terminals should work theoretically too, but have not
|
||||
been widely tested. Note that translating the colors to the terminal might
|
||||
impose a performance penalty, depending on the terminal type and the number of
|
||||
matches in the file.
|
||||
|
||||
This plugin defines the following commands:
|
||||
|
||||
*:ColorHighlight*
|
||||
:[range]ColorHighlight[!] [args]
|
||||
|
||||
Scan the lines given by [range] for color code names and highlight those. If
|
||||
[range] is omitted, the whole file will be scanned. If the ! is used, the
|
||||
plugin will redefine all highlighting groups. If ! is not used, it will
|
||||
skip patterns, that would take too long and make Vim unresponsive.
|
||||
|
||||
[args] can by any of "syntax" or "match". "syntax" means to convert the
|
||||
highlighting to syntax highlighting. This is useful, so a plugin like
|
||||
|2html.vim| can convert the colors correctly to HTML. The default is
|
||||
"match", which uses the |matchadd()| function. (Prepending "no" is
|
||||
supported and will disable that setting and use the opposite).
|
||||
|
||||
*:ColorClear*
|
||||
:ColorClear Turn off color highlighting.
|
||||
|
||||
*:RGB2Term*
|
||||
:RGB2Term <color> Translate the color code given as argument to
|
||||
the closest color that can be displayed in the
|
||||
terminal. The color must be given in the
|
||||
format #RRGGBB (the hex format of the colors red,
|
||||
green and blue (the '#' is optional), or
|
||||
alternatively like rgb(X,X,X)
|
||||
|
||||
Uses the number of colors your terminal is capable
|
||||
of (or 256 colors for gVim).
|
||||
|
||||
*:HSL2RGB*
|
||||
:HSL2RGB hsl(h,v,l) Translate the HVL color defined by the string
|
||||
'hsl(h,v%,l%)' into a color that the current
|
||||
terminal can display. Note that the color must be
|
||||
given in the format 'hsl(HH, V, L)' where HH
|
||||
defines the Hue as absolute value between 0 and
|
||||
255 and V and L represent a percentage for value
|
||||
and Lightness.
|
||||
|
||||
*:Term2RGB*
|
||||
:Term2RGB number Translate terminal color <number> to an RGB color
|
||||
(using the xterm 256 color cube).
|
||||
|
||||
*:ColorContrast*
|
||||
:ColorContrast Switch between all different color contrast
|
||||
settings (foreground colors).
|
||||
*:ColorSwapFgBg*
|
||||
:ColorSwapFgBg Switch between foreground and background colors.
|
||||
This will toggle in 3 ways. From Swapping
|
||||
foreground and background colors, to only
|
||||
highlighting the foreground color back to normal
|
||||
foreground background color.
|
||||
|
||||
*:ColorToggle*
|
||||
:ColorToggle Switch between highlighting colors and no
|
||||
highlighting.
|
||||
|
||||
==============================================================================
|
||||
2 Colorizer Configuration *Colorizer-config*
|
||||
==============================================================================
|
||||
|
||||
2.1 Automatic loading *Colorizer-auto*
|
||||
---------------------
|
||||
|
||||
The Colorizer plugin can be configured to automatically load when opening a
|
||||
new file. Note that this might slow down the loading process, especially on
|
||||
the terminal. To enable this, simply set the variable 'g:colorizer_auto_color'
|
||||
to 1, e.g. by defining it in your |.vimrc| >
|
||||
|
||||
:let g:colorizer_auto_color = 1
|
||||
<
|
||||
(Not recommended, see below at |Colorizer-hl-ft| for the preferred way)
|
||||
|
||||
2.2 Automatically highlight filetypes *Colorizer-hl-ft*
|
||||
-------------------------------------
|
||||
|
||||
If you want to have certain filetypes automatically highlighted, you can use
|
||||
the variable g:colorizer_auto_filetype, e.g. to enable highlighting for
|
||||
HTML and CSS files by default, add the following to your |.vimrc|: >
|
||||
|
||||
:let g:colorizer_auto_filetype='css,html'
|
||||
<
|
||||
After restarting Vim, the plugin will become active whenever the filetype is
|
||||
set to either html or css.
|
||||
|
||||
2.3 Skip coloring comments *Colorizer-comments*
|
||||
--------------------------
|
||||
|
||||
You can skip comments from being colored by setting the variable
|
||||
g:colorizer_skip_comments to 1: >
|
||||
|
||||
:let g:colorizer_skip_comments = 1
|
||||
<
|
||||
The plugin will skip all matches of color codes and names that appear inside
|
||||
comments (this only works when syntax highlighting is enabled |:syn-on|)
|
||||
|
||||
Note however, that if the same color is used inside comments and outside
|
||||
comments, it will also be highlighted inside the comments, because
|
||||
coloring is done matching only the color pattern and once this is done outside
|
||||
of comments, this will also match inside comments.
|
||||
|
||||
2.4 Adjust the contrast *Colorizer-contrast*
|
||||
-----------------------
|
||||
|
||||
Colorizer can be adjusted to blur the contrast between foreground and
|
||||
background color. For this, the variable 'g:colorizer_fgcontrast' can be used.
|
||||
It can be given any value between -1 and 2 with 2 being the default. Each
|
||||
smaller value will decrease the contrast a little bit, with -1 being special,
|
||||
as there is the foreground color equals the background color. Use
|
||||
|:ColorContrast| to cycle through the different values.
|
||||
|
||||
2.5 Highlight colornames *Colorizer-hl-names*
|
||||
------------------------
|
||||
|
||||
If for any reason you don't want the plugin to highlight colornames, you can
|
||||
prevent this by setting the g:colorizer_colornames variable to 0, e.g. put >
|
||||
|
||||
:let g:colorizer_colornames = 0
|
||||
<
|
||||
into your |.vimrc|
|
||||
|
||||
2.6 Use X11 colornames *Colorizer-names*
|
||||
----------------------
|
||||
|
||||
Colorizer can be configured to support all color names defined by the X11
|
||||
Window System. By default it only supports the colors defined by the W3C for
|
||||
the CSS specification. To use the X11 color names, set the variable
|
||||
'g:colorzer_x11_names' to 1, e,g. put in your |.vimrc| >
|
||||
|
||||
let g:colorizer_x11_names = 1
|
||||
<
|
||||
|
||||
2.7 Use syntax highlighting *Colorizer-syntax*
|
||||
---------------------------
|
||||
|
||||
The plugin by default uses the |matchadd()| functions for highlighting colors
|
||||
on the fly. Unfortunately, this is a problem, if you want to have the result
|
||||
successfully transformed to a HTML file using the |2html.vim| plugin. Therefore,
|
||||
the Colorizer plugin can also convert the highlighting to correct syntax
|
||||
highlighting. Use either the >
|
||||
|
||||
:ColorHighlight syntax
|
||||
<
|
||||
command (see |:ColorHighlight|) or set the variable 'g:colorizer_syntax' to 1,
|
||||
e.g. in your |.vimrc| put >
|
||||
|
||||
let g:colorizer_syntax = 1
|
||||
<
|
||||
|
||||
2.8 Specify pattern to highlight *Colorizer-pattern*
|
||||
--------------------------------
|
||||
|
||||
By default, Colorizer detects the following patterns and highlights them as
|
||||
hex colors (for better readability it is separated into 3 parts): >
|
||||
|
||||
# %(\x\{3}\|\x\{6}\) \%(\>\|[-_]\)\@=/'
|
||||
<
|
||||
|
||||
This means it always looks for a '#' followed by either a 3 or 6 hexadecimal
|
||||
digits denoting the RGB hex color codes, followed by either the word-boundary
|
||||
(|/\>|), a hyphen or a underscore. But only the first and middle part will be
|
||||
highlighted (i.e. the RGB color codes).
|
||||
|
||||
You can of course specify a different pattern for your needs by setting the
|
||||
g:colorizer_hex_pattern variable. e.g. to display '#RRGGBB' and have all of it
|
||||
highlighted, use >
|
||||
|
||||
let g:colorizer_hex_pattern = ['#', '\%(\x\{3}\|\x\{6}\)', '']
|
||||
|
||||
2.9 Colorizing Taskwarrior files *Colorizer-taskwarrior-files*
|
||||
--------------------------------
|
||||
|
||||
For taskwarrior files, this plugin can also highlight those colors. By
|
||||
default, this will only work, if the file name ends with '.theme'
|
||||
|
||||
For an example, see this website:
|
||||
http://taskwarrior.org/news/182
|
||||
|
||||
2.10 Colorizing vim syntax files *Colorizer-vim-files*
|
||||
--------------------------------
|
||||
|
||||
Colorizer also supports highlighting vim syntax files. For this to work, the
|
||||
'filetype' must be set to vim, then the plugin tries to identify the colors
|
||||
and highlight them.
|
||||
|
||||
2.11 Use custom colornames *Colorizer-custom-colornames*
|
||||
--------------------------
|
||||
|
||||
You can add separate colornames to be colored. For this to work, set the
|
||||
variable g:colorizer_custom_colors to your liking, e.g. like this: >
|
||||
|
||||
let g:colorizer_custom_colors = { 'blue': '#ff0000'}
|
||||
|
||||
Guess what, this will color the word blue in red.
|
||||
|
||||
2.12 Colorizing :highlight statements *Colorizer-vim-hi*
|
||||
-------------------------------------
|
||||
|
||||
Colorizer also supports highlighting |:hi| statements, that are used by vim
|
||||
colorschemes and syntax files as well as a dump of the |:hi| command
|
||||
To colorizer :hi statements, the 'filetype' must be set to vim, while for :hi
|
||||
dumps, the 'filetype' must be empty.
|
||||
|
||||
==============================================================================
|
||||
3. Colorizer Mappings *Colorizer-maps*
|
||||
==============================================================================
|
||||
|
||||
By default, the Colorizer plugin does not map any key, so that it won't
|
||||
pollute the global mapping namespace. If you want however to have the
|
||||
following default maps set up, set the global variable g:colorizer_auto_map
|
||||
in your |.vimrc| like this: >
|
||||
|
||||
:let g:colorizer_auto_map = 1
|
||||
|
||||
<
|
||||
This will set up the following key mappings (if they are not already taken):
|
||||
|
||||
Keys Name Function
|
||||
---- ---- --------
|
||||
<Leader>cC <Plug>Colorizer Toggle highlighting of Colors. In visual
|
||||
mode it only highlights the colors in the
|
||||
selected region (normal and visual mode).
|
||||
<Leader>cT <Plug>ColorContrast Cycle through contrast setting
|
||||
|:ColorContrast| (normal and visual mode)
|
||||
<Leader>cF <Plug>ColorFgBg Toggle foreground and background color
|
||||
|:ColorSwapFgBg|
|
||||
|
||||
It uses the prefix <leader>c to set all functionality up. By default, <Leader>
|
||||
is defined as '\' (|<Leader>|). Use the name provided in the second column to
|
||||
map the function to a different key.
|
||||
|
||||
==============================================================================
|
||||
4. Colorizer Tips *Colorizer-tips*
|
||||
==============================================================================
|
||||
|
||||
You can enable the plugin to be loaded for certain filetypes automatically.
|
||||
This makes sense for example for CSS files or HTML files. To do so, create the
|
||||
following autocommand in your |.vimrc| >
|
||||
|
||||
:au BufNewFile,BufRead *.css,*.html,*.htm :ColorHighlight!
|
||||
<
|
||||
This will automatically highlight all existing color codes and names if you
|
||||
edit either a HTML file or a CSS file. Note that this does not update the
|
||||
highlighting, after you have been changing the file.
|
||||
|
||||
The recommended way to do this is to use the g:colorizer_auto_filetype
|
||||
variable and set this to the desired filetypes. |Colorizer-hl-ft|
|
||||
|
||||
*Colorizer-slowdown*
|
||||
----------------
|
||||
Slow performance
|
||||
----------------
|
||||
Depending on your file, any of the highlighting functions might cause an
|
||||
performance decrease. This can be analyed, by setting the variable
|
||||
g:colorizer_debug to 1 in e.g. your |.vimrc| like this: >
|
||||
|
||||
:let g:colorizer_debug = 1
|
||||
<
|
||||
The next time, you call |:ColorHighlight|, the plugin will output runtime
|
||||
statistics, from which you can see, which function caused the slowdowns.
|
||||
Consider this output:
|
||||
|
||||
Colorstatistics at: 12:20 `
|
||||
Duration: 0.034110 `
|
||||
colornames: 0.030865s `
|
||||
hex: 0.000968s `
|
||||
hsla: 0.000350s `
|
||||
rgb: 0.000354s `
|
||||
rgba: 0.000491s `
|
||||
taskwarrior: 0.000020s `
|
||||
term: 0.000219s `
|
||||
term_conceal: 0.000105s `
|
||||
vimcolors: 0.000036s `
|
||||
vimhighl_dump: 0.000025s `
|
||||
vimhighlight: 0.000025s `
|
||||
|
||||
From this you can see, that the colorname highlighting caused the largest
|
||||
slowdown, it took 0.03 seconds to complete. This is expected, as the
|
||||
colornames pattern is long and contains many branches.
|
||||
|
||||
Functions with a value less then 100 have probably been skipped and were not
|
||||
being executed.
|
||||
|
||||
If you want to skip certain functions, you can set the variable
|
||||
g:colorizer_<name>_disable and then those functions won't be called anymore
|
||||
(e.g. do disable the colorname highlighting, put in your |.vimrc| this: >
|
||||
|
||||
let g:colorizer_colornames_disable = 1
|
||||
<
|
||||
If the slowdown is still noticeable, you might want to create
|
||||
a new issue at the plugins repository (|Colorizer-feedback|). You should
|
||||
provide a sample file, so that I will be able to reproduce the issue.
|
||||
|
||||
Note, this needs a Vim with the |+reltime| feature.
|
||||
==============================================================================
|
||||
5. Colorizer Feedback *Colorizer-feedback*
|
||||
==============================================================================
|
||||
|
||||
Feedback is always welcome. If you like the plugin, please rate it at the
|
||||
vim-page: http://www.vim.org/scripts/script.php?script_id=3963
|
||||
|
||||
You can also follow the development of the plugin at github:
|
||||
http://github.com/chrisbra/color_highlight
|
||||
|
||||
Bugs can also be reported there:
|
||||
https://github.com/chrisbra/color_highlight/issues
|
||||
|
||||
Alternatively, you can also report any bugs to the maintainer, mentioned in
|
||||
the third line of this document. Please don't hesitate to contact me, I
|
||||
won't bite ;)
|
||||
|
||||
If you like the plugin, write me an email (look in the third line for my mail
|
||||
address). And if you are really happy, vote for the plugin and consider
|
||||
looking at my Amazon whishlist: http://www.amazon.de/wishlist/2BKAHE8J7Z6UW
|
||||
|
||||
==============================================================================
|
||||
6. Colorizer History *Colorizer-history*
|
||||
==============================================================================
|
||||
|
||||
0.12 (unreleased) {{{1
|
||||
- TermConceal should also conceal [K
|
||||
- properly escape terminal colors, so that |Colorizer-syntax| works correctly
|
||||
- use matchaddpos() for highlighting ansi term colors (should speed up vim
|
||||
highlighting considerably)
|
||||
- only reset TermConceal syntax group (reported by audriusk in
|
||||
https://github.com/chrisbra/Colorizer/issues/41, thanks!)
|
||||
- correctly check for patch 7.4.083 (:keeppatterns modifier, reported by
|
||||
gbell12 in https://github.com/chrisbra/Colorizer/issues/42, thanks!)
|
||||
- disable BufLeave autocommand to disable colors
|
||||
- basic Neovim support (also should work with TrueColor in Terminal)
|
||||
- Make |:RGB2term| always init colortable, so that when resetting 't_Co'
|
||||
it will work correctly
|
||||
- Make it work with Vims Term Truecolor feature (patch 7.4.1770)
|
||||
- Make it work with neovim fixes https://github.com/chrisbra/Colorizer/issues/45
|
||||
and https://github.com/chrisbra/Colorizer/issues/46
|
||||
- Support css colors: #rrggbbaa format
|
||||
- handle hsla values correctly
|
||||
- clear css cssColor syntax rule when ":ColorHighlight syntax" in css files is
|
||||
used. fixes https://github.com/chrisbra/Colorizer/issues/50 reported by
|
||||
msva, thanks!
|
||||
- make TermConceal also hide the sgr0 attributes (to reset the terminal)
|
||||
fixes https://github.com/chrisbra/Colorizer/issues/53 reported by
|
||||
LucHermitte, thanks!
|
||||
- also conceal and highlight nroff sequences like T^HT (as bold) and _^HT (as
|
||||
underlined)
|
||||
|
||||
0.11 Jan 15, 2015 {{{1
|
||||
- use |TextChanged| autocommand if possible
|
||||
- Support Ansi True Color support if possible
|
||||
- Hide ^[[K$ for terminal colors (reported by masukomi at
|
||||
https://github.com/chrisbra/Colorizer/issues/36, thanks!)
|
||||
- Do not expand() to expand shellvars (fixed by Daniel Hahler in
|
||||
https://github.com/chrisbra/Colorizer/issues/37, thanks!)
|
||||
- Document, how to analyze slowdown |Colorizer-slowdown|
|
||||
- |:ColorContrast| would error, if the plugin has not been initialized
|
||||
(reported by Daniel Hahler in
|
||||
https://github.com/chrisbra/Colorizer/issues/38, thanks!)
|
||||
- always define reltime variable (reported by mantislin in
|
||||
https://github.com/chrisbra/Colorizer/issues/39, thanks!)
|
||||
- Only call conceal function once for ansiterm colors
|
||||
- reduce calls to DoColor in autocommands (to only do, when something changed)
|
||||
|
||||
0.10 Mar 27, 2014 {{{1
|
||||
- Also highlight Ansi Term sequences
|
||||
- Match colornames using the "old" RE Engine, if Vim supports it.
|
||||
- Make |:RGB2Xterm| output the color name in its color
|
||||
- Rename |:RGB2Xterm| to |:RGB2Term|
|
||||
- Highlight Taskwarrior file
|
||||
- Code refactoring
|
||||
- Make |:ColorSwapFgBg| work as expected (did not always toggle reliably
|
||||
between all states)
|
||||
- Correctly parse Ansi Term colors
|
||||
- |:Term2RGB|
|
||||
- Highlight Vim color files correctly
|
||||
- merge colorhighlight plugin https://github.com/blueyed/colorhighlight.vim
|
||||
|
||||
0.9: Aug 14, 2013: {{{1
|
||||
- https://github.com/chrisbra/color_highlight/issues/15 (rgba highlighting
|
||||
didn't work for floating point value of alpha, reported by LiTuX.S, thanks!)
|
||||
- https://github.com/chrisbra/color_highlight/issues/16 (rgb() pattern did
|
||||
match too much, reported by taecilla, thanks!)
|
||||
- https://github.com/chrisbra/color_highlight/issues/19 (error on calling
|
||||
ColorWinEnter() command, reported by wedgwood, thanks!)
|
||||
- https://github.com/chrisbra/color_highlight/issues/20 and
|
||||
https://github.com/chrisbra/color_highlight/issues/21
|
||||
(also color on split commands, reported by wedgwood and Andri Möll, Thanks!)
|
||||
- https://github.com/chrisbra/color_highlight/issues/22 (Make sure, patterns
|
||||
like white-space won't get colored, reported by Andri Möll, Thanks!)
|
||||
- https://github.com/chrisbra/color_highlight/issues/23 (ColorToggle got
|
||||
confused when several windows with highlighting exists, reported by Andri
|
||||
Möll, Thanks!)
|
||||
- https://github.com/chrisbra/color_highlight/issues/24 (turning off coloring
|
||||
should also remove the autocommands, reported by Andri Möll, Thanks!)
|
||||
|
||||
0.8: Dec 14, 2012 {{{1
|
||||
- https://github.com/chrisbra/color_highlight/issues/13 (colorizing should not
|
||||
stop at word-boundaries, reported by teschmitz, thanks!)
|
||||
- https://github.com/chrisbra/color_highlight/issues/14 (convert highlighting
|
||||
to syntax groups, so TOhtml works, reported by teschmitz, thanks!)
|
||||
|
||||
0.7: Jul 25, 2012 {{{1
|
||||
- Highlight rgb colors with whitespace after comma (reported by sergey-vlasov
|
||||
in https://github.com/chrisbra/color_highlight/issues/12, thanks!)
|
||||
- Save and restore the search register, so the plugin doesn't clobber it
|
||||
- check for 'ed' and 'gd' defaults
|
||||
|
||||
0.6: May 17, 2012 {{{1
|
||||
- Fix various issues with hsl coloring (reported by teschmitz in
|
||||
https://github.com/chrisbra/color_highlight/issues/9, thanks!)
|
||||
- Make it possible, to skip coloring comments (reported by teschmitz in
|
||||
https://github.com/chrisbra/color_highlight/issues/10, thanks!)
|
||||
- search highlighting should overrule color highlighting(reported by teschmitz
|
||||
in https://github.com/chrisbra/color_highlight/issues/11, thanks!)
|
||||
- updated documentation (suggested by teschmitz, thanks!)
|
||||
|
||||
0.5: Apr 03, 2012 {{{1
|
||||
- Fix issue 7 (reported by teschmitz in
|
||||
https://github.com/chrisbra/color_highlight/issues/7, thanks!)
|
||||
0.4: Mar, 23, 2012 {{{1
|
||||
- |:ColorSwapFgBg| (suggested by teschmitz, in
|
||||
https://github.com/chrisbra/color_highlight/issues/3, thanks!)
|
||||
- make automatic color loading work (reported by wedgwood in
|
||||
https://github.com/chrisbra/color_highlight/issues/6, thanks!)
|
||||
|Colorizer-auto| and |Colorizer-hl-ft|
|
||||
- more documentation updates
|
||||
- added Mappings (suggested by Ingo Karkat, thanks!) |Colorizer-maps|
|
||||
- prevent highlighting of color names (suggested by Tarlika Schmitz in
|
||||
https://github.com/chrisbra/color_highlight/issues/5, thanks!)
|
||||
|Colorizer-hl-names|
|
||||
- enable filetype specific autocommands, so that for certain filetypes
|
||||
colors are highlighted automatically |Colorizer-hl-ft|
|
||||
(suggested by Tarlika Schmitz, thanks!)
|
||||
|
||||
0.3: Mar 15, 2012 {{{1
|
||||
- Use the g:colorizer_fgcontrast variable to have lesser contrast between
|
||||
foreground and background colors (patch by Ingo Karkat, thanks!)
|
||||
- gvim did not color rgb(...) codes
|
||||
- did not correctly highlight 3 letter color codes (issue
|
||||
https://github.com/chrisbra/color_highlight/issues/1,
|
||||
reported by Taybin Rutkin, thanks!)
|
||||
- support autoloading (requested by Ingo Karkat, thanks!)
|
||||
- add |GLVS| support
|
||||
- |:ColorContrast| to interactively switch between contrast settings
|
||||
(suggested by Ingo Karkat, thanks!)
|
||||
0.2: Mar 02, 2012 {{{1
|
||||
|
||||
- Initial upload
|
||||
- development versions are available at the github repository
|
||||
- put plugin on a public repository
|
||||
(http://github.com/chrisbra/color_highlight)
|
||||
|
||||
0.1: Mar 02, 2012 {{{1
|
||||
- first internal version
|
||||
}}}
|
||||
==============================================================================
|
||||
Modeline:
|
||||
vim:tw=78:ts=8:ft=help:et:fdm=marker:fdl=0:norl
|
||||
29
.vim/doc/tags
Normal file
29
.vim/doc/tags
Normal file
@@ -0,0 +1,29 @@
|
||||
:ColorClear Colorizer.txt /*:ColorClear*
|
||||
:ColorContrast Colorizer.txt /*:ColorContrast*
|
||||
:ColorHighlight Colorizer.txt /*:ColorHighlight*
|
||||
:ColorSwapFgBg Colorizer.txt /*:ColorSwapFgBg*
|
||||
:ColorToggle Colorizer.txt /*:ColorToggle*
|
||||
:HSL2RGB Colorizer.txt /*:HSL2RGB*
|
||||
:RGB2Term Colorizer.txt /*:RGB2Term*
|
||||
:Term2RGB Colorizer.txt /*:Term2RGB*
|
||||
Colorizer Colorizer.txt /*Colorizer*
|
||||
Colorizer-auto Colorizer.txt /*Colorizer-auto*
|
||||
Colorizer-comments Colorizer.txt /*Colorizer-comments*
|
||||
Colorizer-config Colorizer.txt /*Colorizer-config*
|
||||
Colorizer-contrast Colorizer.txt /*Colorizer-contrast*
|
||||
Colorizer-custom-colornames Colorizer.txt /*Colorizer-custom-colornames*
|
||||
Colorizer-feedback Colorizer.txt /*Colorizer-feedback*
|
||||
Colorizer-history Colorizer.txt /*Colorizer-history*
|
||||
Colorizer-hl-ft Colorizer.txt /*Colorizer-hl-ft*
|
||||
Colorizer-hl-names Colorizer.txt /*Colorizer-hl-names*
|
||||
Colorizer-manual Colorizer.txt /*Colorizer-manual*
|
||||
Colorizer-maps Colorizer.txt /*Colorizer-maps*
|
||||
Colorizer-names Colorizer.txt /*Colorizer-names*
|
||||
Colorizer-pattern Colorizer.txt /*Colorizer-pattern*
|
||||
Colorizer-slowdown Colorizer.txt /*Colorizer-slowdown*
|
||||
Colorizer-syntax Colorizer.txt /*Colorizer-syntax*
|
||||
Colorizer-taskwarrior-files Colorizer.txt /*Colorizer-taskwarrior-files*
|
||||
Colorizer-tips Colorizer.txt /*Colorizer-tips*
|
||||
Colorizer-vim-files Colorizer.txt /*Colorizer-vim-files*
|
||||
Colorizer-vim-hi Colorizer.txt /*Colorizer-vim-hi*
|
||||
Colorizer.txt Colorizer.txt /*Colorizer.txt*
|
||||
95
.vim/plugin/ColorizerPlugin.vim
Normal file
95
.vim/plugin/ColorizerPlugin.vim
Normal file
@@ -0,0 +1,95 @@
|
||||
" Plugin: Highlight Colornames and Values
|
||||
" Maintainer: Christian Brabandt <cb@256bit.org>
|
||||
" URL: http://www.github.com/chrisbra/color_highlight
|
||||
" Last Change: Thu, 15 Jan 2015 21:49:17 +0100
|
||||
" Licence: Vim License (see :h License)
|
||||
" Version: 0.11
|
||||
" GetLatestVimScripts: 3963 11 :AutoInstall: Colorizer.vim
|
||||
"
|
||||
" This plugin was inspired by the css_color.vim plugin from Nikolaus Hofer.
|
||||
" Changes made: - make terminal colors work more reliably and with all
|
||||
" color terminals
|
||||
" - performance improvements, coloring is almost instantenously
|
||||
" - detect rgb colors like this: rgb(R,G,B)
|
||||
" - detect hsl coloring: hsl(H,V,L)
|
||||
" - fix small bugs
|
||||
|
||||
" Init some variables "{{{1
|
||||
" Plugin folklore "{{{2
|
||||
if v:version < 700 || exists("g:loaded_colorizer") || &cp
|
||||
finish
|
||||
endif
|
||||
let g:loaded_colorizer = 1
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
" helper functions "{{{1
|
||||
fu! ColorHiArgs(A,L,P)
|
||||
return "syntax\nmatch\nnosyntax\nnomatch"
|
||||
endfu
|
||||
|
||||
" define commands "{{{1
|
||||
command! -bang -range=% -nargs=? -complete=custom,ColorHiArgs ColorHighlight
|
||||
\ :call Colorizer#DoColor(<q-bang>, <q-line1>, <q-line2>, <q-args>)
|
||||
command! -bang -nargs=1 RGB2Term
|
||||
\ :call Colorizer#RGB2Term(<q-args>, <q-bang>)
|
||||
command! -nargs=1 Term2RGB :call Colorizer#Term2RGB(<q-args>)
|
||||
|
||||
command! -bang ColorClear :call Colorizer#ColorOff()
|
||||
command! -bang ColorToggle :call Colorizer#ColorToggle()
|
||||
command! -nargs=1 HSL2RGB :call Colorizer#HSL2Term(<q-args>)
|
||||
command! ColorContrast :call Colorizer#SwitchContrast()
|
||||
command! ColorSwapFgBg :call Colorizer#SwitchFGBG()
|
||||
|
||||
" define mappings "{{{1
|
||||
nnoremap <Plug>Colorizer :<C-U>ColorToggle<CR>
|
||||
xnoremap <Plug>Colorizer :ColorHighlight<CR>
|
||||
nnoremap <Plug>ColorContrast :<C-U>ColorContrast<CR>
|
||||
xnoremap <Plug>ColorContrast :<C-U>ColorContrast<CR>
|
||||
nnoremap <Plug>ColorFgBg :<C-U>ColorSwapFgBg<CR>
|
||||
xnoremap <Plug>ColorFgBg :<C-U>ColorSwapFgBg<CR>
|
||||
|
||||
if get(g:, 'colorizer_auto_map', 0)
|
||||
" only map, if the mapped keys are not yet taken by a different plugin
|
||||
" and the user hasn't mapped the function to different keys
|
||||
if empty(maparg('<Leader>cC', 'n')) && empty(hasmapto('<Plug>Colorizer', 'n'))
|
||||
nmap <silent> <Leader>cC <Plug>Colorizer
|
||||
endif
|
||||
if empty(maparg('<Leader>cC', 'x')) && empty(hasmapto('<Plug>Colorizer', 'x'))
|
||||
xmap <silent> <Leader>cC <Plug>Colorizer
|
||||
endif
|
||||
if empty(maparg('<Leader>cT', 'n')) && empty(hasmapto('<Plug>ColorContrast', 'n'))
|
||||
nmap <silent> <Leader>cT <Plug>ColorContrast
|
||||
endif
|
||||
if empty(maparg('<Leader>cT', 'x')) && empty(hasmapto('<Plug>ColorContrast', 'n'))
|
||||
xmap <silent> <Leader>cT <Plug>ColorContrast
|
||||
endif
|
||||
if empty(maparg('<Leader>cF', 'n')) && empty(hasmapto('<Plug>ColorFgBg', 'n'))
|
||||
nmap <silent> <Leader>cF <Plug>ColorFgBg
|
||||
endif
|
||||
if empty(maparg('<Leader>cF', 'x')) && empty(hasmapto('<Plug>ColorFgBg', 'x'))
|
||||
xmap <silent> <Leader>cF <Plug>ColorFgBg
|
||||
endif
|
||||
endif
|
||||
|
||||
" Enable Autocommands "{{{1
|
||||
if exists("g:colorizer_auto_color")
|
||||
" Prevent autoloading
|
||||
exe "call Colorizer#AutoCmds(g:colorizer_auto_color)"
|
||||
endif
|
||||
|
||||
if exists("g:colorizer_auto_filetype")
|
||||
" Setup some autocommands for specific filetypes.
|
||||
aug FT_ColorizerPlugin
|
||||
au!
|
||||
exe "au Filetype" g:colorizer_auto_filetype
|
||||
\ "call Colorizer#LocalFTAutoCmds(1)\|
|
||||
\ :ColorHighlight"
|
||||
aug END
|
||||
endif
|
||||
|
||||
" Plugin folklore and Vim Modeline " {{{1
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
" vim: set foldmethod=marker et fdl=0:
|
||||
Reference in New Issue
Block a user