All new custom OS agnostic vim using vim-plug

This commit is contained in:
2019-10-31 00:19:28 -06:00
parent cfffaf928f
commit 9277cf6e82
69 changed files with 2766 additions and 20902 deletions

View File

@@ -1,2 +1,3 @@
# vimrc
My vimrc stuff
# mReschke Custom VIM
Hand build custom OS agnostic VIM with vim-plug

View File

@@ -1,347 +0,0 @@
" pathogen.vim - path option manipulation
" Maintainer: Tim Pope <http://tpo.pe/>
" Version: 2.3
" Install in ~/.vim/autoload (or ~\vimfiles\autoload).
"
" For management of individually installed plugins in ~/.vim/bundle (or
" ~\vimfiles\bundle), adding `execute pathogen#infect()` to the top of your
" .vimrc is the only other setup necessary.
"
" The API is documented inline below.
if exists("g:loaded_pathogen") || &cp
finish
endif
let g:loaded_pathogen = 1
" Point of entry for basic default usage. Give a relative path to invoke
" pathogen#interpose() (defaults to "bundle/{}"), or an absolute path to invoke
" pathogen#surround(). Curly braces are expanded with pathogen#expand():
" "bundle/{}" finds all subdirectories inside "bundle" inside all directories
" in the runtime path.
function! pathogen#infect(...) abort
for path in a:0 ? filter(reverse(copy(a:000)), 'type(v:val) == type("")') : ['bundle/{}']
if path =~# '^\%({\=[$~\\/]\|{\=\w:[\\/]\).*[{}*]'
call pathogen#surround(path)
elseif path =~# '^\%([$~\\/]\|\w:[\\/]\)'
call s:warn('Change pathogen#infect('.string(path).') to pathogen#infect('.string(path.'/{}').')')
call pathogen#surround(path . '/{}')
elseif path =~# '[{}*]'
call pathogen#interpose(path)
else
call s:warn('Change pathogen#infect('.string(path).') to pathogen#infect('.string(path.'/{}').')')
call pathogen#interpose(path . '/{}')
endif
endfor
call pathogen#cycle_filetype()
if pathogen#is_disabled($MYVIMRC)
return 'finish'
endif
return ''
endfunction
" Split a path into a list.
function! pathogen#split(path) abort
if type(a:path) == type([]) | return a:path | endif
if empty(a:path) | return [] | endif
let split = split(a:path,'\\\@<!\%(\\\\\)*\zs,')
return map(split,'substitute(v:val,''\\\([\\,]\)'',''\1'',"g")')
endfunction
" Convert a list to a path.
function! pathogen#join(...) abort
if type(a:1) == type(1) && a:1
let i = 1
let space = ' '
else
let i = 0
let space = ''
endif
let path = ""
while i < a:0
if type(a:000[i]) == type([])
let list = a:000[i]
let j = 0
while j < len(list)
let escaped = substitute(list[j],'[,'.space.']\|\\[\,'.space.']\@=','\\&','g')
let path .= ',' . escaped
let j += 1
endwhile
else
let path .= "," . a:000[i]
endif
let i += 1
endwhile
return substitute(path,'^,','','')
endfunction
" Convert a list to a path with escaped spaces for 'path', 'tag', etc.
function! pathogen#legacyjoin(...) abort
return call('pathogen#join',[1] + a:000)
endfunction
" Turn filetype detection off and back on again if it was already enabled.
function! pathogen#cycle_filetype() abort
if exists('g:did_load_filetypes')
filetype off
filetype on
endif
endfunction
" Check if a bundle is disabled. A bundle is considered disabled if its
" basename or full name is included in the list g:pathogen_disabled.
function! pathogen#is_disabled(path) abort
if a:path =~# '\~$'
return 1
endif
let sep = pathogen#slash()
let blacklist = map(
\ get(g:, 'pathogen_blacklist', get(g:, 'pathogen_disabled', [])) +
\ pathogen#split($VIMBLACKLIST),
\ 'substitute(v:val, "[\\/]$", "", "")')
return index(blacklist, fnamemodify(a:path, ':t')) != -1 || index(blacklist, a:path) != -1
endfunction "}}}1
" Prepend the given directory to the runtime path and append its corresponding
" after directory. Curly braces are expanded with pathogen#expand().
function! pathogen#surround(path) abort
let sep = pathogen#slash()
let rtp = pathogen#split(&rtp)
let path = fnamemodify(a:path, ':p:?[\\/]\=$??')
let before = filter(pathogen#expand(path), '!pathogen#is_disabled(v:val)')
let after = filter(reverse(pathogen#expand(path.sep.'after')), '!pathogen#is_disabled(v:val[0:-7])')
call filter(rtp, 'index(before + after, v:val) == -1')
let &rtp = pathogen#join(before, rtp, after)
return &rtp
endfunction
" For each directory in the runtime path, add a second entry with the given
" argument appended. Curly braces are expanded with pathogen#expand().
function! pathogen#interpose(name) abort
let sep = pathogen#slash()
let name = a:name
if has_key(s:done_bundles, name)
return ""
endif
let s:done_bundles[name] = 1
let list = []
for dir in pathogen#split(&rtp)
if dir =~# '\<after$'
let list += reverse(filter(pathogen#expand(dir[0:-6].name.sep.'after'), '!pathogen#is_disabled(v:val[0:-7])')) + [dir]
else
let list += [dir] + filter(pathogen#expand(dir.sep.name), '!pathogen#is_disabled(v:val)')
endif
endfor
let &rtp = pathogen#join(pathogen#uniq(list))
return 1
endfunction
let s:done_bundles = {}
" Invoke :helptags on all non-$VIM doc directories in runtimepath.
function! pathogen#helptags() abort
let sep = pathogen#slash()
for glob in pathogen#split(&rtp)
for dir in map(split(glob(glob), "\n"), 'v:val.sep."/doc/".sep')
if (dir)[0 : strlen($VIMRUNTIME)] !=# $VIMRUNTIME.sep && filewritable(dir) == 2 && !empty(split(glob(dir.'*.txt'))) && (!filereadable(dir.'tags') || filewritable(dir.'tags'))
silent! execute 'helptags' pathogen#fnameescape(dir)
endif
endfor
endfor
endfunction
command! -bar Helptags :call pathogen#helptags()
" Execute the given command. This is basically a backdoor for --remote-expr.
function! pathogen#execute(...) abort
for command in a:000
execute command
endfor
return ''
endfunction
" Section: Unofficial
function! pathogen#is_absolute(path) abort
return a:path =~# (has('win32') ? '^\%([\\/]\|\w:\)[\\/]\|^[~$]' : '^[/~$]')
endfunction
" Given a string, returns all possible permutations of comma delimited braced
" alternatives of that string. pathogen#expand('/{a,b}/{c,d}') yields
" ['/a/c', '/a/d', '/b/c', '/b/d']. Empty braces are treated as a wildcard
" and globbed. Actual globs are preserved.
function! pathogen#expand(pattern) abort
if a:pattern =~# '{[^{}]\+}'
let [pre, pat, post] = split(substitute(a:pattern, '\(.\{-\}\){\([^{}]\+\)}\(.*\)', "\\1\001\\2\001\\3", ''), "\001", 1)
let found = map(split(pat, ',', 1), 'pre.v:val.post')
let results = []
for pattern in found
call extend(results, pathogen#expand(pattern))
endfor
return results
elseif a:pattern =~# '{}'
let pat = matchstr(a:pattern, '^.*{}[^*]*\%($\|[\\/]\)')
let post = a:pattern[strlen(pat) : -1]
return map(split(glob(substitute(pat, '{}', '*', 'g')), "\n"), 'v:val.post')
else
return [a:pattern]
endif
endfunction
" \ on Windows unless shellslash is set, / everywhere else.
function! pathogen#slash() abort
return !exists("+shellslash") || &shellslash ? '/' : '\'
endfunction
function! pathogen#separator() abort
return pathogen#slash()
endfunction
" Convenience wrapper around glob() which returns a list.
function! pathogen#glob(pattern) abort
let files = split(glob(a:pattern),"\n")
return map(files,'substitute(v:val,"[".pathogen#slash()."/]$","","")')
endfunction "}}}1
" Like pathogen#glob(), only limit the results to directories.
function! pathogen#glob_directories(pattern) abort
return filter(pathogen#glob(a:pattern),'isdirectory(v:val)')
endfunction "}}}1
" Remove duplicates from a list.
function! pathogen#uniq(list) abort
let i = 0
let seen = {}
while i < len(a:list)
if (a:list[i] ==# '' && exists('empty')) || has_key(seen,a:list[i])
call remove(a:list,i)
elseif a:list[i] ==# ''
let i += 1
let empty = 1
else
let seen[a:list[i]] = 1
let i += 1
endif
endwhile
return a:list
endfunction
" Backport of fnameescape().
function! pathogen#fnameescape(string) abort
if exists('*fnameescape')
return fnameescape(a:string)
elseif a:string ==# '-'
return '\-'
else
return substitute(escape(a:string," \t\n*?[{`$\\%#'\"|!<"),'^[+>]','\\&','')
endif
endfunction
" Like findfile(), but hardcoded to use the runtimepath.
function! pathogen#runtime_findfile(file,count) abort "{{{1
let rtp = pathogen#join(1,pathogen#split(&rtp))
let file = findfile(a:file,rtp,a:count)
if file ==# ''
return ''
else
return fnamemodify(file,':p')
endif
endfunction
" Section: Deprecated
function! s:warn(msg) abort
echohl WarningMsg
echomsg a:msg
echohl NONE
endfunction
" Prepend all subdirectories of path to the rtp, and append all 'after'
" directories in those subdirectories. Deprecated.
function! pathogen#runtime_prepend_subdirectories(path) abort
call s:warn('Change pathogen#runtime_prepend_subdirectories('.string(a:path).') to pathogen#infect('.string(a:path.'/{}').')')
return pathogen#surround(a:path . pathogen#slash() . '{}')
endfunction
function! pathogen#incubate(...) abort
let name = a:0 ? a:1 : 'bundle/{}'
call s:warn('Change pathogen#incubate('.(a:0 ? string(a:1) : '').') to pathogen#infect('.string(name).')')
return pathogen#interpose(name)
endfunction
" Deprecated alias for pathogen#interpose().
function! pathogen#runtime_append_all_bundles(...) abort
if a:0
call s:warn('Change pathogen#runtime_append_all_bundles('.string(a:1).') to pathogen#infect('.string(a:1.'/{}').')')
else
call s:warn('Change pathogen#runtime_append_all_bundles() to pathogen#infect()')
endif
return pathogen#interpose(a:0 ? a:1 . '/{}' : 'bundle/{}')
endfunction
if exists(':Vedit')
finish
endif
let s:vopen_warning = 0
function! s:find(count,cmd,file,lcd)
let rtp = pathogen#join(1,pathogen#split(&runtimepath))
let file = pathogen#runtime_findfile(a:file,a:count)
if file ==# ''
return "echoerr 'E345: Can''t find file \"".a:file."\" in runtimepath'"
endif
if !s:vopen_warning
let s:vopen_warning = 1
let warning = '|echohl WarningMsg|echo "Install scriptease.vim to continue using :V'.a:cmd.'"|echohl NONE'
else
let warning = ''
endif
if a:lcd
let path = file[0:-strlen(a:file)-2]
execute 'lcd `=path`'
return a:cmd.' '.pathogen#fnameescape(a:file) . warning
else
return a:cmd.' '.pathogen#fnameescape(file) . warning
endif
endfunction
function! s:Findcomplete(A,L,P)
let sep = pathogen#slash()
let cheats = {
\'a': 'autoload',
\'d': 'doc',
\'f': 'ftplugin',
\'i': 'indent',
\'p': 'plugin',
\'s': 'syntax'}
if a:A =~# '^\w[\\/]' && has_key(cheats,a:A[0])
let request = cheats[a:A[0]].a:A[1:-1]
else
let request = a:A
endif
let pattern = substitute(request,'/\|\'.sep,'*'.sep,'g').'*'
let found = {}
for path in pathogen#split(&runtimepath)
let path = expand(path, ':p')
let matches = split(glob(path.sep.pattern),"\n")
call map(matches,'isdirectory(v:val) ? v:val.sep : v:val')
call map(matches,'expand(v:val, ":p")[strlen(path)+1:-1]')
for match in matches
let found[match] = 1
endfor
endfor
return sort(keys(found))
endfunction
command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Ve :execute s:find(<count>,'edit<bang>',<q-args>,0)
command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vedit :execute s:find(<count>,'edit<bang>',<q-args>,0)
command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vopen :execute s:find(<count>,'edit<bang>',<q-args>,1)
command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vsplit :execute s:find(<count>,'split',<q-args>,<bang>1)
command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vvsplit :execute s:find(<count>,'vsplit',<q-args>,<bang>1)
command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vtabedit :execute s:find(<count>,'tabedit',<q-args>,<bang>1)
command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vpedit :execute s:find(<count>,'pedit',<q-args>,<bang>1)
command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vread :execute s:find(<count>,'read',<q-args>,<bang>1)
" vim:set et sw=2 foldmethod=expr foldexpr=getline(v\:lnum)=~'^\"\ Section\:'?'>1'\:getline(v\:lnum)=~#'^fu'?'a1'\:getline(v\:lnum)=~#'^endf'?'s1'\:'=':

2538
autoload/plug.vim Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,26 +1,26 @@
"
" Personal preference .vimrc file
" Maintained by Vincent Driessen <vincent@datafox.nl>
"
" My personally preferred version of vim is the one with the "big" feature
" set, in addition to the following configure options:
"
" ./configure --with-features=BIG
" --enable-pythoninterp --enable-rubyinterp
" --enable-enablemultibyte --enable-gui=no --with-x --enable-cscope
" --with-compiledby="Vincent Driessen <vincent@datafox.nl>"
" --prefix=/usr
"
" To start vim without using this .vimrc file, use:
" vim -u NORC
"
" To start vim without loading any .vimrc or plugins, use:
" vim -u NONE
"
" mReschke Personal Debian based Vimrc
" 2015-03-02
" Use vim settings, rather then vi settings (much better!)
" This must be first, because it changes other options as a side effect.
set nocompatible
" All system-wide defaults are set in $VIMRUNTIME/debian.vim and sourced by
" the call to :runtime you can find below. If you wish to change any of those
" settings, you should do it in this file (/etc/vim/vimrc), since debian.vim
" will be overwritten everytime an upgrade of the vim packages is performed.
" It is recommended to make changes after sourcing debian.vim since it alters
" the value of the 'compatible' option.
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.
runtime! debian.vim
" Uncomment the next line to make Vim more Vi-compatible
" NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes numerous
" options, so any other options should be set AFTER setting 'compatible'.
"set compatible
" Source a global configuration file if available
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
endif
" Use pathogen to easily modify the runtime path to include all plugins under
" the ~/.vim/bundle directory
@@ -30,21 +30,23 @@ call pathogen#helptags()
filetype plugin indent on " enable detection, plugins and indenting in one step
syntax on
" Change shell
set shell=bash " Vim expects a POSIX-compliant shell, which Fish (my default shell) is not
" Change the mapleader from \ to ,
let mapleader=","
let maplocalleader="\\"
scriptencoding utf-8
set encoding=utf-8
" Editing behaviour {{{
set showmode " always show what mode we're currently editing in
set nowrap " don't wrap lines
set tabstop=4 " a tab is four spaces
set softtabstop=4 " when hitting <BS>, pretend like a tab is removed, even if spaces
set expandtab " expand tabs by default (overloadable per file type later)
set shiftwidth=4 " number of spaces to use for autoindenting
set showmode " always show what mode we're currently editing in
set nowrap " don't wrap lines
set tabstop=4 " a tab is four spaces"set softtabstop=4
set softtabstop=4 " when hitting <BS>, pretend like a tab is removed, even if spaces
set expandtab " expand tabs by default (overloadable per file type later) use expandtab or noexpandtab (ie tabs to spaces true/false)
set shiftwidth=4 " number of spaces to use for autoindenting
set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
set backspace=indent,eol,start " allow backspacing over everything in insert mode
set autoindent " always set autoindenting on
set copyindent " copy the previous indentation on autoindenting
@@ -56,7 +58,7 @@ set smartcase " ignore case if search pattern is all lowercase
set smarttab " insert tabs on the start of a line according to
" shiftwidth, not tabstop
set scrolloff=4 " keep 4 lines off the edges of the screen when scrolling
set virtualedit=all " allow the cursor to go in to "invalid" places
"set virtualedit=all " allow the cursor to go in to "invalid" places
set hlsearch " highlight search terms
set incsearch " show search matches as you type
set gdefault " search/replace "globally" (on a line) by default
@@ -67,7 +69,7 @@ set nolist " don't show invisible characters by default,
set pastetoggle=<F2> " when in insert mode, press <F2> to go to
" paste mode, where you can paste mass data
" that won't be autoindented
set mouse=a " enable using the mouse if terminal emulator
"set mouse=a " enable using the mouse if terminal emulator
" supports it (xterm does)
set fileformats="unix,dos,mac"
set formatoptions+=1 " When wrapping paragraphs, don't end lines
@@ -80,12 +82,16 @@ set nrformats= " make <C-a> and <C-x> play well with
set shortmess+=I " hide the launch screen
set clipboard=unnamed " normal OS clipboard interaction
set autoread " automatically reload files changed outside of Vim
"set autowrite " automatically save file on buffer switch
" Allow saving of files as sudo when I forgot to start vim using sudo.
cmap w!! w !sudo tee > /dev/null %
" Toggle show/hide invisible chars
nnoremap <leader>i :set list!<cr>
" Toggle line numbers
nnoremap <leader>N :setlocal number!<cr>
nnoremap <leader>m :setlocal number!<cr>
" Thanks to Steve Losh for this liberating tip
" See http://stevelosh.com/blog/2010/09/coming-home-to-vim
@@ -104,6 +110,8 @@ set foldmethod=marker " detect triple-{ style fold markers
set foldlevelstart=99 " start out with everything unfolded
set foldopen=block,hor,insert,jump,mark,percent,quickfix,search,tag,undo
" which commands trigger auto-unfold
let php_folding=1
function! MyFoldText()
let line = getline(v:foldstart)
@@ -128,6 +136,8 @@ nnoremap z2 :set foldlevel=2<cr>
nnoremap z3 :set foldlevel=3<cr>
nnoremap z4 :set foldlevel=4<cr>
nnoremap z5 :set foldlevel=5<cr>
nnoremap <Space> za
vnoremap <Space> za
" }}}
" Editor layout {{{
@@ -136,7 +146,7 @@ set encoding=utf-8
set lazyredraw " don't update the display while executing macros
set laststatus=2 " tell VIM to always put a status line in, even
" if there is only one window
set cmdheight=2 " use a status bar that is 2 rows high
"set cmdheight=2 " use a status bar that is 2 rows high
" }}}
" Vim behaviour {{{
@@ -172,9 +182,10 @@ set showcmd " show (partial) command in the last line of the
" this also shows visual selection info
set nomodeline " disable mode lines (security measure)
"set ttyfast " always use a fast terminal
set cursorline " underline the current line, for quick orientation
"set cursorline " underline the current line, for quick orientation
" }}}
" Toggle the quickfix window {{{
" From Steve Losh, http://learnvimscriptthehardway.stevelosh.com/chapters/38.html
nnoremap <C-q> :call <SID>QuickfixToggle()<cr>
@@ -250,10 +261,10 @@ nnoremap ' `
nnoremap ` '
" Use the damn hjkl keys
" noremap <up> <nop>
" noremap <down> <nop>
" noremap <left> <nop>
" noremap <right> <nop>
"noremap <up> <nop>
"noremap <down> <nop>
"noremap <left> <nop>
"noremap <right> <nop>
" Remap j and k to act as expected when used on long, wrapped, lines
nnoremap j gj
@@ -266,6 +277,13 @@ noremap <C-k> <C-w>k
noremap <C-l> <C-w>l
nnoremap <leader>w <C-w>v<C-w>l
"Resize vsplit
nmap <C-v> :vertical resize +5<cr>
nmap 25 :vertical resize 40<cr>
"Load the current buffer in Chrome
"nmap <leader>o :!chromium<cr>
" Complete whole filenames/lines with a quicker shortcut key in insert mode
inoremap <C-f> <C-x><C-f>
inoremap <C-l> <C-x><C-l>
@@ -283,8 +301,8 @@ let g:yankring_history_dir = '$HOME/.vim/.tmp'
nnoremap <leader>r :YRShow<CR>
" Edit the vimrc file
nnoremap <silent> <leader>ev :e $MYVIMRC<CR>
nnoremap <silent> <leader>sv :so $MYVIMRC<CR>
nnoremap <silent> <leader>ev :e /etc/vim/vimrc<CR>
nnoremap <silent> <leader>sv :so /etc/vim/vimrc<CR>
" Clears the search register
nnoremap <silent> <leader>/ :nohlsearch<CR>
@@ -311,18 +329,15 @@ inoremap jj <Esc>
cnoremap w!! w !sudo tee % >/dev/null
" Ctrl+W to redraw
nnoremap <C-w> :redraw!<cr>
"nnoremap <C-w> :redraw!<cr>
" Jump to matching pairs easily, with Tab
nnoremap <Tab> %
vnoremap <Tab> %
" Folding
nnoremap <Space> za
vnoremap <Space> za
" Strip all trailing whitespace from a file, using ,W
nnoremap <leader>W :%s/\s\+$//<CR>:let @/=''<CR>
" NO, makes toooo many edits to files
"nnoremap <leader>W :%s/\s\+$//<CR>:let @/=''<CR>
" Use The Silver Searcher over grep, iff possible
if executable('ag')
@@ -361,12 +376,15 @@ nnoremap <F5> :GundoToggle<CR>
" }}}
" NERDTree settings {{{
nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <leader>m :NERDTreeClose<CR>:NERDTreeFind<CR>
nnoremap <leader>N :NERDTreeClose<CR>
nnoremap <leader>n :NERDTreeTabsToggle<CR>
"nnoremap <leader>n :NERDTree<CR>
"nnoremap <leader>m :NERDTreeClose<CR>:NERDTreeFind<CR>
"conflicts with toggle line numbers
"nnoremap <leader>N :NERDTreeClose<CR>
" Store the bookmarks file
let NERDTreeBookmarksFile=expand("$HOME/.vim/NERDTreeBookmarks")
"let NERDTreeBookmarksFile=expand("$HOME/.vim/NERDTreeBookmarks")
let NERDTreeBookmarksFile=expand("/etc/vim/NERDTreeBookmarks")
" Show the bookmarks table on startup
let NERDTreeShowBookmarks=1
@@ -434,196 +452,12 @@ match ErrorMsg '^\(<\|=\|>\)\{7\}\([^=].\+\)\?$'
nnoremap <silent> <leader>c /^\(<\\|=\\|>\)\{7\}\([^=].\+\)\?$<CR>
" }}}
" Filetype specific handling {{{
" only do this part when compiled with support for autocommands
if has("autocmd")
augroup invisible_chars "{{{
au!
" Show invisible characters in all of these files
autocmd filetype vim setlocal list
autocmd filetype python,rst setlocal list
autocmd filetype ruby setlocal list
autocmd filetype javascript,css setlocal list
augroup end "}}}
augroup vim_files "{{{
au!
" Bind <F1> to show the keyword under cursor
" general help can still be entered manually, with :h
autocmd filetype vim noremap <buffer> <F1> <Esc>:help <C-r><C-w><CR>
autocmd filetype vim noremap! <buffer> <F1> <Esc>:help <C-r><C-w><CR>
augroup end "}}}
augroup html_files "{{{
au!
" This function detects, based on HTML content, whether this is a
" Django template, or a plain HTML file, and sets filetype accordingly
fun! s:DetectHTMLVariant()
let n = 1
while n < 50 && n < line("$")
" check for django
if getline(n) =~ '{%\s*\(extends\|load\|block\|if\|for\|include\|trans\)\>'
set ft=htmldjango.html
return
endif
let n = n + 1
endwhile
" go with html
set ft=html
endfun
" Auto-tidy selection
vnoremap <leader>x :!tidy -q -i --show-errors 0 --show-body-only 1 --wrap 0<cr><cr>
autocmd BufNewFile,BufRead *.html,*.htm,*.j2 call s:DetectHTMLVariant()
" Auto-closing of HTML/XML tags
let g:closetag_default_xml=1
autocmd filetype html,htmldjango let b:closetag_html_style=1
autocmd filetype html,xhtml,xml source ~/.vim/scripts/closetag.vim
augroup end " }}}
augroup python_files "{{{
au!
" This function detects, based on Python content, whether this is a
" Django file, which may enabling snippet completion for it
fun! s:DetectPythonVariant()
let n = 1
while n < 50 && n < line("$")
" check for django
if getline(n) =~ 'import\s\+\<django\>' || getline(n) =~ 'from\s\+\<django\>\s\+import'
set ft=python.django
"set syntax=python
return
endif
let n = n + 1
endwhile
" go with html
set ft=python
endfun
autocmd BufNewFile,BufRead *.py call s:DetectPythonVariant()
" PEP8 compliance (set 1 tab = 4 chars explicitly, even if set
" earlier, as it is important)
autocmd filetype python setlocal textwidth=78
autocmd filetype python match ErrorMsg '\%>120v.\+'
" But disable autowrapping as it is super annoying
autocmd filetype python setlocal formatoptions-=t
" Folding for Python (uses syntax/python.vim for fold definitions)
"autocmd filetype python,rst setlocal nofoldenable
"autocmd filetype python setlocal foldmethod=expr
" Python runners
autocmd filetype python noremap <buffer> <F5> :w<CR>:!python %<CR>
autocmd filetype python inoremap <buffer> <F5> <Esc>:w<CR>:!python %<CR>
autocmd filetype python noremap <buffer> <S-F5> :w<CR>:!ipython %<CR>
autocmd filetype python inoremap <buffer> <S-F5> <Esc>:w<CR>:!ipython %<CR>
" Toggling True/False
autocmd filetype python nnoremap <silent> <C-t> mmviw:s/True\\|False/\={'True':'False','False':'True'}[submatch(0)]/<CR>`m:nohlsearch<CR>
" Run a quick static syntax check every time we save a Python file
autocmd BufWritePost *.py call Flake8()
" Defer to isort for sorting headers (instead of using Unix sort)
autocmd filetype python nnoremap <leader>s :Isort<cr>
augroup end " }}}
augroup supervisord_files "{{{
au!
autocmd BufNewFile,BufRead supervisord.conf set ft=dosini
augroup end " }}}
augroup markdown_files "{{{
au!
autocmd filetype markdown noremap <buffer> <leader>p :w<CR>:!open -a Marked %<CR><CR>
augroup end " }}}
augroup ruby_files "{{{
au!
augroup end " }}}
augroup rst_files "{{{
au!
" Auto-wrap text around 74 chars
autocmd filetype rst setlocal textwidth=74
autocmd filetype rst setlocal formatoptions+=nqt
autocmd filetype rst match ErrorMsg '\%>74v.\+'
augroup end " }}}
augroup css_files "{{{
au!
autocmd filetype css,less setlocal foldmethod=marker foldmarker={,}
augroup end "}}}
augroup javascript_files "{{{
au!
autocmd filetype javascript setlocal expandtab
autocmd filetype javascript setlocal listchars=trail:·,extends:#,nbsp:·
autocmd filetype javascript setlocal foldmethod=marker foldmarker={,}
" Toggling True/False
autocmd filetype javascript nnoremap <silent> <C-t> mmviw:s/true\\|false/\={'true':'false','false':'true'}[submatch(0)]/<CR>`m:nohlsearch<CR>
" Enable insertion of "debugger" statement in JS files
autocmd filetype javascript nnoremap <leader>b Odebugger;<esc>
augroup end "}}}
augroup textile_files "{{{
au!
autocmd filetype textile set tw=78 wrap
" Render YAML front matter inside Textile documents as comments
autocmd filetype textile syntax region frontmatter start=/\%^---$/ end=/^---$/
autocmd filetype textile highlight link frontmatter Comment
augroup end "}}}
endif
" }}}
" Skeleton processing {{{
if has("autocmd")
"if !exists('*LoadTemplate')
"function LoadTemplate(file)
"" Add skeleton fillings for Python (normal and unittest) files
"if a:file =~ 'test_.*\.py$'
"execute "0r ~/.vim/skeleton/test_template.py"
"elseif a:file =~ '.*\.py$'
"execute "0r ~/.vim/skeleton/template.py"
"endif
"endfunction
"endif
"autocmd BufNewFile * call LoadTemplate(@%)
endif " has("autocmd")
" }}}
" Restore cursor position upon reopening files {{{
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
" }}}
" Common abbreviations / misspellings {{{
source ~/.vim/autocorrect.vim
" }}}
" Restore or remember last cursor position upon reopening files {{{
"autocmd BufReadPost *
" \ if line("'\"") > 0 && line("'\"") <= line("$") |
" \ exe "normal! g`\"" |
" \ endif
" }}}
" Extra vi-compatibility {{{
" set extra vi-compatible options
@@ -633,41 +467,24 @@ set formatoptions-=o " don't start new lines w/ comment leader on pressing 'o'
au filetype vim set formatoptions-=o
" somehow, during vim filetype detection, this gets set
" for vim files, so explicitly unset it again
" }}}
" }}}
" Extra user or machine specific settings {{{
source ~/.vim/user.vim
" }}}
" Ignore common directories
let g:ctrlp_custom_ignore = {
\ 'dir': 'node_modules\|bower_components',
\ }
" Creating underline/overline headings for markup languages
" Inspired by http://sphinx.pocoo.org/rest.html#sections
nnoremap <leader>1 yyPVr=jyypVr=
nnoremap <leader>2 yyPVr*jyypVr*
nnoremap <leader>3 yypVr=
nnoremap <leader>4 yypVr-
nnoremap <leader>5 yypVr^
nnoremap <leader>6 yypVr"
" Invoke CtrlP, but CommandT style
nnoremap <leader>t :CtrlP<cr>
nnoremap <leader>b :CtrlPTag<cr>
nnoremap <leader>. :CtrlPBuffer<cr>
iab lorem Lorem ipsum dolor sit amet, consectetur adipiscing elit
iab llorem Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam lacus ligula, accumsan id imperdiet rhoncus, dapibus vitae arcu. Nulla non quam erat, luctus consequat nisi
iab lllorem Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam lacus ligula, accumsan id imperdiet rhoncus, dapibus vitae arcu. Nulla non quam erat, luctus consequat nisi. Integer hendrerit lacus sagittis erat fermentum tincidunt. Cras vel dui neque. In sagittis commodo luctus. Mauris non metus dolor, ut suscipit dui. Aliquam mauris lacus, laoreet et consequat quis, bibendum id ipsum. Donec gravida, diam id imperdiet cursus, nunc nisl bibendum sapien, eget tempor neque elit in tortor
"set guifont=Anonymous\ for\ Powerline:h12 linespace=2
"set guifont=Droid\ Sans\ Mono:h14 linespace=0
"set guifont=Mensch\ for\ Powerline:h14 linespace=0
"set guifont=saxMono:h14 linespace=3
"set guifont=Ubuntu\ Mono:h18 linespace=3
set guifont=Source\ Code\ Pro\ Light:h10 linespace=0
if has("gui_running")
"colorscheme molokai
"colorscheme railscat
"colorscheme kellys
"colorscheme wombat256
"colorscheme mustang
"colorscheme mustang_silent
"colorscheme badwolf
"colorscheme jellybeans
colorscheme jellybeans
" Remove toolbar, left scrollbar and right scrollbar
set guioptions-=T
@@ -676,16 +493,14 @@ if has("gui_running")
set guioptions-=r
set guioptions-=R
else
set bg=dark
set background=dark
"colorscheme molokai
"colorscheme railscat
"colorscheme molokai_deep
"colorscheme wombat256
"colorscheme mustang
"colorscheme mustang_silent
"colorscheme badwolf
colorscheme jellybeans
"colorscheme heroku-terminal
"colorscheme benokai
endif
" Pulse ------------------------------------------------------------------- {{{
@@ -730,125 +545,63 @@ endfunction
" Powerline configuration ------------------------------------------------- {{{
let g:Powerline_symbols = 'compatible'
" Dont have powerline, too much of a pain to install, to many dependencies
"let g:Powerline_symbols = 'compatible'
"let g:Powerline_symbols = 'fancy'
" }}}
" }}}
" Python mode configuration ----------------------------------------------- {{{
" Don't run pylint on every save
let g:pymode = 0
let g:pymode_breakpoint = 0
let g:pymode_breakpoint_bind = '<leader>b'
let g:pymode_doc = 0
let g:pymode_doc_bind = 'K'
let g:pymode_folding = 0
let g:pymode_indent = 0
let g:pymode_lint = 0
let g:pymode_lint_checkers = ['pyflakes', 'pep8', 'mccabe']
let g:pymode_lint_cwindow = 1
let g:pymode_lint_ignore = ''
let g:pymode_lint_message = 1
let g:pymode_lint_on_fly = 0
let g:pymode_lint_on_write = 0
let g:pymode_lint_select = ''
let g:pymode_lint_signs = 1
let g:pymode_motion = 0
let g:pymode_options = 0
let g:pymode_paths = []
let g:pymode_quickfix_maxheight = 6
let g:pymode_quickfix_minheight = 3
let g:pymode_rope = 0
let g:pymode_run = 0
let g:pymode_run_bind = '<leader>r'
let g:pymode_trim_whitespaces = 0
" }}}
" Linters configuration -------------------------------------------------- {{{
" Don't run linters for Python (conflicts with vim-flake8 and lint.vim plugins)
let g:linters_disabled_filetypes = ['python', 'html']
" To add more linters, do this:
"
" let g:linters_extra = []
" if executable('jshint')
" let g:linters_extra += [
" \ ['javascript', 'jshint %s > %s', ["%f: line %l, col %c, %m"]],
" \]
" endif
" }}}
" Ignore common directories
let g:ctrlp_custom_ignore = {
\ 'dir': 'node_modules\|bower_components',
\ }
" Invoke CtrlP, but CommandT style
nnoremap <leader>t :CtrlP<cr>
nnoremap <leader>. :CtrlPTag<cr>
nnoremap <leader>b :CtrlPBuffer<cr>
" Learn Vim Script the Hard Way Exercises
"noremap - ddp
"noremap _ ddkP
" C-U in insert/normal mode, to uppercase the word under cursor
inoremap <c-u> <esc>viwUea
nnoremap <c-u> viwUe
iabbr m@@ me@nvie.com
iabbr v@@ vincent@3rdcloud.com
iabbr ssig --<cr>Vincent Driessen<cr>vincent@3rdcloud.com
" Quote words under cursor
nnoremap <leader>" viW<esc>a"<esc>gvo<esc>i"<esc>gvo<esc>3l
nnoremap <leader>' viW<esc>a'<esc>gvo<esc>i'<esc>gvo<esc>3l
" Quote current selection
" TODO: This only works for selections that are created "forwardly"
vnoremap <leader>" <esc>a"<esc>gvo<esc>i"<esc>gvo<esc>ll
vnoremap <leader>' <esc>a'<esc>gvo<esc>i'<esc>gvo<esc>ll
" Use shift-H and shift-L for move to beginning/end
nnoremap H 0
nnoremap L $
" Define operator-pending mappings to quickly apply commands to function names
" and/or parameter lists in the current line
onoremap inf :<c-u>normal! 0f(hviw<cr>
onoremap anf :<c-u>normal! 0f(hvaw<cr>
onoremap in( :<c-u>normal! 0f(vi(<cr>
onoremap an( :<c-u>normal! 0f(va(<cr>
" "Next" tag
onoremap int :<c-u>normal! 0f<vit<cr>
onoremap ant :<c-u>normal! 0f<vat<cr>
" Function argument selection (change "around argument", change "inside argument")
onoremap ia :<c-u>execute "normal! ?[,(]\rwv/[),]\rh"<cr>
vnoremap ia :<c-u>execute "normal! ?[,(]\rwv/[),]\rh"<cr>
nnoremap L $
" Split previously opened file ('#') in a split window
nnoremap <leader>sh :execute "leftabove vsplit" bufname('#')<cr>
nnoremap <leader>sl :execute "rightbelow vsplit" bufname('#')<cr>
" Grep searches
"nnoremap <leader>g :silent execute "grep! -R " . shellescape('<cword>') . " ."<cr>:copen 12<cr>
"nnoremap <leader>G :silent execute "grep! -R " . shellescape('<cWORD>') . " ."<cr>:copen 12<cr>
" Abbreviations
" ------------------------------------------------------------------------- {{{
"abbrev pv !php artisan
" }}}
" Run tests
inoremap <leader>w <esc>:write<cr>:!./run_tests.sh %<cr>
nnoremap <leader>w :!./run_tests.sh<cr>
" Rope config
nnoremap <leader>A :RopeAutoImport<cr>
" Laravel and PHP stuff --------------------------------------------------- {{{
" Auto-remove trailing spaces in PHP files
autocmd BufWritePre *.php :%s/\s\+$//e
" Laravel framework commons
"nmap <leader>lr :e app/routes.php<cr>
"nmap <leader>lca :e app/config/app.php<cr>81Gf(%O
"nmap <leader>lcd :e app/config/database.php<cr>
"nmap <leader>lc :e composer.json<cr>
" I don't want to pull up these folders/files when calling CtrlP
set wildignore+=*/vendor/**
set wildignore+=*/node_modules/**
"Auto change directory to match current file ,cd
nnoremap ,cd :cd %:p:h<CR>:pwd<CR>
" Prepare a new PHP class
function! Class()
let name = input('Class name? ')
let namespace = input('Any Namespace? ')
if strlen(namespace)
exec "normal i<?php namespace " . namespace . ";\<C-M>\<C-M>"
else
exec "normal i<?php \<C-m>"
endif
" Open class
exec "normal iclass " . name . " {\<C-m>}\<C-[>O\<C-[>"
exec "normal i\<C-M> public function __construct()\<C-M>{\<C-M>\<C-M>}\<C-[>"
endfunction
nmap ,1 :call Class()<cr>
" }}}
" Switch from block-cursor to vertical-line-cursor when going into/out of
" insert mode
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"

File diff suppressed because it is too large Load Diff

View File

@@ -1,140 +0,0 @@
" =============================================================================
" File: autoload/ctrlp/bookmarkdir.vim
" Description: Bookmarked directories extension
" Author: Kien Nguyen <github.com/kien>
" =============================================================================
" Init {{{1
if exists('g:loaded_ctrlp_bookmarkdir') && g:loaded_ctrlp_bookmarkdir
fini
en
let g:loaded_ctrlp_bookmarkdir = 1
cal add(g:ctrlp_ext_vars, {
\ 'init': 'ctrlp#bookmarkdir#init()',
\ 'accept': 'ctrlp#bookmarkdir#accept',
\ 'lname': 'bookmarked dirs',
\ 'sname': 'bkd',
\ 'type': 'tabs',
\ 'opmul': 1,
\ 'nolim': 1,
\ 'wipe': 'ctrlp#bookmarkdir#remove',
\ })
let s:id = g:ctrlp_builtins + len(g:ctrlp_ext_vars)
" Utilities {{{1
fu! s:getinput(str, ...)
echoh Identifier
cal inputsave()
let input = call('input', a:0 ? [a:str] + a:000 : [a:str])
cal inputrestore()
echoh None
retu input
endf
fu! s:cachefile()
if !exists('s:cadir') || !exists('s:cafile')
let s:cadir = ctrlp#utils#cachedir().ctrlp#utils#lash().'bkd'
let s:cafile = s:cadir.ctrlp#utils#lash().'cache.txt'
en
retu s:cafile
endf
fu! s:writecache(lines)
cal ctrlp#utils#writecache(a:lines, s:cadir, s:cafile)
endf
fu! s:getbookmarks()
retu ctrlp#utils#readfile(s:cachefile())
endf
fu! s:savebookmark(name, cwd)
let cwds = exists('+ssl') ? [tr(a:cwd, '\', '/'), tr(a:cwd, '/', '\')] : [a:cwd]
let entries = filter(s:getbookmarks(), 'index(cwds, s:parts(v:val)[1]) < 0')
cal s:writecache(insert(entries, a:name.' '.a:cwd))
endf
fu! s:setentries()
let time = getftime(s:cachefile())
if !( exists('s:bookmarks') && time == s:bookmarks[0] )
let s:bookmarks = [time, s:getbookmarks()]
en
endf
fu! s:parts(str)
let mlist = matchlist(a:str, '\v([^\t]+)\t(.*)$')
retu mlist != [] ? mlist[1:2] : ['', '']
endf
fu! s:process(entries, type)
retu map(a:entries, 's:modify(v:val, a:type)')
endf
fu! s:modify(entry, type)
let [name, dir] = s:parts(a:entry)
let dir = fnamemodify(dir, a:type)
retu name.' '.( dir == '' ? '.' : dir )
endf
fu! s:msg(name, cwd)
redr
echoh Identifier | echon 'Bookmarked ' | echoh Constant
echon a:name.' ' | echoh Directory | echon a:cwd
echoh None
endf
fu! s:syntax()
if !ctrlp#nosy()
cal ctrlp#hicheck('CtrlPBookmark', 'Identifier')
cal ctrlp#hicheck('CtrlPTabExtra', 'Comment')
sy match CtrlPBookmark '^> [^\t]\+' contains=CtrlPLinePre
sy match CtrlPTabExtra '\zs\t.*\ze$'
en
endf
" Public {{{1
fu! ctrlp#bookmarkdir#init()
cal s:setentries()
cal s:syntax()
retu s:process(copy(s:bookmarks[1]), ':.')
endf
fu! ctrlp#bookmarkdir#accept(mode, str)
let parts = s:parts(s:modify(a:str, ':p'))
cal call('s:savebookmark', parts)
if a:mode =~ 't\|v\|h'
cal ctrlp#exit()
en
cal ctrlp#setdir(parts[1], a:mode =~ 't\|h' ? 'chd!' : 'lc!')
if a:mode == 'e'
cal ctrlp#switchtype(0)
cal ctrlp#recordhist()
cal ctrlp#prtclear()
en
endf
fu! ctrlp#bookmarkdir#add(dir, ...)
let str = 'Directory to bookmark: '
let cwd = a:dir != '' ? a:dir : s:getinput(str, getcwd(), 'dir')
if cwd == '' | retu | en
let cwd = fnamemodify(cwd, ':p')
let name = a:0 && a:1 != '' ? a:1 : s:getinput('Bookmark as: ', cwd)
if name == '' | retu | en
let name = tr(name, ' ', ' ')
cal s:savebookmark(name, cwd)
cal s:msg(name, cwd)
endf
fu! ctrlp#bookmarkdir#remove(entries)
cal s:process(a:entries, ':p')
cal s:writecache(a:entries == [] ? [] :
\ filter(s:getbookmarks(), 'index(a:entries, v:val) < 0'))
cal s:setentries()
retu s:process(copy(s:bookmarks[1]), ':.')
endf
fu! ctrlp#bookmarkdir#id()
retu s:id
endf
"}}}
" vim:fen:fdm=marker:fmr={{{,}}}:fdl=0:fdc=1:ts=2:sw=2:sts=2

View File

@@ -1,264 +0,0 @@
" =============================================================================
" File: autoload/ctrlp/buffertag.vim
" Description: Buffer Tag extension
" Maintainer: Kien Nguyen <github.com/kien>
" Credits: Much of the code was taken from tagbar.vim by Jan Larres, plus
" a few lines from taglist.vim by Yegappan Lakshmanan and from
" buffertag.vim by Takeshi Nishida.
" =============================================================================
" Init {{{1
if exists('g:loaded_ctrlp_buftag') && g:loaded_ctrlp_buftag
fini
en
let g:loaded_ctrlp_buftag = 1
cal add(g:ctrlp_ext_vars, {
\ 'init': 'ctrlp#buffertag#init(s:crfile)',
\ 'accept': 'ctrlp#buffertag#accept',
\ 'lname': 'buffer tags',
\ 'sname': 'bft',
\ 'exit': 'ctrlp#buffertag#exit()',
\ 'type': 'tabs',
\ 'opts': 'ctrlp#buffertag#opts()',
\ })
let s:id = g:ctrlp_builtins + len(g:ctrlp_ext_vars)
let [s:pref, s:opts] = ['g:ctrlp_buftag_', {
\ 'systemenc': ['s:enc', &enc],
\ 'ctags_bin': ['s:bin', ''],
\ 'types': ['s:usr_types', {}],
\ }]
let s:bins = [
\ 'ctags-exuberant',
\ 'exuberant-ctags',
\ 'exctags',
\ '/usr/local/bin/ctags',
\ '/opt/local/bin/ctags',
\ 'ctags',
\ 'ctags.exe',
\ 'tags',
\ ]
let s:types = {
\ 'asm' : '%sasm%sasm%sdlmt',
\ 'aspperl': '%sasp%sasp%sfsv',
\ 'aspvbs' : '%sasp%sasp%sfsv',
\ 'awk' : '%sawk%sawk%sf',
\ 'beta' : '%sbeta%sbeta%sfsv',
\ 'c' : '%sc%sc%sdgsutvf',
\ 'cpp' : '%sc++%sc++%snvdtcgsuf',
\ 'cs' : '%sc#%sc#%sdtncEgsipm',
\ 'cobol' : '%scobol%scobol%sdfgpPs',
\ 'eiffel' : '%seiffel%seiffel%scf',
\ 'erlang' : '%serlang%serlang%sdrmf',
\ 'expect' : '%stcl%stcl%scfp',
\ 'fortran': '%sfortran%sfortran%spbceiklmntvfs',
\ 'html' : '%shtml%shtml%saf',
\ 'java' : '%sjava%sjava%spcifm',
\ 'javascript': '%sjavascript%sjavascript%sf',
\ 'lisp' : '%slisp%slisp%sf',
\ 'lua' : '%slua%slua%sf',
\ 'make' : '%smake%smake%sm',
\ 'ocaml' : '%socaml%socaml%scmMvtfCre',
\ 'pascal' : '%spascal%spascal%sfp',
\ 'perl' : '%sperl%sperl%sclps',
\ 'php' : '%sphp%sphp%scdvf',
\ 'python' : '%spython%spython%scmf',
\ 'rexx' : '%srexx%srexx%ss',
\ 'ruby' : '%sruby%sruby%scfFm',
\ 'scheme' : '%sscheme%sscheme%ssf',
\ 'sh' : '%ssh%ssh%sf',
\ 'csh' : '%ssh%ssh%sf',
\ 'zsh' : '%ssh%ssh%sf',
\ 'slang' : '%sslang%sslang%snf',
\ 'sml' : '%ssml%ssml%secsrtvf',
\ 'sql' : '%ssql%ssql%scFPrstTvfp',
\ 'tcl' : '%stcl%stcl%scfmp',
\ 'vera' : '%svera%svera%scdefgmpPtTvx',
\ 'verilog': '%sverilog%sverilog%smcPertwpvf',
\ 'vim' : '%svim%svim%savf',
\ 'yacc' : '%syacc%syacc%sl',
\ }
cal map(s:types, 'printf(v:val, "--language-force=", " --", "-types=")')
if executable('jsctags')
cal extend(s:types, { 'javascript': { 'args': '-f -', 'bin': 'jsctags' } })
en
fu! ctrlp#buffertag#opts()
for [ke, va] in items(s:opts)
let {va[0]} = exists(s:pref.ke) ? {s:pref.ke} : va[1]
endfo
" Ctags bin
if empty(s:bin)
for bin in s:bins | if executable(bin)
let s:bin = bin
brea
en | endfo
el
let s:bin = expand(s:bin, 1)
en
" Types
cal extend(s:types, s:usr_types)
endf
" Utilities {{{1
fu! s:validfile(fname, ftype)
if ( !empty(a:fname) || !empty(a:ftype) ) && filereadable(a:fname)
\ && index(keys(s:types), a:ftype) >= 0 | retu 1 | en
retu 0
endf
fu! s:exectags(cmd)
if exists('+ssl')
let [ssl, &ssl] = [&ssl, 0]
en
if &sh =~ 'cmd\.exe'
let [sxq, &sxq, shcf, &shcf] = [&sxq, '"', &shcf, '/s /c']
en
let output = system(a:cmd)
if &sh =~ 'cmd\.exe'
let [&sxq, &shcf] = [sxq, shcf]
en
if exists('+ssl')
let &ssl = ssl
en
retu output
endf
fu! s:exectagsonfile(fname, ftype)
let [ags, ft] = ['-f - --sort=no --excmd=pattern --fields=nKs ', a:ftype]
if type(s:types[ft]) == 1
let ags .= s:types[ft]
let bin = s:bin
elsei type(s:types[ft]) == 4
let ags = s:types[ft]['args']
let bin = expand(s:types[ft]['bin'], 1)
en
if empty(bin) | retu '' | en
let cmd = s:esctagscmd(bin, ags, a:fname)
if empty(cmd) | retu '' | en
let output = s:exectags(cmd)
if v:shell_error || output =~ 'Warning: cannot open' | retu '' | en
retu output
endf
fu! s:esctagscmd(bin, args, ...)
if exists('+ssl')
let [ssl, &ssl] = [&ssl, 0]
en
let fname = a:0 ? shellescape(a:1) : ''
let cmd = shellescape(a:bin).' '.a:args.' '.fname
if &sh =~ 'cmd\.exe'
let cmd = substitute(cmd, '[&()@^<>|]', '^\0', 'g')
en
if exists('+ssl')
let &ssl = ssl
en
if has('iconv')
let last = s:enc != &enc ? s:enc : !empty( $LANG ) ? $LANG : &enc
let cmd = iconv(cmd, &enc, last)
en
retu cmd
endf
fu! s:process(fname, ftype)
if !s:validfile(a:fname, a:ftype) | retu [] | endif
let ftime = getftime(a:fname)
if has_key(g:ctrlp_buftags, a:fname)
\ && g:ctrlp_buftags[a:fname]['time'] >= ftime
let lines = g:ctrlp_buftags[a:fname]['lines']
el
let data = s:exectagsonfile(a:fname, a:ftype)
let [raw, lines] = [split(data, '\n\+'), []]
for line in raw
if line !~# '^!_TAG_' && len(split(line, ';"')) == 2
let parsed_line = s:parseline(line)
if parsed_line != ''
cal add(lines, parsed_line)
en
en
endfo
let cache = { a:fname : { 'time': ftime, 'lines': lines } }
cal extend(g:ctrlp_buftags, cache)
en
retu lines
endf
fu! s:parseline(line)
let vals = matchlist(a:line,
\ '\v^([^\t]+)\t(.+)\t[?/]\^?(.{-1,})\$?[?/]\;\"\t(.+)\tline(no)?\:(\d+)')
if vals == [] | retu '' | en
let [bufnr, bufname] = [bufnr('^'.vals[2].'$'), fnamemodify(vals[2], ':p:t')]
retu vals[1].' '.vals[4].'|'.bufnr.':'.bufname.'|'.vals[6].'| '.vals[3]
endf
fu! s:syntax()
if !ctrlp#nosy()
cal ctrlp#hicheck('CtrlPTagKind', 'Title')
cal ctrlp#hicheck('CtrlPBufName', 'Directory')
cal ctrlp#hicheck('CtrlPTabExtra', 'Comment')
sy match CtrlPTagKind '\zs[^\t|]\+\ze|\d\+:[^|]\+|\d\+|'
sy match CtrlPBufName '|\d\+:\zs[^|]\+\ze|\d\+|'
sy match CtrlPTabExtra '\zs\t.*\ze$' contains=CtrlPBufName,CtrlPTagKind
en
endf
fu! s:chknearby(pat)
if match(getline('.'), a:pat) < 0
let [int, forw, maxl] = [1, 1, line('$')]
wh !search(a:pat, 'W'.( forw ? '' : 'b' ))
if !forw
if int > maxl | brea | en
let int += int
en
let forw = !forw
endw
en
endf
" Public {{{1
fu! ctrlp#buffertag#init(fname)
let bufs = exists('s:btmode') && s:btmode
\ ? filter(ctrlp#buffers(), 'filereadable(v:val)')
\ : [exists('s:bufname') ? s:bufname : a:fname]
let lines = []
for each in bufs
let bname = fnamemodify(each, ':p')
let tftype = get(split(getbufvar('^'.bname.'$', '&ft'), '\.'), 0, '')
cal extend(lines, s:process(bname, tftype))
endfo
cal s:syntax()
retu lines
endf
fu! ctrlp#buffertag#accept(mode, str)
let vals = matchlist(a:str,
\ '\v^[^\t]+\t+[^\t|]+\|(\d+)\:[^\t|]+\|(\d+)\|\s(.+)$')
let bufnr = str2nr(get(vals, 1))
if bufnr
cal ctrlp#acceptfile(a:mode, bufnr)
exe 'norm!' str2nr(get(vals, 2, line('.'))).'G'
cal s:chknearby('\V\C'.get(vals, 3, ''))
sil! norm! zvzz
en
endf
fu! ctrlp#buffertag#cmd(mode, ...)
let s:btmode = a:mode
if a:0 && !empty(a:1)
let s:btmode = 0
let bname = a:1 =~# '^%$\|^#\d*$' ? expand(a:1) : a:1
let s:bufname = fnamemodify(bname, ':p')
en
retu s:id
endf
fu! ctrlp#buffertag#exit()
unl! s:btmode s:bufname
endf
"}}}
" vim:fen:fdm=marker:fmr={{{,}}}:fdl=0:fdc=1:ts=2:sw=2:sts=2

View File

@@ -1,98 +0,0 @@
" =============================================================================
" File: autoload/ctrlp/changes.vim
" Description: Change list extension
" Author: Kien Nguyen <github.com/kien>
" =============================================================================
" Init {{{1
if exists('g:loaded_ctrlp_changes') && g:loaded_ctrlp_changes
fini
en
let g:loaded_ctrlp_changes = 1
cal add(g:ctrlp_ext_vars, {
\ 'init': 'ctrlp#changes#init(s:bufnr, s:crbufnr)',
\ 'accept': 'ctrlp#changes#accept',
\ 'lname': 'changes',
\ 'sname': 'chs',
\ 'exit': 'ctrlp#changes#exit()',
\ 'type': 'tabe',
\ 'sort': 0,
\ 'nolim': 1,
\ })
let s:id = g:ctrlp_builtins + len(g:ctrlp_ext_vars)
" Utilities {{{1
fu! s:changelist(bufnr)
sil! exe 'noa hid b' a:bufnr
redi => result
sil! changes
redi END
retu map(split(result, "\n")[1:], 'tr(v:val, " ", " ")')
endf
fu! s:process(clines, ...)
let [clines, evas] = [[], []]
for each in a:clines
let parts = matchlist(each, '\v^.\s*\d+\s+(\d+)\s+(\d+)\s(.*)$')
if !empty(parts)
if parts[3] == '' | let parts[3] = ' ' | en
cal add(clines, parts[3].' |'.a:1.':'.a:2.'|'.parts[1].':'.parts[2].'|')
en
endfo
retu reverse(filter(clines, 'count(clines, v:val) == 1'))
endf
fu! s:syntax()
if !ctrlp#nosy()
cal ctrlp#hicheck('CtrlPBufName', 'Directory')
cal ctrlp#hicheck('CtrlPTabExtra', 'Comment')
sy match CtrlPBufName '\t|\d\+:\zs[^|]\+\ze|\d\+:\d\+|$'
sy match CtrlPTabExtra '\zs\t.*\ze$' contains=CtrlPBufName
en
endf
" Public {{{1
fu! ctrlp#changes#init(original_bufnr, bufnr)
let bufnr = exists('s:bufnr') ? s:bufnr : a:bufnr
let bufs = exists('s:clmode') && s:clmode ? ctrlp#buffers('id') : [bufnr]
cal filter(bufs, 'v:val > 0')
let [swb, &swb] = [&swb, '']
let lines = []
for each in bufs
let bname = bufname(each)
let fnamet = fnamemodify(bname == '' ? '[No Name]' : bname, ':t')
cal extend(lines, s:process(s:changelist(each), each, fnamet))
endfo
sil! exe 'noa hid b' a:original_bufnr
let &swb = swb
cal ctrlp#syntax()
cal s:syntax()
retu lines
endf
fu! ctrlp#changes#accept(mode, str)
let info = matchlist(a:str, '\t|\(\d\+\):[^|]\+|\(\d\+\):\(\d\+\)|$')
let bufnr = str2nr(get(info, 1))
if bufnr
cal ctrlp#acceptfile(a:mode, bufnr)
cal cursor(get(info, 2), get(info, 3))
sil! norm! zvzz
en
endf
fu! ctrlp#changes#cmd(mode, ...)
let s:clmode = a:mode
if a:0 && !empty(a:1)
let s:clmode = 0
let bname = a:1 =~# '^%$\|^#\d*$' ? expand(a:1) : a:1
let s:bufnr = bufnr('^'.fnamemodify(bname, ':p').'$')
en
retu s:id
endf
fu! ctrlp#changes#exit()
unl! s:clmode s:bufnr
endf
"}}}
" vim:fen:fdm=marker:fmr={{{,}}}:fdl=0:fdc=1:ts=2:sw=2:sts=2

View File

@@ -1,95 +0,0 @@
" =============================================================================
" File: autoload/ctrlp/dir.vim
" Description: Directory extension
" Author: Kien Nguyen <github.com/kien>
" =============================================================================
" Init {{{1
if exists('g:loaded_ctrlp_dir') && g:loaded_ctrlp_dir
fini
en
let [g:loaded_ctrlp_dir, g:ctrlp_newdir] = [1, 0]
let s:ars = ['s:maxdepth', 's:maxfiles', 's:compare_lim', 's:glob', 's:caching']
cal add(g:ctrlp_ext_vars, {
\ 'init': 'ctrlp#dir#init('.join(s:ars, ', ').')',
\ 'accept': 'ctrlp#dir#accept',
\ 'lname': 'dirs',
\ 'sname': 'dir',
\ 'type': 'path',
\ 'specinput': 1,
\ })
let s:id = g:ctrlp_builtins + len(g:ctrlp_ext_vars)
let s:dircounts = {}
" Utilities {{{1
fu! s:globdirs(dirs, depth)
let entries = split(globpath(a:dirs, s:glob), "\n")
let [dirs, depth] = [ctrlp#dirnfile(entries)[0], a:depth + 1]
cal extend(g:ctrlp_alldirs, dirs)
let nr = len(g:ctrlp_alldirs)
if !empty(dirs) && !s:max(nr, s:maxfiles) && depth <= s:maxdepth
sil! cal ctrlp#progress(nr)
cal map(dirs, 'ctrlp#utils#fnesc(v:val, "g", ",")')
cal s:globdirs(join(dirs, ','), depth)
en
endf
fu! s:max(len, max)
retu a:max && a:len > a:max
endf
fu! s:nocache()
retu !s:caching || ( s:caching > 1 && get(s:dircounts, s:cwd) < s:caching )
endf
" Public {{{1
fu! ctrlp#dir#init(...)
let s:cwd = getcwd()
for each in range(len(s:ars))
let {s:ars[each]} = a:{each + 1}
endfo
let cadir = ctrlp#utils#cachedir().ctrlp#utils#lash().'dir'
let cafile = cadir.ctrlp#utils#lash().ctrlp#utils#cachefile('dir')
if g:ctrlp_newdir || s:nocache() || !filereadable(cafile)
let [s:initcwd, g:ctrlp_alldirs] = [s:cwd, []]
if !ctrlp#igncwd(s:cwd)
cal s:globdirs(ctrlp#utils#fnesc(s:cwd, 'g', ','), 0)
en
cal ctrlp#rmbasedir(g:ctrlp_alldirs)
if len(g:ctrlp_alldirs) <= s:compare_lim
cal sort(g:ctrlp_alldirs, 'ctrlp#complen')
en
cal ctrlp#utils#writecache(g:ctrlp_alldirs, cadir, cafile)
let g:ctrlp_newdir = 0
el
if !( exists('s:initcwd') && s:initcwd == s:cwd )
let s:initcwd = s:cwd
let g:ctrlp_alldirs = ctrlp#utils#readfile(cafile)
en
en
cal extend(s:dircounts, { s:cwd : len(g:ctrlp_alldirs) })
retu g:ctrlp_alldirs
endf
fu! ctrlp#dir#accept(mode, str)
let path = a:mode == 'h' ? getcwd() : s:cwd.ctrlp#call('s:lash', s:cwd).a:str
if a:mode =~ 't\|v\|h'
cal ctrlp#exit()
en
cal ctrlp#setdir(path, a:mode =~ 't\|h' ? 'chd!' : 'lc!')
if a:mode == 'e'
sil! cal ctrlp#statusline()
cal ctrlp#setlines(s:id)
cal ctrlp#recordhist()
cal ctrlp#prtclear()
en
endf
fu! ctrlp#dir#id()
retu s:id
endf
"}}}
" vim:fen:fdm=marker:fmr={{{,}}}:fdl=0:fdc=1:ts=2:sw=2:sts=2

View File

@@ -1,72 +0,0 @@
" =============================================================================
" File: autoload/ctrlp/line.vim
" Description: Line extension
" Author: Kien Nguyen <github.com/kien>
" =============================================================================
" Init {{{1
if exists('g:loaded_ctrlp_line') && g:loaded_ctrlp_line
fini
en
let g:loaded_ctrlp_line = 1
cal add(g:ctrlp_ext_vars, {
\ 'init': 'ctrlp#line#init(s:crbufnr)',
\ 'accept': 'ctrlp#line#accept',
\ 'lname': 'lines',
\ 'sname': 'lns',
\ 'type': 'tabe',
\ })
let s:id = g:ctrlp_builtins + len(g:ctrlp_ext_vars)
" Utilities {{{1
fu! s:syntax()
if !ctrlp#nosy()
cal ctrlp#hicheck('CtrlPBufName', 'Directory')
cal ctrlp#hicheck('CtrlPTabExtra', 'Comment')
sy match CtrlPBufName '\t|\zs[^|]\+\ze|\d\+:\d\+|$'
sy match CtrlPTabExtra '\zs\t.*\ze$' contains=CtrlPBufName
en
endf
" Public {{{1
fu! ctrlp#line#init(bufnr)
let [lines, bufnr] = [[], exists('s:bufnr') ? s:bufnr : a:bufnr]
let bufs = exists('s:lnmode') && s:lnmode ? ctrlp#buffers('id') : [bufnr]
for bufnr in bufs
let [lfb, bufn] = [getbufline(bufnr, 1, '$'), bufname(bufnr)]
if lfb == [] && bufn != ''
let lfb = ctrlp#utils#readfile(fnamemodify(bufn, ':p'))
en
cal map(lfb, 'tr(v:val, '' '', '' '')')
let [linenr, len_lfb] = [1, len(lfb)]
let buft = bufn == '' ? '[No Name]' : fnamemodify(bufn, ':t')
wh linenr <= len_lfb
let lfb[linenr - 1] .= ' |'.buft.'|'.bufnr.':'.linenr.'|'
let linenr += 1
endw
cal extend(lines, filter(lfb, 'v:val !~ ''^\s*\t|[^|]\+|\d\+:\d\+|$'''))
endfo
cal s:syntax()
retu lines
endf
fu! ctrlp#line#accept(mode, str)
let info = matchlist(a:str, '\t|[^|]\+|\(\d\+\):\(\d\+\)|$')
let bufnr = str2nr(get(info, 1))
if bufnr
cal ctrlp#acceptfile(a:mode, bufnr, get(info, 2))
en
endf
fu! ctrlp#line#cmd(mode, ...)
let s:lnmode = a:mode
if a:0 && !empty(a:1)
let s:lnmode = 0
let bname = a:1 =~# '^%$\|^#\d*$' ? expand(a:1) : a:1
let s:bufnr = bufnr('^'.fnamemodify(bname, ':p').'$')
en
retu s:id
endf
"}}}
" vim:fen:fdm=marker:fmr={{{,}}}:fdl=0:fdc=1:ts=2:sw=2:sts=2

View File

@@ -1,88 +0,0 @@
" =============================================================================
" File: autoload/ctrlp/mixed.vim
" Description: Mixing Files + MRU + Buffers
" Author: Kien Nguyen <github.com/kien>
" =============================================================================
" Init {{{1
if exists('g:loaded_ctrlp_mixed') && g:loaded_ctrlp_mixed
fini
en
let [g:loaded_ctrlp_mixed, g:ctrlp_newmix] = [1, 0]
cal add(g:ctrlp_ext_vars, {
\ 'init': 'ctrlp#mixed#init(s:compare_lim)',
\ 'accept': 'ctrlp#acceptfile',
\ 'lname': 'fil + mru + buf',
\ 'sname': 'mix',
\ 'type': 'path',
\ 'opmul': 1,
\ 'specinput': 1,
\ })
let s:id = g:ctrlp_builtins + len(g:ctrlp_ext_vars)
" Utilities {{{1
fu! s:newcache(cwd)
if g:ctrlp_newmix || !has_key(g:ctrlp_allmixes, 'data') | retu 1 | en
retu g:ctrlp_allmixes['cwd'] != a:cwd
\ || g:ctrlp_allmixes['filtime'] < getftime(ctrlp#utils#cachefile())
\ || g:ctrlp_allmixes['mrutime'] < getftime(ctrlp#mrufiles#cachefile())
\ || g:ctrlp_allmixes['bufs'] < len(ctrlp#mrufiles#bufs())
endf
fu! s:getnewmix(cwd, clim)
if g:ctrlp_newmix
cal ctrlp#mrufiles#refresh('raw')
let g:ctrlp_newcache = 1
en
let g:ctrlp_lines = copy(ctrlp#files())
cal ctrlp#progress('Mixing...')
let mrufs = copy(ctrlp#mrufiles#list('raw'))
if exists('+ssl') && &ssl
cal map(mrufs, 'tr(v:val, "\\", "/")')
en
let allbufs = map(ctrlp#buffers(), 'fnamemodify(v:val, ":p")')
let [bufs, ubufs] = [[], []]
for each in allbufs
cal add(filereadable(each) ? bufs : ubufs, each)
endfo
let mrufs = bufs + filter(mrufs, 'index(bufs, v:val) < 0')
if len(mrufs) > len(g:ctrlp_lines)
cal filter(mrufs, 'stridx(v:val, a:cwd)')
el
let cwd_mrufs = filter(copy(mrufs), '!stridx(v:val, a:cwd)')
let cwd_mrufs = ctrlp#rmbasedir(cwd_mrufs)
for each in cwd_mrufs
let id = index(g:ctrlp_lines, each)
if id >= 0 | cal remove(g:ctrlp_lines, id) | en
endfo
en
let mrufs += ubufs
cal map(mrufs, 'fnamemodify(v:val, ":.")')
let g:ctrlp_lines = len(mrufs) > len(g:ctrlp_lines)
\ ? g:ctrlp_lines + mrufs : mrufs + g:ctrlp_lines
if len(g:ctrlp_lines) <= a:clim
cal sort(g:ctrlp_lines, 'ctrlp#complen')
en
let g:ctrlp_allmixes = { 'filtime': getftime(ctrlp#utils#cachefile()),
\ 'mrutime': getftime(ctrlp#mrufiles#cachefile()), 'cwd': a:cwd,
\ 'bufs': len(ctrlp#mrufiles#bufs()), 'data': g:ctrlp_lines }
endf
" Public {{{1
fu! ctrlp#mixed#init(clim)
let cwd = getcwd()
if s:newcache(cwd)
cal s:getnewmix(cwd, a:clim)
el
let g:ctrlp_lines = g:ctrlp_allmixes['data']
en
let g:ctrlp_newmix = 0
retu g:ctrlp_lines
endf
fu! ctrlp#mixed#id()
retu s:id
endf
"}}}
" vim:fen:fdm=marker:fmr={{{,}}}:fdl=0:fdc=1:ts=2:sw=2:sts=2

View File

@@ -1,154 +0,0 @@
" =============================================================================
" File: autoload/ctrlp/mrufiles.vim
" Description: Most Recently Used Files extension
" Author: Kien Nguyen <github.com/kien>
" =============================================================================
" Static variables {{{1
let [s:mrbs, s:mrufs] = [[], []]
fu! ctrlp#mrufiles#opts()
let [pref, opts] = ['g:ctrlp_mruf_', {
\ 'max': ['s:max', 250],
\ 'include': ['s:in', ''],
\ 'exclude': ['s:ex', ''],
\ 'case_sensitive': ['s:cseno', 1],
\ 'relative': ['s:re', 0],
\ 'save_on_update': ['s:soup', 1],
\ }]
for [ke, va] in items(opts)
let [{va[0]}, {pref.ke}] = [pref.ke, exists(pref.ke) ? {pref.ke} : va[1]]
endfo
endf
cal ctrlp#mrufiles#opts()
" Utilities {{{1
fu! s:excl(fn)
retu !empty({s:ex}) && a:fn =~# {s:ex}
endf
fu! s:mergelists()
let diskmrufs = ctrlp#utils#readfile(ctrlp#mrufiles#cachefile())
cal filter(diskmrufs, 'index(s:mrufs, v:val) < 0')
let mrufs = s:mrufs + diskmrufs
retu s:chop(mrufs)
endf
fu! s:chop(mrufs)
if len(a:mrufs) > {s:max} | cal remove(a:mrufs, {s:max}, -1) | en
retu a:mrufs
endf
fu! s:reformat(mrufs, ...)
let cwd = getcwd()
let cwd .= cwd !~ '[\/]$' ? ctrlp#utils#lash() : ''
if {s:re}
let cwd = exists('+ssl') ? tr(cwd, '/', '\') : cwd
cal filter(a:mrufs, '!stridx(v:val, cwd)')
en
if a:0 && a:1 == 'raw' | retu a:mrufs | en
let idx = strlen(cwd)
if exists('+ssl') && &ssl
let cwd = tr(cwd, '\', '/')
cal map(a:mrufs, 'tr(v:val, "\\", "/")')
en
retu map(a:mrufs, '!stridx(v:val, cwd) ? strpart(v:val, idx) : v:val')
endf
fu! s:record(bufnr)
if s:locked | retu | en
let bufnr = a:bufnr + 0
let bufname = bufname(bufnr)
if bufnr > 0 && !empty(bufname)
cal filter(s:mrbs, 'v:val != bufnr')
cal insert(s:mrbs, bufnr)
cal s:addtomrufs(bufname)
en
endf
fu! s:addtomrufs(fname)
let fn = fnamemodify(a:fname, ':p')
let fn = exists('+ssl') ? tr(fn, '/', '\') : fn
if ( !empty({s:in}) && fn !~# {s:in} ) || ( !empty({s:ex}) && fn =~# {s:ex} )
\ || !empty(getbufvar('^'.fn.'$', '&bt')) || !filereadable(fn) | retu
en
let idx = index(s:mrufs, fn, 0, !{s:cseno})
if idx
cal filter(s:mrufs, 'v:val !='.( {s:cseno} ? '#' : '?' ).' fn')
cal insert(s:mrufs, fn)
if {s:soup} && idx < 0
cal s:savetofile(s:mergelists())
en
en
endf
fu! s:savetofile(mrufs)
cal ctrlp#utils#writecache(a:mrufs, s:cadir, s:cafile)
endf
" Public {{{1
fu! ctrlp#mrufiles#refresh(...)
let mrufs = s:mergelists()
cal filter(mrufs, '!empty(ctrlp#utils#glob(v:val, 1)) && !s:excl(v:val)')
if exists('+ssl')
cal map(mrufs, 'tr(v:val, "/", "\\")')
cal map(s:mrufs, 'tr(v:val, "/", "\\")')
let cond = 'count(mrufs, v:val, !{s:cseno}) == 1'
cal filter(mrufs, cond)
cal filter(s:mrufs, cond)
en
cal s:savetofile(mrufs)
retu a:0 && a:1 == 'raw' ? [] : s:reformat(mrufs)
endf
fu! ctrlp#mrufiles#remove(files)
let mrufs = []
if a:files != []
let mrufs = s:mergelists()
let cond = 'index(a:files, v:val, 0, !{s:cseno}) < 0'
cal filter(mrufs, cond)
cal filter(s:mrufs, cond)
en
cal s:savetofile(mrufs)
retu s:reformat(mrufs)
endf
fu! ctrlp#mrufiles#add(fn)
if !empty(a:fn)
cal s:addtomrufs(a:fn)
en
endf
fu! ctrlp#mrufiles#list(...)
retu a:0 ? a:1 == 'raw' ? s:reformat(s:mergelists(), a:1) : 0
\ : s:reformat(s:mergelists())
endf
fu! ctrlp#mrufiles#bufs()
retu s:mrbs
endf
fu! ctrlp#mrufiles#tgrel()
let {s:re} = !{s:re}
endf
fu! ctrlp#mrufiles#cachefile()
if !exists('s:cadir') || !exists('s:cafile')
let s:cadir = ctrlp#utils#cachedir().ctrlp#utils#lash().'mru'
let s:cafile = s:cadir.ctrlp#utils#lash().'cache.txt'
en
retu s:cafile
endf
fu! ctrlp#mrufiles#init()
if !has('autocmd') | retu | en
let s:locked = 0
aug CtrlPMRUF
au!
au BufAdd,BufEnter,BufLeave,BufWritePost * cal s:record(expand('<abuf>', 1))
au QuickFixCmdPre *vimgrep* let s:locked = 1
au QuickFixCmdPost *vimgrep* let s:locked = 0
au VimLeavePre * cal s:savetofile(s:mergelists())
aug END
endf
"}}}
" vim:fen:fdm=marker:fmr={{{,}}}:fdl=0:fdc=1:ts=2:sw=2:sts=2

View File

@@ -1,59 +0,0 @@
" =============================================================================
" File: autoload/ctrlp/quickfix.vim
" Description: Quickfix extension
" Author: Kien Nguyen <github.com/kien>
" =============================================================================
" Init {{{1
if exists('g:loaded_ctrlp_quickfix') && g:loaded_ctrlp_quickfix
fini
en
let g:loaded_ctrlp_quickfix = 1
cal add(g:ctrlp_ext_vars, {
\ 'init': 'ctrlp#quickfix#init()',
\ 'accept': 'ctrlp#quickfix#accept',
\ 'lname': 'quickfix',
\ 'sname': 'qfx',
\ 'type': 'line',
\ 'sort': 0,
\ 'nolim': 1,
\ })
let s:id = g:ctrlp_builtins + len(g:ctrlp_ext_vars)
fu! s:lineout(dict)
retu printf('%s|%d:%d| %s', bufname(a:dict['bufnr']), a:dict['lnum'],
\ a:dict['col'], matchstr(a:dict['text'], '\s*\zs.*\S'))
endf
" Utilities {{{1
fu! s:syntax()
if !ctrlp#nosy()
cal ctrlp#hicheck('CtrlPqfLineCol', 'Search')
sy match CtrlPqfLineCol '|\zs\d\+:\d\+\ze|'
en
endf
" Public {{{1
fu! ctrlp#quickfix#init()
cal s:syntax()
retu map(getqflist(), 's:lineout(v:val)')
endf
fu! ctrlp#quickfix#accept(mode, str)
let vals = matchlist(a:str, '^\([^|]\+\ze\)|\(\d\+\):\(\d\+\)|')
if vals == [] || vals[1] == '' | retu | en
cal ctrlp#acceptfile(a:mode, vals[1])
let cur_pos = getpos('.')[1:2]
if cur_pos != [1, 1] && cur_pos != map(vals[2:3], 'str2nr(v:val)')
mark '
en
cal cursor(vals[2], vals[3])
sil! norm! zvzz
endf
fu! ctrlp#quickfix#id()
retu s:id
endf
"}}}
" vim:fen:fdm=marker:fmr={{{,}}}:fdl=0:fdc=1:ts=2:sw=2:sts=2

View File

@@ -1,59 +0,0 @@
" =============================================================================
" File: autoload/ctrlp/rtscript.vim
" Description: Runtime scripts extension
" Author: Kien Nguyen <github.com/kien>
" =============================================================================
" Init {{{1
if exists('g:loaded_ctrlp_rtscript') && g:loaded_ctrlp_rtscript
fini
en
let [g:loaded_ctrlp_rtscript, g:ctrlp_newrts] = [1, 0]
cal add(g:ctrlp_ext_vars, {
\ 'init': 'ctrlp#rtscript#init(s:caching)',
\ 'accept': 'ctrlp#acceptfile',
\ 'lname': 'runtime scripts',
\ 'sname': 'rts',
\ 'type': 'path',
\ 'opmul': 1,
\ })
let s:id = g:ctrlp_builtins + len(g:ctrlp_ext_vars)
let s:filecounts = {}
" Utilities {{{1
fu! s:nocache()
retu g:ctrlp_newrts ||
\ !s:caching || ( s:caching > 1 && get(s:filecounts, s:cwd) < s:caching )
endf
" Public {{{1
fu! ctrlp#rtscript#init(caching)
let [s:caching, s:cwd] = [a:caching, getcwd()]
if s:nocache() ||
\ !( exists('g:ctrlp_rtscache') && g:ctrlp_rtscache[0] == &rtp )
sil! cal ctrlp#progress('Indexing...')
let entries = split(globpath(ctrlp#utils#fnesc(&rtp, 'g'), '**/*.*'), "\n")
cal filter(entries, 'count(entries, v:val) == 1')
let [entries, echoed] = [ctrlp#dirnfile(entries)[1], 1]
el
let [entries, results] = g:ctrlp_rtscache[2:3]
en
if s:nocache() ||
\ !( exists('g:ctrlp_rtscache') && g:ctrlp_rtscache[:1] == [&rtp, s:cwd] )
if !exists('echoed')
sil! cal ctrlp#progress('Processing...')
en
let results = map(copy(entries), 'fnamemodify(v:val, '':.'')')
en
let [g:ctrlp_rtscache, g:ctrlp_newrts] = [[&rtp, s:cwd, entries, results], 0]
cal extend(s:filecounts, { s:cwd : len(results) })
retu results
endf
fu! ctrlp#rtscript#id()
retu s:id
endf
"}}}
" vim:fen:fdm=marker:fmr={{{,}}}:fdl=0:fdc=1:ts=2:sw=2:sts=2

View File

@@ -1,138 +0,0 @@
" =============================================================================
" File: autoload/ctrlp/tag.vim
" Description: Tag file extension
" Author: Kien Nguyen <github.com/kien>
" =============================================================================
" Init {{{1
if exists('g:loaded_ctrlp_tag') && g:loaded_ctrlp_tag
fini
en
let g:loaded_ctrlp_tag = 1
cal add(g:ctrlp_ext_vars, {
\ 'init': 'ctrlp#tag#init()',
\ 'accept': 'ctrlp#tag#accept',
\ 'lname': 'tags',
\ 'sname': 'tag',
\ 'enter': 'ctrlp#tag#enter()',
\ 'type': 'tabs',
\ })
let s:id = g:ctrlp_builtins + len(g:ctrlp_ext_vars)
" Utilities {{{1
fu! s:findcount(str)
let [tg, ofname] = split(a:str, '\t\+\ze[^\t]\+$')
let tgs = taglist('^'.tg.'$')
if len(tgs) < 2
retu [0, 0, 0, 0]
en
let bname = fnamemodify(bufname('%'), ':p')
let fname = expand(fnamemodify(simplify(ofname), ':s?^[.\/]\+??:p:.'), 1)
let [fnd, cnt, pos, ctgs, otgs] = [0, 0, 0, [], []]
for tgi in tgs
let lst = bname == fnamemodify(tgi["filename"], ':p') ? 'ctgs' : 'otgs'
cal call('add', [{lst}, tgi])
endfo
let ntgs = ctgs + otgs
for tgi in ntgs
let cnt += 1
let fulname = fnamemodify(tgi["filename"], ':p')
if stridx(fulname, fname) >= 0
\ && strlen(fname) + stridx(fulname, fname) == strlen(fulname)
let fnd += 1
let pos = cnt
en
endfo
let cnt = 0
for tgi in ntgs
let cnt += 1
if tgi["filename"] == ofname
let [fnd, pos] = [0, cnt]
en
endfo
retu [1, fnd, pos, len(ctgs)]
endf
fu! s:filter(tags)
let nr = 0
wh 0 < 1
if a:tags == [] | brea | en
if a:tags[nr] =~ '^!' && a:tags[nr] !~# '^!_TAG_'
let nr += 1
con
en
if a:tags[nr] =~# '^!_TAG_' && len(a:tags) > nr
cal remove(a:tags, nr)
el
brea
en
endw
retu a:tags
endf
fu! s:syntax()
if !ctrlp#nosy()
cal ctrlp#hicheck('CtrlPTabExtra', 'Comment')
sy match CtrlPTabExtra '\zs\t.*\ze$'
en
endf
" Public {{{1
fu! ctrlp#tag#init()
if empty(s:tagfiles) | retu [] | en
let g:ctrlp_alltags = []
let tagfiles = sort(filter(s:tagfiles, 'count(s:tagfiles, v:val) == 1'))
for each in tagfiles
let alltags = s:filter(ctrlp#utils#readfile(each))
cal extend(g:ctrlp_alltags, alltags)
endfo
cal s:syntax()
retu g:ctrlp_alltags
endf
fu! ctrlp#tag#accept(mode, str)
cal ctrlp#exit()
let str = matchstr(a:str, '^[^\t]\+\t\+[^\t]\+\ze\t')
let [tg, fdcnt] = [split(str, '^[^\t]\+\zs\t')[0], s:findcount(str)]
let cmds = {
\ 't': ['tab sp', 'tab stj'],
\ 'h': ['sp', 'stj'],
\ 'v': ['vs', 'vert stj'],
\ 'e': ['', 'tj'],
\ }
let utg = fdcnt[3] < 2 && fdcnt[0] == 1 && fdcnt[1] == 1
let cmd = !fdcnt[0] || utg ? cmds[a:mode][0] : cmds[a:mode][1]
let cmd = a:mode == 'e' && ctrlp#modfilecond(!&aw)
\ ? ( cmd == 'tj' ? 'stj' : 'sp' ) : cmd
let cmd = a:mode == 't' ? ctrlp#tabcount().cmd : cmd
if !fdcnt[0] || utg
if cmd != ''
exe cmd
en
let save_cst = &cst
set cst&
cal feedkeys(":".( utg ? fdcnt[2] : "" )."ta ".tg."\r", 'nt')
let &cst = save_cst
el
let ext = ""
if fdcnt[1] < 2 && fdcnt[2]
let [sav_more, &more] = [&more, 0]
let ext = fdcnt[2]."\r".":let &more = ".sav_more."\r"
en
cal feedkeys(":".cmd." ".tg."\r".ext, 'nt')
en
cal ctrlp#setlcdir()
endf
fu! ctrlp#tag#id()
retu s:id
endf
fu! ctrlp#tag#enter()
let tfs = tagfiles()
let s:tagfiles = tfs != [] ? filter(map(tfs, 'fnamemodify(v:val, ":p")'),
\ 'filereadable(v:val)') : []
endf
"}}}
" vim:fen:fdm=marker:fmr={{{,}}}:fdl=0:fdc=1:ts=2:sw=2:sts=2

View File

@@ -1,154 +0,0 @@
" =============================================================================
" File: autoload/ctrlp/undo.vim
" Description: Undo extension
" Author: Kien Nguyen <github.com/kien>
" =============================================================================
" Init {{{1
if ( exists('g:loaded_ctrlp_undo') && g:loaded_ctrlp_undo )
fini
en
let g:loaded_ctrlp_undo = 1
cal add(g:ctrlp_ext_vars, {
\ 'init': 'ctrlp#undo#init()',
\ 'accept': 'ctrlp#undo#accept',
\ 'lname': 'undo',
\ 'sname': 'udo',
\ 'enter': 'ctrlp#undo#enter()',
\ 'exit': 'ctrlp#undo#exit()',
\ 'type': 'line',
\ 'sort': 0,
\ 'nolim': 1,
\ })
let s:id = g:ctrlp_builtins + len(g:ctrlp_ext_vars)
let s:text = map(['second', 'seconds', 'minutes', 'hours', 'days', 'weeks',
\ 'months', 'years'], '" ".v:val." ago"')
" Utilities {{{1
fu! s:getundo()
if exists('*undotree')
\ && ( v:version > 703 || ( v:version == 703 && has('patch005') ) )
retu [1, undotree()]
el
redi => result
sil! undol
redi END
retu [0, split(result, "\n")[1:]]
en
endf
fu! s:flatten(tree, cur)
let flatdict = {}
for each in a:tree
let saved = has_key(each, 'save') ? 'saved' : ''
let current = each['seq'] == a:cur ? 'current' : ''
cal extend(flatdict, { each['seq'] : [each['time'], saved, current] })
if has_key(each, 'alt')
cal extend(flatdict, s:flatten(each['alt'], a:cur))
en
endfo
retu flatdict
endf
fu! s:elapsed(nr)
let [text, time] = [s:text, localtime() - a:nr]
let mins = time / 60
let hrs = time / 3600
let days = time / 86400
let wks = time / 604800
let mons = time / 2592000
let yrs = time / 31536000
if yrs > 1
retu yrs.text[7]
elsei mons > 1
retu mons.text[6]
elsei wks > 1
retu wks.text[5]
elsei days > 1
retu days.text[4]
elsei hrs > 1
retu hrs.text[3]
elsei mins > 1
retu mins.text[2]
elsei time == 1
retu time.text[0]
elsei time < 120
retu time.text[1]
en
endf
fu! s:syntax()
if ctrlp#nosy() | retu | en
for [ke, va] in items({'T': 'Directory', 'Br': 'Comment', 'Nr': 'String',
\ 'Sv': 'Comment', 'Po': 'Title'})
cal ctrlp#hicheck('CtrlPUndo'.ke, va)
endfo
sy match CtrlPUndoT '\v\d+ \zs[^ ]+\ze|\d+:\d+:\d+'
sy match CtrlPUndoBr '\[\|\]'
sy match CtrlPUndoNr '\[\d\+\]' contains=CtrlPUndoBr
sy match CtrlPUndoSv 'saved'
sy match CtrlPUndoPo 'current'
endf
fu! s:dict2list(dict)
for ke in keys(a:dict)
let a:dict[ke][0] = s:elapsed(a:dict[ke][0])
endfo
retu map(keys(a:dict), 'eval(''[v:val, a:dict[v:val]]'')')
endf
fu! s:compval(...)
retu a:2[0] - a:1[0]
endf
fu! s:format(...)
let saved = !empty(a:1[1][1]) ? ' '.a:1[1][1] : ''
let current = !empty(a:1[1][2]) ? ' '.a:1[1][2] : ''
retu a:1[1][0].' ['.a:1[0].']'.saved.current
endf
fu! s:formatul(...)
let parts = matchlist(a:1,
\ '\v^\s+(\d+)\s+\d+\s+([^ ]+\s?[^ ]+|\d+\s\w+\s\w+)(\s*\d*)$')
retu parts == [] ? '----'
\ : parts[2].' ['.parts[1].']'.( parts[3] != '' ? ' saved' : '' )
endf
" Public {{{1
fu! ctrlp#undo#init()
let entries = s:undos[0] ? s:undos[1]['entries'] : s:undos[1]
if empty(entries) | retu [] | en
if !exists('s:lines')
if s:undos[0]
let entries = s:dict2list(s:flatten(entries, s:undos[1]['seq_cur']))
let s:lines = map(sort(entries, 's:compval'), 's:format(v:val)')
el
let s:lines = map(reverse(entries), 's:formatul(v:val)')
en
en
cal s:syntax()
retu s:lines
endf
fu! ctrlp#undo#accept(mode, str)
let undon = matchstr(a:str, '\[\zs\d\+\ze\]')
if empty(undon) | retu | en
cal ctrlp#exit()
exe 'u' undon
endf
fu! ctrlp#undo#id()
retu s:id
endf
fu! ctrlp#undo#enter()
let s:undos = s:getundo()
endf
fu! ctrlp#undo#exit()
unl! s:lines
endf
"}}}
" vim:fen:fdm=marker:fmr={{{,}}}:fdl=0:fdc=1:ts=2:sw=2:sts=2

View File

@@ -1,110 +0,0 @@
" =============================================================================
" File: autoload/ctrlp/utils.vim
" Description: Utilities
" Author: Kien Nguyen <github.com/kien>
" =============================================================================
" Static variables {{{1
fu! ctrlp#utils#lash()
retu &ssl || !exists('+ssl') ? '/' : '\'
endf
fu! s:lash(...)
retu ( a:0 ? a:1 : getcwd() ) !~ '[\/]$' ? s:lash : ''
endf
fu! ctrlp#utils#opts()
let s:lash = ctrlp#utils#lash()
let usrhome = $HOME . s:lash( $HOME )
let cahome = exists('$XDG_CACHE_HOME') ? $XDG_CACHE_HOME : usrhome.'.cache'
let cadir = isdirectory(usrhome.'.ctrlp_cache')
\ ? usrhome.'.ctrlp_cache' : cahome.s:lash(cahome).'ctrlp'
if exists('g:ctrlp_cache_dir')
let cadir = expand(g:ctrlp_cache_dir, 1)
if isdirectory(cadir.s:lash(cadir).'.ctrlp_cache')
let cadir = cadir.s:lash(cadir).'.ctrlp_cache'
en
en
let s:cache_dir = cadir
endf
cal ctrlp#utils#opts()
let s:wig_cond = v:version > 702 || ( v:version == 702 && has('patch051') )
" Files and Directories {{{1
fu! ctrlp#utils#cachedir()
retu s:cache_dir
endf
fu! ctrlp#utils#cachefile(...)
let [tail, dir] = [a:0 == 1 ? '.'.a:1 : '', a:0 == 2 ? a:1 : getcwd()]
let cache_file = substitute(dir, '\([\/]\|^\a\zs:\)', '%', 'g').tail.'.txt'
retu a:0 == 1 ? cache_file : s:cache_dir.s:lash(s:cache_dir).cache_file
endf
fu! ctrlp#utils#readfile(file)
if filereadable(a:file)
let data = readfile(a:file)
if empty(data) || type(data) != 3
unl data
let data = []
en
retu data
en
retu []
endf
fu! ctrlp#utils#mkdir(dir)
if exists('*mkdir') && !isdirectory(a:dir)
sil! cal mkdir(a:dir, 'p')
en
retu a:dir
endf
fu! ctrlp#utils#writecache(lines, ...)
if isdirectory(ctrlp#utils#mkdir(a:0 ? a:1 : s:cache_dir))
sil! cal writefile(a:lines, a:0 >= 2 ? a:2 : ctrlp#utils#cachefile())
en
endf
fu! ctrlp#utils#glob(...)
let path = ctrlp#utils#fnesc(a:1, 'g')
retu s:wig_cond ? glob(path, a:2) : glob(path)
endf
fu! ctrlp#utils#globpath(...)
retu call('globpath', s:wig_cond ? a:000 : a:000[:1])
endf
fu! ctrlp#utils#fnesc(path, type, ...)
if exists('*fnameescape')
if exists('+ssl')
if a:type == 'c'
let path = escape(a:path, '%#')
elsei a:type == 'f'
let path = fnameescape(a:path)
elsei a:type == 'g'
let path = escape(a:path, '?*')
en
let path = substitute(path, '[', '[[]', 'g')
el
let path = fnameescape(a:path)
en
el
if exists('+ssl')
if a:type == 'c'
let path = escape(a:path, '%#')
elsei a:type == 'f'
let path = escape(a:path, " \t\n%#*?|<\"")
elsei a:type == 'g'
let path = escape(a:path, '?*')
en
let path = substitute(path, '[', '[[]', 'g')
el
let path = escape(a:path, " \t\n*?[{`$\\%#'\"|!<")
en
en
retu a:0 ? escape(path, a:1) : path
endf
"}}}
" vim:fen:fdm=marker:fmr={{{,}}}:fdl=0:fdc=1:ts=2:sw=2:sts=2

File diff suppressed because it is too large Load Diff

View File

@@ -1,100 +0,0 @@
'ctrl-p' ctrlp.txt /*'ctrl-p'*
'ctrlp' ctrlp.txt /*'ctrlp'*
'ctrlp-<c-p>' ctrlp.txt /*'ctrlp-<c-p>'*
'ctrlp-autocompletion' ctrlp.txt /*'ctrlp-autocompletion'*
'ctrlp-fullregexp' ctrlp.txt /*'ctrlp-fullregexp'*
'ctrlp-pasting' ctrlp.txt /*'ctrlp-pasting'*
'ctrlp-wildignore' ctrlp.txt /*'ctrlp-wildignore'*
'g:ctrlp_abbrev' ctrlp.txt /*'g:ctrlp_abbrev'*
'g:ctrlp_arg_map' ctrlp.txt /*'g:ctrlp_arg_map'*
'g:ctrlp_buffer_func' ctrlp.txt /*'g:ctrlp_buffer_func'*
'g:ctrlp_buftag_ctags_bin' ctrlp.txt /*'g:ctrlp_buftag_ctags_bin'*
'g:ctrlp_buftag_systemenc' ctrlp.txt /*'g:ctrlp_buftag_systemenc'*
'g:ctrlp_buftag_types' ctrlp.txt /*'g:ctrlp_buftag_types'*
'g:ctrlp_by_filename' ctrlp.txt /*'g:ctrlp_by_filename'*
'g:ctrlp_cache_dir' ctrlp.txt /*'g:ctrlp_cache_dir'*
'g:ctrlp_clear_cache_on_exit' ctrlp.txt /*'g:ctrlp_clear_cache_on_exit'*
'g:ctrlp_cmd' ctrlp.txt /*'g:ctrlp_cmd'*
'g:ctrlp_custom_ignore' ctrlp.txt /*'g:ctrlp_custom_ignore'*
'g:ctrlp_default_input' ctrlp.txt /*'g:ctrlp_default_input'*
'g:ctrlp_follow_symlinks' ctrlp.txt /*'g:ctrlp_follow_symlinks'*
'g:ctrlp_key_loop' ctrlp.txt /*'g:ctrlp_key_loop'*
'g:ctrlp_lazy_update' ctrlp.txt /*'g:ctrlp_lazy_update'*
'g:ctrlp_map' ctrlp.txt /*'g:ctrlp_map'*
'g:ctrlp_match_func' ctrlp.txt /*'g:ctrlp_match_func'*
'g:ctrlp_match_window' ctrlp.txt /*'g:ctrlp_match_window'*
'g:ctrlp_max_depth' ctrlp.txt /*'g:ctrlp_max_depth'*
'g:ctrlp_max_files' ctrlp.txt /*'g:ctrlp_max_files'*
'g:ctrlp_max_history' ctrlp.txt /*'g:ctrlp_max_history'*
'g:ctrlp_mruf_case_sensitive' ctrlp.txt /*'g:ctrlp_mruf_case_sensitive'*
'g:ctrlp_mruf_default_order' ctrlp.txt /*'g:ctrlp_mruf_default_order'*
'g:ctrlp_mruf_exclude' ctrlp.txt /*'g:ctrlp_mruf_exclude'*
'g:ctrlp_mruf_include' ctrlp.txt /*'g:ctrlp_mruf_include'*
'g:ctrlp_mruf_max' ctrlp.txt /*'g:ctrlp_mruf_max'*
'g:ctrlp_mruf_relative' ctrlp.txt /*'g:ctrlp_mruf_relative'*
'g:ctrlp_mruf_save_on_update' ctrlp.txt /*'g:ctrlp_mruf_save_on_update'*
'g:ctrlp_open_func' ctrlp.txt /*'g:ctrlp_open_func'*
'g:ctrlp_open_multiple_files' ctrlp.txt /*'g:ctrlp_open_multiple_files'*
'g:ctrlp_open_new_file' ctrlp.txt /*'g:ctrlp_open_new_file'*
'g:ctrlp_prompt_mappings' ctrlp.txt /*'g:ctrlp_prompt_mappings'*
'g:ctrlp_regexp' ctrlp.txt /*'g:ctrlp_regexp'*
'g:ctrlp_reuse_window' ctrlp.txt /*'g:ctrlp_reuse_window'*
'g:ctrlp_root_markers' ctrlp.txt /*'g:ctrlp_root_markers'*
'g:ctrlp_show_hidden' ctrlp.txt /*'g:ctrlp_show_hidden'*
'g:ctrlp_status_func' ctrlp.txt /*'g:ctrlp_status_func'*
'g:ctrlp_switch_buffer' ctrlp.txt /*'g:ctrlp_switch_buffer'*
'g:ctrlp_tabpage_position' ctrlp.txt /*'g:ctrlp_tabpage_position'*
'g:ctrlp_use_caching' ctrlp.txt /*'g:ctrlp_use_caching'*
'g:ctrlp_use_migemo' ctrlp.txt /*'g:ctrlp_use_migemo'*
'g:ctrlp_user_command' ctrlp.txt /*'g:ctrlp_user_command'*
'g:ctrlp_working_path_mode' ctrlp.txt /*'g:ctrlp_working_path_mode'*
'g:loaded_ctrlp' ctrlp.txt /*'g:loaded_ctrlp'*
:CtrlP ctrlp.txt /*:CtrlP*
:CtrlPBookmarkDir ctrlp.txt /*:CtrlPBookmarkDir*
:CtrlPBookmarkDirAdd ctrlp.txt /*:CtrlPBookmarkDirAdd*
:CtrlPBufTag ctrlp.txt /*:CtrlPBufTag*
:CtrlPBufTagAll ctrlp.txt /*:CtrlPBufTagAll*
:CtrlPBuffer ctrlp.txt /*:CtrlPBuffer*
:CtrlPChange ctrlp.txt /*:CtrlPChange*
:CtrlPChangeAll ctrlp.txt /*:CtrlPChangeAll*
:CtrlPClearAllCaches ctrlp.txt /*:CtrlPClearAllCaches*
:CtrlPClearCache ctrlp.txt /*:CtrlPClearCache*
:CtrlPDir ctrlp.txt /*:CtrlPDir*
:CtrlPLastMode ctrlp.txt /*:CtrlPLastMode*
:CtrlPLine ctrlp.txt /*:CtrlPLine*
:CtrlPMRU ctrlp.txt /*:CtrlPMRU*
:CtrlPMixed ctrlp.txt /*:CtrlPMixed*
:CtrlPQuickfix ctrlp.txt /*:CtrlPQuickfix*
:CtrlPRTS ctrlp.txt /*:CtrlPRTS*
:CtrlPRoot ctrlp.txt /*:CtrlPRoot*
:CtrlPTag ctrlp.txt /*:CtrlPTag*
:CtrlPUndo ctrlp.txt /*:CtrlPUndo*
ClearAllCtrlPCaches ctrlp.txt /*ClearAllCtrlPCaches*
ClearCtrlPCache ctrlp.txt /*ClearCtrlPCache*
ControlP ctrlp.txt /*ControlP*
CtrlP ctrlp.txt /*CtrlP*
ResetCtrlP ctrlp.txt /*ResetCtrlP*
ctrlp-changelog ctrlp.txt /*ctrlp-changelog*
ctrlp-commands ctrlp.txt /*ctrlp-commands*
ctrlp-contents ctrlp.txt /*ctrlp-contents*
ctrlp-credits ctrlp.txt /*ctrlp-credits*
ctrlp-customization ctrlp.txt /*ctrlp-customization*
ctrlp-extensions ctrlp.txt /*ctrlp-extensions*
ctrlp-input-formats ctrlp.txt /*ctrlp-input-formats*
ctrlp-intro ctrlp.txt /*ctrlp-intro*
ctrlp-mappings ctrlp.txt /*ctrlp-mappings*
ctrlp-miscellaneous-configs ctrlp.txt /*ctrlp-miscellaneous-configs*
ctrlp-options ctrlp.txt /*ctrlp-options*
ctrlp.txt ctrlp.txt /*ctrlp.txt*
g:ctrlp_dont_split ctrlp.txt /*g:ctrlp_dont_split*
g:ctrlp_dotfiles ctrlp.txt /*g:ctrlp_dotfiles*
g:ctrlp_highlight_match ctrlp.txt /*g:ctrlp_highlight_match*
g:ctrlp_jump_to_buffer ctrlp.txt /*g:ctrlp_jump_to_buffer*
g:ctrlp_live_update ctrlp.txt /*g:ctrlp_live_update*
g:ctrlp_match_window_bottom ctrlp.txt /*g:ctrlp_match_window_bottom*
g:ctrlp_match_window_reversed ctrlp.txt /*g:ctrlp_match_window_reversed*
g:ctrlp_max_height ctrlp.txt /*g:ctrlp_max_height*
g:ctrlp_mru_files ctrlp.txt /*g:ctrlp_mru_files*
g:ctrlp_open_multi ctrlp.txt /*g:ctrlp_open_multi*
g:ctrlp_persistent_input ctrlp.txt /*g:ctrlp_persistent_input*
g:ctrlp_regexp_search ctrlp.txt /*g:ctrlp_regexp_search*

View File

@@ -1,68 +0,0 @@
" =============================================================================
" File: plugin/ctrlp.vim
" Description: Fuzzy file, buffer, mru, tag, etc finder.
" Author: Kien Nguyen <github.com/kien>
" =============================================================================
" GetLatestVimScripts: 3736 1 :AutoInstall: ctrlp.zip
if ( exists('g:loaded_ctrlp') && g:loaded_ctrlp ) || v:version < 700 || &cp
fini
en
let g:loaded_ctrlp = 1
let [g:ctrlp_lines, g:ctrlp_allfiles, g:ctrlp_alltags, g:ctrlp_alldirs,
\ g:ctrlp_allmixes, g:ctrlp_buftags, g:ctrlp_ext_vars, g:ctrlp_builtins]
\ = [[], [], [], [], {}, {}, [], 2]
if !exists('g:ctrlp_map') | let g:ctrlp_map = '<c-p>' | en
if !exists('g:ctrlp_cmd') | let g:ctrlp_cmd = 'CtrlP' | en
com! -n=? -com=dir CtrlP cal ctrlp#init(0, { 'dir': <q-args> })
com! -n=? -com=dir CtrlPMRUFiles cal ctrlp#init(2, { 'dir': <q-args> })
com! -bar CtrlPBuffer cal ctrlp#init(1)
com! -n=? CtrlPLastMode cal ctrlp#init(-1, { 'args': <q-args> })
com! -bar CtrlPClearCache cal ctrlp#clr()
com! -bar CtrlPClearAllCaches cal ctrlp#clra()
com! -bar ClearCtrlPCache cal ctrlp#clr()
com! -bar ClearAllCtrlPCaches cal ctrlp#clra()
com! -bar CtrlPCurWD cal ctrlp#init(0, { 'mode': '' })
com! -bar CtrlPCurFile cal ctrlp#init(0, { 'mode': 'c' })
com! -bar CtrlPRoot cal ctrlp#init(0, { 'mode': 'r' })
if g:ctrlp_map != '' && !hasmapto(':<c-u>'.g:ctrlp_cmd.'<cr>', 'n')
exe 'nn <silent>' g:ctrlp_map ':<c-u>'.g:ctrlp_cmd.'<cr>'
en
cal ctrlp#mrufiles#init()
com! -bar CtrlPTag cal ctrlp#init(ctrlp#tag#id())
com! -bar CtrlPQuickfix cal ctrlp#init(ctrlp#quickfix#id())
com! -n=? -com=dir CtrlPDir
\ cal ctrlp#init(ctrlp#dir#id(), { 'dir': <q-args> })
com! -n=? -com=buffer CtrlPBufTag
\ cal ctrlp#init(ctrlp#buffertag#cmd(0, <q-args>))
com! -bar CtrlPBufTagAll cal ctrlp#init(ctrlp#buffertag#cmd(1))
com! -bar CtrlPRTS cal ctrlp#init(ctrlp#rtscript#id())
com! -bar CtrlPUndo cal ctrlp#init(ctrlp#undo#id())
com! -n=? -com=buffer CtrlPLine
\ cal ctrlp#init(ctrlp#line#cmd(1, <q-args>))
com! -n=? -com=buffer CtrlPChange
\ cal ctrlp#init(ctrlp#changes#cmd(0, <q-args>))
com! -bar CtrlPChangeAll cal ctrlp#init(ctrlp#changes#cmd(1))
com! -bar CtrlPMixed cal ctrlp#init(ctrlp#mixed#id())
com! -bar CtrlPBookmarkDir cal ctrlp#init(ctrlp#bookmarkdir#id())
com! -n=? -com=dir CtrlPBookmarkDirAdd
\ cal ctrlp#call('ctrlp#bookmarkdir#add', <q-args>)
" vim:ts=2:sw=2:sts=2

View File

@@ -1,88 +0,0 @@
# ctrlp.vim
Full path fuzzy __file__, __buffer__, __mru__, __tag__, __...__ finder for Vim.
* Written in pure Vimscript for MacVim, gVim and Vim 7.0+.
* Full support for Vim's regexp as search patterns.
* Built-in Most Recently Used (MRU) files monitoring.
* Built-in project's root finder.
* Open multiple files at once.
* Create new files and directories.
* [Extensible][2].
![ctrlp][1]
## Basic Usage
* Run `:CtrlP` or `:CtrlP [starting-directory]` to invoke CtrlP in find file mode.
* Run `:CtrlPBuffer` or `:CtrlPMRU` to invoke CtrlP in find buffer or find MRU file mode.
* Run `:CtrlPMixed` to search in Files, Buffers and MRU files at the same time.
Check `:help ctrlp-commands` and `:help ctrlp-extensions` for other commands.
##### Once CtrlP is open:
* Press `<F5>` to purge the cache for the current directory to get new files, remove deleted files and apply new ignore options.
* Press `<c-f>` and `<c-b>` to cycle between modes.
* Press `<c-d>` to switch to filename only search instead of full path.
* Press `<c-r>` to switch to regexp mode.
* Use `<c-j>`, `<c-k>` or the arrow keys to navigate the result list.
* Use `<c-t>` or `<c-v>`, `<c-x>` to open the selected entry in a new tab or in a new split.
* Use `<c-n>`, `<c-p>` to select the next/previous string in the prompt's history.
* Use `<c-y>` to create a new file and its parent directories.
* Use `<c-z>` to mark/unmark multiple files and `<c-o>` to open them.
Run `:help ctrlp-mappings` or submit `?` in CtrlP for more mapping help.
* Submit two or more dots `..` to go up the directory tree by one or multiple levels.
* End the input string with a colon `:` followed by a command to execute it on the opening file(s):
Use `:25` to jump to line 25.
Use `:diffthis` when opening multiple files to run `:diffthis` on the first 4 files.
## Basic Options
* Change the default mapping and the default command to invoke CtrlP:
```vim
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
```
* When invoked, unless a starting directory is specified, CtrlP will set its local working directory according to this variable:
```vim
let g:ctrlp_working_path_mode = 'ra'
```
`'c'` - the directory of the current file.
`'r'` - the nearest ancestor that contains one of these directories or files: `.git` `.hg` `.svn` `.bzr` `_darcs`
`'a'` - like c, but only if the current working directory outside of CtrlP is not a direct ancestor of the directory of the current file.
`0` or `''` (empty string) - disable this feature.
Define additional root markers with the `g:ctrlp_root_markers` option.
* Exclude files and directories using Vim's `wildignore` and CtrlP's own `g:ctrlp_custom_ignore`:
```vim
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git|hg|svn)$',
\ 'file': '\v\.(exe|so|dll)$',
\ 'link': 'some_bad_symbolic_links',
\ }
```
* Use a custom file listing command:
```vim
let g:ctrlp_user_command = 'find %s -type f' " MacOSX/Linux
let g:ctrlp_user_command = 'dir %s /-n /b /s /a-d' " Windows
```
Check `:help ctrlp-options` for other options.
## Installation
Use your favorite method or check the homepage for a [quick installation guide][3].
[1]: http://i.imgur.com/yIynr.png
[2]: https://github.com/kien/ctrlp.vim/tree/extensions
[3]: http://kien.github.com/ctrlp.vim#installation

View File

@@ -1,27 +0,0 @@
# vim-blade #
Vim syntax highlighting for Blade templates (Laravel 4+).
Installation
------------
Using pathogen
[pathogen.vim](https://github.com/tpope/vim-pathogen).
cd ~/.vim/bundle
git clone git://github.com/xsbeats/vim-blade.git
Using vundle
[Vundle.vim](https://github.com/gmarik/Vundle.vim).
Plugin 'xsbeats/vim-blade'
Using neobundle
[Neobundle.vim](https://github.com/Shougo/neobundle.vim)
NeoBundle 'xsbeats/vim-blade'
Todo
----
Indentation (currently nonexistent)

View File

@@ -1 +0,0 @@
au BufNewFile,BufRead *.blade.php set filetype=blade

View File

@@ -1,41 +0,0 @@
" Language: Blade
" Maintainer: Jason Walton <jwalton512@gmail.com>
" URL: https://github.com/xsbeats/vim-blade
" License: DBAD
" Check if our syntax is already loaded
if exists('b:current_syntax') && b:current_syntax == 'blade'
finish
endif
" Include PHP
runtime! syntax/php.vim
silent! unlet b:current_syntax
" Echos
syn region bladeUnescapedEcho matchgroup=bladeEchoDelim start=/@\@<!\s*{!!/ end=/!!}\s*/ oneline contains=@phpClTop containedin=ALLBUT,bladeComment
syn region bladeEscapedEcho matchgroup=bladeEchoDelim start=/@\@<!\s*{{{\@!/ end=/}}\s*/ oneline contains=@phpClTop containedin=ALLBUT,bladeComment
syn region bladeEscapedEcho matchgroup=bladeEchoDelim start=/@\@<!\s*{{{{\@!/ end=/}}}/ oneline contains=@phpClTop containedin=ALLBUT,bladeComment
" Structures
syn match bladeStructure /\s*@\(else\|empty\|endfor\|endforeach\|endforelse\|endif\|endpush\|endsection\|endunless\|endwhile\|overwrite\|show\|stop\)\>/
syn match bladeStructure /\s*@\(append\|choice\|each\|elseif\|extends\|for\|foreach\|forelse\|if\|include\|lang\|push\|section\|stack\|unless\|while\|yield\|\)\>\s*/ nextgroup=bladeParens
syn region bladeParens matchgroup=bladeParen start=/(/ end=/)/ contained contains=@bladeAll,@phpClTop
" Comments
syn region bladeComments start=/\s*{{--/ end=/--}}/ contains=bladeComment keepend
syn match bladeComment /.*/ contained containedin=bladeComments
" Clusters
syn cluster bladeAll contains=bladeStructure,bladeParens
" Highlighting
hi def link bladeComment Comment
hi def link bladeEchoDelim Delimiter
hi def link bladeParen Delimiter
hi def link bladeStructure Keyword
if !exists('b:current_syntax')
let b:current_syntax = 'blade'
endif

View File

@@ -1,166 +0,0 @@
/* Regular PHP */
echo('foo') // shouldn't be highlighted
<?php if ($bar->foo == $foo) return false; ?>
/* Regular HTML */
<html>
</html>
/* Echos */
{!! $name !!}
{{ $name }}
{{{ $name }}}
@{!! $name !!} // should be treated as regular php
/* Structures */
@else
@empty
@endfor
@endforeach
@endif
@endpush
@endsection
@endunless
@endwhile
@overwrite
@show
@stop
/* Structures (with conditions) */
@append('foo')
@choice('language.line', 1)
@each(['foo', 'bar'])
@if ($bar == ($foo*2))
{{ $bar }}
@elseif ($bar == ($foo*3))
{{ $bar * 2 }}
@else
'foo'
@endif
@extends('layouts.default')
@for($i = 0; $i < 10; $i++)
the value is {{ $i }}
@endforeach
@forelse($users as $user)
<li>{{ $user->name }}</li>
@empty
<p>No users</p>
@endforelse
@include('something')
@lang('language.line')
@push('foo')
<h1>{{ $foo }}</h1>
@endpush
@section('nav')
<h1>Home</h1>
@endsection
@stack('content')
@unless(1 == 2)
{{ $foo }}
@endunless
@while(true == false)
{{ $foo }}
@endwhile
@yield('content')
/* Comments */
{{-- comments on one line --}}
{{-- comments
on
many
lines --}}
{{-- structures shouldn't escape @if($insideComments == true) --}}
@yield('section') {{-- comments after structure are valid --}}
{{ $comments->finished() }}
/* Edge Cases */
// try a multiline include
@include('admin.misc.sort-header', [
'column' => 'name',
])
// inside html
<div>
@if ($foo == $bar)
{{ $foo }}
@endif
</div>
// keywords inside of comments
{{--
List from http://www.php.net/manual/en/reserved.keywords.php
__halt_compiler()
abstract
and
array()
as
break
callable
case
catch
class
clone
const
continue
declare
default
die()
do
echo
else
elseif
empty()
enddeclare
endfor
endforeach
endif
endswitch
endwhile
eval()
exit()
extends
final
finally
for
foreach
function
global
goto
if
implements
include
include_once
instanceof
insteadof
interface
isset()
list()
namespace
new
or
print
private
protected
public
require
require_once
return
static
switch
throw
trait
try
unset()
use
var
while
xor
yield
__DIR__
__FILE__
__FUNCTION__
__LINE__
__METHOD__
__NAMESPACE__
__TRAIT__
--}

View File

@@ -1,109 +0,0 @@
# vim-nerdtree-tabs changelog
## v1.4.6
* Add NERDTreeTabsFind function.
## v1.4.5
* Add NERDTreeFocusToggle function. (Thanks orthez.)
* More general refactoring and cleanup. (Thanks techlivezheng.)
## v1.4.4
* Option to always focus file window after startup. (Thanks rr-.)
## v1.4.3
* Partial fix for #32. When directory is given as an argument, two nerdtrees
are open, but both now point into the correct directory. (Thanks szajbus.)
## v1.4.2
* Friendlier when using together with MiniBufExplorer. (Thanks techlivezheng.)
* Do not open NERDTree by default when starting Vim in diff mode. (Thanks
techlivezheng.)
## v1.4.1
* Fix "cd into" feature for paths that include spaces. (Thanks nybblr.)
## v1.4.0
* When synchronizing NERDTree scroll and cursor position, synchronize also
NERDTree window width. (Thanks EinfachToll.)
* When Vim is given a directory as a parameter, `:cd` into it. (Thanks DAddYE.)
* New commands `NERDTreeTabsOpen`, `NERDTreeTabsClose` and
`NERDTreeMirrorOpen`. They are not a new functionality, just externalize
stuff that was previously accessible only inside the plugin.
* New commands `NERDTreeSteppedOpen` and `NERDTreeSteppedClose` for combined
opening/closing of a NERDTree and focus switching. Works locally for a tab.
(Thanks ereOn.)
* Fixed an error when restoring a session caused by accessing an undefined
variable. (Thanks ereOn.)
* Fixed opening two NERDTrees when `NERDTreeHijackNetrw = 1` and launching
with a directory name as a parameter.
## v1.3.0
* Focus synchronization - ability to have focus on NERDTree after tab switch
if and only if it was focused before tab switch. Switched on by default.
## v1.2.1
* Smart startup focus fixed.
## v1.2.0
* Loading process refactoring (should fix some glitches and hopefully not
break anything else). Directory structure has changed in this release,
a new pull of the repository is required for the plugin to work properly.
## v1.1.2
* Smart focus - on startup, focus NERDTree if opening a directory, focus the
file when opening a file.
## v1.1.1
* About 50% speedup when toggling NERDTree on across all tabs.
## v1.1.0
* Meaningful tab names feature doesn't collide with opening new tabs silently.
To accomplish that, tab switching now preserves window focus. The original
behavior that always kept focus in the window with file being edited can be
restored by `let g:nerdtree_tabs_focus_on_files = 1`.
* Removed glitches when sourcing the plugin more than once.
## v1.0.1
* Plugin is usable with vundle.
## v1.0.0
* NERDTree view synchronization (cursor position and scroll) across tabs
* Fix: focus is now on NERDTree when opening it in all tabs.
* If you create more NERDTree instances, nerdtree-tabs now tries hard to sync
all tabs to the last opened one.
## v0.2.0
* Better solution for opening NERDTree on tab creation (fixes wrong behavior in
improbable situations)
* Global variables for configuration
* Tab autoclose
* Option to open NERDTree on console vim startup, stays false by default
* Readme
## v0.1.0
* New mappings and a command, otherwise original functionality preserved while making it namespaced

View File

@@ -1,175 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

View File

@@ -1,144 +0,0 @@
# NERDTree and tabs together in Vim, painlessly
## Features
This plugin aims at making NERDTree feel like a true panel, independent of tabs.
* **Just one NERDTree**, always and ever. It will always look the same in
all tabs, including expanded/collapsed nodes, scroll position etc.
* Open in all tabs / close in all tabs. Do this via `:NERDTreeTabsToggle`
* Meaningful tab captions for inactive tabs. No more captions like 'NERD_tree_1'.
* When you close a file, the tab closes with it. No NERDTree hanging open.
* Autoopen NERDTree on GVim / MacVim startup.
Many of these features can be switched off. See section Configuration.
## Installation
1. If you haven't already, install NERDTree (see https://github.com/scrooloose/nerdtree)
2. Install the plugin **through Pathogen**:
cd ~/.vim/bundle
git clone https://github.com/jistr/vim-nerdtree-tabs.git
Or **through Vundle**:
Bundle 'jistr/vim-nerdtree-tabs'
Or **through Janus**:
cd ~/.janus
git clone https://github.com/jistr/vim-nerdtree-tabs.git
3. Map :NERDTreeTabsToggle command to some combo so you don't have to type it.
Alternatively, you can use plug-mapping instead of a command, like this:
map <Leader>n <plug>NERDTreeTabsToggle<CR>
4. Celebrate.
## Commands and Mappings
Vim-nerdtree-tabs provides these commands:
* `:NERDTreeTabsOpen` switches NERDTree on for all tabs.
* `:NERDTreeTabsClose` switches NERDTree off for all tabs.
* `:NERDTreeTabsToggle` toggles NERDTree on/off for all tabs.
* `:NERDTreeTabsFind` find currently opened file and select it
* `:NERDTreeMirrorOpen` acts as `:NERDTreeMirror`, but smarter: When opening,
it first tries to use an existing tree (i.e. previously closed in this tab or
perform a mirror of another tab's tree). If all this fails, a new tree is
created. It is recommended that you use this command instead of
`:NERDTreeMirror`.
* `:NERDTreeMirrorToggle` toggles NERDTree on/off in current tab, using
the same behavior as `:NERDTreeMirrorOpen`.
* `:NERDTreeSteppedOpen` focuses the NERDTree, opening one first if none is present.
* `:NERDTreeSteppedClose` unfocuses the NERDTree, or closes/hides it if it was
not focused.
* `:NERDTreeFocusToggle` focus the NERDTree or create it if focus is
on a file, unfocus NERDTree if focus is on NERDTree
There are also plug-mappings available with the same functionality:
* `<plug>NERDTreeTabsOpen`
* `<plug>NERDTreeTabsClose`
* `<plug>NERDTreeTabsToggle`
* `<plug>NERDTreeTabsFind`
* `<plug>NERDTreeMirrorOpen`
* `<plug>NERDTreeMirrorToggle`
* `<plug>NERDTreeSteppedOpen`
* `<plug>NERDTreeSteppedClose`
## Configuration
You can switch on/off some features of the plugin by setting global vars to 1
(for on) or 0 (for off) in your vimrc. Here are the options and their default
values:
* `g:nerdtree_tabs_open_on_gui_startup` (default: `1`)
Open NERDTree on gvim/macvim startup
* `g:nerdtree_tabs_open_on_console_startup` (default: `0`)
Open NERDTree on console vim startup
* `g:nerdtree_tabs_no_startup_for_diff` (default: `1`)
Do not open NERDTree if vim starts in diff mode
* `g:nerdtree_tabs_smart_startup_focus` (default: `1`)
On startup, focus NERDTree if opening a directory, focus file if opening
a file. (When set to `2`, always focus file window after startup).
* `g:nerdtree_tabs_open_on_new_tab` (default: `1`)
Open NERDTree on new tab creation (if NERDTree was globally opened by
:NERDTreeTabsToggle)
* `g:nerdtree_tabs_meaningful_tab_names` (default: `1`)
Unfocus NERDTree when leaving a tab for descriptive tab names
* `g:nerdtree_tabs_autoclose` (default: `1`)
Close current tab if there is only one window in it and it's NERDTree
* `g:nerdtree_tabs_synchronize_view` (default: `1`)
Synchronize view of all NERDTree windows (scroll and cursor position)
* `g:nerdtree_tabs_synchronize_focus` (default: `1`)
Synchronize focus when switching windows (focus NERDTree after tab switch
if and only if it was focused before tab switch)
* `g:nerdtree_tabs_focus_on_files` (default: `0`)
When switching into a tab, make sure that focus is on the file window,
not in the NERDTree window. (Note that this can get annoying if you use
NERDTree's feature "open in new tab silently", as you will lose focus on the
NERDTree.)
* `g:nerdtree_tabs_startup_cd` (default: `1`)
When given a directory name as a command line parameter when launching Vim,
`:cd` into it.
* `g:nerdtree_tabs_autofind` (default: `0`)
Automatically find and select currently opened file in NERDTree.
### Example
To run NERDTreeTabs on console vim startup, put into your .vimrc:
let g:nerdtree_tabs_open_on_console_startup=1
## Credits
The tab autoclose feature is stolen from Carl Lerche & Yehuda Katz's
[Janus](https://github.com/carlhuda/janus). Thanks, guys!

View File

@@ -1,4 +0,0 @@
:NERDTreeMirrorToggle vim-nerdtree-tabs.txt /*:NERDTreeMirrorToggle*
:NERDTreeTabsToggle vim-nerdtree-tabs.txt /*:NERDTreeTabsToggle*
nerdtree-tabs vim-nerdtree-tabs.txt /*nerdtree-tabs*
vim-nerdtree-tabs vim-nerdtree-tabs.txt /*vim-nerdtree-tabs*

View File

@@ -1,123 +0,0 @@
# NERDTree and tabs together in Vim, painlessly *vim-nerdtree-tabs*
*nerdtree-tabs*
## Installation
1. Copy the plugin to your vim config dir (via pathogen or any way you want).
2. Map :NERDTreeTabsToggle command to some combo so you don't have to type it.
Alternatively, you can use plug-mapping instead of a command, like this:
map <Leader>n <plug>NERDTreeTabsToggle<CR>
3. Celebrate.
## Features
In short, this vim plugin aims at making **NERDTree feel like a true panel**,
independent of tabs. That is done by keeping NERDTree synchronized between
tabs as much as possible. Read on for details.
### One command, open everywhere, close everywhere
You'll get a new command: `:NERDTreeTabsToggle`
For the needs of most of us, this will be the only command needed to operate
NERDTree. Press it once, NERDTree opens in all tabs (even in new tabs created
from now on); press it again, NERDTree closes in all tabs.
### Just one NERDTree
Tired of having a fully collapsed NERDTree every time you open a new tab?
Vim-nerdtree-tabs will keep them all synchronized. You will get just one
NERDTree buffer for all your tabs.
### Sync to the max
All NERDTree windows will always have the same scroll and cursor position.
### Meaningful tab captions
You know the feeling when you want to switch to *that file* and you have 8 tabs
open and they are all named 'NERD_tree_1'? Won't happen again. When leaving
a tab, vim-nerdtree-tabs moves focus out of NERDTree so that the tab caption is
the name of the file you are editing.
### Close the file = close the tab
A tab with NERDTree and a file won't hang open when you close the file window.
NERDTree will close automatically and so will the tab.
### Autoopen on startup
NERDTree will open automatically on GVim/MacVim startup. You can configure it
to open on console Vim as well, but this is disabled by default.
## Commands and mappings
Vim-nerdtree-tabs defines two commands:
*:NERDTreeTabsToggle*
* `:NERDTreeTabsToggle` switches NERDTree on/off for all tabs.
*:NERDTreeMirrorToggle*
* `:NERDTreeMirrorToggle` acts as `:NERDTreeToggle`, but smarter: When opening,
it first tries to use an existing tree (i.e. previously closed in this tab or
perform a mirror of another tab's tree). If all this fails, a new tree is
created. **It is recommended that you always use this command instead of
`:NERDTreeToggle`.**
There are also plug-mappings available with the same functionality:
* `<plug>NERDTreeTabsToggle`
* `<plug>NERDTreeMirrorToggle`
## Configuration
You can switch on/off some features of the plugin by setting global vars to 1
(for on) or 0 (for off) in your vimrc. Here are the options and their default
values:
* `let g:nerdtree_tabs_open_on_gui_startup = 1`
Open NERDTree on gvim/macvim startup
* `let g:nerdtree_tabs_open_on_console_startup = 0`
Open NERDTree on console vim startup
* `let g:nerdtree_tabs_no_startup_for_diff = 1`
Do not open NERDTree if vim starts in diff mode
* `let g:nerdtree_tabs_smart_startup_focus = 1`
On startup - focus NERDTree when opening a directory, focus the file if
editing a specified file. When set to `2`, always focus file after startup.
* `let g:nerdtree_tabs_open_on_new_tab = 1`
Open NERDTree on new tab creation (if NERDTree was globally opened by
:NERDTreeTabsToggle)
* `let g:nerdtree_tabs_meaningful_tab_names = 1`
Unfocus NERDTree when leaving a tab for descriptive tab names
* `let g:nerdtree_tabs_autoclose = 1`
Close current tab if there is only one window in it and it's NERDTree
* `let g:nerdtree_tabs_synchronize_view = 1`
Synchronize view of all NERDTree windows (scroll and cursor position)
* `let g:nerdtree_tabs_synchronize_focus = 1`
Synchronize focus when switching tabs (focus NERDTree after tab switch
if and only if it was focused before tab switch)
* `let g:nerdtree_tabs_focus_on_files = 0`
When switching into a tab, make sure that focus is on the file window,
not in the NERDTree window. (Note that this can get annoying if you use
NERDTree's feature "open in new tab silently", as you will lose focus on the
NERDTree.)
* `g:nerdtree_tabs_startup_cd = 1`
When starting up with a directory name as a parameter, cd into it
## Credits
* The tab autoclose feature is stolen from Carl Lerche & Yehuda Katz's
[Janus](https://github.com/carlhuda/janus). Thanks, guys!

View File

@@ -1,607 +0,0 @@
" === plugin configuration variables === {{{
"
" open NERDTree on gvim/macvim startup
if !exists('g:nerdtree_tabs_open_on_gui_startup')
let g:nerdtree_tabs_open_on_gui_startup = 1
endif
" open NERDTree on console vim startup (off by default)
if !exists('g:nerdtree_tabs_open_on_console_startup')
let g:nerdtree_tabs_open_on_console_startup = 0
endif
" do not open NERDTree if vim starts in diff mode
if !exists('g:nerdtree_tabs_no_startup_for_diff')
let g:nerdtree_tabs_no_startup_for_diff = 1
endif
" On startup - focus NERDTree when opening a directory, focus the file if
" editing a specified file. When set to `2`, always focus file after startup.
if !exists('g:nerdtree_tabs_smart_startup_focus')
let g:nerdtree_tabs_smart_startup_focus = 1
endif
" Open NERDTree on new tab creation if NERDTree was globally opened
" by :NERDTreeTabsToggle
if !exists('g:nerdtree_tabs_open_on_new_tab')
let g:nerdtree_tabs_open_on_new_tab = 1
endif
" unfocus NERDTree when leaving a tab so that you have descriptive tab names
" and not names like 'NERD_tree_1'
if !exists('g:nerdtree_tabs_meaningful_tab_names')
let g:nerdtree_tabs_meaningful_tab_names = 1
endif
" close current tab if there is only one window in it and it's NERDTree
if !exists('g:nerdtree_tabs_autoclose')
let g:nerdtree_tabs_autoclose = 1
endif
" synchronize view of all NERDTree windows (scroll and cursor position)
if !exists('g:nerdtree_tabs_synchronize_view')
let g:nerdtree_tabs_synchronize_view = 1
endif
" synchronize focus when switching tabs (focus NERDTree after tab switch
" if and only if it was focused before tab switch)
if !exists('g:nerdtree_tabs_synchronize_focus')
let g:nerdtree_tabs_synchronize_focus = 1
endif
" when switching into a tab, make sure that focus will always be in file
" editing window, not in NERDTree window (off by default)
if !exists('g:nerdtree_tabs_focus_on_files')
let g:nerdtree_tabs_focus_on_files = 0
endif
" when starting up with a directory name as a parameter, cd into it
if !exists('g:nerdtree_tabs_startup_cd')
let g:nerdtree_tabs_startup_cd = 1
endif
" automatically find and select currently opened file
if !exists('g:nerdtree_tabs_autofind')
let g:nerdtree_tabs_autofind = 0
endif
"
" }}}
" === plugin mappings === {{{
"
noremap <silent> <script> <Plug>NERDTreeTabsOpen :call <SID>NERDTreeOpenAllTabs()
noremap <silent> <script> <Plug>NERDTreeTabsClose :call <SID>NERDTreeCloseAllTabs()
noremap <silent> <script> <Plug>NERDTreeTabsToggle :call <SID>NERDTreeToggleAllTabs()
noremap <silent> <script> <Plug>NERDTreeTabsFind :call <SID>NERDTreeFindFile()
noremap <silent> <script> <Plug>NERDTreeMirrorOpen :call <SID>NERDTreeMirrorOrCreate()
noremap <silent> <script> <Plug>NERDTreeMirrorToggle :call <SID>NERDTreeMirrorToggle()
noremap <silent> <script> <Plug>NERDTreeSteppedOpen :call <SID>NERDTreeSteppedOpen()
noremap <silent> <script> <Plug>NERDTreeSteppedClose :call <SID>NERDTreeSteppedClose()
noremap <silent> <script> <Plug>NERDTreeFocusToggle :call <SID>NERDTreeFocusToggle()
"
" }}}
" === plugin commands === {{{
"
command! NERDTreeTabsOpen call <SID>NERDTreeOpenAllTabs()
command! NERDTreeTabsClose call <SID>NERDTreeCloseAllTabs()
command! NERDTreeTabsToggle call <SID>NERDTreeToggleAllTabs()
command! NERDTreeTabsFind call <SID>NERDTreeFindFile()
command! NERDTreeMirrorOpen call <SID>NERDTreeMirrorOrCreate()
command! NERDTreeMirrorToggle call <SID>NERDTreeMirrorToggle()
command! NERDTreeSteppedOpen call <SID>NERDTreeSteppedOpen()
command! NERDTreeSteppedClose call <SID>NERDTreeSteppedClose()
command! NERDTreeFocusToggle call <SID>NERDTreeFocusToggle()
"
" }}}
" === plugin functions === {{{
"
" === NERDTree manipulation (opening, closing etc.) === {{{
"
" s:NERDTreeMirrorOrCreate() {{{
"
" switch NERDTree on for current tab -- mirror it if possible, otherwise create it
fun! s:NERDTreeMirrorOrCreate()
let l:nerdtree_open = s:IsNERDTreeOpenInCurrentTab()
" if NERDTree is not active in the current tab, try to mirror it
if !l:nerdtree_open
let l:previous_winnr = winnr("$")
silent NERDTreeMirror
" if the window count of current tab didn't increase after NERDTreeMirror,
" it means NERDTreeMirror was unsuccessful and a new NERDTree has to be created
if l:previous_winnr == winnr("$")
silent NERDTreeToggle
endif
endif
endfun
" }}}
" s:NERDTreeMirrorToggle() {{{
"
" toggle NERDTree in current tab, use mirror if possible
fun! s:NERDTreeMirrorToggle()
let l:nerdtree_open = s:IsNERDTreeOpenInCurrentTab()
if l:nerdtree_open
silent NERDTreeClose
else
call s:NERDTreeMirrorOrCreate()
endif
endfun
" }}}
" s:NERDTreeOpenAllTabs() {{{
"
" switch NERDTree on for all tabs while making sure there is only one NERDTree buffer
fun! s:NERDTreeOpenAllTabs()
let s:nerdtree_globally_active = 1
" tabdo doesn't preserve current tab - save it and restore it afterwards
let l:current_tab = tabpagenr()
tabdo call s:NERDTreeMirrorOrCreate()
exe 'tabn ' . l:current_tab
endfun
" }}}
" s:NERDTreeCloseAllTabs() {{{
"
" close NERDTree across all tabs
fun! s:NERDTreeCloseAllTabs()
let s:nerdtree_globally_active = 0
" tabdo doesn't preserve current tab - save it and restore it afterwards
let l:current_tab = tabpagenr()
tabdo silent NERDTreeClose
exe 'tabn ' . l:current_tab
endfun
" }}}
" s:NERDTreeToggleAllTabs() {{{
"
" toggle NERDTree in current tab and match the state in all other tabs
fun! s:NERDTreeToggleAllTabs()
let l:nerdtree_open = s:IsNERDTreeOpenInCurrentTab()
let s:disable_handlers_for_tabdo = 1
if l:nerdtree_open
call s:NERDTreeCloseAllTabs()
else
call s:NERDTreeOpenAllTabs()
" force focus to NERDTree in current tab
if exists("t:NERDTreeBufName") && bufwinnr(t:NERDTreeBufName) != -1
exe bufwinnr(t:NERDTreeBufName) . "wincmd w"
endif
endif
let s:disable_handlers_for_tabdo = 0
endfun
" }}}
" s:NERDTreeSteppedOpen() {{{
"
" focus the NERDTree view, creating one first if none is present
fun! s:NERDTreeSteppedOpen()
if !s:IsCurrentWindowNERDTree()
if s:IsNERDTreeOpenInCurrentTab()
call s:NERDTreeFocus()
else
call s:NERDTreeMirrorOrCreate()
endif
endif
endfun
" }}}
" s:NERDTreeSteppedClose{() {{{
"
" unfocus the NERDTree view or closes it if it hadn't had focus at the time of
" the call
fun! s:NERDTreeSteppedClose()
if s:IsCurrentWindowNERDTree()
call s:NERDTreeUnfocus()
else
let l:nerdtree_open = s:IsNERDTreeOpenInCurrentTab()
if l:nerdtree_open
silent NERDTreeClose
endif
endif
endfun
" }}}
" s:NERDTreeFocusToggle() {{{
"
" focus the NERDTree view or creates it if in a file,
" or unfocus NERDTree view if in NERDTree
fun! s:NERDTreeFocusToggle()
let s:disable_handlers_for_tabdo = 1
if s:IsCurrentWindowNERDTree()
call s:NERDTreeUnfocus()
else
if !s:IsNERDTreeOpenInCurrentTab()
call s:NERDTreeOpenAllTabs()
endif
call s:NERDTreeFocus()
endif
let s:disable_handlers_for_tabdo = 0
endfun
" }}}
"
" === NERDTree manipulation (opening, closing etc.) === }}}
" === focus functions === {{{
"
" s:NERDTreeFocus() {{{
"
" if the current window is NERDTree, move focus to the next window
fun! s:NERDTreeFocus()
if !s:IsCurrentWindowNERDTree() && exists("t:NERDTreeBufName") && bufwinnr(t:NERDTreeBufName) != -1
exe bufwinnr(t:NERDTreeBufName) . "wincmd w"
endif
endfun
" }}}
" s:NERDTreeUnfocus() {{{
"
" if the current window is NERDTree, move focus to the next window
fun! s:NERDTreeUnfocus()
" save current window so that it's focus can be restored after switching
" back to this tab
let t:NERDTreeTabLastWindow = winnr()
if s:IsCurrentWindowNERDTree()
let l:winNum = s:NextNormalWindow()
if l:winNum != -1
exec l:winNum.'wincmd w'
else
wincmd w
endif
endif
endfun
" }}}
" s:NERDTreeRestoreFocus() {{{
"
" restore focus to the window that was focused before leaving current tab
fun! s:NERDTreeRestoreFocus()
if g:nerdtree_tabs_synchronize_focus
if s:is_nerdtree_globally_focused
call s:NERDTreeFocus()
elseif exists("t:NERDTreeTabLastWindow") && exists("t:NERDTreeBufName") && t:NERDTreeTabLastWindow != bufwinnr(t:NERDTreeBufName)
exe t:NERDTreeTabLastWindow . "wincmd w"
endif
elseif exists("t:NERDTreeTabLastWindow")
exe t:NERDTreeTabLastWindow . "wincmd w"
endif
endfun
" }}}
" s:SaveGlobalFocus() {{{
"
fun! s:SaveGlobalFocus()
let s:is_nerdtree_globally_focused = s:IsCurrentWindowNERDTree()
endfun
" }}}
" s:IfFocusOnStartup() {{{
"
fun! s:IfFocusOnStartup()
return strlen(bufname('$')) == 0 || !getbufvar('$', '&modifiable')
endfun
" }}}
"
" === focus functions === }}}
" === utility functions === {{{
"
" s:NextNormalWindow() {{{
"
" find next window with a normal buffer
fun! s:NextNormalWindow()
let l:i = 1
while(l:i <= winnr('$'))
let l:buf = winbufnr(l:i)
" skip unlisted buffers
if buflisted(l:buf) == 0
let l:i = l:i + 1
continue
endif
" skip un-modifiable buffers
if getbufvar(l:buf, '&modifiable') != 1
let l:i = l:i + 1
continue
endif
" skip temporary buffers with buftype set
if empty(getbufvar(l:buf, "&buftype")) != 1
let l:i = l:i + 1
continue
endif
return l:i
endwhile
return -1
endfun
" }}}
" s:CloseIfOnlyNerdTreeLeft() {{{
"
" Close all open buffers on entering a window if the only
" buffer that's left is the NERDTree buffer
fun! s:CloseIfOnlyNerdTreeLeft()
if exists("t:NERDTreeBufName") && bufwinnr(t:NERDTreeBufName) != -1 && winnr("$") == 1
q
endif
endfun
" }}}
" s:IsCurrentWindowNERDTree() {{{
"
" returns 1 if current window is NERDTree, false otherwise
fun! s:IsCurrentWindowNERDTree()
return exists("t:NERDTreeBufName") && bufwinnr(t:NERDTreeBufName) == winnr()
endfun
" }}}
" s:IsNERDTreeOpenInCurrentTab() {{{
"
" check if NERDTree is open in current tab
fun! s:IsNERDTreeOpenInCurrentTab()
return exists("t:NERDTreeBufName") && bufwinnr(t:NERDTreeBufName) != -1
endfun
" }}}
" s:IsNERDTreePresentInCurrentTab() {{{
"
" check if NERDTree is present in current tab (not necessarily visible)
fun! s:IsNERDTreePresentInCurrentTab()
return exists("t:NERDTreeBufName")
endfun
" }}}
"
" === utility functions === }}}
" === NERDTree view manipulation (scroll and cursor positions) === {{{
"
" s:SaveNERDTreeViewIfPossible() {{{
"
fun! s:SaveNERDTreeViewIfPossible()
if exists("t:NERDTreeBufName") && bufwinnr(t:NERDTreeBufName) == winnr()
" save scroll and cursor etc.
let s:nerdtree_view = winsaveview()
" save NERDTree window width
let s:nerdtree_width = winwidth(winnr())
" save buffer name (to be able to correct desync by commands spawning
" a new NERDTree instance)
let s:nerdtree_buffer = bufname("%")
endif
endfun
" }}}
" s:RestoreNERDTreeViewIfPossible() {{{
"
fun! s:RestoreNERDTreeViewIfPossible()
" if nerdtree exists in current tab, it is the current window and if saved
" state is available, restore it
let l:view_state_saved = exists('s:nerdtree_view') && exists('s:nerdtree_width')
if s:IsNERDTreeOpenInCurrentTab() && l:view_state_saved
let l:current_winnr = winnr()
let l:nerdtree_winnr = bufwinnr(t:NERDTreeBufName)
" switch to NERDTree window
exe l:nerdtree_winnr . "wincmd w"
" load the correct NERDTree buffer if not already loaded
if exists('s:nerdtree_buffer') && t:NERDTreeBufName != s:nerdtree_buffer
silent NERDTreeClose
silent NERDTreeMirror
endif
" restore cursor, scroll and window width
call winrestview(s:nerdtree_view)
exe "vertical resize " . s:nerdtree_width
" switch back to whatever window was focused before
exe l:current_winnr . "wincmd w"
endif
endfun
" }}}
" s:NERDTreeFindFile() {{{
"
fun! s:NERDTreeFindFile()
if s:IsNERDTreeOpenInCurrentTab()
silent NERDTreeFind
endif
endfun
" }}}
"
" === NERDTree view manipulation (scroll and cursor positions) === }}}
"
" === plugin functions === }}}
" === plugin event handlers === {{{
"
" s:LoadPlugin() {{{
"
fun! s:LoadPlugin()
if exists('g:nerdtree_tabs_loaded')
return
endif
let g:NERDTreeHijackNetrw = 0
let s:disable_handlers_for_tabdo = 0
" global on/off NERDTree state
" the exists check is to enable script reloading without resetting the state
if !exists('s:nerdtree_globally_active')
let s:nerdtree_globally_active = 0
endif
" global focused/unfocused NERDTree state
" the exists check is to enable script reloading without resetting the state
if !exists('s:is_nerdtree_globally_focused')
call s:SaveGlobalFocus()
end
augroup NERDTreeTabs
autocmd!
autocmd VimEnter * call <SID>VimEnterHandler()
autocmd TabEnter * call <SID>TabEnterHandler()
autocmd TabLeave * call <SID>TabLeaveHandler()
autocmd WinEnter * call <SID>WinEnterHandler()
autocmd WinLeave * call <SID>WinLeaveHandler()
autocmd BufWinEnter * call <SID>BufWinEnterHandler()
autocmd BufRead * call <SID>BufReadHandler()
augroup END
let g:nerdtree_tabs_loaded = 1
endfun
" }}}
" s:VimEnterHandler() {{{
"
fun! s:VimEnterHandler()
" if the argument to vim is a directory, cd into it
if g:nerdtree_tabs_startup_cd && isdirectory(argv(0))
exe 'cd ' . escape(argv(0), '\ ')
endif
let l:open_nerd_tree_on_startup = (g:nerdtree_tabs_open_on_console_startup && !has('gui_running')) ||
\ (g:nerdtree_tabs_open_on_gui_startup && has('gui_running'))
if g:nerdtree_tabs_no_startup_for_diff && &diff
let l:open_nerd_tree_on_startup = 0
endif
" this makes sure that globally_active is true when using 'gvim .'
let s:nerdtree_globally_active = l:open_nerd_tree_on_startup
if l:open_nerd_tree_on_startup
let l:focus_file = !s:IfFocusOnStartup()
let l:main_bufnr = bufnr('%')
if !s:IsNERDTreePresentInCurrentTab()
call s:NERDTreeOpenAllTabs()
endif
if (l:focus_file && g:nerdtree_tabs_smart_startup_focus == 1) || g:nerdtree_tabs_smart_startup_focus == 2
exe bufwinnr(l:main_bufnr) . "wincmd w"
endif
endif
endfun
" }}} s:NewTabCreated {{{
"
" A flag to indicate that a new tab has just been created.
"
" We will handle the remaining work for this newly created tab separately in
" BufWinEnter event.
"
let s:NewTabCreated = 0
" }}}
" s:TabEnterHandler() {{{
"
fun! s:TabEnterHandler()
if s:disable_handlers_for_tabdo
return
endif
if g:nerdtree_tabs_open_on_new_tab && s:nerdtree_globally_active && !s:IsNERDTreeOpenInCurrentTab()
call s:NERDTreeMirrorOrCreate()
" move focus to the previous window
wincmd p
" Turn on the 'NewTabCreated' flag
let s:NewTabCreated = 1
endif
if g:nerdtree_tabs_synchronize_view
call s:RestoreNERDTreeViewIfPossible()
endif
if g:nerdtree_tabs_focus_on_files
call s:NERDTreeUnfocus()
" Do not restore focus on newly created tab here
elseif !s:NewTabCreated
call s:NERDTreeRestoreFocus()
endif
endfun
" }}}
" s:TabLeaveHandler() {{{
"
fun! s:TabLeaveHandler()
if g:nerdtree_tabs_meaningful_tab_names
call s:SaveGlobalFocus()
call s:NERDTreeUnfocus()
endif
endfun
" }}}
" s:WinEnterHandler() {{{
"
fun! s:WinEnterHandler()
if s:disable_handlers_for_tabdo
return
endif
if g:nerdtree_tabs_autoclose
call s:CloseIfOnlyNerdTreeLeft()
endif
endfun
" }}}
" s:WinLeaveHandler() {{{
"
fun! s:WinLeaveHandler()
if s:disable_handlers_for_tabdo
return
endif
if g:nerdtree_tabs_synchronize_view
call s:SaveNERDTreeViewIfPossible()
endif
endfun
" }}}
" s:BufWinEnterHandler() {{{
"
" BufWinEnter event only gets triggered after a new buffer has been
" successfully loaded, it is a proper time to finish the remaining
" work for newly opened tab.
"
fun! s:BufWinEnterHandler()
if s:NewTabCreated
" Turn off the 'NewTabCreated' flag
let s:NewTabCreated = 0
" Restore focus to NERDTree if necessary
if !g:nerdtree_tabs_focus_on_files
call s:NERDTreeRestoreFocus()
endif
endif
endfun
" }}}
" s:BufReadHandler() {{{
"
" BufRead event gets triggered after a new buffer has been
" successfully read from file.
"
fun! s:BufReadHandler()
" Refresh NERDTree to show currently opened file
if g:nerdtree_tabs_autofind
call s:NERDTreeFindFile()
call s:NERDTreeUnfocus()
endif
endfun
" }}}
"
" === plugin event handlers === }}}
call s:LoadPlugin()

View File

@@ -1,116 +0,0 @@
" Vim color file
"
" Author: Federico Ramirez
" https://github.com/gosukiwi/vim-atom-dark
"
" Note: Based on the Monokai theme variation by Tomas Restrepo
" https://github.com/tomasr/molokai
hi clear
if version > 580
" no guarantees for version 5.8 and below, but this makes it stop
" complaining
hi clear
if exists("syntax_on")
syntax reset
endif
endif
let g:colors_name="atom-dark"
hi Boolean guifg=#99CC99
hi Character guifg=#A8FF60
hi Number guifg=#99CC99
hi String guifg=#A8FF60
hi Conditional guifg=#92C5F7 gui=none
hi Constant guifg=#99CC99 gui=none
hi Cursor guifg=#F1F1F1 guibg=#777777
hi iCursor guifg=#F1F1F1 guibg=#777777
hi Debug guifg=#BCA3A3 gui=none
hi Define guifg=#66D9EF
hi Delimiter guifg=#8F8F8F
hi DiffAdd guibg=#13354A
hi DiffChange guifg=#89807D guibg=#4C4745
hi DiffDelete guifg=#960050 guibg=#1E0010
hi DiffText guibg=#4C4745 gui=none
hi Directory guifg=#AAAAAA gui=none
hi Error guifg=#A8FF60 guibg=#1E0010
hi ErrorMsg guifg=#92C5F7 guibg=#232526 gui=none
hi Exception guifg=#DAD085 gui=none
hi Float guifg=#99CC99
hi FoldColumn guifg=#465457 guibg=#000000
hi Folded guifg=#465457 guibg=#000000
hi Function guifg=#DAD085
hi Identifier guifg=#B6B7EB
hi Ignore guifg=#808080 guibg=bg
hi IncSearch guifg=#C4BE89 guibg=#000000
hi Keyword guifg=#92C5F7 gui=none
hi Label guifg=#A8FF60 gui=none
hi Macro guifg=#C4BE89 gui=none
hi SpecialKey guifg=#66D9EF gui=none
hi MatchParen guifg=#B7B9B8 guibg=#444444 gui=none
hi ModeMsg guifg=#A8FF60
hi MoreMsg guifg=#A8FF60
hi Operator guifg=#92C5F7
" complete menu
hi Pmenu guifg=#66D9EF guibg=#000000
hi PmenuSel guibg=#808080
hi PmenuSbar guibg=#080808
hi PmenuThumb guifg=#66D9EF
hi PreCondit guifg=#DAD085 gui=none
hi PreProc guifg=#DAD085
hi Question guifg=#66D9EF
hi Repeat guifg=#92C5F7 gui=none
hi Search guifg=#000000 guibg=#B4EC85
" marks
hi SignColumn guifg=#DAD085 guibg=#232526
hi SpecialChar guifg=#92C5F7 gui=none
hi SpecialComment guifg=#7C7C7C gui=none
hi Special guifg=#66D9EF guibg=bg gui=none
if has("spell")
hi SpellBad guisp=#FF0000 gui=undercurl
hi SpellCap guisp=#7070F0 gui=undercurl
hi SpellLocal guisp=#70F0F0 gui=undercurl
hi SpellRare guisp=#FFFFFF gui=undercurl
endif
hi Statement guifg=#92C5F7 gui=none
hi StatusLine guifg=#455354 guibg=fg gui=none
hi StatusLineNC guifg=#808080 guibg=#080808
hi StorageClass guifg=#B6B7EB gui=none
hi Structure guifg=#66D9EF
hi Tag guifg=#92C5F7 gui=none
hi Title guifg=#B6B7EB gui=none
hi Todo guifg=#FFFFFF guibg=bg gui=none
hi Typedef guifg=#66D9EF
hi Type guifg=#66D9EF gui=none
hi Underlined guifg=#808080 gui=underline
hi VertSplit guifg=#808080 guibg=#080808
hi VisualNOS guibg=#403D3D
hi Visual guibg=#403D3D
hi WarningMsg guifg=#FFFFFF guibg=#333333
hi WildMenu guifg=#66D9EF guibg=#000000
hi TabLineFill guifg=#1D1F21 guibg=#1D1F21
hi TabLine guibg=#1D1F21 guifg=#808080 gui=none
hi Normal guifg=#F8F8F2 guibg=#1D1F21
hi Comment guifg=#7C7C7C
hi CursorLine guibg=#293739
hi CursorLineNr guifg=#B6B7EB gui=none
hi CursorColumn guibg=#293739
hi ColorColumn guibg=#232526
hi LineNr guifg=#465457 guibg=#232526
hi NonText guifg=#465457
hi SpecialKey guifg=#465457
" Must be at the end, because of ctermbg=234 bug.
" https://groups.google.com/forum/#!msg/vim_dev/afPqwAFNdrU/nqh6tOM87QUJ
set background=dark

View File

@@ -1,650 +0,0 @@
" _ _ _ __
" | |__ __ _ __| | __ _____ | |/ _|
" | '_ \ / _` |/ _` | \ \ /\ / / _ \| | |_
" | |_) | (_| | (_| | \ V V / (_) | | _|
" |_.__/ \__,_|\__,_| \_/\_/ \___/|_|_|
"
" I am the Bad Wolf. I create myself.
" I take the words. I scatter them in time and space.
" A message to lead myself here.
"
" A Vim colorscheme pieced together by Steve Losh.
" Available at http://stevelosh.com/projects/badwolf/
"
" Why? {{{
"
" After using Molokai for quite a long time, I started longing for
" a replacement.
"
" I love Molokai's high contrast and gooey, saturated tones, but it can be
" a little inconsistent at times.
"
" Also it's winter here in Rochester, so I wanted a color scheme that's a bit
" warmer. A little less blue and a bit more red.
"
" And so Bad Wolf was born. I'm no designer, but designers have been scattering
" beautiful colors through time and space long before I came along. I took
" advantage of that and reused some of my favorites to lead me to this scheme.
"
" }}}
" Supporting code -------------------------------------------------------------
" Preamble {{{
if !has("gui_running") && &t_Co != 88 && &t_Co != 256
finish
endif
set background=dark
if exists("syntax_on")
syntax reset
endif
let colors_name = "badwolf"
if !exists("g:badwolf_html_link_underline") " {{{
let g:badwolf_html_link_underline = 1
endif " }}}
if !exists("g:badwolf_css_props_highlight") " {{{
let g:badwolf_css_props_highlight = 0
endif " }}}
" }}}
" Palette {{{
let s:bwc = {}
" The most basic of all our colors is a slightly tweaked version of the Molokai
" Normal text.
let s:bwc.plain = ['f8f6f2', 15]
" Pure and simple.
let s:bwc.snow = ['ffffff', 15]
let s:bwc.coal = ['000000', 16]
" All of the Gravel colors are based on a brown from Clouds Midnight.
let s:bwc.brightgravel = ['d9cec3', 252]
let s:bwc.lightgravel = ['998f84', 245]
let s:bwc.gravel = ['857f78', 243]
let s:bwc.mediumgravel = ['666462', 241]
let s:bwc.deepgravel = ['45413b', 238]
let s:bwc.deepergravel = ['35322d', 236]
let s:bwc.darkgravel = ['242321', 235]
let s:bwc.blackgravel = ['1c1b1a', 233]
let s:bwc.blackestgravel = ['141413', 232]
" A color sampled from a highlight in a photo of a glass of Dale's Pale Ale on
" my desk.
let s:bwc.dalespale = ['fade3e', 221]
" A beautiful tan from Tomorrow Night.
let s:bwc.dirtyblonde = ['f4cf86', 222]
" Delicious, chewy red from Made of Code for the poppiest highlights.
let s:bwc.taffy = ['ff2c4b', 196]
" Another chewy accent, but use sparingly!
let s:bwc.saltwatertaffy = ['8cffba', 121]
" The star of the show comes straight from Made of Code.
let s:bwc.tardis = ['0a9dff', 39]
" This one's from Mustang, not Florida!
let s:bwc.orange = ['ffa724', 214]
" A limier green from Getafe.
let s:bwc.lime = ['aeee00', 154]
" Rose's dress in The Idiot's Lantern.
let s:bwc.dress = ['ff9eb8', 211]
" Another play on the brown from Clouds Midnight. I love that color.
let s:bwc.toffee = ['b88853', 137]
" Also based on that Clouds Midnight brown.
let s:bwc.coffee = ['c7915b', 173]
let s:bwc.darkroast = ['88633f', 95]
" }}}
" Highlighting Function {{{
function! s:HL(group, fg, ...)
" Arguments: group, guifg, guibg, gui, guisp
let histring = 'hi ' . a:group . ' '
if strlen(a:fg)
if a:fg == 'fg'
let histring .= 'guifg=fg ctermfg=fg '
else
let c = get(s:bwc, a:fg)
let histring .= 'guifg=#' . c[0] . ' ctermfg=' . c[1] . ' '
endif
endif
if a:0 >= 1 && strlen(a:1)
if a:1 == 'bg'
let histring .= 'guibg=bg ctermbg=bg '
else
let c = get(s:bwc, a:1)
let histring .= 'guibg=#' . c[0] . ' ctermbg=' . c[1] . ' '
endif
endif
if a:0 >= 2 && strlen(a:2)
let histring .= 'gui=' . a:2 . ' cterm=' . a:2 . ' '
endif
if a:0 >= 3 && strlen(a:3)
let c = get(s:bwc, a:3)
let histring .= 'guisp=#' . c[0] . ' '
endif
" echom histring
execute histring
endfunction
" }}}
" Configuration Options {{{
if exists('g:badwolf_darkgutter') && g:badwolf_darkgutter
let s:gutter = 'blackestgravel'
else
let s:gutter = 'blackgravel'
endif
if exists('g:badwolf_tabline')
if g:badwolf_tabline == 0
let s:tabline = 'blackestgravel'
elseif g:badwolf_tabline == 1
let s:tabline = 'blackgravel'
elseif g:badwolf_tabline == 2
let s:tabline = 'darkgravel'
elseif g:badwolf_tabline == 3
let s:tabline = 'deepgravel'
else
let s:tabline = 'blackestgravel'
endif
else
let s:tabline = 'blackgravel'
endif
" }}}
" Actual colorscheme ----------------------------------------------------------
" Vanilla Vim {{{
" General/UI {{{
call s:HL('Normal', 'plain', 'blackgravel')
call s:HL('Folded', 'mediumgravel', 'bg', 'none')
call s:HL('VertSplit', 'lightgravel', 'bg', 'none')
call s:HL('CursorLine', '', 'darkgravel', 'none')
call s:HL('CursorColumn', '', 'darkgravel')
call s:HL('ColorColumn', '', 'darkgravel')
call s:HL('TabLine', 'plain', s:tabline, 'none')
call s:HL('TabLineFill', 'plain', s:tabline, 'none')
call s:HL('TabLineSel', 'coal', 'tardis', 'none')
call s:HL('MatchParen', 'dalespale', 'darkgravel', 'bold')
call s:HL('NonText', 'deepgravel', 'bg')
call s:HL('SpecialKey', 'deepgravel', 'bg')
call s:HL('Visual', '', 'deepgravel')
call s:HL('VisualNOS', '', 'deepgravel')
call s:HL('Search', 'coal', 'dalespale', 'bold')
call s:HL('IncSearch', 'coal', 'tardis', 'bold')
call s:HL('Underlined', 'fg', '', 'underline')
call s:HL('StatusLine', 'coal', 'tardis', 'bold')
call s:HL('StatusLineNC', 'snow', 'deepgravel', 'bold')
call s:HL('Directory', 'dirtyblonde', '', 'bold')
call s:HL('Title', 'lime')
call s:HL('ErrorMsg', 'taffy', 'bg', 'bold')
call s:HL('MoreMsg', 'dalespale', '', 'bold')
call s:HL('ModeMsg', 'dirtyblonde', '', 'bold')
call s:HL('Question', 'dirtyblonde', '', 'bold')
call s:HL('WarningMsg', 'dress', '', 'bold')
" This is a ctags tag, not an HTML one. 'Something you can use c-] on'.
call s:HL('Tag', '', '', 'bold')
" hi IndentGuides guibg=#373737
" hi WildMenu guifg=#66D9EF guibg=#000000
" }}}
" Gutter {{{
call s:HL('LineNr', 'mediumgravel', s:gutter)
call s:HL('SignColumn', '', s:gutter)
call s:HL('FoldColumn', 'mediumgravel', s:gutter)
" }}}
" Cursor {{{
call s:HL('Cursor', 'coal', 'tardis', 'bold')
call s:HL('vCursor', 'coal', 'tardis', 'bold')
call s:HL('iCursor', 'coal', 'tardis', 'none')
" }}}
" Syntax highlighting {{{
" Start with a simple base.
call s:HL('Special', 'plain')
" Comments are slightly brighter than folds, to make 'headers' easier to see.
call s:HL('Comment', 'gravel')
call s:HL('Todo', 'snow', 'bg', 'bold')
call s:HL('SpecialComment', 'snow', 'bg', 'bold')
" Strings are a nice, pale straw color. Nothing too fancy.
call s:HL('String', 'dirtyblonde')
" Control flow stuff is taffy.
call s:HL('Statement', 'taffy', '', 'bold')
call s:HL('Keyword', 'taffy', '', 'bold')
call s:HL('Conditional', 'taffy', '', 'bold')
call s:HL('Operator', 'taffy', '', 'none')
call s:HL('Label', 'taffy', '', 'none')
call s:HL('Repeat', 'taffy', '', 'none')
" Functions and variable declarations are orange, because plain looks weird.
call s:HL('Identifier', 'orange', '', 'none')
call s:HL('Function', 'orange', '', 'none')
" Preprocessor stuff is lime, to make it pop.
"
" This includes imports in any given language, because they should usually be
" grouped together at the beginning of a file. If they're in the middle of some
" other code they should stand out, because something tricky is
" probably going on.
call s:HL('PreProc', 'lime', '', 'none')
call s:HL('Macro', 'lime', '', 'none')
call s:HL('Define', 'lime', '', 'none')
call s:HL('PreCondit', 'lime', '', 'bold')
" Constants of all kinds are colored together.
" I'm not really happy with the color yet...
call s:HL('Constant', 'toffee', '', 'bold')
call s:HL('Character', 'toffee', '', 'bold')
call s:HL('Boolean', 'toffee', '', 'bold')
call s:HL('Number', 'toffee', '', 'bold')
call s:HL('Float', 'toffee', '', 'bold')
" Not sure what 'special character in a constant' means, but let's make it pop.
call s:HL('SpecialChar', 'dress', '', 'bold')
call s:HL('Type', 'dress', '', 'none')
call s:HL('StorageClass', 'taffy', '', 'none')
call s:HL('Structure', 'taffy', '', 'none')
call s:HL('Typedef', 'taffy', '', 'bold')
" Make try/catch blocks stand out.
call s:HL('Exception', 'lime', '', 'bold')
" Misc
call s:HL('Error', 'snow', 'taffy', 'bold')
call s:HL('Debug', 'snow', '', 'bold')
call s:HL('Ignore', 'gravel', '', '')
" }}}
" Completion Menu {{{
call s:HL('Pmenu', 'plain', 'deepergravel')
call s:HL('PmenuSel', 'coal', 'tardis', 'bold')
call s:HL('PmenuSbar', '', 'deepergravel')
call s:HL('PmenuThumb', 'brightgravel')
" }}}
" Diffs {{{
call s:HL('DiffDelete', 'coal', 'coal')
call s:HL('DiffAdd', '', 'deepergravel')
call s:HL('DiffChange', '', 'darkgravel')
call s:HL('DiffText', 'snow', 'deepergravel', 'bold')
" }}}
" Spelling {{{
if has("spell")
call s:HL('SpellCap', 'dalespale', 'bg', 'undercurl,bold', 'dalespale')
call s:HL('SpellBad', '', 'bg', 'undercurl', 'dalespale')
call s:HL('SpellLocal', '', '', 'undercurl', 'dalespale')
call s:HL('SpellRare', '', '', 'undercurl', 'dalespale')
endif
" }}}
" }}}
" Plugins {{{
" CtrlP {{{
" the message when no match is found
call s:HL('CtrlPNoEntries', 'snow', 'taffy', 'bold')
" the matched pattern
call s:HL('CtrlPMatch', 'orange', 'bg', 'none')
" the line prefix '>' in the match window
call s:HL('CtrlPLinePre', 'deepgravel', 'bg', 'none')
" the prompts base
call s:HL('CtrlPPrtBase', 'deepgravel', 'bg', 'none')
" the prompts text
call s:HL('CtrlPPrtText', 'plain', 'bg', 'none')
" the prompts cursor when moving over the text
call s:HL('CtrlPPrtCursor', 'coal', 'tardis', 'bold')
" 'prt' or 'win', also for 'regex'
call s:HL('CtrlPMode1', 'coal', 'tardis', 'bold')
" 'file' or 'path', also for the local working dir
call s:HL('CtrlPMode2', 'coal', 'tardis', 'bold')
" the scanning status
call s:HL('CtrlPStats', 'coal', 'tardis', 'bold')
" TODO: CtrlP extensions.
" CtrlPTabExtra : the part of each line thats not matched against (Comment)
" CtrlPqfLineCol : the line and column numbers in quickfix mode (|s:HL-Search|)
" CtrlPUndoT : the elapsed time in undo mode (|s:HL-Directory|)
" CtrlPUndoBr : the square brackets [] in undo mode (Comment)
" CtrlPUndoNr : the undo number inside [] in undo mode (String)
" }}}
" EasyMotion {{{
call s:HL('EasyMotionTarget', 'tardis', 'bg', 'bold')
call s:HL('EasyMotionShade', 'deepgravel', 'bg')
" }}}
" Interesting Words {{{
" These are only used if you're me or have copied the <leader>hNUM mappings
" from my Vimrc.
call s:HL('InterestingWord1', 'coal', 'orange')
call s:HL('InterestingWord2', 'coal', 'lime')
call s:HL('InterestingWord3', 'coal', 'saltwatertaffy')
call s:HL('InterestingWord4', 'coal', 'toffee')
call s:HL('InterestingWord5', 'coal', 'dress')
call s:HL('InterestingWord6', 'coal', 'taffy')
" }}}
" Makegreen {{{
" hi GreenBar term=reverse ctermfg=white ctermbg=green guifg=coal guibg=#9edf1c
" hi RedBar term=reverse ctermfg=white ctermbg=red guifg=white guibg=#C50048
" }}}
" Rainbow Parentheses {{{
call s:HL('level16c', 'mediumgravel', '', 'bold')
call s:HL('level15c', 'dalespale', '', '')
call s:HL('level14c', 'dress', '', '')
call s:HL('level13c', 'orange', '', '')
call s:HL('level12c', 'tardis', '', '')
call s:HL('level11c', 'lime', '', '')
call s:HL('level10c', 'toffee', '', '')
call s:HL('level9c', 'saltwatertaffy', '', '')
call s:HL('level8c', 'coffee', '', '')
call s:HL('level7c', 'dalespale', '', '')
call s:HL('level6c', 'dress', '', '')
call s:HL('level5c', 'orange', '', '')
call s:HL('level4c', 'tardis', '', '')
call s:HL('level3c', 'lime', '', '')
call s:HL('level2c', 'toffee', '', '')
call s:HL('level1c', 'saltwatertaffy', '', '')
" }}}
" ShowMarks {{{
call s:HL('ShowMarksHLl', 'tardis', 'blackgravel')
call s:HL('ShowMarksHLu', 'tardis', 'blackgravel')
call s:HL('ShowMarksHLo', 'tardis', 'blackgravel')
call s:HL('ShowMarksHLm', 'tardis', 'blackgravel')
" }}}
" }}}
" Filetype-specific {{{
" Clojure {{{
call s:HL('clojureSpecial', 'taffy', '', '')
call s:HL('clojureDefn', 'taffy', '', '')
call s:HL('clojureDefMacro', 'taffy', '', '')
call s:HL('clojureDefine', 'taffy', '', '')
call s:HL('clojureMacro', 'taffy', '', '')
call s:HL('clojureCond', 'taffy', '', '')
call s:HL('clojureKeyword', 'orange', '', 'none')
call s:HL('clojureFunc', 'dress', '', 'none')
call s:HL('clojureRepeat', 'dress', '', 'none')
call s:HL('clojureParen0', 'lightgravel', '', 'none')
call s:HL('clojureAnonArg', 'snow', '', 'bold')
" }}}
" CSS {{{
if g:badwolf_css_props_highlight
call s:HL('cssColorProp', 'dirtyblonde', '', 'none')
call s:HL('cssBoxProp', 'dirtyblonde', '', 'none')
call s:HL('cssTextProp', 'dirtyblonde', '', 'none')
call s:HL('cssRenderProp', 'dirtyblonde', '', 'none')
call s:HL('cssGeneratedContentProp', 'dirtyblonde', '', 'none')
else
call s:HL('cssColorProp', 'fg', '', 'none')
call s:HL('cssBoxProp', 'fg', '', 'none')
call s:HL('cssTextProp', 'fg', '', 'none')
call s:HL('cssRenderProp', 'fg', '', 'none')
call s:HL('cssGeneratedContentProp', 'fg', '', 'none')
end
call s:HL('cssValueLength', 'toffee', '', 'bold')
call s:HL('cssColor', 'toffee', '', 'bold')
call s:HL('cssBraces', 'lightgravel', '', 'none')
call s:HL('cssIdentifier', 'orange', '', 'bold')
call s:HL('cssClassName', 'orange', '', 'none')
" }}}
" Diff {{{
call s:HL('gitDiff', 'lightgravel', '',)
call s:HL('diffRemoved', 'dress', '',)
call s:HL('diffAdded', 'lime', '',)
call s:HL('diffFile', 'coal', 'taffy', 'bold')
call s:HL('diffNewFile', 'coal', 'taffy', 'bold')
call s:HL('diffLine', 'coal', 'orange', 'bold')
call s:HL('diffSubname', 'orange', '', 'none')
" }}}
" Django Templates {{{
call s:HL('djangoArgument', 'dirtyblonde', '',)
call s:HL('djangoTagBlock', 'orange', '')
call s:HL('djangoVarBlock', 'orange', '')
" hi djangoStatement guifg=#ff3853 gui=bold
" hi djangoVarBlock guifg=#f4cf86
" }}}
" HTML {{{
" Punctuation
call s:HL('htmlTag', 'darkroast', 'bg', 'none')
call s:HL('htmlEndTag', 'darkroast', 'bg', 'none')
" Tag names
call s:HL('htmlTagName', 'coffee', '', 'bold')
call s:HL('htmlSpecialTagName', 'coffee', '', 'bold')
call s:HL('htmlSpecialChar', 'lime', '', 'none')
" Attributes
call s:HL('htmlArg', 'coffee', '', 'none')
" Stuff inside an <a> tag
if g:badwolf_html_link_underline
call s:HL('htmlLink', 'lightgravel', '', 'underline')
else
call s:HL('htmlLink', 'lightgravel', '', 'none')
endif
" }}}
" Java {{{
call s:HL('javaClassDecl', 'taffy', '', 'bold')
call s:HL('javaScopeDecl', 'taffy', '', 'bold')
call s:HL('javaCommentTitle', 'gravel', '')
call s:HL('javaDocTags', 'snow', '', 'none')
call s:HL('javaDocParam', 'dalespale', '', '')
" }}}
" LaTeX {{{
call s:HL('texStatement', 'tardis', '', 'none')
call s:HL('texMathZoneX', 'orange', '', 'none')
call s:HL('texMathZoneA', 'orange', '', 'none')
call s:HL('texMathZoneB', 'orange', '', 'none')
call s:HL('texMathZoneC', 'orange', '', 'none')
call s:HL('texMathZoneD', 'orange', '', 'none')
call s:HL('texMathZoneE', 'orange', '', 'none')
call s:HL('texMathZoneV', 'orange', '', 'none')
call s:HL('texMathZoneX', 'orange', '', 'none')
call s:HL('texMath', 'orange', '', 'none')
call s:HL('texMathMatcher', 'orange', '', 'none')
call s:HL('texRefLabel', 'dirtyblonde', '', 'none')
call s:HL('texRefZone', 'lime', '', 'none')
call s:HL('texComment', 'darkroast', '', 'none')
call s:HL('texDelimiter', 'orange', '', 'none')
call s:HL('texZone', 'brightgravel', '', 'none')
augroup badwolf_tex
au!
au BufRead,BufNewFile *.tex syn region texMathZoneV start="\\(" end="\\)\|%stopzone\>" keepend contains=@texMathZoneGroup
au BufRead,BufNewFile *.tex syn region texMathZoneX start="\$" skip="\\\\\|\\\$" end="\$\|%stopzone\>" keepend contains=@texMathZoneGroup
augroup END
" }}}
" LessCSS {{{
call s:HL('lessVariable', 'lime', '', 'none')
" }}}
" Lispyscript {{{
call s:HL('lispyscriptDefMacro', 'lime', '', '')
call s:HL('lispyscriptRepeat', 'dress', '', 'none')
" }}}
" Mail {{{
call s:HL('mailSubject', 'orange', '', 'bold')
call s:HL('mailHeader', 'lightgravel', '', '')
call s:HL('mailHeaderKey', 'lightgravel', '', '')
call s:HL('mailHeaderEmail', 'snow', '', '')
call s:HL('mailURL', 'toffee', '', 'underline')
call s:HL('mailSignature', 'gravel', '', 'none')
call s:HL('mailQuoted1', 'gravel', '', 'none')
call s:HL('mailQuoted2', 'dress', '', 'none')
call s:HL('mailQuoted3', 'dirtyblonde', '', 'none')
call s:HL('mailQuoted4', 'orange', '', 'none')
call s:HL('mailQuoted5', 'lime', '', 'none')
" }}}
" Markdown {{{
call s:HL('markdownHeadingRule', 'lightgravel', '', 'bold')
call s:HL('markdownHeadingDelimiter', 'lightgravel', '', 'bold')
call s:HL('markdownOrderedListMarker', 'lightgravel', '', 'bold')
call s:HL('markdownListMarker', 'lightgravel', '', 'bold')
call s:HL('markdownItalic', 'snow', '', 'bold')
call s:HL('markdownBold', 'snow', '', 'bold')
call s:HL('markdownH1', 'orange', '', 'bold')
call s:HL('markdownH2', 'lime', '', 'bold')
call s:HL('markdownH3', 'lime', '', 'none')
call s:HL('markdownH4', 'lime', '', 'none')
call s:HL('markdownH5', 'lime', '', 'none')
call s:HL('markdownH6', 'lime', '', 'none')
call s:HL('markdownLinkText', 'toffee', '', 'underline')
call s:HL('markdownIdDeclaration', 'toffee')
call s:HL('markdownAutomaticLink', 'toffee', '', 'bold')
call s:HL('markdownUrl', 'toffee', '', 'bold')
call s:HL('markdownUrldelimiter', 'lightgravel', '', 'bold')
call s:HL('markdownLinkDelimiter', 'lightgravel', '', 'bold')
call s:HL('markdownLinkTextDelimiter', 'lightgravel', '', 'bold')
call s:HL('markdownCodeDelimiter', 'dirtyblonde', '', 'bold')
call s:HL('markdownCode', 'dirtyblonde', '', 'none')
call s:HL('markdownCodeBlock', 'dirtyblonde', '', 'none')
" }}}
" MySQL {{{
call s:HL('mysqlSpecial', 'dress', '', 'bold')
" }}}
" Python {{{
hi def link pythonOperator Operator
call s:HL('pythonBuiltin', 'dress')
call s:HL('pythonBuiltinObj', 'dress')
call s:HL('pythonBuiltinFunc', 'dress')
call s:HL('pythonEscape', 'dress')
call s:HL('pythonException', 'lime', '', 'bold')
call s:HL('pythonExceptions', 'lime', '', 'none')
call s:HL('pythonPrecondit', 'lime', '', 'none')
call s:HL('pythonDecorator', 'taffy', '', 'none')
call s:HL('pythonRun', 'gravel', '', 'bold')
call s:HL('pythonCoding', 'gravel', '', 'bold')
" }}}
" SLIMV {{{
" Rainbow parentheses
call s:HL('hlLevel0', 'gravel')
call s:HL('hlLevel1', 'orange')
call s:HL('hlLevel2', 'saltwatertaffy')
call s:HL('hlLevel3', 'dress')
call s:HL('hlLevel4', 'coffee')
call s:HL('hlLevel5', 'dirtyblonde')
call s:HL('hlLevel6', 'orange')
call s:HL('hlLevel7', 'saltwatertaffy')
call s:HL('hlLevel8', 'dress')
call s:HL('hlLevel9', 'coffee')
" }}}
" Vim {{{
call s:HL('VimCommentTitle', 'lightgravel', '', 'bold')
call s:HL('VimMapMod', 'dress', '', 'none')
call s:HL('VimMapModKey', 'dress', '', 'none')
call s:HL('VimNotation', 'dress', '', 'none')
call s:HL('VimBracket', 'dress', '', 'none')
" }}}
" }}}

View File

@@ -1,114 +0,0 @@
" Vim color file
" A Modified Monokai by Ben White
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name = "Benokai"
hi Cursor ctermfg=235 ctermbg=231 cterm=NONE guifg=#272822 guibg=#f8f8f0 gui=NONE
hi Visual ctermfg=NONE ctermbg=59 cterm=NONE guifg=NONE guibg=#49483e gui=NONE
hi CursorLine ctermfg=NONE ctermbg=237 cterm=NONE guifg=NONE guibg=#3c3d37 gui=NONE
hi CursorColumn ctermfg=NONE ctermbg=237 cterm=NONE guifg=NONE guibg=#3c3d37 gui=NONE
hi ColorColumn ctermfg=NONE ctermbg=237 cterm=NONE guifg=NONE guibg=#3c3d37 gui=NONE
hi LineNr ctermfg=102 ctermbg=237 cterm=NONE guifg=#90908a guibg=#3c3d37 gui=NONE
hi VertSplit ctermfg=241 ctermbg=241 cterm=NONE guifg=#64645e guibg=#64645e gui=NONE
hi MatchParen ctermfg=197 ctermbg=NONE cterm=underline guifg=#f92672 guibg=NONE gui=underline
hi StatusLine ctermfg=231 ctermbg=241 cterm=bold guifg=#f8f8f2 guibg=#64645e gui=bold
hi StatusLineNC ctermfg=231 ctermbg=241 cterm=NONE guifg=#f8f8f2 guibg=#64645e gui=NONE
hi Pmenu ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
hi PmenuSel ctermfg=NONE ctermbg=59 cterm=NONE guifg=NONE guibg=#49483e gui=NONE
hi IncSearch ctermfg=235 ctermbg=186 cterm=NONE guifg=#272822 guibg=#e6db74 gui=NONE
hi Search ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline
hi Directory ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
hi Folded ctermfg=242 ctermbg=235 cterm=NONE guifg=#75715e guibg=#272822 gui=NONE
hi TabLineFill term=bold cterm=bold ctermbg=0
hi Normal ctermfg=231 ctermbg=234 cterm=NONE guifg=#f8f8f2 guibg=#272822 gui=NONE
hi Boolean ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
hi Character ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
hi Comment ctermfg=242 ctermbg=NONE cterm=NONE guifg=#75715e guibg=NONE gui=NONE
hi Conditional ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
hi Constant ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
hi Define ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
hi DiffAdd ctermfg=231 ctermbg=64 cterm=bold guifg=#f8f8f2 guibg=#46830c gui=bold
hi DiffDelete ctermfg=88 ctermbg=NONE cterm=NONE guifg=#8b0807 guibg=NONE gui=NONE
hi DiffChange ctermfg=231 ctermbg=23 cterm=NONE guifg=#f8f8f2 guibg=#243955 gui=NONE
hi DiffText ctermfg=231 ctermbg=24 cterm=bold guifg=#f8f8f2 guibg=#204a87 gui=bold
hi ErrorMsg ctermfg=231 ctermbg=197 cterm=NONE guifg=#f8f8f0 guibg=#f92672 gui=NONE
hi WarningMsg ctermfg=231 ctermbg=197 cterm=NONE guifg=#f8f8f0 guibg=#f92672 gui=NONE
hi Float ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
hi Function ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE
hi Identifier ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic
hi Keyword ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
hi Label ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE
hi NonText ctermfg=238 ctermbg=NONE cterm=NONE guifg=#49483e guibg=NONE gui=NONE
hi Number ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
hi Structure ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
hi Operator ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
hi PreProc ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
hi Special ctermfg=231 ctermbg=NONE cterm=NONE guifg=#f8f8f2 guibg=NONE gui=NONE
hi SpecialKey ctermfg=236 ctermbg=None cterm=NONE guifg=#49483e guibg=#3c3d37 gui=NONE
hi Statement ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
hi StorageClass ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic
hi String ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE
hi Tag ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
hi Title ctermfg=231 ctermbg=NONE cterm=bold guifg=#f8f8f2 guibg=NONE gui=bold
hi Todo ctermfg=95 ctermbg=NONE cterm=inverse,bold guifg=#75715e guibg=NONE gui=inverse,bold
hi Type ctermfg=148 ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
hi Underlined ctermfg=NONE ctermbg=NONE cterm=underline guifg=NONE guibg=NONE gui=underline
hi rubyClass ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
hi rubyFunction ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE
hi rubyInterpolationDelimiter ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
hi rubySymbol ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
hi rubyConstant ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic
hi rubyStringDelimiter ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE
hi rubyBlockParameter ctermfg=208 ctermbg=NONE cterm=NONE guifg=#fd971f guibg=NONE gui=italic
hi rubyInstanceVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
hi rubyInclude ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
hi rubyGlobalVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
hi rubyRegexp ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE
hi rubyRegexpDelimiter ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE
hi rubyEscape ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
hi rubyControl ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
hi rubyClassVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
hi rubyOperator ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
hi rubyException ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
hi rubyPseudoVariable ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
hi rubyRailsUserClass ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic
hi rubyRailsARAssociationMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
hi rubyRailsARMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
hi rubyRailsRenderMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
hi rubyRailsMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
hi erubyDelimiter ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
hi erubyComment ctermfg=95 ctermbg=NONE cterm=NONE guifg=#75715e guibg=NONE gui=NONE
hi erubyRailsMethod ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
hi htmlH1 ctermfg=197 ctermbg=NONE cterm=NONE guifg=#67930f guibg=NONE gui=NONE
hi htmlH2 ctermfg=148 ctermbg=NONE cterm=NONE guifg=#67930f guibg=NONE gui=NONE
hi htmlH3 ctermfg=81 ctermbg=NONE cterm=NONE guifg=#67930f guibg=NONE gui=NONE
hi htmlH4 ctermfg=81 ctermbg=NONE cterm=NONE guifg=#67930f guibg=NONE gui=NONE
hi htmlH5 ctermfg=81 ctermbg=NONE cterm=NONE guifg=#67930f guibg=NONE gui=NONE
hi htmlH6 ctermfg=81 ctermbg=NONE cterm=NONE guifg=#67930f guibg=NONE gui=NONE
hi htmlTag ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
hi htmlEndTag ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
hi htmlTagName ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
hi htmlArg ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
hi htmlSpecialChar ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
hi javaScriptFunction ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=italic
hi javaScriptRailsFunction ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
hi javaScriptBraces ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
hi yamlKey ctermfg=197 ctermbg=NONE cterm=NONE guifg=#f92672 guibg=NONE gui=NONE
hi yamlAnchor ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
hi yamlAlias ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE
hi yamlDocumentHeader ctermfg=186 ctermbg=NONE cterm=NONE guifg=#e6db74 guibg=NONE gui=NONE
hi cssURL ctermfg=208 ctermbg=NONE cterm=NONE guifg=#fd971f guibg=NONE gui=italic
hi cssFunctionName ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
hi cssColor ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
hi cssPseudoClassId ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE
hi cssClassName ctermfg=148 ctermbg=NONE cterm=NONE guifg=#a6e22e guibg=NONE gui=NONE
hi cssValueLength ctermfg=141 ctermbg=NONE cterm=NONE guifg=#ae81ff guibg=NONE gui=NONE
hi cssCommonAttr ctermfg=81 ctermbg=NONE cterm=NONE guifg=#66d9ef guibg=NONE gui=NONE
hi cssBraces ctermfg=NONE ctermbg=NONE cterm=NONE guifg=NONE guibg=NONE gui=NONE

View File

@@ -1,246 +0,0 @@
" bluedrake.vim
"
" Designer: Michael Malick
" Version: 0.08
hi clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name = "bluedrake"
" let g:bluedrake_256 = 1
if has("gui_running")
let s:base00 = "002d49"
let s:base01 = "003951"
let s:base10 = "2f5468"
let s:base11 = "b4c3cf"
let s:base20 = "577284"
let s:base21 = "8ea2b0"
let s:base30 = "dae6f0"
let s:base31 = "edf8ff"
if &background=="dark"
let s:baseback0 = s:base00
let s:baseback1 = s:base01
let s:basecolor0 = s:base10
let s:basecolor1 = s:base11
let s:basecolor2 = s:base20
let s:basecolor3 = s:base21
let s:basefore0 = s:base30
let s:basefore1 = s:base31
endif
if &background=="light"
let s:baseback0 = s:base31
let s:baseback1 = s:base30
let s:basecolor0 = s:base11
let s:basecolor1 = s:base10
let s:basecolor2 = s:base21
let s:basecolor3 = s:base20
let s:basefore0 = s:base00
let s:basefore1 = s:base01
endif
" Multi-color palette (hue)
let s:blue = "0094d4"
let s:red = "d75a69"
let s:orange = "b67800"
let s:yellow = "768f00"
let s:green = "009e3c"
let s:cyan = "00a39a"
let s:purple = "976ce2"
let s:magenta = "d74bb9"
function! <SID>X(group, fg, bg, attr)
if a:fg != ""
exec "hi " . a:group . " guifg=#" . a:fg
endif
if a:bg != ""
exec "hi " . a:group . " guibg=#" . a:bg
endif
if a:attr != ""
exec "hi " . a:group . " gui=" . a:attr
endif
endfunction
endif
if !has("gui_running")
if !exists("g:bluedrake_256")
let s:base00 = "0"
let s:base01 = "8"
let s:base10 = "11"
let s:base11 = "12"
let s:base20 = "9"
let s:base21 = "14"
let s:base30 = "7"
let s:base31 = "15"
let s:blue = "4"
let s:red = "1"
let s:orange = "10"
let s:yellow = "3"
let s:green = "2"
let s:cyan = "6"
let s:purple = "13"
let s:magenta = "5"
endif
if exists("g:bluedrake_256")
let s:base00 = "235"
let s:base01 = "236"
let s:base10 = "24"
let s:base11 = "110"
let s:base20 = "242"
let s:base21 = "247"
let s:base30 = "253"
let s:base31 = "254"
let s:blue = "32"
let s:red = "167"
let s:orange = "136"
let s:yellow = "100"
let s:green = "28"
let s:cyan = "37"
let s:purple = "99"
let s:magenta = "170"
endif
if &background=="dark"
let s:baseback0 = s:base00
let s:baseback1 = s:base01
let s:basecolor0 = s:base10
let s:basecolor1 = s:base11
let s:basecolor2 = s:base20
let s:basecolor3 = s:base21
let s:basefore0 = s:base30
let s:basefore1 = s:base31
endif
if &background=="light"
let s:baseback0 = s:base31
let s:baseback1 = s:base30
let s:basecolor0 = s:base11
let s:basecolor1 = s:base10
let s:basecolor2 = s:base21
let s:basecolor3 = s:base20
let s:basefore0 = s:base00
let s:basefore1 = s:base01
endif
function! <SID>X(group, fg, bg, attr)
if a:fg != ""
exec "hi " . a:group . " ctermfg=" . a:fg
endif
if a:bg != ""
exec "hi " . a:group . " ctermbg=" . a:bg
endif
if a:attr != ""
exec "hi " . a:group . " cterm=" . a:attr
endif
endfunction
endif
" Vim highlighting
call <SID>X("Normal", s:blue, s:baseback0, "")
call <SID>X("Cursor", s:baseback1, s:basecolor3, "")
call <SID>X("CursorLineNr", s:basecolor1, s:baseback1, "none")
call <SID>X("LineNr", s:basecolor2, s:baseback1, "")
call <SID>X("NonText", s:basecolor3, "", "none")
call <SID>X("SpecialKey", s:basecolor3, "", "")
call <SID>X("Search", s:baseback1, s:orange, "")
call <SID>X("IncSearch", s:magenta, s:baseback1, "")
call <SID>X("TabLine", s:baseback1, s:basecolor1, "none")
call <SID>X("TabLineSel", s:basecolor1, s:baseback0, "")
call <SID>X("TabLineFill", s:basecolor1, s:blue, "reverse")
call <SID>X("StatusLine", s:basecolor1, s:baseback0, "reverse")
call <SID>X("StatusLineNC", s:basecolor2, s:baseback0, "reverse")
call <SID>X("VertSplit", s:basecolor2, s:basecolor2, "none")
call <SID>X("Visual", s:baseback1, s:basecolor1, "")
call <SID>X("Directory", s:cyan, "", "")
call <SID>X("ModeMsg", s:green, "", "")
call <SID>X("MoreMsg", s:green, "", "")
call <SID>X("Question", s:green, "", "")
call <SID>X("WarningMsg", s:red, "", "")
call <SID>X("ErrorMsg", s:basefore0, s:red, "")
call <SID>X("Error", s:basefore0, s:red, "")
call <SID>X("MatchParen", s:baseback1, s:magenta, "")
call <SID>X("FoldColumn", s:basecolor0, s:baseback0, "")
call <SID>X("vimCommand", s:magenta, "", "none")
call <SID>X("DiffText", s:green, s:baseback1, "none")
call <SID>X("DiffChange", s:orange, s:baseback1, "none")
call <SID>X("DiffAdd", s:cyan, s:baseback1, "none")
call <SID>X("DiffDelete", s:red, s:baseback1, "none")
call <SID>X("WildMenu", s:basecolor1, s:baseback1, "none")
if version >= 700
call <SID>X("CursorLine", "", s:baseback1, "none")
call <SID>X("CursorColumn", "", s:basecolor0, "none")
call <SID>X("Folded", s:basecolor3, s:baseback0, "")
" call <SID>X("Folded", s:basecolor2, s:baseback0, "")
call <SID>X("PMenu", s:baseback1, s:basecolor1, "none")
call <SID>X("PMenuSel", s:basefore0, s:basecolor0, "")
call <SID>X("PMenuThumb", s:basecolor2, s:basecolor0, "")
call <SID>X("SignColumn", s:basecolor0, s:baseback0, "")
endif
if version >= 703
call <SID>X("ColorColumn", "", s:baseback1, "none")
call <SID>X("Conceal", s:blue, s:baseback0, "")
endif
" Standard highlighting
call <SID>X("Todo", s:purple, s:baseback0, "none")
call <SID>X("Title", s:red, "", "none")
call <SID>X("Identifier", s:magenta, "", "none")
call <SID>X("Statement", s:yellow, "", "none")
call <SID>X("Conditional", s:blue, "", "none")
call <SID>X("Repeat", s:magenta, "", "none")
call <SID>X("Structure", s:purple, "", "none")
call <SID>X("Function", s:cyan, "", "none")
call <SID>X("Constant", s:red, "", "none")
call <SID>X("Special", s:cyan, "", "none")
call <SID>X("PreProc", s:purple, "", "none")
call <SID>X("Operator", s:cyan, "", "none")
call <SID>X("Type", s:orange, "", "none")
call <SID>X("Define", s:purple, "", "none")
call <SID>X("Include", s:red, "", "none")
call <SID>X("Underlined", s:purple, s:baseback0, "underline")
" Terminal and GUI differences (no italics in mac terminal)
if has("gui_running")
call <SID>X("String", s:green, "", "italic")
call <SID>X("Comment", s:basecolor2, "", "italic")
else
call <SID>X("String", s:green, "", "")
call <SID>X("Comment", s:basecolor2, "", "")
call <SID>X("SpellBad", s:red, s:baseback0, "")
endif
" Pandoc
call <SID>X("pandocYAMLHeader", s:orange, "", "")
call <SID>X("pandocAtxHeader", s:orange, "", "")
call <SID>X("pandocSetexHeader", s:orange, "", "")
call <SID>X("pandocAtxStart", s:orange, "", "")
call <SID>X("pandocListItemBullet", s:basecolor3, "", "")
call <SID>X("pandocUListItemBullet", s:basecolor3, "", "")
call <SID>X("pandocListItemBulletId", s:basecolor3, "", "")
call <SID>X("pandocPCite", s:purple, "", "")
call <SID>X("pandocICite", s:purple, "", "")
call <SID>X("pandocCiteAnchor", s:purple, "", "")
call <SID>X("pandocCiteKey", s:purple, "", "")
call <SID>X("pandocCiteLocator", s:cyan, "", "")
call <SID>X("pandocDelimitedCodeBlockLanguage", s:basecolor3, "", "")
call <SID>X("pandocDelimitedCodeBlockStart", s:basecolor3, "", "")
call <SID>X("pandocDelimitedCodeBlockEnd", s:basecolor3, "", "")
call <SID>X("pandocReferenceLabel", s:purple, "", "") " wrapped citations
call <SID>X("pandocReferenceURL", s:red, "", "")

View File

@@ -1,691 +0,0 @@
" Vim color file
" Author: Gertjan Reynaert (port from theme of Wes Bos)
" Notes: Cobalt2 color scheme port for VIM
set background=dark
hi clear
if exists("syntax_on")
syntax reset
endif
let colors_name = "cobalt"
if has("gui_running") || &t_Co == 88 || &t_Co == 256
let s:low_color = 0
else
let s:low_color = 1
endif
" Color approximation functions by Henry So, Jr. and David Liang
" returns an approximate grey index for the given grey level
fun! s:grey_number(x)
if &t_Co == 88
if a:x < 23
return 0
elseif a:x < 69
return 1
elseif a:x < 103
return 2
elseif a:x < 127
return 3
elseif a:x < 150
return 4
elseif a:x < 173
return 5
elseif a:x < 196
return 6
elseif a:x < 219
return 7
elseif a:x < 243
return 8
else
return 9
endif
else
if a:x < 14
return 0
else
let l:n = (a:x - 8) / 10
let l:m = (a:x - 8) % 10
if l:m < 5
return l:n
else
return l:n + 1
endif
endif
endif
endfun
" returns the actual grey level represented by the grey index
fun! s:grey_level(n)
if &t_Co == 88
if a:n == 0
return 0
elseif a:n == 1
return 46
elseif a:n == 2
return 92
elseif a:n == 3
return 115
elseif a:n == 4
return 139
elseif a:n == 5
return 162
elseif a:n == 6
return 185
elseif a:n == 7
return 208
elseif a:n == 8
return 231
else
return 255
endif
else
if a:n == 0
return 0
else
return 8 + (a:n * 10)
endif
endif
endfun
" returns the palette index for the given grey index
fun! s:grey_color(n)
if &t_Co == 88
if a:n == 0
return 16
elseif a:n == 9
return 79
else
return 79 + a:n
endif
else
if a:n == 0
return 16
elseif a:n == 25
return 231
else
return 231 + a:n
endif
endif
endfun
" returns an approximate color index for the given color level
fun! s:rgb_number(x)
if &t_Co == 88
if a:x < 69
return 0
elseif a:x < 172
return 1
elseif a:x < 230
return 2
else
return 3
endif
else
if a:x < 75
return 0
else
let l:n = (a:x - 55) / 40
let l:m = (a:x - 55) % 40
if l:m < 20
return l:n
else
return l:n + 1
endif
endif
endif
endfun
" returns the actual color level for the given color index
fun! s:rgb_level(n)
if &t_Co == 88
if a:n == 0
return 0
elseif a:n == 1
return 139
elseif a:n == 2
return 205
else
return 255
endif
else
if a:n == 0
return 0
else
return 55 + (a:n * 40)
endif
endif
endfun
" returns the palette index for the given R/G/B color indices
fun! s:rgb_color(x, y, z)
if &t_Co == 88
return 16 + (a:x * 16) + (a:y * 4) + a:z
else
return 16 + (a:x * 36) + (a:y * 6) + a:z
endif
endfun
" returns the palette index to approximate the given R/G/B color levels
fun! s:color(r, g, b)
" get the closest grey
let l:gx = s:grey_number(a:r)
let l:gy = s:grey_number(a:g)
let l:gz = s:grey_number(a:b)
" get the closest color
let l:x = s:rgb_number(a:r)
let l:y = s:rgb_number(a:g)
let l:z = s:rgb_number(a:b)
if l:gx == l:gy && l:gy == l:gz
" there are two possibilities
let l:dgr = s:grey_level(l:gx) - a:r
let l:dgg = s:grey_level(l:gy) - a:g
let l:dgb = s:grey_level(l:gz) - a:b
let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb)
let l:dr = s:rgb_level(l:gx) - a:r
let l:dg = s:rgb_level(l:gy) - a:g
let l:db = s:rgb_level(l:gz) - a:b
let l:drgb = (l:dr * l:dr) + (l:dg * l:dg) + (l:db * l:db)
if l:dgrey < l:drgb
" use the grey
return s:grey_color(l:gx)
else
" use the color
return s:rgb_color(l:x, l:y, l:z)
endif
else
" only one possibility
return s:rgb_color(l:x, l:y, l:z)
endif
endfun
" returns the palette index to approximate the 'rrggbb' hex string
fun! s:rgb(rgb)
let l:r = ("0x" . strpart(a:rgb, 0, 2)) + 0
let l:g = ("0x" . strpart(a:rgb, 2, 2)) + 0
let l:b = ("0x" . strpart(a:rgb, 4, 2)) + 0
return s:color(l:r, l:g, l:b)
endfun
" sets the highlighting for the given group
fun! s:X(group, fg, bg, attr, lcfg, lcbg)
if s:low_color
let l:fge = empty(a:lcfg)
let l:bge = empty(a:lcbg)
if !l:fge && !l:bge
exec "hi ".a:group." ctermfg=".a:lcfg." ctermbg=".a:lcbg
elseif !l:fge && l:bge
exec "hi ".a:group." ctermfg=".a:lcfg." ctermbg=NONE"
elseif l:fge && !l:bge
exec "hi ".a:group." ctermfg=NONE ctermbg=".a:lcbg
endif
else
let l:fge = empty(a:fg)
let l:bge = empty(a:bg)
if !l:fge && !l:bge
exec "hi ".a:group." guifg=#".a:fg." guibg=#".a:bg." ctermfg=".s:rgb(a:fg)." ctermbg=".s:rgb(a:bg)
elseif !l:fge && l:bge
exec "hi ".a:group." guifg=#".a:fg." guibg=NONE ctermfg=".s:rgb(a:fg)." ctermbg=NONE"
elseif l:fge && !l:bge
exec "hi ".a:group." guifg=NONE guibg=#".a:bg." ctermfg=NONE ctermbg=".s:rgb(a:bg)
endif
endif
if a:attr == ""
exec "hi ".a:group." gui=none cterm=none"
else
let l:noitalic = join(filter(split(a:attr, ","), "v:val !=? 'italic'"), ",")
if empty(l:noitalic)
let l:noitalic = "none"
endif
exec "hi ".a:group." gui=".a:attr." cterm=".l:noitalic
endif
endfun
if !exists("g:cobalt_bg")
let g:cobalt_bg = "193549"
end
let g:black = "000000" " #000000
let g:light_grey = "CCCCCC" " #CCCCCC
let g:white = "FFFFFF" " #FFFFFF
let g:dark_orange = "FF9A00" " #FF9A00
let g:light_orange = "FF9D00" " #FF9D00
let g:yellow = "FFC600" " #FFC600
let g:light_yellow = "F2ED7F" " #F2ED7F
let g:green = "3AD900" " #3AD900
let g:light_green = "88FF88" " #88FF88
let g:purple = "967EFB" " #967EFB
let g:darkest_blue = "0050A4" " #0050A4
let g:dark_blue = "0088FF" " #0088FF
let g:blue = "00AAFF" " #00AAFF
let g:light_blue = "80FCFF" " #80FCFF
let g:dark_red = "902020" " #902020
let g:red = "FF0000" " #FF0000
let g:dark_pink = "FF628C" " #FF628C
let g:pink = "FF00FF" " #FF00FF
let g:light_pink = "EE80E1" " #EE80E1
let g:lightest_pink = "FFA5F3" " #FFA5F3
let g:dirty_pink = "EB939A" " #EB939A
" regex
let g:regex_or = "22FF00" " #22FF00
let g:regex_group = "22FF00" " #22FF00
let g:regex_quantifier = "55FF66" " #55FF66
let g:regex_boundary = "88FF88" " #88FF88
let g:regex_char_group = "9DFF99" " #9DFF99
let g:regex_string = "BBFFDD" " #BBFFDD
call s:X("Normal",g:white,g:cobalt_bg,"","White","")
set background=dark
let s:termBlack = "Black"
call s:X("MatchParen",g:white,"556779","bold","","DarkCyan")
" vim tabpane headers
call s:X("TabLine",g:black,"b0b8c0","italic","",s:termBlack)
call s:X("TabLineFill","9098a0","","","",s:termBlack)
call s:X("TabLineSel",g:black,g:yellow,"italic,bold",s:termBlack,"White")
" Auto-completion
call s:X("Pmenu",g:white,"606060","","White",s:termBlack)
call s:X("PmenuSel","101010","eeeeee","",s:termBlack,"White")
call s:X("Visual","",g:darkest_blue,"","",s:termBlack)
call s:X("Cursor",g:cobalt_bg,g:yellow,"","","")
call s:X("CursorColumn","",g:yellow,"","",s:termBlack)
call s:X("CursorLine","",g:yellow,"","",s:termBlack)
call s:X("CursorLineNr",g:light_blue,"","none","White","")
call s:X("LineNr","605958",g:cobalt_bg,"none",s:termBlack,"")
call s:X("Comment",g:dark_blue,"","italic","Grey","")
call s:X("Todo",g:dark_blue,"","bold","Grey", "")
call s:X("StatusLine",g:black,"dddddd","italic","","White")
call s:X("StatusLineNC",g:white,"403c41","italic","White","Black")
call s:X("VertSplit",g:yellow,"","","","")
call s:X("WildMenu","f0a0c0","302028","","Magenta","")
call s:X("Folded","a0a8b0","384048","italic",s:termBlack,"")
call s:X("FoldColumn","535D66","1f1f1f","","",s:termBlack)
call s:X("SignColumn","777777","333333","","",s:termBlack)
call s:X("ColorColumn","",g:black,"","",s:termBlack)
call s:X("Title","70b950","","bold","Green","")
call s:X("Constant",g:dark_pink,"","","Red","")
call s:X("Special",g:light_green,"","","Green","")
call s:X("Delimiter","668799","","","Grey","")
call s:X("String",g:green,"","","Green","")
call s:X("StringDelimiter",g:green,"","","Green","")
call s:X("Identifier",g:dark_orange,"","",g:dark_orange,"")
hi! link Structure Comment
" call s:X("Structure","#8fbfdc","","","LightCyan","")
call s:X("Function",g:yellow,"","","","")
call s:X("Statement",g:dark_orange,"","","","")
hi! link PreProc Identifier
hi! link Operator Structure
call s:X("Type",g:yellow,"","","Yellow","")
call s:X("NonText","606060",g:cobalt_bg,"",s:termBlack,"")
call s:X("SpecialKey","444444","1c1c1c","",s:termBlack,"")
call s:X("Search",g:yellow,"302028","underline","Magenta","")
call s:X("Directory",g:yellow,"","","Yellow","")
call s:X("ErrorMsg","",g:dark_red,"","","DarkRed")
hi! link Error ErrorMsg
hi! link MoreMsg Special
call s:X("Question","65C254","","","Green","")
" Spell Checking
call s:X("SpellBad",g:dark_red,"","underline","","DarkRed")
call s:X("SpellCap","","0000df","underline","","Blue")
call s:X("SpellRare","","540063","underline","","DarkMagenta")
call s:X("SpellLocal","","2D7067","underline","","Green")
" Diff
hi! link diffRemoved Constant
hi! link diffAdded String
" VimDiff
call s:X("DiffAdd","D2EBBE","437019","","White","DarkGreen")
call s:X("DiffDelete","40000A","700009","","DarkRed","DarkRed")
call s:X("DiffChange","","2B5B77","","White","DarkBlue")
call s:X("DiffText","8fbfdc",g:black,"reverse","Yellow","")
" PHP
hi! link phpFunctions Function
call s:X("StorageClass","c59f6f","","","Red","")
hi! link phpSuperglobal Identifier
hi! link phpQuoteSingle StringDelimiter
hi! link phpQuoteDouble StringDelimiter
hi! link phpBoolean Constant
hi! link phpNull Constant
hi! link phpArrayPair Operator
hi! link phpOperator Normal
hi! link phpRelation Normal
hi! link phpVarSelector Identifier
" Python
hi! link pythonOperator Statement
" Ruby
call s:X("rubyClass",g:dark_orange,"","","DarkBlue","")
hi! link rubyModule rubyClass
call s:X("rubyInstanceVariable",g:light_grey,"","","Cyan","")
call s:X("rubySymbol",g:dark_pink,"","","Magenta","")
hi! link rubyGlobalVariable rubyInstanceVariable
call s:X("rubyAccess",g:purple,"","","","")
" params between pipes after do, and pipes themselfs
call s:X("rubyBlockParameter",g:light_grey,"","","Blue","")
call s:X("rubyBlockParameterList",g:white,"","","Blue","")
call s:X("rubyInterpolation","9EFF80","","","Magenta","")
call s:X("rubyInterpolationDelimiter",g:white,"","","Magenta","")
call s:X("rubyRegexpDelimiter","80FFC2","","","","")
call s:X("rubyRegexp","80FFC2","","","","")
call s:X("rubyRegexpSpecial",g:white,"","","","")
call s:X("rubyRegexpEscape","80FFC2","","","","")
" JavaScript
hi! link javaScriptValue Constant
hi! link javaScriptRegexpString rubyRegexp
call s:X("jsFunction",g:light_pink,"","","","")
call s:X("jsFuncCall",g:yellow,"","","","")
call s:X("jsOperator",g:light_orange,"","","","")
call s:X("jsStorageClass",g:yellow,"","","","")
call s:X("jsFuncArgs",g:light_grey,"","","","")
call s:X("jsBuiltins",g:light_orange,"","","","")
call s:X("jsUndefined",g:dark_pink,"","","","")
call s:X("jsThis",g:light_pink,"","","","")
call s:X("jsPrototype","EB939A","","","","")
call s:X("jsRegexpOr","22FF00","","","","") " #22FF00 | highlight
call s:X("jsRegexpQuantifier","55FF66","","","","") " #55FF66 ? and {4}
call s:X("jsRegexpGroup","22FF00","","","","") " #22FF00 ( and )
call s:X("jsRegexpBoundary","88FF88","","","","") " #88FF88 start and end of regex
call s:X("jsRegexpCharClass","9DFF99","","","","") " #9DFF99 [A-z]
call s:X("jsRegexpString","BBFFDD","","","","") " #BBFFDD regular text
call s:X("jsRegexpMod",g:pink,"","","","")
call s:X("jsRegexpBackRef",g:light_orange,"","","","")
" CoffeeScript
hi! link coffeeComment comment
hi! link coffeeBlockComment comment
hi! link coffeeTodo todo
hi! link coffeeHeregexComment comment
call s:X("coffeeKeyword",g:dark_orange,"","","","")
call s:X("coffeeObject",g:blue,"","","","")
call s:X("coffeeObjAssign",g:yellow,"","","","")
call s:X("coffeeExtendedOp",g:dark_orange,"","","","")
call s:X("coffeeParen",g:light_grey,"","","","")
call s:X("coffeeParens",g:light_grey,"","","","")
call s:X("coffeeSpecialOp",g:light_grey,"","","","")
call s:X("coffeeStatement",g:dark_orange,"","","","")
hi! link coffeeString String
hi! link coffeeHeredoc String
call s:X("coffeeInterpDelim",g:white,"","","","")
call s:X("coffeeInterp","9EFF80","","","","") " #9EFF80
call s:X("coffeeRegex","80FFC2","","","","") " #80FFC2
call s:X("coffeeEscape","98F99D","","","","") " #98F99D
call s:X("coffeeRegexCharSet","22FF00","","","","") " #22FF00
call s:X("coffeeHeregex","80FFC2","","","","") " #80FFC2
call s:X("coffeeHeregexCharSet","22FF00","","","","") " #22FF00
call s:X("coffeeSpecialIdent",g:light_grey,"","","","")
call s:X("coffeeBracket",g:white,"","","","")
call s:X("coffeeBrackets",g:white,"","","","")
call s:X("coffeeNumber",g:dark_pink,"","","","")
call s:X("coffeeFloat",g:dark_pink,"","","","")
call s:X("coffeeCurly",g:white,"","","","")
call s:X("coffeeCurlies",g:white,"","","","")
call s:X("coffeeConditional",g:dark_orange,"","","","")
call s:X("coffeeBoolean",g:dark_pink,"","","","")
call s:X("coffeeSpecialVar",g:light_pink,"","","","")
call s:X("coffeeDotAccess",g:white,"","","","")
call s:X("coffeeConstant",g:dark_pink,"","","","")
call s:X("coffeeRepeat",g:dark_orange,"","","","")
call s:X("coffeeGlobal",g:dark_pink,"","","","")
call s:X("coffeeOperator",g:dark_orange,"","","","")
hi! link coffeeSemicolonError ErrorMsg
hi! link coffeeReservedError ErrorMsg
hi! link coffeeSpaceError ErrorMsg
" HTML
call s:X("htmlTag",g:light_grey,"","","","")
call s:X("htmlEndTag",g:light_grey,"","","","")
call s:X("htmlTagName",g:light_blue,"","","","")
call s:X("htmlSpecialTagName",g:blue,"","","","")
call s:X("htmlArg",g:dark_orange,"","","","")
call s:X("htmlEvent",g:dark_orange,"","","","")
call s:X("htmlString",g:yellow,"","","","")
call s:X("htmlTitle",g:purple,"","","","")
call s:X("htmlH1",g:light_orange,"","","","")
call s:X("htmlItalic",g:pink,"","","","")
" Haml
hi! link hamlTag htmlTag
hi! link hamlIdChar hamlId
hi! link hamlClassChar hamlClass
call s:X("hamlAttributes",g:pink,"","","","")
call s:X("hamlInterpolationDelimiter",g:green,"","","","")
" call s:X("hamlInterpolation",g:pink,"","","","")
" call s:X("hamlObject",g:pink,"","","","")
" call s:X("hamlInterpolatable",g:pink,"","","","")
" call s:X("hamlRubyFilter",g:pink,"","","","")
" call s:X("hamlBegin",g:pink,"","","","")
" call s:X("hamlEscapedFilter",g:pink,"","","","")
" call s:X("hamlPlainFilter",g:pink,"","","","")
" call s:X("hamlSassFilter",g:pink,"","","","")
" call s:X("hamlErbFilter",g:pink,"","","","")
" call s:X("hamlJavascriptFilter",g:pink,"","","","")
" call s:X("hamlCSSFilter",g:pink,"","","","")
" call s:X("hamlJavascriptBlock",g:pink,"","","","")
" call s:X("hamlCssBlock",g:pink,"","","","")
" call s:X("hamlCoffeescriptFilter",g:pink,"","","","")
" Markdown
call s:X("markdownH1",g:yellow,"","","","")
hi! link markdownH2 markdownH1
hi! link markdownH3 markdownH1
hi! link markdownH4 markdownH1
hi! link markdownH5 markdownH1
hi! link markdownH6 markdownH1
call s:X("markdownHeadingRule",g:dark_orange,"","","","")
hi! link markdownHeadingDelimiter markdownHeadingRule
call s:X("markdownRule",g:light_blue,"","","","")
call s:X("markdownCode","AAAAAA","","","","")
hi! link markdownCodeBlock markdownCode
call s:X("markdownCodeDelimiter",g:dark_blue,"","","","")
call s:X("markdownLinkText",g:green,"","","","")
call s:X("markdownUrl",g:dark_pink,"","","","")
call s:X("markdownId",g:yellow,"","","","")
hi! link markdownIdDeclaration markdownId
" CSS
call s:X("cssIdentifier",g:yellow,"","","","")
call s:X("cssIncludeKeyword",g:dark_orange,"","","","")
call s:X("cssMediaType",g:dirty_pink,"","","","")
call s:X("cssMediaKeyword",g:dark_orange,"","","","")
call s:X("cssInclude",g:white,"","","","")
call s:X("cssMediaProp",g:light_green,"","","","")
call s:X("cssValueLength",g:light_yellow,"","","","")
call s:X("cssUnitDecorators",g:dark_orange,"","","","")
call s:X("cssBraces",g:white,"","","","")
call s:X("cssTagName",g:light_blue,"","","","")
call s:X("cssClassName",g:green,"","","","")
call s:X("cssPseudoClassFn",g:dark_pink,"","","","")
call s:X("cssBoxAttr",g:light_yellow,"","","","")
hi! link cssValueNumber cssBoxAttr
hi! link cssCommonAttr cssBoxAttr
hi! link cssPositioningAttr cssBoxAttr
hi! link cssFontAttr cssBoxAttr
hi! link cssBorderAttr cssBoxAttr
hi! link cssTextAttr cssBoxAttr
hi! link cssDimensionAttr cssBoxAttr
hi! link cssBackgroundAttr cssBoxAttr
hi! link cssPageAttr cssBoxAttr
hi! link cssColorAttr cssBoxAttr
hi! link cssTransitionAttr cssBoxAttr
hi! link cssUIAttr cssBoxAttr
call s:X("cssBoxProp",g:light_green,"","","","")
hi! link cssTextProp cssBoxProp
hi! link cssDimensionProp cssBoxProp
hi! link cssFontProp cssBoxProp
hi! link cssPositioningProp cssBoxProp
hi! link cssBackgroundProp cssBoxProp
hi! link cssBorderProp cssBoxProp
hi! link cssPageProp cssBoxProp
hi! link cssColorProp cssBoxProp
hi! link cssTransitionProp cssBoxProp
hi! link cssUIProp cssBoxProp
" SCSS/SASS
hi! link sassIdChar cssIdentifier
hi! link sassId cssIdentifier
hi! link sassClass cssClassName
hi! link sassCssAttribute cssBoxAttr
" JSON
call s:X("jsonBraces",g:purple,"","","","")
call s:X("jsonQuote",g:dark_blue,"","","","")
call s:X("jsonNoise",g:dark_blue,"","","","")
call s:X("jsonKeywordMatch",g:dark_blue,"","","","")
" Erlang
hi! link erlangAtom rubySymbol
hi! link erlangBIF rubyPredefinedIdentifier
hi! link erlangFunction rubyPredefinedIdentifier
hi! link erlangDirective Statement
hi! link erlangNode Identifier
" Lua
hi! link luaOperator Conditional
" C
hi! link cFormat Identifier
hi! link cOperator Constant
" Objective-C/Cocoa
hi! link objcClass Type
hi! link cocoaClass objcClass
hi! link objcSubclass objcClass
hi! link objcSuperclass objcClass
hi! link objcDirective rubyClass
hi! link objcStatement Constant
hi! link cocoaFunction Function
hi! link objcMethodName Identifier
hi! link objcMethodArg Normal
hi! link objcMessageName Identifier
" Vimscript
hi! link vimOper Normal
" Debugger.vim
call s:X("DbgCurrent","DEEBFE","345FA8","","White","DarkBlue")
call s:X("DbgBreakPt","","4F0037","","","DarkMagenta")
" vim-indent-guides
if !exists("g:indent_guides_auto_colors")
let g:indent_guides_auto_colors = 0
endif
call s:X("IndentGuidesOdd","","232323","","","")
call s:X("IndentGuidesEven","","1b1b1b","","","")
" Plugins, etc.
hi! link TagListFileName Directory
call s:X("PreciseJumpTarget","B9ED67","405026","","White","Green")
" NERDTree
call s:X("NERDTreeHelp","345FA8","","","","")
call s:X("NERDTreeUp","345FA8","","","","")
call s:X("NERDTreeOpenable",g:yellow,"","","","")
call s:X("NERDTreeClosable",g:red,"","","","")
call s:X("NERDTreeDir",g:yellow,"","","","")
hi! link NERDTreeDirSlash Ignore
call s:X("NERDTreeExecFile",g:purple,"","","","")
" Grep search
call s:X("qfLineNr",g:dark_blue,"","","","")
if !exists("g:cobalt_bg_256")
let g:cobalt_bg_256="NONE"
end
" Manual overrides for 256-color terminals. Dark colors auto-map badly.
if !s:low_color
hi StatusLineNC ctermbg=232
hi Folded ctermbg=236
hi FoldColumn ctermbg=234
hi SignColumn ctermbg=236
hi CursorColumn ctermbg=234
hi CursorLine ctermbg=235
hi SpecialKey ctermbg=234
exec "hi NonText ctermbg=".g:cobalt_bg_256
exec "hi LineNr ctermbg=".g:cobalt_bg_256
hi DiffText ctermfg=81
exec "hi Normal ctermbg=".g:cobalt_bg_256
hi DbgBreakPt ctermbg=53
hi IndentGuidesOdd ctermbg=235
hi IndentGuidesEven ctermbg=234
endif
" delete functions
delf s:X
delf s:rgb
delf s:color
delf s:rgb_color
delf s:rgb_level
delf s:rgb_number
delf s:grey_color
delf s:grey_level
delf s:grey_number

View File

@@ -1,88 +0,0 @@
" Vim color file: colorful256.vim
" Last Change: 03 Oct, 2007
" License: public domain
" Maintainer:: Jagpreet<jagpreetc AT gmail DOT com>
"
" for a 256 color capable terminal
" "{{{
" You must set t_Co=256 before calling this colorscheme
"
" Color numbers (0-255) see:
" http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html
"
" Added gui colors
"
if &t_Co != 256 && ! has("gui_running")
echomsg ""
echomsg "colors not loaded first please set t_Co=256 in your .vimrc"
echomsg ""
finish
endif
set background=dark
hi clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name = "colorful256"
highlight Normal cterm=none ctermfg=249 ctermbg=16 gui=none guifg=#b2b2b2 guibg=#000000
highlight Special cterm=none ctermfg=105 ctermbg=16 gui=none guifg=#8787ff guibg=#000000
highlight Comment cterm=none ctermfg=3 ctermbg=16 gui=none guifg=#808000 guibg=#000000
highlight Constant cterm=none ctermfg=9 ctermbg=16 gui=none guifg=#ff0000 guibg=#000000
highlight LineNr cterm=none ctermfg=48 ctermbg=16 gui=none guifg=#00ff87 guibg=#000000
highlight Number cterm=none ctermfg=209 ctermbg=16 gui=none guifg=#ff875f guibg=#000000
highlight PreProc cterm=none ctermfg=10 ctermbg=16 gui=none guifg=#ff00ff guibg=#000000
highlight Statement cterm=none ctermfg=51 ctermbg=16 gui=none guifg=#00ffff guibg=#000000
highlight Type cterm=none ctermfg=39 ctermbg=16 gui=none guifg=#00afff guibg=#000000
highlight Error cterm=none ctermfg=9 ctermbg=16 gui=none guifg=#ff0000 guibg=#000000
highlight Identifier cterm=none ctermfg=207 ctermbg=16 gui=none guifg=#ff5fff guibg=#000000
highlight SpecialKey cterm=none ctermfg=36 ctermbg=16 gui=none guifg=#00af87 guibg=#000000
highlight NonText cterm=none ctermfg=164 ctermbg=16 gui=none guifg=#df00df guibg=#000000
highlight Directory cterm=none ctermfg=34 ctermbg=16 gui=none guifg=#00af00 guibg=#000000
highlight ErrorMsg cterm=none ctermfg=9 ctermbg=16 gui=none guifg=#ff0000 guibg=#000000
highlight MoreMsg cterm=none ctermfg=34 ctermbg=16 gui=none guifg=#00af00 guibg=#000000
highlight Title cterm=none ctermfg=199 ctermbg=16 gui=none guifg=#ff00af guibg=#000000
highlight WarningMsg cterm=none ctermfg=9 ctermbg=16 gui=none guifg=#ff0000 guibg=#000000
highlight DiffDelete cterm=none ctermfg=207 ctermbg=16 gui=none guifg=#ff5fff guibg=#000000
highlight Search cterm=none ctermfg=15 ctermbg=160 gui=none guifg=#ffffff guibg=#df0000
highlight Visual cterm=none ctermfg=16 ctermbg=50 gui=none guifg=#000000 guibg=#00ffdf
highlight Cursor cterm=none ctermfg=16 ctermbg=33 gui=none guifg=#000000 guibg=#0087ff
highlight StatusLine cterm=reverse ctermfg=58 ctermbg=15 gui=reverse guifg=#5f5f00 guibg=#ffffff
highlight Question cterm=none ctermfg=16 ctermbg=226 gui=none guifg=#000000 guibg=#ffff00
highlight Todo cterm=none ctermfg=160 ctermbg=184 gui=none guifg=#df0000 guibg=#dfdf00
highlight Folded cterm=none ctermfg=15 ctermbg=58 gui=none guifg=#ffffff guibg=#5f5f00
highlight ModeMsg cterm=none ctermfg=16 ctermbg=46 gui=none guifg=#000000 guibg=#00ff00
highlight VisualNOS cterm=none ctermfg=16 ctermbg=28 gui=none guifg=#000000 guibg=#008700
highlight WildMenu cterm=none ctermfg=16 ctermbg=226 gui=none guifg=#000000 guibg=#ffff00
highlight FoldColumn cterm=none ctermfg=15 ctermbg=58 gui=none guifg=#ffffff guibg=#5f5f00
highlight SignColumn cterm=none ctermfg=16 ctermbg=28 gui=none guifg=#000000 guibg=#008700
highlight DiffText cterm=none ctermfg=16 ctermbg=34 gui=none guifg=#000000 guibg=#00af00
highlight StatusLineNC cterm=reverse ctermfg=131 ctermbg=15 gui=reverse guifg=#af5f5f guibg=#ffffff
highlight VertSplit cterm=reverse ctermfg=172 ctermbg=15 gui=reverse guifg=#df8700 guibg=#ffffff
highlight User1 cterm=none ctermbg=20 ctermfg=15 gui=none guibg=#0000df guifg=#ffffff
highlight User2 cterm=none ctermbg=20 ctermfg=46 gui=none guibg=#0000df guifg=#00ff00
highlight User3 cterm=none ctermbg=20 ctermfg=46 gui=none guibg=#0000df guifg=#00ff00
highlight User4 cterm=none ctermbg=20 ctermfg=50 gui=none guibg=#0000df guifg=#00ffdf
highlight User5 cterm=none ctermbg=20 ctermfg=46 gui=none guibg=#0000df guifg=#00ff00
" for groups introduced in version 7
if v:version >= 700
highlight Pmenu cterm=none ctermfg=16 ctermbg=165 gui=none guifg=#000000 guibg=#df00ff
highlight PmenuSel cterm=none ctermfg=16 ctermbg=220 gui=none guifg=#000000 guibg=#ffdf00
highlight tablinesel cterm=none ctermfg=15 ctermbg=58 gui=none guifg=#ffffff guibg=#5f5f00
highlight tabline cterm=none ctermfg=7 ctermbg=58 gui=none guifg=#c0c0c0 guibg=#5f5f00
highlight tablinefill cterm=none ctermfg=58 ctermbg=58 gui=none guifg=#5f5f00 guibg=#5f5f00
endif
"for taglist plugin
"
if exists('loaded_taglist')
highlight TagListTagName cterm=none ctermfg=16 ctermbg=28 gui=none guifg=#000000 guibg=#008700
highlight TagListTagScope cterm=none ctermfg=16 ctermbg=28 gui=none guifg=#000000 guibg=#008700
highlight TagListTitle cterm=none ctermfg=199 ctermbg=16 gui=none guifg=#ff00af guibg=#000000
highlight TagListComment cterm=none ctermfg=16 ctermbg=28 gui=none guifg=#000000 guibg=#008700
highlight TagListFileName cterm=none ctermfg=15 ctermbg=90 gui=none guifg=#ffffff guibg=#870087
endif

View File

@@ -1,65 +0,0 @@
" Vim color file
" Maintainer: Yulya Shtyryakova <yulya23@gmail.com>
" Last Change: 2013 Jule 4
" ecostation -- for those who prefer dark background and smooth natural colors.
" Note: I use it on 16 color terminals too. Not so fine, but affordable.
set bg=dark
hi clear
if exists("syntax_on")
syntax reset
endif
let colors_name = "ecostation"
hi Normal guifg=#ACB3C4 guibg=#222430 ctermfg=gray ctermbg=black
hi ErrorMsg guifg=#000000 guibg=#FF6633 ctermfg=yellow ctermbg=darkred
hi WarningMsg guifg=#000000 guibg=Orange ctermbg=darkyellow ctermfg=black
hi ModeMsg guifg=#000000 guibg=#009900 ctermfg=black ctermbg=darkgreen
hi MoreMsg guifg=#000000 guibg=#AA53D5 gui=none ctermbg=darkgreen ctermfg=bg
hi Question guifg=Orange gui=none ctermfg=green term=none
hi SpecialKey gui=bold guifg=#996699 ctermfg=red
hi Directory guifg=#99CC33 ctermfg=cyan
hi WildMenu guifg=#0099CC guibg=black ctermfg=cyan ctermbg=black cterm=none term=none
hi Cursor guifg=#000000 guibg=#FF8B64 ctermfg=bg ctermbg=brown
hi lCursor guifg=NONE guibg=#00AA00 ctermfg=bg ctermbg=darkgreen
hi Visual guifg=#9c6666 guibg=#433c49 ctermfg=darkgray ctermbg=gray cterm=bold term=underline
hi VisualNOS guifg=#8080ff guibg=fg gui=reverse,underline ctermfg=lightblue ctermbg=fg cterm=reverse,underline
hi Search guifg=#DDDBCF guibg=#7C7B9D ctermfg=darkgray ctermbg=gray cterm=bold term=underline
hi IncSearch guifg=#CC6666 guibg=black ctermfg=darkblue ctermbg=white
hi NonText guifg=#996699 ctermfg=darkGray
hi StatusLine guifg=#ACB3C4 guibg=#35394D gui=none ctermfg=gray ctermbg=darkblue term=none cterm=none
hi StatusLineNC guifg=#000000 guibg=#494D5B gui=none ctermfg=black ctermbg=gray term=none cterm=none
hi VertSplit guifg=black guibg=#494D5B gui=none ctermfg=black ctermbg=gray term=none cterm=none
hi LineNr guifg=#4093cc ctermfg=cyan cterm=none
hi Folded guifg=#996699 guibg=#222430 ctermfg=darkred ctermbg=black cterm=bold term=bold
hi FoldColumn guifg=#3E6FFF guibg=#222430 ctermfg=darkgrey ctermbg=black cterm=bold term=bold
hi DiffDelete guifg=#0099CC guibg=#222430 ctermbg=black ctermfg=darkgray term=none
hi DiffChange guibg=#694E60 guifg=#EDA383 ctermbg=magenta cterm=none
hi DiffAdd guibg=#4F7043 guifg=#99CC33 ctermfg=blue ctermbg=cyan
hi DiffText guibg=#FF0000 guifg=white gui=none cterm=bold ctermbg=red
hi Title guifg=#CC02B8 gui=none ctermfg=magenta cterm=bold term=bold
hi PreProc guifg=#AA53D5 gui=none ctermfg=magenta cterm=none
hi Comment guifg=#7C7B9D ctermfg=blue term=italic
hi Constant guifg=#CC6666 ctermfg=magenta cterm=none
hi Identifier guifg=#99CC33 ctermfg=green
hi Statement guifg=#009900 gui=none ctermfg=green cterm=none term=bold
hi Type guifg=#C99669 gui=none ctermfg=Brown cterm=none
hi Special guifg=#FFCC66 gui=none ctermfg=brown cterm=none term=italic
hi Error guibg=#ff0000 guifg=#000000 ctermfg=yellow ctermbg=DarkRed term=reverse,underline
hi Todo guifg=black guibg=#993399 ctermfg=red ctermbg=darkmagenta
hi Underlined cterm=underline term=underline
hi Ignore guifg=bg ctermfg=bg
hi Pmenu guifg=#EDA383 guibg=#694E60 ctermfg=darkgray ctermbg=gray cterm=none term=underline
hi PmenuSel guifg=#000000 guibg=#9c6666 ctermfg=gray ctermbg=darkgray cterm=bold term=reverse,underline
hi PmenuSbar guifg=#433c49 guibg=#433c49
hi PmenuThumb guifg=#666666 guibg=#666666

View File

@@ -1,524 +0,0 @@
" 'flattened_dark.vim' -- Vim color scheme.
" Maintainer: Romain Lafourcade (romainlafourcade@gmail.com)
" A no-bullshit dark Solarized.
hi clear
if exists('syntax_on')
syntax reset
endif
let colors_name = 'flattened_dark'
if &t_Co >= 256 || has('gui_running')
hi Normal cterm=NONE ctermfg=244 ctermbg=234 guifg=#839496 guibg=#002b36
set background=dark
hi ColorColumn cterm=NONE ctermbg=235 guibg=#073642
hi Comment cterm=NONE ctermfg=239 guifg=#586e75 gui=italic
hi ConId cterm=NONE ctermfg=136 guifg=#b58900
hi Conceal cterm=NONE ctermfg=33 guifg=#268bd2
hi Constant cterm=NONE ctermfg=37 guifg=#2aa198
hi Cursor cterm=NONE ctermfg=234 ctermbg=244 guifg=#002b36 guibg=#839496
hi CursorColumn cterm=NONE ctermbg=235 guibg=#073642
hi CursorLine cterm=NONE ctermbg=235 guibg=#073642 guisp=#93a1a1
hi CursorLineNr term=bold cterm=bold ctermfg=11 guifg=Yellow gui=bold
hi DiffAdd cterm=NONE ctermfg=64 ctermbg=235 guifg=#719e07 guibg=#073642 guisp=#719e07 gui=bold
hi DiffChange cterm=NONE ctermfg=136 ctermbg=235 guifg=#b58900 guibg=#073642 guisp=#b58900 gui=bold
hi DiffDelete cterm=NONE ctermfg=124 ctermbg=235 guifg=#dc322f guibg=#073642 gui=bold
hi DiffText cterm=NONE ctermfg=33 ctermbg=235 guifg=#268bd2 guibg=#073642 guisp=#268bd2 gui=bold
hi Directory cterm=NONE ctermfg=33 guifg=#268bd2
hi Error term=bold cterm=bold ctermfg=124 guifg=#dc322f gui=bold
hi ErrorMsg term=reverse cterm=reverse ctermfg=124 guifg=#dc322f gui=reverse
hi FoldColumn cterm=NONE ctermfg=244 ctermbg=235 guifg=#839496 guibg=#073642
hi Folded term=bold,underline cterm=bold,underline ctermfg=244 ctermbg=235 guifg=#839496 guibg=#073642 guisp=#002b36 gui=bold,underline
hi HelpExample cterm=NONE ctermfg=245 guifg=#93a1a1
hi Identifier cterm=NONE ctermfg=33 guifg=#268bd2
hi IncSearch term=standout cterm=standout ctermfg=166 guifg=#cb4b16 gui=standout
hi LineNr cterm=NONE ctermfg=239 ctermbg=235 guifg=#586e75 guibg=#073642
hi MatchParen term=bold cterm=bold ctermfg=124 ctermbg=239 guifg=#dc322f guibg=#586e75 gui=bold
hi ModeMsg cterm=NONE ctermfg=33 guifg=#268bd2
hi MoreMsg cterm=NONE ctermfg=33 guifg=#268bd2
hi NonText term=bold cterm=bold ctermfg=240 guifg=#657b83 gui=bold
hi Pmenu term=reverse cterm=reverse ctermfg=244 ctermbg=235 guifg=#839496 guibg=#073642 gui=reverse
hi PmenuSbar term=reverse cterm=reverse ctermfg=187 ctermbg=244 guifg=#eee8d5 guibg=#839496 gui=reverse
hi PmenuSel term=reverse cterm=reverse ctermfg=239 ctermbg=187 guifg=#586e75 guibg=#eee8d5 gui=reverse
hi PmenuThumb term=reverse cterm=reverse ctermfg=244 ctermbg=234 guifg=#839496 guibg=#002b36 gui=reverse
hi PreProc cterm=NONE ctermfg=166 guifg=#cb4b16
hi Question term=bold cterm=bold ctermfg=37 guifg=#2aa198 gui=bold
hi Search term=reverse cterm=reverse ctermfg=136 guifg=#b58900 gui=reverse
hi SignColumn cterm=NONE ctermfg=244 ctermbg=242 guifg=#839496 guibg=Grey
hi Special cterm=NONE ctermfg=124 guifg=#dc322f
hi SpecialKey term=bold cterm=bold ctermfg=240 ctermbg=235 guifg=#657b83 guibg=#073642 gui=bold
hi SpellBad term=undercurl cterm=undercurl guisp=#dc322f gui=undercurl
hi SpellCap term=undercurl cterm=undercurl guisp=#6c71c4 gui=undercurl
hi SpellLocal term=undercurl cterm=undercurl guisp=#b58900 gui=undercurl
hi SpellRare term=undercurl cterm=undercurl guisp=#2aa198 gui=undercurl
hi Statement cterm=NONE ctermfg=64 guifg=#719e07
hi StatusLine term=reverse cterm=reverse ctermfg=245 ctermbg=235 guifg=#93a1a1 guibg=#073642 gui=reverse
hi StatusLineNC term=reverse cterm=reverse ctermfg=240 ctermbg=235 guifg=#657b83 guibg=#073642 gui=reverse
hi TabLine term=underline cterm=underline ctermfg=244 ctermbg=235 guifg=#839496 guibg=#073642 guisp=#839496 gui=underline
hi TabLineFill term=underline cterm=underline ctermfg=244 ctermbg=235 guifg=#839496 guibg=#073642 guisp=#839496 gui=underline
hi TabLineSel term=underline,reverse cterm=underline,reverse ctermfg=239 ctermbg=187 guifg=#586e75 guibg=#eee8d5 guisp=#839496 gui=underline,reverse
hi Title term=bold cterm=bold ctermfg=166 guifg=#cb4b16 gui=bold
hi Todo term=bold cterm=bold ctermfg=125 guifg=#d33682 gui=bold
hi Type cterm=NONE ctermfg=136 guifg=#b58900
hi Underlined cterm=NONE ctermfg=61 guifg=#6c71c4
hi VarId cterm=NONE ctermfg=33 guifg=#268bd2
hi VertSplit cterm=NONE ctermfg=240 ctermbg=240 guifg=#657b83 guibg=#657b83
hi Visual term=reverse cterm=reverse ctermfg=239 ctermbg=234 guifg=#586e75 guibg=#002b36 gui=reverse
hi VisualNOS term=reverse cterm=reverse ctermbg=235 guibg=#073642 gui=reverse
hi WarningMsg term=bold cterm=bold ctermfg=124 guifg=#dc322f gui=bold
hi WildMenu term=reverse cterm=reverse ctermfg=187 ctermbg=235 guifg=#eee8d5 guibg=#073642 gui=reverse
hi cPreCondit cterm=NONE ctermfg=166 guifg=#cb4b16
hi gitcommitBranch term=bold cterm=bold ctermfg=125 guifg=#d33682 gui=bold
hi gitcommitComment cterm=NONE ctermfg=239 guifg=#586e75 gui=italic
hi gitcommitDiscardedFile term=bold cterm=bold ctermfg=124 guifg=#dc322f gui=bold
hi gitcommitDiscardedType cterm=NONE ctermfg=124 guifg=#dc322f
hi gitcommitFile term=bold cterm=bold ctermfg=244 guifg=#839496 gui=bold
hi gitcommitHeader cterm=NONE ctermfg=239 guifg=#586e75
hi gitcommitOnBranch term=bold cterm=bold ctermfg=239 guifg=#586e75 gui=bold
hi gitcommitSelectedFile term=bold cterm=bold ctermfg=64 guifg=#719e07 gui=bold
hi gitcommitSelectedType cterm=NONE ctermfg=64 guifg=#719e07
hi gitcommitUnmerged term=bold cterm=bold ctermfg=64 guifg=#719e07 gui=bold
hi gitcommitUnmergedFile term=bold cterm=bold ctermfg=136 guifg=#b58900 gui=bold
hi gitcommitUntrackedFile term=bold cterm=bold ctermfg=37 guifg=#2aa198 gui=bold
hi helpHyperTextEntry cterm=NONE ctermfg=64 guifg=#719e07
hi helpHyperTextJump term=underline cterm=underline ctermfg=33 guifg=#268bd2 gui=underline
hi helpNote cterm=NONE ctermfg=125 guifg=#d33682
hi helpOption cterm=NONE ctermfg=37 guifg=#2aa198
hi helpVim cterm=NONE ctermfg=125 guifg=#d33682
hi hsImport cterm=NONE ctermfg=125 guifg=#d33682
hi hsImportLabel cterm=NONE ctermfg=37 guifg=#2aa198
hi hsModuleName term=underline cterm=underline ctermfg=64 guifg=#719e07 gui=underline
hi hsNiceOperator cterm=NONE ctermfg=37 guifg=#2aa198
hi hsStatement cterm=NONE ctermfg=37 guifg=#2aa198
hi hsString cterm=NONE ctermfg=240 guifg=#657b83
hi hsStructure cterm=NONE ctermfg=37 guifg=#2aa198
hi hsType cterm=NONE ctermfg=136 guifg=#b58900
hi hsTypedef cterm=NONE ctermfg=37 guifg=#2aa198
hi hsVarSym cterm=NONE ctermfg=37 guifg=#2aa198
hi hs_DeclareFunction cterm=NONE ctermfg=166 guifg=#cb4b16
hi hs_OpFunctionName cterm=NONE ctermfg=136 guifg=#b58900
hi hs_hlFunctionName cterm=NONE ctermfg=33 guifg=#268bd2
hi htmlArg cterm=NONE ctermfg=240 guifg=#657b83
hi htmlEndTag cterm=NONE ctermfg=239 guifg=#586e75
hi htmlSpecialTagName cterm=NONE ctermfg=33 guifg=#268bd2 gui=italic
hi htmlTag cterm=NONE ctermfg=239 guifg=#586e75
hi htmlTagN term=bold cterm=bold ctermfg=245 guifg=#93a1a1 gui=bold
hi htmlTagName term=bold cterm=bold ctermfg=33 guifg=#268bd2 gui=bold
hi javaScript cterm=NONE ctermfg=136 guifg=#b58900
hi pandocBlockQuote cterm=NONE ctermfg=33 guifg=#268bd2
hi pandocBlockQuoteLeader1 cterm=NONE ctermfg=33 guifg=#268bd2
hi pandocBlockQuoteLeader2 cterm=NONE ctermfg=37 guifg=#2aa198
hi pandocBlockQuoteLeader3 cterm=NONE ctermfg=136 guifg=#b58900
hi pandocBlockQuoteLeader4 cterm=NONE ctermfg=124 guifg=#dc322f
hi pandocBlockQuoteLeader5 cterm=NONE ctermfg=244 guifg=#839496
hi pandocBlockQuoteLeader6 cterm=NONE ctermfg=239 guifg=#586e75
hi pandocCitation cterm=NONE ctermfg=125 guifg=#d33682
hi pandocCitationDelim cterm=NONE ctermfg=125 guifg=#d33682
hi pandocCitationID term=underline cterm=underline ctermfg=125 guifg=#d33682 gui=underline
hi pandocCitationRef cterm=NONE ctermfg=125 guifg=#d33682
hi pandocComment cterm=NONE ctermfg=239 guifg=#586e75 gui=italic
hi pandocDefinitionBlock cterm=NONE ctermfg=61 guifg=#6c71c4
hi pandocDefinitionIndctr term=bold cterm=bold ctermfg=61 guifg=#6c71c4 gui=bold
hi pandocDefinitionTerm term=standout cterm=standout ctermfg=61 guifg=#6c71c4 gui=standout
hi pandocEmphasis cterm=NONE ctermfg=244 guifg=#839496 gui=italic
hi pandocEmphasisDefinition cterm=NONE ctermfg=61 guifg=#6c71c4 gui=italic
hi pandocEmphasisHeading term=bold cterm=bold ctermfg=166 guifg=#cb4b16 gui=bold
hi pandocEmphasisNested term=bold cterm=bold ctermfg=244 guifg=#839496 gui=bold
hi pandocEmphasisNestedDefinition term=bold cterm=bold ctermfg=61 guifg=#6c71c4 gui=bold
hi pandocEmphasisNestedHeading term=bold cterm=bold ctermfg=166 guifg=#cb4b16 gui=bold
hi pandocEmphasisNestedTable term=bold cterm=bold ctermfg=33 guifg=#268bd2 gui=bold
hi pandocEmphasisTable cterm=NONE ctermfg=33 guifg=#268bd2 gui=italic
hi pandocEscapePair term=bold cterm=bold ctermfg=124 guifg=#dc322f gui=bold
hi pandocFootnote cterm=NONE ctermfg=64 guifg=#719e07
hi pandocFootnoteDefLink term=bold cterm=bold ctermfg=64 guifg=#719e07 gui=bold
hi pandocFootnoteInline term=bold,underline cterm=bold,underline ctermfg=64 guifg=#719e07 gui=bold,underline
hi pandocFootnoteLink term=underline cterm=underline ctermfg=64 guifg=#719e07 gui=underline
hi pandocHeading term=bold cterm=bold ctermfg=166 guifg=#cb4b16 gui=bold
hi pandocHeadingMarker term=bold cterm=bold ctermfg=136 guifg=#b58900 gui=bold
hi pandocImageCaption term=bold,underline cterm=bold,underline ctermfg=61 guifg=#6c71c4 gui=bold,underline
hi pandocLinkDefinition term=underline cterm=underline ctermfg=37 guifg=#2aa198 guisp=#657b83 gui=underline
hi pandocLinkDefinitionID term=bold cterm=bold ctermfg=33 guifg=#268bd2 gui=bold
hi pandocLinkDelim cterm=NONE ctermfg=239 guifg=#586e75
hi pandocLinkLabel term=underline cterm=underline ctermfg=33 guifg=#268bd2 gui=underline
hi pandocLinkText term=bold,underline cterm=bold,underline ctermfg=33 guifg=#268bd2 gui=bold,underline
hi pandocLinkTitle term=underline cterm=underline ctermfg=240 guifg=#657b83 gui=underline
hi pandocLinkTitleDelim term=underline cterm=underline ctermfg=239 guifg=#586e75 guisp=#657b83 gui=underline
hi pandocLinkURL term=underline cterm=underline ctermfg=240 guifg=#657b83 gui=underline
hi pandocListMarker cterm=NONE ctermfg=125 guifg=#d33682
hi pandocListReference term=underline cterm=underline ctermfg=125 guifg=#d33682 gui=underline
hi pandocMetadata term=bold cterm=bold ctermfg=33 guifg=#268bd2 gui=bold
hi pandocMetadataDelim cterm=NONE ctermfg=239 guifg=#586e75
hi pandocMetadataKey cterm=NONE ctermfg=33 guifg=#268bd2
hi pandocNonBreakingSpace term=reverse cterm=reverse ctermfg=124 guifg=#dc322f gui=reverse
hi pandocRule term=bold cterm=bold ctermfg=33 guifg=#268bd2 gui=bold
hi pandocRuleLine term=bold cterm=bold ctermfg=33 guifg=#268bd2 gui=bold
hi pandocStrikeout term=reverse cterm=reverse ctermfg=239 guifg=#586e75 gui=reverse
hi pandocStrikeoutDefinition term=reverse cterm=reverse ctermfg=61 guifg=#6c71c4 gui=reverse
hi pandocStrikeoutHeading term=reverse cterm=reverse ctermfg=166 guifg=#cb4b16 gui=reverse
hi pandocStrikeoutTable term=reverse cterm=reverse ctermfg=33 guifg=#268bd2 gui=reverse
hi pandocStrongEmphasis term=bold cterm=bold ctermfg=244 guifg=#839496 gui=bold
hi pandocStrongEmphasisDefinition term=bold cterm=bold ctermfg=61 guifg=#6c71c4 gui=bold
hi pandocStrongEmphasisEmphasis term=bold cterm=bold ctermfg=244 guifg=#839496 gui=bold
hi pandocStrongEmphasisEmphasisDefinition term=bold cterm=bold ctermfg=61 guifg=#6c71c4 gui=bold
hi pandocStrongEmphasisEmphasisHeading term=bold cterm=bold ctermfg=166 guifg=#cb4b16 gui=bold
hi pandocStrongEmphasisEmphasisTable term=bold cterm=bold ctermfg=33 guifg=#268bd2 gui=bold
hi pandocStrongEmphasisHeading term=bold cterm=bold ctermfg=166 guifg=#cb4b16 gui=bold
hi pandocStrongEmphasisNested term=bold cterm=bold ctermfg=244 guifg=#839496 gui=bold
hi pandocStrongEmphasisNestedDefinition term=bold cterm=bold ctermfg=61 guifg=#6c71c4 gui=bold
hi pandocStrongEmphasisNestedHeading term=bold cterm=bold ctermfg=166 guifg=#cb4b16 gui=bold
hi pandocStrongEmphasisNestedTable term=bold cterm=bold ctermfg=33 guifg=#268bd2 gui=bold
hi pandocStrongEmphasisTable term=bold cterm=bold ctermfg=33 guifg=#268bd2 gui=bold
hi pandocStyleDelim cterm=NONE ctermfg=239 guifg=#586e75
hi pandocSubscript cterm=NONE ctermfg=61 guifg=#6c71c4
hi pandocSubscriptDefinition cterm=NONE ctermfg=61 guifg=#6c71c4
hi pandocSubscriptHeading term=bold cterm=bold ctermfg=166 guifg=#cb4b16 gui=bold
hi pandocSubscriptTable cterm=NONE ctermfg=33 guifg=#268bd2
hi pandocSuperscript cterm=NONE ctermfg=61 guifg=#6c71c4
hi pandocSuperscriptDefinition cterm=NONE ctermfg=61 guifg=#6c71c4
hi pandocSuperscriptHeading term=bold cterm=bold ctermfg=166 guifg=#cb4b16 gui=bold
hi pandocSuperscriptTable cterm=NONE ctermfg=33 guifg=#268bd2
hi pandocTable cterm=NONE ctermfg=33 guifg=#268bd2
hi pandocTableStructure cterm=NONE ctermfg=33 guifg=#268bd2
hi pandocTableZebraDark cterm=NONE ctermfg=33 ctermbg=235 guifg=#268bd2 guibg=#073642
hi pandocTableZebraLight cterm=NONE ctermfg=33 ctermbg=234 guifg=#268bd2 guibg=#002b36
hi pandocTitleBlock cterm=NONE ctermfg=33 guifg=#268bd2
hi pandocTitleBlockTitle term=bold cterm=bold ctermfg=33 guifg=#268bd2 gui=bold
hi pandocTitleComment term=bold cterm=bold ctermfg=33 guifg=#268bd2 gui=bold
hi pandocVerbatimBlock cterm=NONE ctermfg=136 guifg=#b58900
hi pandocVerbatimInline cterm=NONE ctermfg=136 guifg=#b58900
hi pandocVerbatimInlineDefinition cterm=NONE ctermfg=61 guifg=#6c71c4
hi pandocVerbatimInlineHeading term=bold cterm=bold ctermfg=166 guifg=#cb4b16 gui=bold
hi pandocVerbatimInlineTable cterm=NONE ctermfg=33 guifg=#268bd2
hi perlHereDoc cterm=NONE ctermfg=245 ctermbg=234 guifg=#93a1a1 guibg=#002b36
hi perlStatementFileDesc cterm=NONE ctermfg=37 ctermbg=234 guifg=#2aa198 guibg=#002b36
hi perlVarPlain cterm=NONE ctermfg=136 ctermbg=234 guifg=#b58900 guibg=#002b36
hi rubyDefine term=bold cterm=bold ctermfg=245 ctermbg=234 guifg=#93a1a1 guibg=#002b36 gui=bold
hi texMathMatcher cterm=NONE ctermfg=136 ctermbg=234 guifg=#b58900 guibg=#002b36
hi texMathZoneX cterm=NONE ctermfg=136 ctermbg=234 guifg=#b58900 guibg=#002b36
hi texRefLabel cterm=NONE ctermfg=136 ctermbg=234 guifg=#b58900 guibg=#002b36
hi texStatement cterm=NONE ctermfg=37 ctermbg=234 guifg=#2aa198 guibg=#002b36
hi vimCmdSep term=bold cterm=bold ctermfg=33 guifg=#268bd2 gui=bold
hi vimCommand cterm=NONE ctermfg=136 guifg=#b58900
hi vimCommentString cterm=NONE ctermfg=61 guifg=#6c71c4
hi vimGroup term=bold,underline cterm=bold,underline ctermfg=33 guifg=#268bd2 gui=bold,underline
hi vimHiGroup cterm=NONE ctermfg=33 guifg=#268bd2
hi vimHiLink cterm=NONE ctermfg=33 guifg=#268bd2
hi vimIsCommand cterm=NONE ctermfg=240 guifg=#657b83
hi vimSynMtchOpt cterm=NONE ctermfg=136 guifg=#b58900
hi vimSynType cterm=NONE ctermfg=37 guifg=#2aa198
else
" 16 color terminals
" ugly without a solarized terminal palette
hi Normal ctermfg=12 ctermbg=8
set background=dark
hi ColorColumn ctermbg=0
hi Comment ctermfg=10
hi ConId ctermfg=3
hi Conceal ctermfg=4
hi Constant ctermfg=6
hi Cursor ctermfg=8 ctermbg=12
hi CursorColumn ctermbg=0
hi CursorLine cterm=NONE ctermbg=0
hi CursorLineNr term=bold ctermfg=11
hi DiffAdd ctermfg=2 ctermbg=0
hi DiffChange ctermfg=3 ctermbg=0
hi DiffDelete ctermfg=1 ctermbg=0
hi DiffText ctermfg=4 ctermbg=0
hi Directory ctermfg=4
hi Error term=bold cterm=bold ctermfg=1
hi ErrorMsg term=reverse cterm=reverse ctermfg=1
hi FoldColumn ctermfg=12 ctermbg=0
hi Folded term=bold,underline cterm=bold,underline ctermfg=12 ctermbg=0
hi HelpExample ctermfg=14
hi Identifier ctermfg=4
hi IncSearch term=standout cterm=standout ctermfg=9
hi LineNr ctermfg=10 ctermbg=0
hi MatchParen term=bold cterm=bold ctermfg=1 ctermbg=10
hi ModeMsg ctermfg=4
hi MoreMsg ctermfg=4
hi NonText term=bold cterm=bold ctermfg=11
hi Pmenu term=reverse cterm=reverse ctermfg=12 ctermbg=0
hi PmenuSbar term=reverse cterm=reverse ctermfg=7 ctermbg=12
hi PmenuSel term=reverse cterm=reverse ctermfg=10 ctermbg=7
hi PmenuThumb term=reverse cterm=reverse ctermfg=12 ctermbg=8
hi PreProc cterm=bold ctermfg=1
hi Question term=bold cterm=bold ctermfg=6
hi Search term=reverse cterm=reverse ctermfg=3
hi SignColumn ctermfg=12 ctermbg=242
hi Special ctermfg=1
hi SpecialKey term=bold cterm=bold ctermfg=11 ctermbg=0
hi SpellBad term=undercurl cterm=undercurl
hi SpellCap term=undercurl cterm=undercurl
hi SpellLocal term=undercurl cterm=undercurl
hi SpellRare term=undercurl cterm=undercurl
hi Statement ctermfg=2
hi StatusLine term=reverse cterm=reverse ctermfg=14 ctermbg=0
hi StatusLineNC term=reverse cterm=reverse ctermfg=11 ctermbg=0
hi TabLine term=underline cterm=underline ctermfg=12 ctermbg=0
hi TabLineFill term=underline cterm=underline ctermfg=12 ctermbg=0
hi TabLineSel term=underline,reverse cterm=underline,reverse ctermfg=10 ctermbg=7
hi Title term=bold cterm=bold ctermfg=9
hi Todo term=bold cterm=bold ctermfg=5
hi Type ctermfg=3
hi Underlined ctermfg=13
hi VarId ctermfg=4
hi VertSplit ctermfg=11 ctermbg=11
hi Visual term=reverse cterm=reverse ctermfg=10 ctermbg=8
hi VisualNOS term=reverse cterm=reverse ctermbg=0
hi WarningMsg term=bold cterm=bold ctermfg=1
hi WildMenu term=reverse cterm=reverse ctermfg=7 ctermbg=0
hi cPreCondit ctermfg=9
hi gitcommitBranch term=bold cterm=bold ctermfg=5
hi gitcommitComment ctermfg=10
hi gitcommitDiscardedFile term=bold cterm=bold ctermfg=1
hi gitcommitDiscardedType ctermfg=1
hi gitcommitFile term=bold cterm=bold ctermfg=12
hi gitcommitHeader ctermfg=10
hi gitcommitOnBranch term=bold cterm=bold ctermfg=10
hi gitcommitSelectedFile term=bold cterm=bold ctermfg=2
hi gitcommitSelectedType ctermfg=2
hi gitcommitUnmerged term=bold cterm=bold ctermfg=2
hi gitcommitUnmergedFile term=bold cterm=bold ctermfg=3
hi gitcommitUntrackedFile term=bold cterm=bold ctermfg=6
hi helpHyperTextEntry ctermfg=2
hi helpHyperTextJump term=underline cterm=underline ctermfg=4
hi helpNote ctermfg=5
hi helpOption ctermfg=6
hi helpVim ctermfg=5
hi hsImport ctermfg=5
hi hsImportLabel ctermfg=6
hi hsModuleName term=underline cterm=underline ctermfg=2
hi hsNiceOperator ctermfg=6
hi hsStatement ctermfg=6
hi hsString ctermfg=11
hi hsStructure ctermfg=6
hi hsType ctermfg=3
hi hsTypedef ctermfg=6
hi hsVarSym ctermfg=6
hi hs_DeclareFunction ctermfg=9
hi hs_OpFunctionName ctermfg=3
hi hs_hlFunctionName ctermfg=4
hi htmlArg ctermfg=11
hi htmlEndTag ctermfg=10
hi htmlSpecialTagName ctermfg=4
hi htmlTag ctermfg=10
hi htmlTagN term=bold cterm=bold ctermfg=14
hi htmlTagName term=bold cterm=bold ctermfg=4
hi javaScript ctermfg=3
hi pandocBlockQuote ctermfg=4
hi pandocBlockQuoteLeader1 ctermfg=4
hi pandocBlockQuoteLeader2 ctermfg=6
hi pandocBlockQuoteLeader3 ctermfg=3
hi pandocBlockQuoteLeader4 ctermfg=1
hi pandocBlockQuoteLeader5 ctermfg=12
hi pandocBlockQuoteLeader6 ctermfg=10
hi pandocCitation ctermfg=5
hi pandocCitationDelim ctermfg=5
hi pandocCitationID term=underline cterm=underline ctermfg=5
hi pandocCitationRef ctermfg=5
hi pandocComment ctermfg=10
hi pandocDefinitionBlock ctermfg=13
hi pandocDefinitionIndctr term=bold cterm=bold ctermfg=13
hi pandocDefinitionTerm term=standout cterm=standout ctermfg=13
hi pandocEmphasis ctermfg=12
hi pandocEmphasisDefinition ctermfg=13
hi pandocEmphasisHeading term=bold cterm=bold ctermfg=9
hi pandocEmphasisNested term=bold cterm=bold ctermfg=12
hi pandocEmphasisNestedDefinition term=bold cterm=bold ctermfg=13
hi pandocEmphasisNestedHeading term=bold cterm=bold ctermfg=9
hi pandocEmphasisNestedTable term=bold cterm=bold ctermfg=4
hi pandocEmphasisTable ctermfg=4
hi pandocEscapePair term=bold cterm=bold ctermfg=1
hi pandocFootnote ctermfg=2
hi pandocFootnoteDefLink term=bold cterm=bold ctermfg=2
hi pandocFootnoteInline term=bold,underline cterm=bold,underline ctermfg=2
hi pandocFootnoteLink term=underline cterm=underline ctermfg=2
hi pandocHeading term=bold cterm=bold ctermfg=9
hi pandocHeadingMarker term=bold cterm=bold ctermfg=3
hi pandocImageCaption term=bold,underline cterm=bold,underline ctermfg=13
hi pandocLinkDefinition term=underline cterm=underline ctermfg=6
hi pandocLinkDefinitionID term=bold cterm=bold ctermfg=4
hi pandocLinkDelim ctermfg=10
hi pandocLinkLabel term=underline cterm=underline ctermfg=4
hi pandocLinkText term=bold,underline cterm=bold,underline ctermfg=4
hi pandocLinkTitle term=underline cterm=underline ctermfg=11
hi pandocLinkTitleDelim term=underline cterm=underline ctermfg=10
hi pandocLinkURL term=underline cterm=underline ctermfg=11
hi pandocListMarker ctermfg=5
hi pandocListReference term=underline cterm=underline ctermfg=5
hi pandocMetadata term=bold cterm=bold ctermfg=4
hi pandocMetadataDelim ctermfg=10
hi pandocMetadataKey ctermfg=4
hi pandocNonBreakingSpace term=reverse cterm=reverse ctermfg=1
hi pandocRule term=bold cterm=bold ctermfg=4
hi pandocRuleLine term=bold cterm=bold ctermfg=4
hi pandocStrikeout term=reverse cterm=reverse ctermfg=10
hi pandocStrikeoutDefinition term=reverse cterm=reverse ctermfg=13
hi pandocStrikeoutHeading term=reverse cterm=reverse ctermfg=9
hi pandocStrikeoutTable term=reverse cterm=reverse ctermfg=4
hi pandocStrongEmphasis term=bold cterm=bold ctermfg=12
hi pandocStrongEmphasisDefinition term=bold cterm=bold ctermfg=13
hi pandocStrongEmphasisEmphasis term=bold cterm=bold ctermfg=12
hi pandocStrongEmphasisEmphasisDefinition term=bold cterm=bold ctermfg=13
hi pandocStrongEmphasisEmphasisHeading term=bold cterm=bold ctermfg=9
hi pandocStrongEmphasisEmphasisTable term=bold cterm=bold ctermfg=4
hi pandocStrongEmphasisHeading term=bold cterm=bold ctermfg=9
hi pandocStrongEmphasisNested term=bold cterm=bold ctermfg=12
hi pandocStrongEmphasisNestedDefinition term=bold cterm=bold ctermfg=13
hi pandocStrongEmphasisNestedHeading term=bold cterm=bold ctermfg=9
hi pandocStrongEmphasisNestedTable term=bold cterm=bold ctermfg=4
hi pandocStrongEmphasisTable term=bold cterm=bold ctermfg=4
hi pandocStyleDelim ctermfg=10
hi pandocSubscript ctermfg=13
hi pandocSubscriptDefinition ctermfg=13
hi pandocSubscriptHeading term=bold cterm=bold ctermfg=9
hi pandocSubscriptTable ctermfg=4
hi pandocSuperscript ctermfg=13
hi pandocSuperscriptDefinition ctermfg=13
hi pandocSuperscriptHeading term=bold cterm=bold ctermfg=9
hi pandocSuperscriptTable ctermfg=4
hi pandocTable ctermfg=4
hi pandocTableStructure ctermfg=4
hi pandocTableZebraDark ctermfg=4 ctermbg=0
hi pandocTableZebraLight ctermfg=4 ctermbg=8
hi pandocTitleBlock ctermfg=4
hi pandocTitleBlockTitle term=bold cterm=bold ctermfg=4
hi pandocTitleComment term=bold cterm=bold ctermfg=4
hi pandocVerbatimBlock ctermfg=3
hi pandocVerbatimInline ctermfg=3
hi pandocVerbatimInlineDefinition ctermfg=13
hi pandocVerbatimInlineHeading term=bold cterm=bold ctermfg=9
hi pandocVerbatimInlineTable ctermfg=4
hi perlHereDoc ctermfg=14 ctermbg=8
hi perlStatementFileDesc ctermfg=6 ctermbg=8
hi perlVarPlain ctermfg=3 ctermbg=8
hi rubyDefine term=bold cterm=bold ctermfg=14 ctermbg=8
hi texMathMatcher ctermfg=3 ctermbg=8
hi texMathZoneX ctermfg=3 ctermbg=8
hi texRefLabel ctermfg=3 ctermbg=8
hi texStatement ctermfg=6 ctermbg=8
hi vimCmdSep term=bold cterm=bold ctermfg=4
hi vimCommand ctermfg=3
hi vimCommentString ctermfg=13
hi vimGroup term=bold,underline cterm=bold,underline ctermfg=4
hi vimHiGroup ctermfg=4
hi vimHiLink ctermfg=4
hi vimIsCommand ctermfg=11
hi vimSynMtchOpt ctermfg=3
hi vimSynType ctermfg=6
endif
hi link Boolean Constant
hi link Character Constant
hi link Conditional Statement
hi link Debug Special
hi link Define PreProc
hi link Delimiter Special
hi link Exception Statement
hi link Float Number
hi link Function Identifier
hi link HelpCommand Statement
hi link Include PreProc
hi link Keyword Statement
hi link Label Statement
hi link Macro PreProc
hi link Number Constant
hi link Operator Statement
hi link PreCondit PreProc
hi link Repeat Statement
hi link SpecialChar Special
hi link SpecialComment Special
hi link StorageClass Type
hi link String Constant
hi link Structure Type
hi link SyntasticError SpellBad
hi link SyntasticErrorSign Error
hi link SyntasticStyleErrorLine SyntasticErrorLine
hi link SyntasticStyleErrorSign SyntasticErrorSign
hi link SyntasticStyleWarningLine SyntasticWarningLine
hi link SyntasticStyleWarningSign SyntasticWarningSign
hi link SyntasticWarning SpellCap
hi link SyntasticWarningSign Todo
hi link Tag Special
hi link Typedef Type
hi link diffAdded Statement
hi link diffBDiffer WarningMsg
hi link diffCommon WarningMsg
hi link diffDiffer WarningMsg
hi link diffIdentical WarningMsg
hi link diffIsA WarningMsg
hi link diffLine Identifier
hi link diffNoEOL WarningMsg
hi link diffOnly WarningMsg
hi link diffRemoved WarningMsg
hi link gitcommitDiscarded gitcommitComment
hi link gitcommitDiscardedArrow gitcommitDiscardedFile
hi link gitcommitNoBranch gitcommitBranch
hi link gitcommitSelected gitcommitComment
hi link gitcommitSelectedArrow gitcommitSelectedFile
hi link gitcommitUnmergedArrow gitcommitUnmergedFile
hi link gitcommitUntracked gitcommitComment
hi link helpSpecial Special
hi link hsDelimTypeExport Delimiter
hi link hsImportParams Delimiter
hi link hsModuleStartLabel hsStructure
hi link hsModuleWhereLabel hsModuleStartLabel
hi link htmlLink Function
hi link lCursor Cursor
hi link pandocCodeBlock pandocVerbatimBlock
hi link pandocCodeBlockDelim pandocVerbatimBlock
hi link pandocEscapedCharacter pandocEscapePair
hi link pandocLineBreak pandocEscapePair
hi link pandocMetadataTitle pandocMetadata
hi link pandocTableStructureEnd pandocTableStructre
hi link pandocTableStructureTop pandocTableStructre
hi link pandocVerbatimBlockDeep pandocVerbatimBlock
hi link vimFunc Function
hi link vimSet Normal
hi link vimSetEqual Normal
hi link vimUserFunc Function
hi link vipmVar Identifier
hi clear SyntasticErrorLine
hi clear SyntasticWarningLine
hi clear helpLeadBlank
hi clear helpNormal
hi clear pandocTableStructre

View File

@@ -1,502 +0,0 @@
" 'flattened_dark.vim' -- Vim color scheme.
" Maintainer: Romain Lafourcade (romainlafourcade@gmail.com)
" A no-bullshit light Solarized.
hi clear
if exists('syntax_on')
syntax reset
endif
let colors_name = 'flattened_light'
if &t_Co >= 256 || has('gui_running')
hi Normal cterm=NONE ctermfg=240 ctermbg=230 guifg=#657b83 guibg=#fdf6e3
set background=light
hi ColorColumn cterm=NONE ctermbg=187 guibg=#eee8d5
hi Comment cterm=NONE ctermfg=245 gui=italic guifg=#93a1a1
hi ConId cterm=NONE ctermfg=136 guifg=#b58900
hi Conceal cterm=NONE ctermfg=33 guifg=#268bd2
hi Constant cterm=NONE ctermfg=37 guifg=#2aa198
hi Cursor cterm=NONE ctermfg=230 ctermbg=240 guifg=#fdf6e3 guibg=#657b83
hi CursorColumn cterm=NONE ctermbg=187 guibg=#eee8d5
hi CursorLine cterm=NONE ctermbg=187 guibg=#eee8d5 guisp=#586e75
hi CursorLineNr term=bold ctermfg=130 gui=bold guifg=Brown
hi DiffAdd cterm=NONE ctermfg=64 ctermbg=187 gui=bold guifg=#719e07 guibg=#eee8d5 guisp=#719e07
hi DiffChange cterm=NONE ctermfg=136 ctermbg=187 gui=bold guifg=#b58900 guibg=#eee8d5 guisp=#b58900
hi DiffDelete cterm=NONE ctermfg=124 ctermbg=187 gui=bold guifg=#dc322f guibg=#eee8d5
hi DiffText cterm=NONE ctermfg=33 ctermbg=187 gui=bold guifg=#268bd2 guibg=#eee8d5 guisp=#268bd2
hi Directory cterm=NONE ctermfg=33 guifg=#268bd2
hi Error term=bold cterm=bold ctermfg=124 gui=bold guifg=#dc322f
hi ErrorMsg term=reverse cterm=reverse ctermfg=124 gui=reverse guifg=#dc322f
hi FoldColumn cterm=NONE ctermfg=240 ctermbg=187 guifg=#657b83 guibg=#eee8d5
hi Folded term=bold,underline cterm=bold,underline ctermfg=240 ctermbg=187 gui=bold,underline guifg=#657b83 guibg=#eee8d5 guisp=#fdf6e3
hi HelpExample cterm=NONE ctermfg=239 guifg=#586e75
hi Identifier cterm=NONE ctermfg=33 guifg=#268bd2
hi IncSearch term=standout cterm=standout ctermfg=166 gui=standout guifg=#cb4b16
hi LineNr cterm=NONE ctermfg=245 ctermbg=187 guifg=#93a1a1 guibg=#eee8d5
hi MatchParen term=bold cterm=bold ctermfg=124 ctermbg=245 gui=bold guifg=#dc322f guibg=#93a1a1
hi ModeMsg cterm=NONE ctermfg=33 guifg=#268bd2
hi MoreMsg cterm=NONE ctermfg=33 guifg=#268bd2
hi NonText term=bold cterm=bold ctermfg=244 gui=bold guifg=#839496
hi Pmenu term=reverse cterm=reverse ctermfg=240 ctermbg=187 gui=reverse guifg=#657b83 guibg=#eee8d5
hi PmenuSbar term=reverse cterm=reverse ctermfg=235 ctermbg=240 gui=reverse guifg=#073642 guibg=#657b83
hi PmenuSel term=reverse cterm=reverse ctermfg=245 ctermbg=235 gui=reverse guifg=#93a1a1 guibg=#073642
hi PmenuThumb term=reverse cterm=reverse ctermfg=240 ctermbg=230 gui=reverse guifg=#657b83 guibg=#fdf6e3
hi PreProc cterm=NONE ctermfg=166 guifg=#cb4b16
hi Question term=bold cterm=bold ctermfg=37 gui=bold guifg=#2aa198
hi Search term=reverse cterm=reverse ctermfg=136 gui=reverse guifg=#b58900
hi SignColumn cterm=NONE ctermfg=240 ctermbg=248 guifg=#657b83 guibg=Grey
hi Special cterm=NONE ctermfg=124 guifg=#dc322f
hi SpecialKey term=bold cterm=bold ctermfg=244 ctermbg=187 gui=bold guifg=#839496 guibg=#eee8d5
hi SpellBad term=undercurl cterm=undercurl gui=undercurl guisp=#dc322f
hi SpellCap term=undercurl cterm=undercurl gui=undercurl guisp=#6c71c4
hi SpellLocal term=undercurl cterm=undercurl gui=undercurl guisp=#b58900
hi SpellRare term=undercurl cterm=undercurl gui=undercurl guisp=#2aa198
hi Statement cterm=NONE ctermfg=64 guifg=#719e07
hi StatusLine term=reverse cterm=reverse ctermfg=239 ctermbg=187 gui=reverse guifg=#586e75 guibg=#eee8d5
hi StatusLineNC term=reverse cterm=reverse ctermfg=244 ctermbg=187 gui=reverse guifg=#839496 guibg=#eee8d5
hi TabLine term=underline cterm=underline ctermfg=240 ctermbg=187 gui=underline guifg=#657b83 guibg=#eee8d5 guisp=#657b83
hi TabLineFill term=underline cterm=underline ctermfg=240 ctermbg=187 gui=underline guifg=#657b83 guibg=#eee8d5 guisp=#657b83
hi TabLineSel term=underline,reverse cterm=underline,reverse ctermfg=245 ctermbg=235 gui=underline,reverse guifg=#93a1a1 guibg=#073642 guisp=#657b83
hi Title term=bold cterm=bold ctermfg=166 gui=bold guifg=#cb4b16
hi Todo term=bold cterm=bold ctermfg=125 gui=bold guifg=#d33682
hi Type cterm=NONE ctermfg=136 guifg=#b58900
hi Underlined cterm=NONE ctermfg=61 guifg=#6c71c4
hi VarId cterm=NONE ctermfg=33 guifg=#268bd2
hi VertSplit cterm=NONE ctermfg=244 ctermbg=244 guifg=#839496 guibg=#839496
hi Visual term=reverse cterm=reverse ctermfg=245 ctermbg=230 gui=reverse guifg=#93a1a1 guibg=#fdf6e3
hi VisualNOS term=reverse cterm=reverse ctermbg=187 gui=reverse guibg=#eee8d5
hi WarningMsg term=bold cterm=bold ctermfg=124 gui=bold guifg=#dc322f
hi WildMenu term=reverse cterm=reverse ctermfg=235 ctermbg=187 gui=reverse guifg=#073642 guibg=#eee8d5
hi cPreCondit cterm=NONE ctermfg=166 guifg=#cb4b16
hi gitcommitBranch term=bold cterm=bold ctermfg=125 gui=bold guifg=#d33682
hi gitcommitComment cterm=NONE ctermfg=245 gui=italic guifg=#93a1a1
hi gitcommitDiscardedFile term=bold cterm=bold ctermfg=124 gui=bold guifg=#dc322f
hi gitcommitDiscardedType cterm=NONE ctermfg=124 guifg=#dc322f
hi gitcommitFile term=bold cterm=bold ctermfg=240 gui=bold guifg=#657b83
hi gitcommitHeader cterm=NONE ctermfg=245 guifg=#93a1a1
hi gitcommitOnBranch term=bold cterm=bold ctermfg=245 gui=bold guifg=#93a1a1
hi gitcommitSelectedFile term=bold cterm=bold ctermfg=64 gui=bold guifg=#719e07
hi gitcommitSelectedType cterm=NONE ctermfg=64 guifg=#719e07
hi gitcommitUnmerged term=bold cterm=bold ctermfg=64 gui=bold guifg=#719e07
hi gitcommitUnmergedFile term=bold cterm=bold ctermfg=136 gui=bold guifg=#b58900
hi gitcommitUntrackedFile term=bold cterm=bold ctermfg=37 gui=bold guifg=#2aa198
hi helpHyperTextEntry cterm=NONE ctermfg=64 guifg=#719e07
hi helpHyperTextJump term=underline cterm=underline ctermfg=33 gui=underline guifg=#268bd2
hi helpNote cterm=NONE ctermfg=125 guifg=#d33682
hi helpOption cterm=NONE ctermfg=37 guifg=#2aa198
hi helpVim cterm=NONE ctermfg=125 guifg=#d33682
hi hsImport cterm=NONE ctermfg=125 guifg=#d33682
hi hsImportLabel cterm=NONE ctermfg=37 guifg=#2aa198
hi hsModuleName term=underline cterm=underline ctermfg=64 gui=underline guifg=#719e07
hi hsNiceOperator cterm=NONE ctermfg=37 guifg=#2aa198
hi hsStatement cterm=NONE ctermfg=37 guifg=#2aa198
hi hsString cterm=NONE ctermfg=244 guifg=#839496
hi hsStructure cterm=NONE ctermfg=37 guifg=#2aa198
hi hsType cterm=NONE ctermfg=136 guifg=#b58900
hi hsTypedef cterm=NONE ctermfg=37 guifg=#2aa198
hi hsVarSym cterm=NONE ctermfg=37 guifg=#2aa198
hi hs_DeclareFunction cterm=NONE ctermfg=166 guifg=#cb4b16
hi hs_OpFunctionName cterm=NONE ctermfg=136 guifg=#b58900
hi hs_hlFunctionName cterm=NONE ctermfg=33 guifg=#268bd2
hi htmlArg cterm=NONE ctermfg=244 guifg=#839496
hi htmlEndTag cterm=NONE ctermfg=245 guifg=#93a1a1
hi htmlSpecialTagName cterm=NONE ctermfg=33 gui=italic guifg=#268bd2
hi htmlTag cterm=NONE ctermfg=245 guifg=#93a1a1
hi htmlTagN term=bold cterm=bold ctermfg=239 gui=bold guifg=#586e75
hi htmlTagName term=bold cterm=bold ctermfg=33 gui=bold guifg=#268bd2
hi javaScript cterm=NONE ctermfg=136 guifg=#b58900
hi pandocBlockQuote cterm=NONE ctermfg=33 guifg=#268bd2
hi pandocBlockQuoteLeader1 cterm=NONE ctermfg=33 guifg=#268bd2
hi pandocBlockQuoteLeader2 cterm=NONE ctermfg=37 guifg=#2aa198
hi pandocBlockQuoteLeader3 cterm=NONE ctermfg=136 guifg=#b58900
hi pandocBlockQuoteLeader4 cterm=NONE ctermfg=124 guifg=#dc322f
hi pandocBlockQuoteLeader5 cterm=NONE ctermfg=240 guifg=#657b83
hi pandocBlockQuoteLeader6 cterm=NONE ctermfg=245 guifg=#93a1a1
hi pandocCitation cterm=NONE ctermfg=125 guifg=#d33682
hi pandocCitationDelim cterm=NONE ctermfg=125 guifg=#d33682
hi pandocCitationID term=underline cterm=underline ctermfg=125 gui=underline guifg=#d33682
hi pandocCitationRef cterm=NONE ctermfg=125 guifg=#d33682
hi pandocComment cterm=NONE ctermfg=245 gui=italic guifg=#93a1a1
hi pandocDefinitionBlock cterm=NONE ctermfg=61 guifg=#6c71c4
hi pandocDefinitionIndctr term=bold cterm=bold ctermfg=61 gui=bold guifg=#6c71c4
hi pandocDefinitionTerm term=standout cterm=standout ctermfg=61 gui=standout guifg=#6c71c4
hi pandocEmphasis cterm=NONE ctermfg=240 gui=italic guifg=#657b83
hi pandocEmphasisDefinition cterm=NONE ctermfg=61 gui=italic guifg=#6c71c4
hi pandocEmphasisHeading term=bold cterm=bold ctermfg=166 gui=bold guifg=#cb4b16
hi pandocEmphasisNested term=bold cterm=bold ctermfg=240 gui=bold guifg=#657b83
hi pandocEmphasisNestedDefinition term=bold cterm=bold ctermfg=61 gui=bold guifg=#6c71c4
hi pandocEmphasisNestedHeading term=bold cterm=bold ctermfg=166 gui=bold guifg=#cb4b16
hi pandocEmphasisNestedTable term=bold cterm=bold ctermfg=33 gui=bold guifg=#268bd2
hi pandocEmphasisTable cterm=NONE ctermfg=33 gui=italic guifg=#268bd2
hi pandocEscapePair term=bold cterm=bold ctermfg=124 gui=bold guifg=#dc322f
hi pandocFootnote cterm=NONE ctermfg=64 guifg=#719e07
hi pandocFootnoteDefLink term=bold cterm=bold ctermfg=64 gui=bold guifg=#719e07
hi pandocFootnoteInline term=bold,underline cterm=bold,underline ctermfg=64 gui=bold,underline guifg=#719e07
hi pandocFootnoteLink term=underline cterm=underline ctermfg=64 gui=underline guifg=#719e07
hi pandocHeading term=bold cterm=bold ctermfg=166 gui=bold guifg=#cb4b16
hi pandocHeadingMarker term=bold cterm=bold ctermfg=136 gui=bold guifg=#b58900
hi pandocImageCaption term=bold,underline cterm=bold,underline ctermfg=61 gui=bold,underline guifg=#6c71c4
hi pandocLinkDefinition term=underline cterm=underline ctermfg=37 gui=underline guifg=#2aa198 guisp=#839496
hi pandocLinkDefinitionID term=bold cterm=bold ctermfg=33 gui=bold guifg=#268bd2
hi pandocLinkDelim cterm=NONE ctermfg=245 guifg=#93a1a1
hi pandocLinkLabel term=underline cterm=underline ctermfg=33 gui=underline guifg=#268bd2
hi pandocLinkText term=bold,underline cterm=bold,underline ctermfg=33 gui=bold,underline guifg=#268bd2
hi pandocLinkTitle term=underline cterm=underline ctermfg=244 gui=underline guifg=#839496
hi pandocLinkTitleDelim term=underline cterm=underline ctermfg=245 gui=underline guifg=#93a1a1 guisp=#839496
hi pandocLinkURL term=underline cterm=underline ctermfg=244 gui=underline guifg=#839496
hi pandocListMarker cterm=NONE ctermfg=125 guifg=#d33682
hi pandocListReference term=underline cterm=underline ctermfg=125 gui=underline guifg=#d33682
hi pandocMetadata term=bold cterm=bold ctermfg=33 gui=bold guifg=#268bd2
hi pandocMetadataDelim cterm=NONE ctermfg=245 guifg=#93a1a1
hi pandocMetadataKey cterm=NONE ctermfg=33 guifg=#268bd2
hi pandocNonBreakingSpace term=reverse cterm=reverse ctermfg=124 gui=reverse guifg=#dc322f
hi pandocRule term=bold cterm=bold ctermfg=33 gui=bold guifg=#268bd2
hi pandocRuleLine term=bold cterm=bold ctermfg=33 gui=bold guifg=#268bd2
hi pandocStrikeout term=reverse cterm=reverse ctermfg=245 gui=reverse guifg=#93a1a1
hi pandocStrikeoutDefinition term=reverse cterm=reverse ctermfg=61 gui=reverse guifg=#6c71c4
hi pandocStrikeoutHeading term=reverse cterm=reverse ctermfg=166 gui=reverse guifg=#cb4b16
hi pandocStrikeoutTable term=reverse cterm=reverse ctermfg=33 gui=reverse guifg=#268bd2
hi pandocStrongEmphasis term=bold cterm=bold ctermfg=240 gui=bold guifg=#657b83
hi pandocStrongEmphasisDefinition term=bold cterm=bold ctermfg=61 gui=bold guifg=#6c71c4
hi pandocStrongEmphasisEmphasis term=bold cterm=bold ctermfg=240 gui=bold guifg=#657b83
hi pandocStrongEmphasisEmphasisDefinition term=bold cterm=bold ctermfg=61 gui=bold guifg=#6c71c4
hi pandocStrongEmphasisEmphasisHeading term=bold cterm=bold ctermfg=166 gui=bold guifg=#cb4b16
hi pandocStrongEmphasisEmphasisTable term=bold cterm=bold ctermfg=33 gui=bold guifg=#268bd2
hi pandocStrongEmphasisHeading term=bold cterm=bold ctermfg=166 gui=bold guifg=#cb4b16
hi pandocStrongEmphasisNested term=bold cterm=bold ctermfg=240 gui=bold guifg=#657b83
hi pandocStrongEmphasisNestedDefinition term=bold cterm=bold ctermfg=61 gui=bold guifg=#6c71c4
hi pandocStrongEmphasisNestedHeading term=bold cterm=bold ctermfg=166 gui=bold guifg=#cb4b16
hi pandocStrongEmphasisNestedTable term=bold cterm=bold ctermfg=33 gui=bold guifg=#268bd2
hi pandocStrongEmphasisTable term=bold cterm=bold ctermfg=33 gui=bold guifg=#268bd2
hi pandocStyleDelim cterm=NONE ctermfg=245 guifg=#93a1a1
hi pandocSubscript cterm=NONE ctermfg=61 guifg=#6c71c4
hi pandocSubscriptDefinition cterm=NONE ctermfg=61 guifg=#6c71c4
hi pandocSubscriptHeading term=bold cterm=bold ctermfg=166 gui=bold guifg=#cb4b16
hi pandocSubscriptTable cterm=NONE ctermfg=33 guifg=#268bd2
hi pandocSuperscript cterm=NONE ctermfg=61 guifg=#6c71c4
hi pandocSuperscriptDefinition cterm=NONE ctermfg=61 guifg=#6c71c4
hi pandocSuperscriptHeading term=bold cterm=bold ctermfg=166 gui=bold guifg=#cb4b16
hi pandocSuperscriptTable cterm=NONE ctermfg=33 guifg=#268bd2
hi pandocTable cterm=NONE ctermfg=33 guifg=#268bd2
hi pandocTableStructure cterm=NONE ctermfg=33 guifg=#268bd2
hi pandocTableZebraDark cterm=NONE ctermfg=33 ctermbg=187 guifg=#268bd2 guibg=#eee8d5
hi pandocTableZebraLight cterm=NONE ctermfg=33 ctermbg=230 guifg=#268bd2 guibg=#fdf6e3
hi pandocTitleBlock cterm=NONE ctermfg=33 guifg=#268bd2
hi pandocTitleBlockTitle term=bold cterm=bold ctermfg=33 gui=bold guifg=#268bd2
hi pandocTitleComment term=bold cterm=bold ctermfg=33 gui=bold guifg=#268bd2
hi pandocVerbatimBlock cterm=NONE ctermfg=136 guifg=#b58900
hi pandocVerbatimInline cterm=NONE ctermfg=136 guifg=#b58900
hi pandocVerbatimInlineDefinition cterm=NONE ctermfg=61 guifg=#6c71c4
hi pandocVerbatimInlineHeading term=bold cterm=bold ctermfg=166 gui=bold guifg=#cb4b16
hi pandocVerbatimInlineTable cterm=NONE ctermfg=33 guifg=#268bd2
hi perlHereDoc cterm=NONE ctermfg=239 ctermbg=230 guifg=#586e75 guibg=#fdf6e3
hi perlStatementFileDesc cterm=NONE ctermfg=37 ctermbg=230 guifg=#2aa198 guibg=#fdf6e3
hi perlVarPlain cterm=NONE ctermfg=136 ctermbg=230 guifg=#b58900 guibg=#fdf6e3
hi rubyDefine term=bold cterm=bold ctermfg=239 ctermbg=230 gui=bold guifg=#586e75 guibg=#fdf6e3
hi texMathMatcher cterm=NONE ctermfg=136 ctermbg=230 guifg=#b58900 guibg=#fdf6e3
hi texMathZoneX cterm=NONE ctermfg=136 ctermbg=230 guifg=#b58900 guibg=#fdf6e3
hi texRefLabel cterm=NONE ctermfg=136 ctermbg=230 guifg=#b58900 guibg=#fdf6e3
hi texStatement cterm=NONE ctermfg=37 ctermbg=230 guifg=#2aa198 guibg=#fdf6e3
hi vimCmdSep term=bold cterm=bold ctermfg=33 gui=bold guifg=#268bd2
hi vimCommand cterm=NONE ctermfg=136 guifg=#b58900
hi vimCommentString cterm=NONE ctermfg=61 guifg=#6c71c4
hi vimGroup term=bold,underline cterm=bold,underline ctermfg=33 gui=bold,underline guifg=#268bd2
hi vimHiGroup cterm=NONE ctermfg=33 guifg=#268bd2
hi vimHiLink cterm=NONE ctermfg=33 guifg=#268bd2
hi vimIsCommand cterm=NONE ctermfg=244 guifg=#839496
hi vimSynMtchOpt cterm=NONE ctermfg=136 guifg=#b58900
hi vimSynType cterm=NONE ctermfg=37 guifg=#2aa198
else
" 16 color terminals
" ugly without a solarized terminal palette
hi Normal cterm=NONE ctermfg=11 ctermbg=15
set background=light
hi ColorColumn cterm=NONE ctermbg=7
hi Comment cterm=NONE ctermfg=14
hi ConId cterm=NONE ctermfg=3
hi Conceal cterm=NONE ctermfg=4
hi Constant cterm=NONE ctermfg=6
hi Cursor cterm=NONE ctermfg=15 ctermbg=11
hi CursorColumn cterm=NONE ctermbg=7
hi CursorLine cterm=NONE ctermbg=7
hi CursorLineNr term=bold ctermfg=130
hi DiffAdd cterm=NONE ctermfg=2 ctermbg=7
hi DiffChange cterm=NONE ctermfg=3 ctermbg=7
hi DiffDelete cterm=NONE ctermfg=1 ctermbg=7
hi DiffText cterm=NONE ctermfg=4 ctermbg=7
hi Directory cterm=NONE ctermfg=4
hi Error term=bold cterm=bold ctermfg=1
hi ErrorMsg term=reverse cterm=reverse ctermfg=1
hi FoldColumn cterm=NONE ctermfg=11 ctermbg=7
hi Folded term=bold,underline cterm=bold,underline ctermfg=11 ctermbg=7
hi HelpExample cterm=NONE ctermfg=10
hi Identifier cterm=NONE ctermfg=4
hi IncSearch term=standout cterm=standout ctermfg=9
hi LineNr cterm=NONE ctermfg=14 ctermbg=7
hi MatchParen term=bold cterm=bold ctermfg=1 ctermbg=14
hi ModeMsg cterm=NONE ctermfg=4
hi MoreMsg cterm=NONE ctermfg=4
hi NonText term=bold cterm=bold ctermfg=12
hi Pmenu term=reverse cterm=reverse ctermfg=11 ctermbg=7
hi PmenuSbar term=reverse cterm=reverse ctermfg=0 ctermbg=11
hi PmenuSel term=reverse cterm=reverse ctermfg=14 ctermbg=0
hi PmenuThumb term=reverse cterm=reverse ctermfg=11 ctermbg=15
hi PreProc cterm=NONE ctermfg=9
hi Question term=bold cterm=bold ctermfg=6
hi Search term=reverse cterm=reverse ctermfg=3
hi SignColumn cterm=NONE ctermfg=11 ctermbg=248
hi Special cterm=NONE ctermfg=1
hi SpecialKey term=bold cterm=bold ctermfg=12 ctermbg=7
hi SpellBad term=undercurl cterm=undercurl
hi SpellCap term=undercurl cterm=undercurl
hi SpellLocal term=undercurl cterm=undercurl
hi SpellRare term=undercurl cterm=undercurl
hi Statement cterm=NONE ctermfg=2
hi StatusLine term=reverse cterm=reverse ctermfg=10 ctermbg=7
hi StatusLineNC term=reverse cterm=reverse ctermfg=12 ctermbg=7
hi TabLine term=underline cterm=underline ctermfg=11 ctermbg=7
hi TabLineFill term=underline cterm=underline ctermfg=11 ctermbg=7
hi TabLineSel term=underline,reverse cterm=underline,reverse ctermfg=14 ctermbg=0
hi Title term=bold cterm=bold ctermfg=9
hi Todo term=bold cterm=bold ctermfg=5
hi Type cterm=NONE ctermfg=3
hi Underlined cterm=NONE ctermfg=13
hi VarId cterm=NONE ctermfg=4
hi VertSplit cterm=NONE ctermfg=12 ctermbg=12
hi Visual term=reverse cterm=reverse ctermfg=14 ctermbg=15
hi VisualNOS term=reverse cterm=reverse ctermbg=7
hi WarningMsg term=bold cterm=bold ctermfg=1
hi WildMenu term=reverse cterm=reverse ctermfg=0 ctermbg=7
hi cPreCondit cterm=NONE ctermfg=9
hi gitcommitBranch term=bold cterm=bold ctermfg=5
hi gitcommitComment cterm=NONE ctermfg=14
hi gitcommitDiscardedFile term=bold cterm=bold ctermfg=1
hi gitcommitDiscardedType cterm=NONE ctermfg=1
hi gitcommitFile term=bold cterm=bold ctermfg=11
hi gitcommitHeader cterm=NONE ctermfg=14
hi gitcommitOnBranch term=bold cterm=bold ctermfg=14
hi gitcommitSelectedFile term=bold cterm=bold ctermfg=2
hi gitcommitSelectedType cterm=NONE ctermfg=2
hi gitcommitUnmerged term=bold cterm=bold ctermfg=2
hi gitcommitUnmergedFile term=bold cterm=bold ctermfg=3
hi gitcommitUntrackedFile term=bold cterm=bold ctermfg=6
hi helpHyperTextEntry cterm=NONE ctermfg=2
hi helpHyperTextJump term=underline cterm=underline ctermfg=4
hi helpNote cterm=NONE ctermfg=5
hi helpOption cterm=NONE ctermfg=6
hi helpVim cterm=NONE ctermfg=5
hi hsImport cterm=NONE ctermfg=5
hi hsImportLabel cterm=NONE ctermfg=6
hi hsModuleName term=underline cterm=underline ctermfg=2
hi hsNiceOperator cterm=NONE ctermfg=6
hi hsStatement cterm=NONE ctermfg=6
hi hsString cterm=NONE ctermfg=12
hi hsStructure cterm=NONE ctermfg=6
hi hsType cterm=NONE ctermfg=3
hi hsTypedef cterm=NONE ctermfg=6
hi hsVarSym cterm=NONE ctermfg=6
hi hs_DeclareFunction cterm=NONE ctermfg=9
hi hs_OpFunctionName cterm=NONE ctermfg=3
hi hs_hlFunctionName cterm=NONE ctermfg=4
hi htmlArg cterm=NONE ctermfg=12
hi htmlEndTag cterm=NONE ctermfg=14
hi htmlSpecialTagName cterm=NONE ctermfg=4
hi htmlTag cterm=NONE ctermfg=14
hi htmlTagN term=bold cterm=bold ctermfg=10
hi htmlTagName term=bold cterm=bold ctermfg=4
hi javaScript cterm=NONE ctermfg=3
hi pandocBlockQuote cterm=NONE ctermfg=4
hi pandocBlockQuoteLeader1 cterm=NONE ctermfg=4
hi pandocBlockQuoteLeader2 cterm=NONE ctermfg=6
hi pandocBlockQuoteLeader3 cterm=NONE ctermfg=3
hi pandocBlockQuoteLeader4 cterm=NONE ctermfg=1
hi pandocBlockQuoteLeader5 cterm=NONE ctermfg=11
hi pandocBlockQuoteLeader6 cterm=NONE ctermfg=14
hi pandocCitation cterm=NONE ctermfg=5
hi pandocCitationDelim cterm=NONE ctermfg=5
hi pandocCitationID term=underline cterm=underline ctermfg=5
hi pandocCitationRef cterm=NONE ctermfg=5
hi pandocComment cterm=NONE ctermfg=14
hi pandocDefinitionBlock cterm=NONE ctermfg=13
hi pandocDefinitionIndctr term=bold cterm=bold ctermfg=13
hi pandocDefinitionTerm term=standout cterm=standout ctermfg=13
hi pandocEmphasis cterm=NONE ctermfg=11
hi pandocEmphasisDefinition cterm=NONE ctermfg=13
hi pandocEmphasisHeading term=bold cterm=bold ctermfg=9
hi pandocEmphasisNested term=bold cterm=bold ctermfg=11
hi pandocEmphasisNestedDefinition term=bold cterm=bold ctermfg=13
hi pandocEmphasisNestedHeading term=bold cterm=bold ctermfg=9
hi pandocEmphasisNestedTable term=bold cterm=bold ctermfg=4
hi pandocEmphasisTable cterm=NONE ctermfg=4
hi pandocEscapePair term=bold cterm=bold ctermfg=1
hi pandocFootnote cterm=NONE ctermfg=2
hi pandocFootnoteDefLink term=bold cterm=bold ctermfg=2
hi pandocFootnoteInline term=bold,underline cterm=bold,underline ctermfg=2
hi pandocFootnoteLink term=underline cterm=underline ctermfg=2
hi pandocHeading term=bold cterm=bold ctermfg=9
hi pandocHeadingMarker term=bold cterm=bold ctermfg=3
hi pandocImageCaption term=bold,underline cterm=bold,underline ctermfg=13
hi pandocLinkDefinition term=underline cterm=underline ctermfg=6
hi pandocLinkDefinitionID term=bold cterm=bold ctermfg=4
hi pandocLinkDelim cterm=NONE ctermfg=14
hi pandocLinkLabel term=underline cterm=underline ctermfg=4
hi pandocLinkText term=bold,underline cterm=bold,underline ctermfg=4
hi pandocLinkTitle term=underline cterm=underline ctermfg=12
hi pandocLinkTitleDelim term=underline cterm=underline ctermfg=14
hi pandocLinkURL term=underline cterm=underline ctermfg=12
hi pandocListMarker cterm=NONE ctermfg=5
hi pandocListReference term=underline cterm=underline ctermfg=5
hi pandocMetadata term=bold cterm=bold ctermfg=4
hi pandocMetadataDelim cterm=NONE ctermfg=14
hi pandocMetadataKey cterm=NONE ctermfg=4
hi pandocNonBreakingSpace term=reverse cterm=reverse ctermfg=1
hi pandocRule term=bold cterm=bold ctermfg=4
hi pandocRuleLine term=bold cterm=bold ctermfg=4
hi pandocStrikeout term=reverse cterm=reverse ctermfg=14
hi pandocStrikeoutDefinition term=reverse cterm=reverse ctermfg=13
hi pandocStrikeoutHeading term=reverse cterm=reverse ctermfg=9
hi pandocStrikeoutTable term=reverse cterm=reverse ctermfg=4
hi pandocStrongEmphasis term=bold cterm=bold ctermfg=11
hi pandocStrongEmphasisDefinition term=bold cterm=bold ctermfg=13
hi pandocStrongEmphasisEmphasis term=bold cterm=bold ctermfg=11
hi pandocStrongEmphasisEmphasisDefinition term=bold cterm=bold ctermfg=13
hi pandocStrongEmphasisEmphasisHeading term=bold cterm=bold ctermfg=9
hi pandocStrongEmphasisEmphasisTable term=bold cterm=bold ctermfg=4
hi pandocStrongEmphasisHeading term=bold cterm=bold ctermfg=9
hi pandocStrongEmphasisNested term=bold cterm=bold ctermfg=11
hi pandocStrongEmphasisNestedDefinition term=bold cterm=bold ctermfg=13
hi pandocStrongEmphasisNestedHeading term=bold cterm=bold ctermfg=9
hi pandocStrongEmphasisNestedTable term=bold cterm=bold ctermfg=4
hi pandocStrongEmphasisTable term=bold cterm=bold ctermfg=4
hi pandocStyleDelim cterm=NONE ctermfg=14
hi pandocSubscript cterm=NONE ctermfg=13
hi pandocSubscriptDefinition cterm=NONE ctermfg=13
hi pandocSubscriptHeading term=bold cterm=bold ctermfg=9
hi pandocSubscriptTable cterm=NONE ctermfg=4
hi pandocSuperscript cterm=NONE ctermfg=13
hi pandocSuperscriptDefinition cterm=NONE ctermfg=13
hi pandocSuperscriptHeading term=bold cterm=bold ctermfg=9
hi pandocSuperscriptTable cterm=NONE ctermfg=4
hi pandocTable cterm=NONE ctermfg=4
hi pandocTableStructure cterm=NONE ctermfg=4
hi pandocTableZebraDark cterm=NONE ctermfg=4 ctermbg=7
hi pandocTableZebraLight cterm=NONE ctermfg=4 ctermbg=15
hi pandocTitleBlock cterm=NONE ctermfg=4
hi pandocTitleBlockTitle term=bold cterm=bold ctermfg=4
hi pandocTitleComment term=bold cterm=bold ctermfg=4
hi pandocVerbatimBlock cterm=NONE ctermfg=3
hi pandocVerbatimInline cterm=NONE ctermfg=3
hi pandocVerbatimInlineDefinition cterm=NONE ctermfg=13
hi pandocVerbatimInlineHeading term=bold cterm=bold ctermfg=9
hi pandocVerbatimInlineTable cterm=NONE ctermfg=4
hi perlHereDoc cterm=NONE ctermfg=10 ctermbg=15
hi perlStatementFileDesc cterm=NONE ctermfg=6 ctermbg=15
hi perlVarPlain cterm=NONE ctermfg=3 ctermbg=15
hi rubyDefine term=bold cterm=bold ctermfg=10 ctermbg=15
hi texMathMatcher cterm=NONE ctermfg=3 ctermbg=15
hi texMathZoneX cterm=NONE ctermfg=3 ctermbg=15
hi texRefLabel cterm=NONE ctermfg=3 ctermbg=15
hi texStatement cterm=NONE ctermfg=6 ctermbg=15
hi vimCmdSep term=bold cterm=bold ctermfg=4
hi vimCommand cterm=NONE ctermfg=3
hi vimCommentString cterm=NONE ctermfg=13
hi vimGroup term=bold,underline cterm=bold,underline ctermfg=4
hi vimHiGroup cterm=NONE ctermfg=4
hi vimHiLink cterm=NONE ctermfg=4
hi vimIsCommand cterm=NONE ctermfg=12
hi vimSynMtchOpt cterm=NONE ctermfg=3
hi vimSynType cterm=NONE ctermfg=6
endif
hi link Boolean Constant
hi link Character Constant
hi link Conditional Statement
hi link Debug Special
hi link Define PreProc
hi link Delimiter Special
hi link Exception Statement
hi link Float Number
hi link Function Identifier
hi link HelpCommand Statement
hi link Include PreProc
hi link Keyword Statement
hi link Label Statement
hi link Macro PreProc
hi link Number Constant
hi link Operator Statement
hi link PreCondit PreProc
hi link Repeat Statement
hi link SpecialChar Special
hi link SpecialComment Special
hi link StorageClass Type
hi link String Constant
hi link Structure Type
hi link SyntasticError SpellBad
hi link SyntasticErrorSign Error
hi link SyntasticStyleErrorLine SyntasticErrorLine
hi link SyntasticStyleErrorSign SyntasticErrorSign
hi link SyntasticStyleWarningLine SyntasticWarningLine
hi link SyntasticStyleWarningSign SyntasticWarningSign
hi link SyntasticWarning SpellCap
hi link SyntasticWarningSign Todo
hi link Tag Special
hi link Typedef Type
hi link diffAdded Statement
hi link diffBDiffer WarningMsg
hi link diffCommon WarningMsg
hi link diffDiffer WarningMsg
hi link diffIdentical WarningMsg
hi link diffIsA WarningMsg
hi link diffLine Identifier
hi link diffNoEOL WarningMsg
hi link diffOnly WarningMsg
hi link diffRemoved WarningMsg
hi link gitcommitDiscarded gitcommitComment
hi link gitcommitDiscardedArrow gitcommitDiscardedFile
hi link gitcommitNoBranch gitcommitBranch
hi link gitcommitSelected gitcommitComment
hi link gitcommitSelectedArrow gitcommitSelectedFile
hi link gitcommitUnmergedArrow gitcommitUnmergedFile
hi link gitcommitUntracked gitcommitComment
hi link helpSpecial Special
hi link hsDelimTypeExport Delimiter
hi link hsImportParams Delimiter
hi link hsModuleStartLabel hsStructure
hi link hsModuleWhereLabel hsModuleStartLabel
hi link htmlLink Function
hi link lCursor Cursor
hi link pandocCodeBlock pandocVerbatimBlock
hi link pandocCodeBlockDelim pandocVerbatimBlock
hi link pandocEscapedCharacter pandocEscapePair
hi link pandocLineBreak pandocEscapePair
hi link pandocMetadataTitle pandocMetadata
hi link pandocTableStructureEnd pandocTableStructre
hi link pandocTableStructureTop pandocTableStructre
hi link pandocVerbatimBlockDeep pandocVerbatimBlock
hi link vimFunc Function
hi link vimSet Normal
hi link vimSetEqual Normal
hi link vimUserFunc Function
hi link vipmVar Identifier
hi clear SyntasticErrorLine
hi clear SyntasticWarningLine
hi clear helpLeadBlank
hi clear helpNormal
hi clear pandocTableStructre

View File

@@ -1,127 +0,0 @@
" Vim color file
"
" Name: fu.vim
" Version: 1.1
" Maintainer: Aaron Mueller <mail@aaron-mueller.de>
" Contributors: Florian Eitel <feitel@indeedgeek.de>
" Tinou <tinoucas@gmail.com>
"
" This is a compositon from railscast, mustang and xoria256 with a lot of
" improvemts in the colors. Want to change toe colors to your needs? Go to
" this page to see what number is set wo what color:
" http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html
"
" History:
" 2010-06-09 - Merge changes from Florian Eitel in this file. There was many
" whitespace issues and some unused highlight settings which are removed
" now. Also merged Tinous GUI version of the whole colorscheme. Thanks a
" lot dudes!
"
" 2010-06-09 - Initial setup and creation of this file. Additional colors for
" Ruby and the diff view are added.
"
if &t_Co != 256 && ! has("gui_running")
echomsg "err: please use GUI or a 256-color terminal (so that t_Co=256 could be set)"
finish
endif
set background=dark
hi clear
if exists("syntax_on")
syntax reset
endif
let colors_name = "fu"
" General colors
hi Normal ctermfg=252 ctermbg=234 guifg=#d0d0d0 guibg=#1c1c1c
hi CursorColumn ctermbg=238 guibg=#444444
hi Cursor ctermbg=214 guibg=#ffaf00
hi CursorLine ctermbg=238 guibg=#444444
hi FoldColumn ctermfg=248 ctermbg=bg guifg=#a8a8a8 guibg=#000000
hi Folded ctermfg=255 ctermbg=60 guifg=#eeeeee guibg=#5f5f87
hi IncSearch ctermfg=0 ctermbg=223 guifg=#000000 guibg=#ffd7af
hi NonText ctermfg=248 ctermbg=233 cterm=bold guifg=#a8a8a8 guibg=#121212
hi Search ctermfg=0 ctermbg=149 guifg=#000000 guibg=#afd75f
hi SignColumn ctermfg=248 ctermbg=232 guifg=#a8a8a8
hi SpecialKey ctermfg=77 guifg=#5fd75f
hi StatusLine ctermfg=232 ctermbg=255 guifg=#080808 guibg=#eeeeee
hi StatusLineNC ctermfg=237 ctermbg=253 guifg=#3a3a3a guibg=#dadada
hi TabLine ctermfg=253 ctermbg=237 guifg=#dadada guibg=#3a3a3a
hi TabLineFill ctermfg=0 ctermbg=0 guifg=#000000 guibg=#000000
hi TabLineSel ctermfg=255 ctermbg=33 guifg=#eeeeee guibg=#0087ff
hi VertSplit ctermfg=237 ctermbg=237 guifg=#3a3a3a guibg=#3a3a3a
hi Visual ctermfg=24 ctermbg=153 guifg=#005f87 guibg=#afd7ff
hi VIsualNOS ctermfg=24 ctermbg=153 guifg=#005f87 guibg=#afd7ff
hi LineNr ctermfg=234 ctermbg=232 guifg=#a8a8a8 guibg=#080808
hi ModeMsg ctermfg=220 guifg=#ffd700
hi ErrorMsg ctermfg=196 ctermbg=52 guifg=#ff0000 guibg=#5f0000
hi SpellBad ctermfg=196 ctermbg=52
if version >= 700
hi CursorLine ctermbg=236 guibg=#303030
hi CursorColumn ctermbg=236 guibg=#303030
hi MatchParen ctermfg=157 ctermbg=237 cterm=bold guifg=#afffaf guibg=#3a3a3a
hi Pmenu ctermfg=255 ctermbg=236 guifg=#eeeeee guibg=#303030
hi PmenuSel ctermfg=0 ctermbg=74 guifg=#000000 guibg=#5fafd7
hi PmenuSbar ctermbg=243 guibg=#767676
hi PmenuThumb ctermbg=252 guibg=#d0d0d0
hi WildMenu ctermfg=255 ctermbg=33 guifg=#eeeeee guibg=#0087ff
endif
" Syntax highlighting
hi Comment ctermfg=244 guifg=#808080
hi Constant ctermfg=220 cterm=bold guifg=#ffd700
hi String ctermfg=107 ctermbg=233 guifg=#87af5f guibg=#121212
hi Character ctermfg=228 ctermbg=16 guifg=#ffff87 guibg=#000000
hi Number ctermfg=214 guifg=#ffaf00
hi Boolean ctermfg=148 guifg=#afd700
hi Identifier ctermfg=149 guifg=#afd75f
hi Function ctermfg=231 guifg=#ffffff
hi Statement ctermfg=103 guifg=#8787af
hi Conditional ctermfg=105 guifg=#8787ff
hi Repeat ctermfg=105 guifg=#8787ff
hi Label ctermfg=105 guifg=#8787ff
hi Operator ctermfg=243 guifg=#767676
hi Keyword ctermfg=190 guifg=#d7ff00
hi Exception ctermfg=166 ctermbg=0 guifg=#d75f00 guibg=#000000
hi PreProc ctermfg=229 guifg=#ffffaf
hi Type ctermfg=111 guifg=#87afff
hi Structure ctermfg=111 ctermbg=233 guifg=#87afff guibg=#121212
hi Special ctermfg=220 guifg=#ffd700
hi SpecialComment ctermfg=228 ctermbg=16 guifg=#ffff87 guibg=#000000
hi Error ctermfg=196 ctermbg=52 guifg=#ff0000 guibg=#5f0000
hi Todo ctermfg=46 ctermbg=22 guifg=#00ff00 guibg=#005f00
" Diff
hi diffAdd ctermfg=bg ctermbg=151 guifg=#afd787
hi diffDelete ctermfg=bg ctermbg=246 guifg=#d78787
hi diffChange ctermfg=bg ctermbg=181 guifg=#000000 guibg=#afd7af
hi diffText ctermfg=bg ctermbg=174 cterm=bold guifg=#000000 guibg=#949494
" Ruby
hi rubyBlockParameter ctermfg=27 guifg=#005fff
hi rubyClass ctermfg=75 guifg=#5fafff
hi rubyConstant ctermfg=167 guifg=#d75f5f
hi rubyInterpolation ctermfg=107 guifg=#87af5f
hi rubyLocalVariableOrMethod ctermfg=189 guifg=#d7d7ff
hi rubyPredefinedConstant ctermfg=167 guifg=#d75f5f
hi rubyPseudoVariable ctermfg=221 guifg=#ffd75f
hi rubyStringDelimiter ctermfg=143 guifg=#afaf5f
" git gutter
hi GitGutterAdd ctermbg=232 ctermfg=2 guifg=#009900
hi GitGutterChange ctermbg=232 ctermfg=3 guifg=#bbbb00
hi GitGutterDelete ctermbg=232 ctermfg=1 guifg=#ff2222
hi GitGutterChangeDelete ctermbg=232 ctermfg=3 guifg=#bbbb00
hi link GitGutterChangeDelete GitGutterChange

View File

@@ -1,163 +0,0 @@
" Vim color file
" Name: gentooish.vim
" Author: Brian Carper<brian@briancarper.net>
" Version: 0.3
set background=dark
hi clear
if exists("syntax_on")
syntax reset
endif
if has('gui_running')
hi Normal gui=NONE guifg=#cccccc guibg=#191919
hi IncSearch gui=NONE guifg=#000000 guibg=#8bff95
hi Search gui=NONE guifg=#cccccc guibg=#863132
hi ErrorMsg gui=NONE guifg=#cccccc guibg=#863132
hi WarningMsg gui=NONE guifg=#cccccc guibg=#863132
hi ModeMsg gui=NONE guifg=#cccccc guibg=NONE
hi MoreMsg gui=NONE guifg=#cccccc guibg=NONE
hi Question gui=NONE guifg=#cccccc guibg=NONE
hi StatusLine gui=BOLD guifg=#cccccc guibg=#333333
hi User1 gui=BOLD guifg=#999999 guibg=#333333
hi User2 gui=BOLD guifg=#8bff95 guibg=#333333
hi StatusLineNC gui=NONE guifg=#999999 guibg=#333333
hi VertSplit gui=NONE guifg=#cccccc guibg=#333333
hi WildMenu gui=BOLD guifg=#cf7dff guibg=#1F0F29
hi DiffText gui=NONE guifg=#000000 guibg=#4cd169
hi DiffChange gui=NONE guifg=NONE guibg=#541691
hi DiffDelete gui=NONE guifg=#cccccc guibg=#863132
hi DiffAdd gui=NONE guifg=#cccccc guibg=#306d30
hi Cursor gui=NONE guifg=#000000 guibg=#8bff95
hi Folded gui=NONE guifg=#aaa400 guibg=#000000
hi FoldColumn gui=NONE guifg=#cccccc guibg=#000000
hi Directory gui=NONE guifg=#8bff95 guibg=NONE
hi LineNr gui=NONE guifg=#bbbbbb guibg=#222222
hi NonText gui=NONE guifg=#555555 guibg=NONE
hi SpecialKey gui=NONE guifg=#6f6f2f guibg=NONE
hi Title gui=NONE guifg=#9a383a guibg=NONE
hi Visual gui=NONE guifg=#cccccc guibg=#1d474f
hi Comment gui=NONE guifg=#666666 guibg=NONE
hi Constant gui=NONE guifg=#b8bb00 guibg=NONE
hi Boolean gui=NONE guifg=#00ff00 guibg=NONE
hi String gui=NONE guifg=#5dff9e guibg=#0f291a
hi Error gui=NONE guifg=#990000 guibg=#000000
hi Identifier gui=NONE guifg=#4cbbd1 guibg=NONE
hi Ignore gui=NONE guifg=#555555
hi Number gui=NONE guifg=#ddaa66 guibg=NONE
hi PreProc gui=NONE guifg=#9a383a guibg=NONE
hi Special gui=NONE guifg=#ffcd8b guibg=NONE
hi Statement gui=NONE guifg=#4cd169 guibg=NONE
hi Todo gui=NONE guifg=#cccccc guibg=#863132
hi Type gui=NONE guifg=#c476f1 guibg=NONE
hi Underlined gui=UNDERLINE guifg=#cccccc guibg=NONE
hi Visual gui=NONE guifg=#ffffff guibg=#6e4287
hi VisualNOS gui=NONE guifg=#cccccc guibg=#000000
hi CursorLine gui=NONE guifg=NONE guibg=#222222
hi CursorColumn gui=NONE guifg=NONE guibg=#222222
hi lispList gui=NONE guifg=#555555
if v:version >= 700
hi Pmenu gui=NONE guifg=#cccccc guibg=#222222
hi PMenuSel gui=BOLD guifg=#c476f1 guibg=#000000
hi PmenuSbar gui=NONE guifg=#cccccc guibg=#000000
hi PmenuThumb gui=NONE guifg=#cccccc guibg=#333333
hi SpellBad gui=undercurl guisp=#cc6666
hi SpellRare gui=undercurl guisp=#cc66cc
hi SpellLocal gui=undercurl guisp=#cccc66
hi SpellCap gui=undercurl guisp=#66cccc
hi MatchParen gui=NONE guifg=#ffffff guibg=#005500
endif
else
" Dumped via CSApprox, then edited slightly
" (http://www.vim.org/scripts/script.php?script_id=2390)
hi SpecialKey term=bold ctermfg=58
hi NonText term=bold ctermfg=240
hi Directory term=bold ctermfg=120
hi ErrorMsg term=standout ctermfg=252 ctermbg=95
hi IncSearch term=reverse ctermfg=16 ctermbg=120
hi Search term=reverse ctermfg=252 ctermbg=95
hi MoreMsg term=bold ctermfg=252
hi ModeMsg term=bold ctermfg=252
hi LineNr term=underline ctermfg=250 ctermbg=235
hi Question term=standout ctermfg=252
hi StatusLine term=bold,reverse cterm=bold ctermfg=252 ctermbg=236
hi StatusLineNC term=reverse cterm=bold ctermfg=240 ctermbg=236
hi VertSplit term=reverse ctermfg=252 ctermbg=236
hi Title term=bold ctermfg=95
hi Visual term=reverse ctermfg=231 ctermbg=60
hi VisualNOS term=bold,underline ctermfg=252 ctermbg=16
hi WarningMsg term=standout ctermfg=252 ctermbg=95
hi WildMenu term=standout cterm=bold ctermfg=177 ctermbg=16
hi Folded term=standout ctermfg=142 ctermbg=16
hi FoldColumn term=standout ctermfg=252 ctermbg=16
hi DiffAdd term=bold ctermfg=252 ctermbg=59
hi DiffChange term=bold ctermbg=54
hi DiffDelete term=bold ctermfg=252 ctermbg=95
hi DiffText term=reverse ctermfg=16 ctermbg=77
hi SignColumn term=standout ctermfg=51 ctermbg=250
hi TabLine term=underline cterm=underline ctermbg=248
hi TabLineSel term=bold cterm=bold
hi TabLineFill term=reverse ctermfg=234 ctermbg=252
hi CursorColumn term=reverse ctermbg=235
hi CursorLine term=underline ctermbg=235
hi Cursor ctermfg=16 ctermbg=120
hi lCursor ctermfg=234 ctermbg=252
hi Normal ctermfg=252 ctermbg=234
hi Comment term=bold ctermfg=241
hi Constant term=underline ctermfg=142
hi Special term=bold ctermfg=222
hi Identifier term=underline ctermfg=74
hi Statement term=bold ctermfg=77
hi PreProc term=underline ctermfg=95
hi Type term=underline ctermfg=177
hi Underlined term=underline cterm=underline ctermfg=252
hi Ignore ctermfg=240
hi Error term=reverse ctermfg=88 ctermbg=16
hi Todo term=standout ctermfg=252 ctermbg=95
hi String ctermfg=85 ctermbg=16
hi Number ctermfg=179
hi Boolean ctermfg=46
hi Special term=bold ctermfg=222
hi Identifier term=underline ctermfg=74
hi Statement term=bold ctermfg=77
hi PreProc term=underline ctermfg=95
hi Type term=underline ctermfg=177
hi Underlined term=underline cterm=underline ctermfg=252
hi Ignore ctermfg=240
hi Error term=reverse ctermfg=88 ctermbg=16
hi Todo term=standout ctermfg=252 ctermbg=95
hi String ctermfg=85 ctermbg=16
hi Number ctermfg=179
hi Boolean ctermfg=46
hi User1 cterm=bold ctermfg=246 ctermbg=236
hi User2 cterm=bold ctermfg=120 ctermbg=236
if v:version >= 700
hi SpellBad term=reverse cterm=undercurl ctermfg=167
hi SpellCap term=reverse cterm=undercurl ctermfg=80
hi SpellRare term=reverse cterm=undercurl ctermfg=170
hi SpellLocal term=underline cterm=undercurl ctermfg=185
hi Pmenu ctermfg=252 ctermbg=235
hi PmenuSel cterm=bold ctermfg=177 ctermbg=16
hi PmenuSbar ctermfg=252 ctermbg=16
hi PmenuThumb ctermfg=252 ctermbg=236
hi MatchParen term=reverse ctermfg=231 ctermbg=22
endif
endif

View File

@@ -1,72 +0,0 @@
" Vim color file
" Name: greenvision.vim
" Maintainer: Paul B. Mahol <onemda@No-NoSpaMgmail.com>
" Last Change: 6.6.2008
" License: Vim License
" Revision: 29
if !has("gui_running") && &t_Co != 256 && &t_Co != 88
echomsg ""
echomsg "err: please use GUI or a 256-color terminal or 88-color terminal"
echomsg ""
finish
endif
if &background == "light"
set background=dark
endif
hi clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name = 'greenvision'
hi Comment guifg=#008220 guibg=#000000 gui=none ctermfg=034 ctermbg=000 cterm=none
hi Constant guifg=#1fc700 guibg=#001c00 gui=none ctermfg=041 ctermbg=000 cterm=none
hi Cursor guifg=#00ff00 gui=bold,reverse ctermfg=010 ctermbg=000 cterm=bold,reverse
hi CursorColumn guifg=#000000 guibg=#00cc00 gui=none ctermfg=000 ctermbg=002 cterm=none
hi CursorIM guifg=#00ff00 guibg=#000000 gui=bold ctermfg=046 ctermbg=000 cterm=bold
hi CursorLine guifg=#000000 guibg=#00cc00 gui=none ctermfg=000 ctermbg=002 cterm=none
hi DiffAdd guifg=#00bf00 guibg=#002200 gui=none ctermfg=034 ctermbg=000 cterm=none
hi DiffChange guifg=#00a900 guibg=#002200 gui=none ctermfg=040 ctermbg=000 cterm=none
hi DiffDelete guifg=#000000 guibg=#005500 gui=none ctermfg=002 ctermbg=000 cterm=none
hi DiffText guifg=#00aa00 guibg=#004400 gui=underline ctermfg=028 ctermbg=000 cterm=none
hi Directory guifg=#009330 guibg=#000000 gui=none ctermfg=022 ctermbg=000 cterm=none
hi Error guifg=#000000 guibg=#00d000 gui=none ctermfg=000 ctermbg=010 cterm=none
hi ErrorMsg guifg=#000000 guibg=#00ff00 gui=bold ctermfg=000 ctermbg=010 cterm=none
hi FoldColumn guifg=#00b900 guibg=#000300 gui=none ctermfg=046 ctermbg=016 cterm=none
hi Folded guifg=#00bf00 guibg=#001200 gui=none ctermfg=010 ctermbg=022 cterm=none
hi Identifier guifg=#50d930 guibg=#000000 gui=none ctermfg=028 ctermbg=000 cterm=none
hi IncSearch gui=reverse cterm=reverse
hi LineNr guifg=#007900 guibg=#000600 gui=none ctermfg=034 ctermbg=016 cterm=none
hi MatchParen guifg=#304300 guibg=#00fe00 gui=none ctermfg=010 ctermbg=022 cterm=bold
hi ModeMsg guifg=#00ea00 guibg=#000900 gui=none ctermfg=002 ctermbg=000 cterm=none
hi MoreMsg guifg=#00e700 guibg=#001000 gui=bold ctermfg=002 ctermbg=000 cterm=bold
hi NonText guifg=#008700 guibg=#001000 gui=none ctermfg=022 ctermbg=000 cterm=none
hi Normal guifg=#00a900 guibg=#000000 gui=none ctermfg=002 ctermbg=000 cterm=none
hi Pmenu guifg=#00bf00 guibg=#000a00 gui=none ctermfg=002 ctermbg=000 cterm=none
hi PmenuSbar guifg=#00dc00 guibg=#001c00 gui=none ctermfg=034 ctermbg=022 cterm=none
hi PmenuSel guifg=#00f300 guibg=#002200 gui=none ctermfg=010 ctermbg=022 cterm=none
hi PreProc guifg=#00ac5c guibg=#000000 gui=none ctermfg=047 ctermbg=000 cterm=none
hi Question guifg=#009f00 guibg=#000000 gui=none ctermfg=040 ctermbg=000 cterm=none
hi Search gui=reverse cterm=reverse
hi Special guifg=#00d700 guibg=#001200 gui=none ctermfg=002 ctermbg=000 cterm=none
hi SpecialKey guifg=#008000 guibg=#002300 gui=bold ctermfg=034 ctermbg=000 cterm=bold
hi Statement guifg=#2fc626 guibg=#000000 gui=none ctermfg=010 ctermbg=000 cterm=none
hi StatusLine guifg=#00ff00 guibg=#001000 gui=none ctermfg=047 ctermbg=022 cterm=bold
hi StatusLineNC guifg=#005500 guibg=#001000 gui=none ctermfg=034 ctermbg=022 cterm=none
hi TabLine guifg=#00f400 guibg=#000a00 gui=none ctermfg=040 ctermbg=000 cterm=none
hi TabLineFill guifg=#00ea00 guibg=#000000 gui=none ctermfg=000 ctermbg=000 cterm=none
hi TabLineSel guifg=#00f000 guibg=#002a00 gui=none ctermfg=046 ctermbg=022 cterm=bold
hi Title guifg=#09ab00 guibg=#000000 gui=bold ctermfg=010 ctermbg=000 cterm=bold
hi Todo guifg=#000000 guibg=#00ed00 gui=none ctermfg=000 ctermbg=002 cterm=none
hi Type guifg=#1fb631 guibg=#000000 gui=none ctermfg=046 ctermbg=000 cterm=none
hi Underlined guifg=#00b400 guibg=#000000 gui=underline ctermfg=002 ctermbg=000 cterm=underline
hi VertSplit guifg=#000600 guibg=#001f00 gui=none ctermfg=022 ctermbg=022 cterm=none
hi Visual guibg=#001500 gui=reverse ctermbg=000 cterm=reverse
hi VisualNOS guibg=#002700 gui=reverse ctermbg=022 cterm=reverse
hi WarningMsg guifg=#000000 guibg=#00ff00 gui=none ctermfg=010 ctermbg=000 cterm=none
hi WildMenu guifg=#00cb00 guibg=#000000 gui=reverse ctermfg=000 ctermbg=010 cterm=reverse

View File

@@ -1,363 +0,0 @@
" Heroku Colorscheme
"
" - iTerm2 only
" - Depends on heroku colorscheme for iTerm2
" - It's for terminal vim only;
" - Hex color conversion functions borrowed from the theme 'Desert256'"
let s:background = "1b1b24"
let s:foreground = "8584ae"
let s:selection = "ffffff"
let s:line = "262633"
let s:comment = "62548b"
let s:red = "c13333"
let s:orange = "ffa500"
let s:yellow = "ffea00"
let s:green = "6dba09"
let s:aqua = "b4f5fe"
let s:blue = "09afed"
let s:purple = "a292ff"
let s:window = "17171d"
set background=dark
hi clear
hi clear SpellCap
hi clear SpellBad
hi SpellBad cterm=underline
syntax reset
let g:colors_name = "heroku-terminal"
if &t_Co == 88 || &t_Co == 256
" Returns an approximate grey index for the given grey level
fun <SID>grey_number(x)
if &t_Co == 88
if a:x < 23
return 0
elseif a:x < 69
return 1
elseif a:x < 103
return 2
elseif a:x < 127
return 3
elseif a:x < 150
return 4
elseif a:x < 173
return 5
elseif a:x < 196
return 6
elseif a:x < 219
return 7
elseif a:x < 243
return 8
else
return 9
endif
else
if a:x < 14
return 0
else
let l:n = (a:x - 8) / 10
let l:m = (a:x - 8) % 10
if l:m < 5
return l:n
else
return l:n + 1
endif
endif
endif
endfun
" Returns the actual grey level represented by the grey index
fun <SID>grey_level(n)
if &t_Co == 88
if a:n == 0
return 0
elseif a:n == 1
return 46
elseif a:n == 2
return 92
elseif a:n == 3
return 115
elseif a:n == 4
return 139
elseif a:n == 5
return 162
elseif a:n == 6
return 185
elseif a:n == 7
return 208
elseif a:n == 8
return 231
else
return 255
endif
else
if a:n == 0
return 0
else
return 8 + (a:n * 10)
endif
endif
endfun
" Returns the palette index for the given grey index
fun <SID>grey_colour(n)
if &t_Co == 88
if a:n == 0
return 16
elseif a:n == 9
return 79
else
return 79 + a:n
endif
else
if a:n == 0
return 16
elseif a:n == 25
return 231
else
return 231 + a:n
endif
endif
endfun
" Returns an approximate colour index for the given colour level
fun <SID>rgb_number(x)
if &t_Co == 88
if a:x < 69
return 0
elseif a:x < 172
return 1
elseif a:x < 230
return 2
else
return 3
endif
else
if a:x < 75
return 0
else
let l:n = (a:x - 55) / 40
let l:m = (a:x - 55) % 40
if l:m < 20
return l:n
else
return l:n + 1
endif
endif
endif
endfun
" Returns the actual colour level for the given colour index
fun <SID>rgb_level(n)
if &t_Co == 88
if a:n == 0
return 0
elseif a:n == 1
return 139
elseif a:n == 2
return 205
else
return 255
endif
else
if a:n == 0
return 0
else
return 55 + (a:n * 40)
endif
endif
endfun
" Returns the palette index for the given R/G/B colour indices
fun <SID>rgb_colour(x, y, z)
if &t_Co == 88
return 16 + (a:x * 16) + (a:y * 4) + a:z
else
return 16 + (a:x * 36) + (a:y * 6) + a:z
endif
endfun
" Returns the palette index to approximate the given R/G/B colour levels
fun <SID>colour(r, g, b)
" Get the closest grey
let l:gx = <SID>grey_number(a:r)
let l:gy = <SID>grey_number(a:g)
let l:gz = <SID>grey_number(a:b)
" Get the closest colour
let l:x = <SID>rgb_number(a:r)
let l:y = <SID>rgb_number(a:g)
let l:z = <SID>rgb_number(a:b)
if l:gx == l:gy && l:gy == l:gz
" There are two possibilities
let l:dgr = <SID>grey_level(l:gx) - a:r
let l:dgg = <SID>grey_level(l:gy) - a:g
let l:dgb = <SID>grey_level(l:gz) - a:b
let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb)
let l:dr = <SID>rgb_level(l:gx) - a:r
let l:dg = <SID>rgb_level(l:gy) - a:g
let l:db = <SID>rgb_level(l:gz) - a:b
let l:drgb = (l:dr * l:dr) + (l:dg * l:dg) + (l:db * l:db)
if l:dgrey < l:drgb
" Use the grey
return <SID>grey_colour(l:gx)
else
" Use the colour
return <SID>rgb_colour(l:x, l:y, l:z)
endif
else
" Only one possibility
return <SID>rgb_colour(l:x, l:y, l:z)
endif
endfun
" Returns the palette index to approximate the 'rrggbb' hex string
fun <SID>rgb(rgb)
let l:r = ("0x" . strpart(a:rgb, 0, 2)) + 0
let l:g = ("0x" . strpart(a:rgb, 2, 2)) + 0
let l:b = ("0x" . strpart(a:rgb, 4, 2)) + 0
return <SID>colour(l:r, l:g, l:b)
endfun
" Sets the highlighting for the given group
fun <SID>X(group, fg, bg, attr)
if a:fg != ""
exec "hi " . a:group . " guifg=#" . a:fg . " ctermfg=" . <SID>rgb(a:fg)
endif
if a:bg != ""
exec "hi " . a:group . " guibg=#" . a:bg . " ctermbg=" . <SID>rgb(a:bg)
endif
if a:attr != ""
exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr
endif
endfun
" Vim Highlighting
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
call <SID>X("NonText", s:comment, "", "")
call <SID>X("SpecialKey", s:selection, "", "")
call <SID>X("Search", s:yellow, s:background, "")
call <SID>X("TabLine", s:foreground, s:background, "reverse")
call <SID>X("StatusLine", s:window, s:yellow, "reverse")
call <SID>X("StatusLineNC", s:window, s:foreground, "reverse")
call <SID>X("VertSplit", s:window, s:window, "none")
call <SID>X("Visual", "", s:selection, "")
call <SID>X("Directory", s:blue, "", "")
call <SID>X("ModeMsg", s:green, "", "")
call <SID>X("MoreMsg", s:green, "", "")
call <SID>X("Question", s:green, "", "")
call <SID>X("WarningMsg", s:red, "", "")
call <SID>X("MatchParen", s:selection, s:foreground, "")
call <SID>X("Folded", s:comment, s:background, "")
call <SID>X("FoldColumn", "", s:background, "")
if version >= 700
call <SID>X("CursorLine", "", s:line, "none")
call <SID>X("CursorColumn", "", s:line, "none")
call <SID>X("PMenu", s:foreground, s:selection, "none")
call <SID>X("PMenuSel", s:foreground, s:selection, "reverse")
end
if version >= 703
call <SID>X("ColorColumn", "", s:line, "none")
end
" Standard Highlighting
call <SID>X("Comment", s:comment, "", "")
call <SID>X("Todo", s:comment, s:foreground, "")
call <SID>X("Title", s:comment, "", "")
call <SID>X("Identifier", s:red, "", "none")
call <SID>X("Statement", s:foreground, "", "")
call <SID>X("Conditional", s:foreground, "", "")
call <SID>X("Repeat", s:foreground, "", "")
call <SID>X("Structure", s:purple, "", "")
call <SID>X("Function", s:blue, "", "")
call <SID>X("Constant", s:orange, "", "")
call <SID>X("String", s:green, "", "")
call <SID>X("Special", s:foreground, "", "")
call <SID>X("PreProc", s:purple, "", "")
call <SID>X("Operator", s:aqua, "", "none")
call <SID>X("Type", s:blue, "", "none")
call <SID>X("Define", s:purple, "", "none")
call <SID>X("Include", s:blue, "", "")
"call <SID>X("Ignore", "666666", "", "")
" Vim Highlighting
call <SID>X("vimCommand", s:red, "", "none")
" C Highlighting
call <SID>X("cType", s:yellow, "", "")
call <SID>X("cStorageClass", s:purple, "", "")
call <SID>X("cConditional", s:purple, "", "")
call <SID>X("cRepeat", s:purple, "", "")
" PHP Highlighting
call <SID>X("phpVarSelector", s:red, "", "")
call <SID>X("phpKeyword", s:purple, "", "")
call <SID>X("phpRepeat", s:purple, "", "")
call <SID>X("phpConditional", s:purple, "", "")
call <SID>X("phpStatement", s:purple, "", "")
call <SID>X("phpMemberSelector", s:foreground, "", "")
" Ruby Highlighting
call <SID>X("rubySymbol", s:green, "", "")
call <SID>X("rubyConstant", s:yellow, "", "")
call <SID>X("rubyAttribute", s:blue, "", "")
call <SID>X("rubyInclude", s:blue, "", "")
call <SID>X("rubyLocalVariableOrMethod", s:orange, "", "")
call <SID>X("rubyCurlyBlock", s:orange, "", "")
call <SID>X("rubyStringDelimiter", s:green, "", "")
call <SID>X("rubyInterpolationDelimiter", s:orange, "", "")
call <SID>X("rubyConditional", s:purple, "", "")
call <SID>X("rubyRepeat", s:purple, "", "")
" Python Highlighting
call <SID>X("pythonInclude", s:purple, "", "")
call <SID>X("pythonStatement", s:purple, "", "")
call <SID>X("pythonConditional", s:purple, "", "")
call <SID>X("pythonFunction", s:blue, "", "")
" JavaScript Highlighting
call <SID>X("javaScriptBraces", s:foreground, "", "")
call <SID>X("javaScriptFunction", s:purple, "", "")
call <SID>X("javaScriptConditional", s:purple, "", "")
call <SID>X("javaScriptRepeat", s:purple, "", "")
call <SID>X("javaScriptNumber", s:orange, "", "")
call <SID>X("javaScriptMember", s:orange, "", "")
" CoffeeScript Highlighting
call <SID>X("coffeeKeyword", s:orange, "", "")
call <SID>X("coffeeRepeat", s:orange, "", "")
call <SID>X("coffeeConditional", s:orange, "", "")
call <SID>X("coffeeParen", s:aqua, "", "")
call <SID>X("coffeeParens", s:blue, "", "")
call <SID>X("coffeeBracket", s:aqua, "", "")
call <SID>X("coffeeBrackets", s:blue, "", "")
call <SID>X("coffeeDotAccess", s:aqua, "", "")
call <SID>X("coffeeStatement", s:red, "", "")
" HTML Highlighting
call <SID>X("htmlTag", s:red, "", "")
call <SID>X("htmlTagName", s:red, "", "")
call <SID>X("htmlArg", s:red, "", "")
call <SID>X("htmlScriptTag", s:red, "", "")
" Diff Highlighting
call <SID>X("diffAdded", s:green, "", "")
call <SID>X("diffRemoved", s:red, "", "")
" Delete Functions
delf <SID>X
delf <SID>rgb
delf <SID>colour
delf <SID>rgb_colour
delf <SID>rgb_level
delf <SID>rgb_number
delf <SID>grey_colour
delf <SID>grey_level
delf <SID>grey_number
endif

View File

@@ -1,355 +0,0 @@
let s:foreground = "8584ae"
let s:background = "1b1b24"
let s:selection = "ffffff"
let s:line = "262633"
let s:comment = "62548b"
let s:red = "c13333"
let s:orange = "ffa500"
let s:yellow = "ffea00"
let s:green = "6dba09"
let s:aqua = "b4f5fe"
let s:blue = "09afed"
let s:purple = "a292ff"
let s:window = "17171d"
set background=dark
hi clear
hi clear SpellBad
syntax reset
let g:colors_name = "heroku"
if has("gui_running")
" Returns an approximate grey index for the given grey level
fun <SID>grey_number(x)
if &t_Co == 88
if a:x < 23
return 0
elseif a:x < 69
return 1
elseif a:x < 103
return 2
elseif a:x < 127
return 3
elseif a:x < 150
return 4
elseif a:x < 173
return 5
elseif a:x < 196
return 6
elseif a:x < 219
return 7
elseif a:x < 243
return 8
else
return 9
endif
else
if a:x < 14
return 0
else
let l:n = (a:x - 8) / 10
let l:m = (a:x - 8) % 10
if l:m < 5
return l:n
else
return l:n + 1
endif
endif
endif
endfun
" Returns the actual grey level represented by the grey index
fun <SID>grey_level(n)
if &t_Co == 88
if a:n == 0
return 0
elseif a:n == 1
return 46
elseif a:n == 2
return 92
elseif a:n == 3
return 115
elseif a:n == 4
return 139
elseif a:n == 5
return 162
elseif a:n == 6
return 185
elseif a:n == 7
return 208
elseif a:n == 8
return 231
else
return 255
endif
else
if a:n == 0
return 0
else
return 8 + (a:n * 10)
endif
endif
endfun
" Returns the palette index for the given grey index
fun <SID>grey_colour(n)
if &t_Co == 88
if a:n == 0
return 16
elseif a:n == 9
return 79
else
return 79 + a:n
endif
else
if a:n == 0
return 16
elseif a:n == 25
return 231
else
return 231 + a:n
endif
endif
endfun
" Returns an approximate colour index for the given colour level
fun <SID>rgb_number(x)
if &t_Co == 88
if a:x < 69
return 0
elseif a:x < 172
return 1
elseif a:x < 230
return 2
else
return 3
endif
else
if a:x < 75
return 0
else
let l:n = (a:x - 55) / 40
let l:m = (a:x - 55) % 40
if l:m < 20
return l:n
else
return l:n + 1
endif
endif
endif
endfun
" Returns the actual colour level for the given colour index
fun <SID>rgb_level(n)
if &t_Co == 88
if a:n == 0
return 0
elseif a:n == 1
return 139
elseif a:n == 2
return 205
else
return 255
endif
else
if a:n == 0
return 0
else
return 55 + (a:n * 40)
endif
endif
endfun
" Returns the palette index for the given R/G/B colour indices
fun <SID>rgb_colour(x, y, z)
if &t_Co == 88
return 16 + (a:x * 16) + (a:y * 4) + a:z
else
return 16 + (a:x * 36) + (a:y * 6) + a:z
endif
endfun
" Returns the palette index to approximate the given R/G/B colour levels
fun <SID>colour(r, g, b)
" Get the closest grey
let l:gx = <SID>grey_number(a:r)
let l:gy = <SID>grey_number(a:g)
let l:gz = <SID>grey_number(a:b)
" Get the closest colour
let l:x = <SID>rgb_number(a:r)
let l:y = <SID>rgb_number(a:g)
let l:z = <SID>rgb_number(a:b)
if l:gx == l:gy && l:gy == l:gz
" There are two possibilities
let l:dgr = <SID>grey_level(l:gx) - a:r
let l:dgg = <SID>grey_level(l:gy) - a:g
let l:dgb = <SID>grey_level(l:gz) - a:b
let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb)
let l:dr = <SID>rgb_level(l:gx) - a:r
let l:dg = <SID>rgb_level(l:gy) - a:g
let l:db = <SID>rgb_level(l:gz) - a:b
let l:drgb = (l:dr * l:dr) + (l:dg * l:dg) + (l:db * l:db)
if l:dgrey < l:drgb
" Use the grey
return <SID>grey_colour(l:gx)
else
" Use the colour
return <SID>rgb_colour(l:x, l:y, l:z)
endif
else
" Only one possibility
return <SID>rgb_colour(l:x, l:y, l:z)
endif
endfun
" Returns the palette index to approximate the 'rrggbb' hex string
fun <SID>rgb(rgb)
let l:r = ("0x" . strpart(a:rgb, 0, 2)) + 0
let l:g = ("0x" . strpart(a:rgb, 2, 2)) + 0
let l:b = ("0x" . strpart(a:rgb, 4, 2)) + 0
return <SID>colour(l:r, l:g, l:b)
endfun
" Sets the highlighting for the given group
fun <SID>X(group, fg, bg, attr)
if a:fg != ""
exec "hi " . a:group . " guifg=#" . a:fg . " ctermfg=" . <SID>rgb(a:fg)
endif
if a:bg != ""
exec "hi " . a:group . " guibg=#" . a:bg . " ctermbg=" . <SID>rgb(a:bg)
endif
if a:attr != ""
exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr
endif
endfun
" Vim Highlighting
call <SID>X("Normal", s:foreground, s:background, "")
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
call <SID>X("NonText", s:comment, "", "")
call <SID>X("SpecialKey", s:selection, "", "")
call <SID>X("Search", s:foreground, s:yellow, "")
call <SID>X("TabLine", s:foreground, s:background, "reverse")
call <SID>X("StatusLine", s:window, s:yellow, "reverse")
call <SID>X("StatusLineNC", s:window, s:foreground, "reverse")
call <SID>X("VertSplit", s:window, s:window, "none")
call <SID>X("Visual", "", s:selection, "")
call <SID>X("Directory", s:blue, "", "")
call <SID>X("ModeMsg", s:green, "", "")
call <SID>X("MoreMsg", s:green, "", "")
call <SID>X("Question", s:green, "", "")
call <SID>X("WarningMsg", s:red, "", "")
call <SID>X("MatchParen", "", s:selection, "")
call <SID>X("Folded", s:comment, s:background, "")
call <SID>X("FoldColumn", "", s:background, "")
if version >= 700
call <SID>X("CursorLine", "", s:line, "none")
call <SID>X("CursorColumn", "", s:line, "none")
call <SID>X("PMenu", s:foreground, s:selection, "none")
call <SID>X("PMenuSel", s:foreground, s:selection, "reverse")
end
if version >= 703
call <SID>X("ColorColumn", "", s:line, "none")
end
" Standard Highlighting
call <SID>X("Comment", s:comment, "", "")
call <SID>X("Todo", s:comment, s:background, "")
call <SID>X("Title", s:comment, "", "")
call <SID>X("Identifier", s:red, "", "none")
call <SID>X("Statement", s:foreground, "", "")
call <SID>X("Conditional", s:foreground, "", "")
call <SID>X("Repeat", s:foreground, "", "")
call <SID>X("Structure", s:purple, "", "")
call <SID>X("Function", s:blue, "", "")
call <SID>X("Constant", s:orange, "", "")
call <SID>X("String", s:green, "", "")
call <SID>X("Special", s:foreground, "", "")
call <SID>X("PreProc", s:purple, "", "")
call <SID>X("Operator", s:aqua, "", "none")
call <SID>X("Type", s:blue, "", "none")
call <SID>X("Define", s:purple, "", "none")
call <SID>X("Include", s:blue, "", "")
"call <SID>X("Ignore", "666666", "", "")
" Vim Highlighting
call <SID>X("vimCommand", s:red, "", "none")
" C Highlighting
call <SID>X("cType", s:yellow, "", "")
call <SID>X("cStorageClass", s:purple, "", "")
call <SID>X("cConditional", s:purple, "", "")
call <SID>X("cRepeat", s:purple, "", "")
" PHP Highlighting
call <SID>X("phpVarSelector", s:red, "", "")
call <SID>X("phpKeyword", s:purple, "", "")
call <SID>X("phpRepeat", s:purple, "", "")
call <SID>X("phpConditional", s:purple, "", "")
call <SID>X("phpStatement", s:purple, "", "")
call <SID>X("phpMemberSelector", s:foreground, "", "")
" Ruby Highlighting
call <SID>X("rubySymbol", s:green, "", "")
call <SID>X("rubyConstant", s:yellow, "", "")
call <SID>X("rubyAttribute", s:blue, "", "")
call <SID>X("rubyInclude", s:blue, "", "")
call <SID>X("rubyLocalVariableOrMethod", s:orange, "", "")
call <SID>X("rubyCurlyBlock", s:orange, "", "")
call <SID>X("rubyStringDelimiter", s:green, "", "")
call <SID>X("rubyInterpolationDelimiter", s:orange, "", "")
call <SID>X("rubyConditional", s:purple, "", "")
call <SID>X("rubyRepeat", s:purple, "", "")
" Python Highlighting
call <SID>X("pythonInclude", s:purple, "", "")
call <SID>X("pythonStatement", s:purple, "", "")
call <SID>X("pythonConditional", s:purple, "", "")
call <SID>X("pythonFunction", s:blue, "", "")
" JavaScript Highlighting
call <SID>X("javaScriptBraces", s:foreground, "", "")
call <SID>X("javaScriptFunction", s:purple, "", "")
call <SID>X("javaScriptConditional", s:purple, "", "")
call <SID>X("javaScriptRepeat", s:purple, "", "")
call <SID>X("javaScriptNumber", s:orange, "", "")
call <SID>X("javaScriptMember", s:orange, "", "")
" CoffeeScript Highlighting
call <SID>X("coffeeKeyword", s:orange, "", "")
call <SID>X("coffeeRepeat", s:orange, "", "")
call <SID>X("coffeeConditional", s:orange, "", "")
call <SID>X("coffeeParen", s:aqua, "", "")
call <SID>X("coffeeParens", s:blue, "", "")
call <SID>X("coffeeBracket", s:aqua, "", "")
call <SID>X("coffeeBrackets", s:blue, "", "")
call <SID>X("coffeeDotAccess", s:aqua, "", "")
call <SID>X("coffeeStatement", s:red, "", "")
" HTML Highlighting
call <SID>X("htmlTag", s:red, "", "")
call <SID>X("htmlTagName", s:red, "", "")
call <SID>X("htmlArg", s:red, "", "")
call <SID>X("htmlScriptTag", s:red, "", "")
" Diff Highlighting
call <SID>X("diffAdded", s:green, "", "")
call <SID>X("diffRemoved", s:red, "", "")
" Delete Functions
delf <SID>X
delf <SID>rgb
delf <SID>colour
delf <SID>rgb_colour
delf <SID>rgb_level
delf <SID>rgb_number
delf <SID>grey_colour
delf <SID>grey_level
delf <SID>grey_number
endif

View File

@@ -1,61 +0,0 @@
" Vim color file tailored legibility on black background.
" Add below line to your vimrc file to ensure optimal experience (sets term to use
" 256, instead of 16, colors):
" set t_Co=256
"
" Maintainer: John Rhee <jrhee75@gmail.com>
" Last Change: 2007/09/11 v0.2 Set PreProc (set variables) to white.
hi clear
set background=dark
if exists("syntax_on")
syntax reset
endif
let g:colors_name = "icansee"
"color settings for these terminal types:
"Black term=NONE cterm=NONE ctermfg=0 ctermbg=0
"DarkRed term=NONE cterm=NONE ctermfg=1 ctermbg=0
"DarkGreen term=NONE cterm=NONE ctermfg=2 ctermbg=0
"Brown term=NONE cterm=NONE ctermfg=3 ctermbg=0
"DarkBlue term=NONE cterm=NONE ctermfg=4 ctermbg=0
"DarkMagenta term=NONE cterm=NONE ctermfg=5 ctermbg=0
"DarkCyan term=NONE cterm=NONE ctermfg=6 ctermbg=0
"Gray term=NONE cterm=NONE ctermfg=7 ctermbg=0
"DarkGray term=NONE cterm=bold ctermfg=0 ctermbg=0
"Red term=NONE cterm=bold ctermfg=1 ctermbg=0
"Green term=NONE cterm=bold ctermfg=2 ctermbg=0
"Yellow term=NONE cterm=bold ctermfg=3 ctermbg=0
"Blue term=NONE cterm=bold ctermfg=4 ctermbg=0
"Magenta term=NONE cterm=bold ctermfg=5 ctermbg=0
"Cyan term=NONE cterm=bold ctermfg=6 ctermbg=0
"White term=NONE cterm=bold ctermfg=7 ctermbg=0
"hi Comment term=bold ctermfg=Blue guifg=Blue
hi Comment term=bold ctermfg=DarkGray guifg=DarkGray
hi Constant term=underline ctermfg=DarkGreen gui=NONE guifg=DarkGreen
hi Cursor guibg=fg guifg=Orchid
hi Directory term=bold ctermfg=Cyan guifg=Cyan
hi Error term=reverse ctermbg=Red ctermfg=White guibg=Red guifg=White
hi ErrorMsg term=standout ctermbg=DarkRed ctermfg=White guibg=Red guifg=White
hi Identifier term=underline ctermfg=Cyan guifg=Cyan
hi Ignore ctermfg=Black guifg=bg
hi IncSearch term=reverse cterm=reverse gui=reverse
hi LineNr term=underline ctermfg=DarkYellow guifg=Yellow
hi ModeMsg term=bold cterm=bold gui=bold
hi MoreMsg term=bold ctermfg=Green gui=bold guifg=SeaGreen
hi NonText term=bold ctermfg=DarkGreen gui=bold guifg=DarkGreen
hi Normal ctermbg=Black ctermfg=Gray guibg=Black guifg=Gray
hi PreProc term=underline ctermfg=White guifg=White
hi Question term=standout ctermfg=Green gui=bold guifg=Green
hi Search ctermbg=Magenta ctermfg=White guibg=Magenta guifg=White
hi Special term=bold ctermfg=Red guifg=Red
hi SpecialKey term=bold ctermfg=Green guifg=Green
hi Statement term=bold ctermfg=Yellow gui=NONE guifg=Yellow
hi StatusLine term=reverse,bold cterm=reverse gui=reverse
hi StatusLineNC term=reverse cterm=reverse gui=reverse
hi Title term=bold ctermfg=Magenta gui=bold guifg=Pink
hi Todo term=standout ctermbg=DarkYellow ctermfg=Black guibg=Yellow guifg=Black
hi Type ctermfg=Green gui=NONE guifg=Green
hi Visual term=reverse cterm=reverse guibg=DarkGreen guifg=White
hi WarningMsg term=standout ctermfg=Red guifg=Red

View File

@@ -1,569 +0,0 @@
" Vim color file
"
" " __ _ _ _ "
" " \ \ ___| | |_ _| |__ ___ __ _ _ __ ___ "
" " \ \/ _ \ | | | | | _ \ / _ \/ _ | _ \/ __| "
" " /\_/ / __/ | | |_| | |_| | __/ |_| | | | \__ \ "
" " \___/ \___|_|_|\__ |____/ \___|\____|_| |_|___/ "
" " \___/ "
"
" "A colorful, dark color scheme for Vim."
"
" File: jellybeans.vim
" URL: github.com/nanotech/jellybeans.vim
" Scripts URL: vim.org/scripts/script.php?script_id=2555
" Maintainer: NanoTech (nanotech.nanotechcorp.net)
" Version: 1.6~git
" Last Change: January 15th, 2012
" License: MIT
" Contributors: Daniel Herbert (pocketninja)
" Henry So, Jr. <henryso@panix.com>
" David Liang <bmdavll at gmail dot com>
" Rich Healey (richo)
" Andrew Wong (w0ng)
"
" Copyright (c) 2009-2012 NanoTech
"
" Permission is hereby granted, free of charge, to any per
" son obtaining a copy of this software and associated doc
" umentation files (the “Software”), to deal in the Soft
" ware without restriction, including without limitation
" the rights to use, copy, modify, merge, publish, distrib
" ute, sublicense, and/or sell copies of the Software, and
" to permit persons to whom the Software is furnished to do
" so, subject to the following conditions:
"
" The above copyright notice and this permission notice
" shall be included in all copies or substantial portions
" of the Software.
"
" THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY
" KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
" THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICU
" LAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
" AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CON
" TRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CON
" NECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
" THE SOFTWARE.
set background=dark
hi clear
if exists("syntax_on")
syntax reset
endif
let colors_name = "jellybeans"
if has("gui_running") || &t_Co == 88 || &t_Co == 256
let s:low_color = 0
else
let s:low_color = 1
endif
" Color approximation functions by Henry So, Jr. and David Liang {{{
" Added to jellybeans.vim by Daniel Herbert
" returns an approximate grey index for the given grey level
fun! s:grey_number(x)
if &t_Co == 88
if a:x < 23
return 0
elseif a:x < 69
return 1
elseif a:x < 103
return 2
elseif a:x < 127
return 3
elseif a:x < 150
return 4
elseif a:x < 173
return 5
elseif a:x < 196
return 6
elseif a:x < 219
return 7
elseif a:x < 243
return 8
else
return 9
endif
else
if a:x < 14
return 0
else
let l:n = (a:x - 8) / 10
let l:m = (a:x - 8) % 10
if l:m < 5
return l:n
else
return l:n + 1
endif
endif
endif
endfun
" returns the actual grey level represented by the grey index
fun! s:grey_level(n)
if &t_Co == 88
if a:n == 0
return 0
elseif a:n == 1
return 46
elseif a:n == 2
return 92
elseif a:n == 3
return 115
elseif a:n == 4
return 139
elseif a:n == 5
return 162
elseif a:n == 6
return 185
elseif a:n == 7
return 208
elseif a:n == 8
return 231
else
return 255
endif
else
if a:n == 0
return 0
else
return 8 + (a:n * 10)
endif
endif
endfun
" returns the palette index for the given grey index
fun! s:grey_color(n)
if &t_Co == 88
if a:n == 0
return 16
elseif a:n == 9
return 79
else
return 79 + a:n
endif
else
if a:n == 0
return 16
elseif a:n == 25
return 231
else
return 231 + a:n
endif
endif
endfun
" returns an approximate color index for the given color level
fun! s:rgb_number(x)
if &t_Co == 88
if a:x < 69
return 0
elseif a:x < 172
return 1
elseif a:x < 230
return 2
else
return 3
endif
else
if a:x < 75
return 0
else
let l:n = (a:x - 55) / 40
let l:m = (a:x - 55) % 40
if l:m < 20
return l:n
else
return l:n + 1
endif
endif
endif
endfun
" returns the actual color level for the given color index
fun! s:rgb_level(n)
if &t_Co == 88
if a:n == 0
return 0
elseif a:n == 1
return 139
elseif a:n == 2
return 205
else
return 255
endif
else
if a:n == 0
return 0
else
return 55 + (a:n * 40)
endif
endif
endfun
" returns the palette index for the given R/G/B color indices
fun! s:rgb_color(x, y, z)
if &t_Co == 88
return 16 + (a:x * 16) + (a:y * 4) + a:z
else
return 16 + (a:x * 36) + (a:y * 6) + a:z
endif
endfun
" returns the palette index to approximate the given R/G/B color levels
fun! s:color(r, g, b)
" get the closest grey
let l:gx = s:grey_number(a:r)
let l:gy = s:grey_number(a:g)
let l:gz = s:grey_number(a:b)
" get the closest color
let l:x = s:rgb_number(a:r)
let l:y = s:rgb_number(a:g)
let l:z = s:rgb_number(a:b)
if l:gx == l:gy && l:gy == l:gz
" there are two possibilities
let l:dgr = s:grey_level(l:gx) - a:r
let l:dgg = s:grey_level(l:gy) - a:g
let l:dgb = s:grey_level(l:gz) - a:b
let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb)
let l:dr = s:rgb_level(l:gx) - a:r
let l:dg = s:rgb_level(l:gy) - a:g
let l:db = s:rgb_level(l:gz) - a:b
let l:drgb = (l:dr * l:dr) + (l:dg * l:dg) + (l:db * l:db)
if l:dgrey < l:drgb
" use the grey
return s:grey_color(l:gx)
else
" use the color
return s:rgb_color(l:x, l:y, l:z)
endif
else
" only one possibility
return s:rgb_color(l:x, l:y, l:z)
endif
endfun
" returns the palette index to approximate the 'rrggbb' hex string
fun! s:rgb(rgb)
let l:r = ("0x" . strpart(a:rgb, 0, 2)) + 0
let l:g = ("0x" . strpart(a:rgb, 2, 2)) + 0
let l:b = ("0x" . strpart(a:rgb, 4, 2)) + 0
return s:color(l:r, l:g, l:b)
endfun
" sets the highlighting for the given group
fun! s:X(group, fg, bg, attr, lcfg, lcbg)
if s:low_color
let l:fge = empty(a:lcfg)
let l:bge = empty(a:lcbg)
if !l:fge && !l:bge
exec "hi ".a:group." ctermfg=".a:lcfg." ctermbg=".a:lcbg
elseif !l:fge && l:bge
exec "hi ".a:group." ctermfg=".a:lcfg." ctermbg=NONE"
elseif l:fge && !l:bge
exec "hi ".a:group." ctermfg=NONE ctermbg=".a:lcbg
endif
else
let l:fge = empty(a:fg)
let l:bge = empty(a:bg)
if !l:fge && !l:bge
exec "hi ".a:group." guifg=#".a:fg." guibg=#".a:bg." ctermfg=".s:rgb(a:fg)." ctermbg=".s:rgb(a:bg)
elseif !l:fge && l:bge
exec "hi ".a:group." guifg=#".a:fg." guibg=NONE ctermfg=".s:rgb(a:fg)." ctermbg=NONE"
elseif l:fge && !l:bge
exec "hi ".a:group." guifg=NONE guibg=#".a:bg." ctermfg=NONE ctermbg=".s:rgb(a:bg)
endif
endif
if a:attr == ""
exec "hi ".a:group." gui=none cterm=none"
else
let l:noitalic = join(filter(split(a:attr, ","), "v:val !=? 'italic'"), ",")
if empty(l:noitalic)
let l:noitalic = "none"
endif
exec "hi ".a:group." gui=".a:attr." cterm=".l:noitalic
endif
endfun
" }}}
if !exists("g:jellybeans_background_color")
let g:jellybeans_background_color = "151515"
end
call s:X("Normal","e8e8d3",g:jellybeans_background_color,"","White","")
set background=dark
if !exists("g:jellybeans_use_lowcolor_black") || g:jellybeans_use_lowcolor_black
let s:termBlack = "Black"
else
let s:termBlack = "Grey"
endif
if version >= 700
call s:X("CursorLine","","1c1c1c","","",s:termBlack)
call s:X("CursorColumn","","1c1c1c","","",s:termBlack)
call s:X("MatchParen","ffffff","556779","bold","","DarkCyan")
call s:X("TabLine","000000","b0b8c0","italic","",s:termBlack)
call s:X("TabLineFill","9098a0","","","",s:termBlack)
call s:X("TabLineSel","000000","f0f0f0","italic,bold",s:termBlack,"White")
" Auto-completion
call s:X("Pmenu","ffffff","606060","","White",s:termBlack)
call s:X("PmenuSel","101010","eeeeee","",s:termBlack,"White")
endif
call s:X("Visual","","404040","","",s:termBlack)
call s:X("Cursor",g:jellybeans_background_color,"b0d0f0","","","")
call s:X("LineNr","605958",g:jellybeans_background_color,"none",s:termBlack,"")
call s:X("CursorLineNr","ccc5c4","","none","White","")
call s:X("Comment","888888","","italic","Grey","")
call s:X("Todo","c7c7c7","","bold","White",s:termBlack)
call s:X("StatusLine","000000","dddddd","italic","","White")
call s:X("StatusLineNC","ffffff","403c41","italic","White","Black")
call s:X("VertSplit","777777","403c41","",s:termBlack,s:termBlack)
call s:X("WildMenu","f0a0c0","302028","","Magenta","")
call s:X("Folded","a0a8b0","384048","italic",s:termBlack,"")
call s:X("FoldColumn","535D66","1f1f1f","","",s:termBlack)
call s:X("SignColumn","777777","333333","","",s:termBlack)
call s:X("ColorColumn","","000000","","",s:termBlack)
call s:X("Title","70b950","","bold","Green","")
call s:X("Constant","cf6a4c","","","Red","")
call s:X("Special","799d6a","","","Green","")
call s:X("Delimiter","668799","","","Grey","")
call s:X("String","99ad6a","","","Green","")
call s:X("StringDelimiter","556633","","","DarkGreen","")
call s:X("Identifier","c6b6ee","","","LightCyan","")
call s:X("Structure","8fbfdc","","","LightCyan","")
call s:X("Function","fad07a","","","Yellow","")
call s:X("Statement","8197bf","","","DarkBlue","")
call s:X("PreProc","8fbfdc","","","LightBlue","")
hi! link Operator Structure
call s:X("Type","ffb964","","","Yellow","")
call s:X("NonText","606060",g:jellybeans_background_color,"",s:termBlack,"")
call s:X("SpecialKey","444444","1c1c1c","",s:termBlack,"")
call s:X("Search","f0a0c0","302028","underline","Magenta","")
call s:X("Directory","dad085","","","Yellow","")
call s:X("ErrorMsg","","902020","","","DarkRed")
hi! link Error ErrorMsg
hi! link MoreMsg Special
call s:X("Question","65C254","","","Green","")
" Spell Checking
call s:X("SpellBad","","902020","underline","","DarkRed")
call s:X("SpellCap","","0000df","underline","","Blue")
call s:X("SpellRare","","540063","underline","","DarkMagenta")
call s:X("SpellLocal","","2D7067","underline","","Green")
" Diff
hi! link diffRemoved Constant
hi! link diffAdded String
" VimDiff
call s:X("DiffAdd","D2EBBE","437019","","White","DarkGreen")
call s:X("DiffDelete","40000A","700009","","DarkRed","DarkRed")
call s:X("DiffChange","","2B5B77","","White","DarkBlue")
call s:X("DiffText","8fbfdc","000000","reverse","Yellow","")
" PHP
hi! link phpFunctions Function
call s:X("StorageClass","c59f6f","","","Red","")
hi! link phpSuperglobal Identifier
hi! link phpQuoteSingle StringDelimiter
hi! link phpQuoteDouble StringDelimiter
hi! link phpBoolean Constant
hi! link phpNull Constant
hi! link phpArrayPair Operator
hi! link phpOperator Normal
hi! link phpRelation Normal
hi! link phpVarSelector Identifier
" Python
hi! link pythonOperator Statement
" Ruby
hi! link rubySharpBang Comment
call s:X("rubyClass","447799","","","DarkBlue","")
call s:X("rubyIdentifier","c6b6fe","","","Cyan","")
hi! link rubyConstant Type
hi! link rubyFunction Function
call s:X("rubyInstanceVariable","c6b6fe","","","Cyan","")
call s:X("rubySymbol","7697d6","","","Blue","")
hi! link rubyGlobalVariable rubyInstanceVariable
hi! link rubyModule rubyClass
call s:X("rubyControl","7597c6","","","Blue","")
hi! link rubyString String
hi! link rubyStringDelimiter StringDelimiter
hi! link rubyInterpolationDelimiter Identifier
call s:X("rubyRegexpDelimiter","540063","","","Magenta","")
call s:X("rubyRegexp","dd0093","","","DarkMagenta","")
call s:X("rubyRegexpSpecial","a40073","","","Magenta","")
call s:X("rubyPredefinedIdentifier","de5577","","","Red","")
" Erlang
hi! link erlangAtom rubySymbol
hi! link erlangBIF rubyPredefinedIdentifier
hi! link erlangFunction rubyPredefinedIdentifier
hi! link erlangDirective Statement
hi! link erlangNode Identifier
" JavaScript
hi! link javaScriptValue Constant
hi! link javaScriptRegexpString rubyRegexp
" CoffeeScript
hi! link coffeeRegExp javaScriptRegexpString
" Lua
hi! link luaOperator Conditional
" C
hi! link cFormat Identifier
hi! link cOperator Constant
" Objective-C/Cocoa
hi! link objcClass Type
hi! link cocoaClass objcClass
hi! link objcSubclass objcClass
hi! link objcSuperclass objcClass
hi! link objcDirective rubyClass
hi! link objcStatement Constant
hi! link cocoaFunction Function
hi! link objcMethodName Identifier
hi! link objcMethodArg Normal
hi! link objcMessageName Identifier
" Vimscript
hi! link vimOper Normal
" HTML
hi! link htmlTag Statement
hi! link htmlEndTag htmlTag
hi! link htmlTagName htmlTag
" XML
hi! link xmlTag Statement
hi! link xmlEndTag xmlTag
hi! link xmlTagName xmlTag
hi! link xmlEqual xmlTag
hi! link xmlEntity Special
hi! link xmlEntityPunct xmlEntity
hi! link xmlDocTypeDecl PreProc
hi! link xmlDocTypeKeyword PreProc
hi! link xmlProcessingDelim xmlAttrib
" Debugger.vim
call s:X("DbgCurrent","DEEBFE","345FA8","","White","DarkBlue")
call s:X("DbgBreakPt","","4F0037","","","DarkMagenta")
" vim-indent-guides
if !exists("g:indent_guides_auto_colors")
let g:indent_guides_auto_colors = 0
endif
call s:X("IndentGuidesOdd","","232323","","","")
call s:X("IndentGuidesEven","","1b1b1b","","","")
" Plugins, etc.
hi! link TagListFileName Directory
call s:X("PreciseJumpTarget","B9ED67","405026","","White","Green")
if !exists("g:jellybeans_background_color_256")
let g:jellybeans_background_color_256=233
end
" Manual overrides for 256-color terminals. Dark colors auto-map badly.
if !s:low_color
hi StatusLineNC ctermbg=235
hi Folded ctermbg=236
hi FoldColumn ctermbg=234
hi SignColumn ctermbg=236
hi CursorColumn ctermbg=234
hi CursorLine ctermbg=234
hi SpecialKey ctermbg=234
exec "hi NonText ctermbg=".g:jellybeans_background_color_256
exec "hi LineNr ctermbg=".g:jellybeans_background_color_256
hi DiffText ctermfg=81
exec "hi Normal ctermbg=".g:jellybeans_background_color_256
hi DbgBreakPt ctermbg=53
hi IndentGuidesOdd ctermbg=235
hi IndentGuidesEven ctermbg=234
endif
if exists("g:jellybeans_overrides")
fun! s:load_colors(defs)
for [l:group, l:v] in items(a:defs)
call s:X(l:group, get(l:v, 'guifg', ''), get(l:v, 'guibg', ''),
\ get(l:v, 'attr', ''),
\ get(l:v, 'ctermfg', ''), get(l:v, 'ctermbg', ''))
if !s:low_color
for l:prop in ['ctermfg', 'ctermbg']
let l:override_key = '256'.l:prop
if has_key(l:v, l:override_key)
exec "hi ".l:group." ".l:prop."=".l:v[l:override_key]
endif
endfor
endif
unlet l:group
unlet l:v
endfor
endfun
call s:load_colors(g:jellybeans_overrides)
delf s:load_colors
endif
" delete functions {{{
delf s:X
delf s:rgb
delf s:color
delf s:rgb_color
delf s:rgb_level
delf s:rgb_number
delf s:grey_color
delf s:grey_level
delf s:grey_number
" }}}

View File

@@ -1,276 +0,0 @@
" Vim color file
"
" Author: Tomas Restrepo <tomas@winterdom.com>
" https://github.com/tomasr/molokai
"
" Note: Based on the Monokai theme for TextMate
" by Wimer Hazenberg and its darker variant
" by Hamish Stuart Macpherson
"
hi clear
if version > 580
" no guarantees for version 5.8 and below, but this makes it stop
" complaining
hi clear
if exists("syntax_on")
syntax reset
endif
endif
let g:colors_name="molokai"
if exists("g:molokai_original")
let s:molokai_original = g:molokai_original
else
let s:molokai_original = 0
endif
hi Boolean guifg=#AE81FF
hi Character guifg=#E6DB74
hi Number guifg=#AE81FF
hi String guifg=#E6DB74
hi Conditional guifg=#F92672 gui=bold
hi Constant guifg=#AE81FF gui=bold
hi Cursor guifg=#000000 guibg=#F8F8F0
hi iCursor guifg=#000000 guibg=#F8F8F0
hi Debug guifg=#BCA3A3 gui=bold
hi Define guifg=#66D9EF
hi Delimiter guifg=#8F8F8F
hi DiffAdd guibg=#13354A
hi DiffChange guifg=#89807D guibg=#4C4745
hi DiffDelete guifg=#960050 guibg=#1E0010
hi DiffText guibg=#4C4745 gui=italic,bold
hi Directory guifg=#A6E22E gui=bold
hi Error guifg=#E6DB74 guibg=#1E0010
hi ErrorMsg guifg=#F92672 guibg=#232526 gui=bold
hi Exception guifg=#A6E22E gui=bold
hi Float guifg=#AE81FF
hi FoldColumn guifg=#465457 guibg=#000000
hi Folded guifg=#465457 guibg=#000000
hi Function guifg=#A6E22E
hi Identifier guifg=#FD971F
hi Ignore guifg=#808080 guibg=bg
hi IncSearch guifg=#C4BE89 guibg=#000000
hi Keyword guifg=#F92672 gui=bold
hi Label guifg=#E6DB74 gui=none
hi Macro guifg=#C4BE89 gui=italic
hi SpecialKey guifg=#66D9EF gui=italic
hi MatchParen guifg=#000000 guibg=#FD971F gui=bold
hi ModeMsg guifg=#E6DB74
hi MoreMsg guifg=#E6DB74
hi Operator guifg=#F92672
" complete menu
hi Pmenu guifg=#66D9EF guibg=#000000
hi PmenuSel guibg=#808080
hi PmenuSbar guibg=#080808
hi PmenuThumb guifg=#66D9EF
hi PreCondit guifg=#A6E22E gui=bold
hi PreProc guifg=#A6E22E
hi Question guifg=#66D9EF
hi Repeat guifg=#F92672 gui=bold
hi Search guifg=#000000 guibg=#FFE792
" marks
hi SignColumn guifg=#A6E22E guibg=#232526
hi SpecialChar guifg=#F92672 gui=bold
hi SpecialComment guifg=#7E8E91 gui=bold
hi Special guifg=#66D9EF guibg=bg gui=italic
if has("spell")
hi SpellBad guisp=#FF0000 gui=undercurl
hi SpellCap guisp=#7070F0 gui=undercurl
hi SpellLocal guisp=#70F0F0 gui=undercurl
hi SpellRare guisp=#FFFFFF gui=undercurl
endif
hi Statement guifg=#F92672 gui=bold
hi StatusLine guifg=#455354 guibg=fg
hi StatusLineNC guifg=#808080 guibg=#080808
hi StorageClass guifg=#FD971F gui=italic
hi Structure guifg=#66D9EF
hi Tag guifg=#F92672 gui=italic
hi Title guifg=#ef5939
hi Todo guifg=#FFFFFF guibg=bg gui=bold
hi Typedef guifg=#66D9EF
hi Type guifg=#66D9EF gui=none
hi Underlined guifg=#808080 gui=underline
hi VertSplit guifg=#808080 guibg=#080808 gui=bold
hi VisualNOS guibg=#403D3D
hi Visual guibg=#403D3D
hi WarningMsg guifg=#FFFFFF guibg=#333333 gui=bold
hi WildMenu guifg=#66D9EF guibg=#000000
hi TabLineFill guifg=#1B1D1E guibg=#1B1D1E
hi TabLine guibg=#1B1D1E guifg=#808080 gui=none
if s:molokai_original == 1
hi Normal guifg=#F8F8F2 guibg=#272822
hi Comment guifg=#75715E
hi CursorLine guibg=#3E3D32
hi CursorLineNr guifg=#FD971F gui=none
hi CursorColumn guibg=#3E3D32
hi ColorColumn guibg=#3B3A32
hi LineNr guifg=#BCBCBC guibg=#3B3A32
hi NonText guifg=#75715E
hi SpecialKey guifg=#75715E
else
hi Normal guifg=#F8F8F2 guibg=#1B1D1E
hi Comment guifg=#7E8E91
hi CursorLine guibg=#293739
hi CursorLineNr guifg=#FD971F gui=none
hi CursorColumn guibg=#293739
hi ColorColumn guibg=#232526
hi LineNr guifg=#465457 guibg=#232526
hi NonText guifg=#465457
hi SpecialKey guifg=#465457
end
"
" Support for 256-color terminal
"
if &t_Co > 255
if s:molokai_original == 1
hi Normal ctermbg=234
hi CursorLine ctermbg=235 cterm=none
hi CursorLineNr ctermfg=208 cterm=none
else
hi Normal ctermfg=252 ctermbg=233
hi CursorLine ctermbg=234 cterm=none
hi CursorLineNr ctermfg=208 cterm=none
endif
hi Boolean ctermfg=135
hi Character ctermfg=144
hi Number ctermfg=135
hi String ctermfg=144
hi Conditional ctermfg=161 cterm=bold
hi Constant ctermfg=135 cterm=bold
hi Cursor ctermfg=16 ctermbg=253
hi Debug ctermfg=225 cterm=bold
hi Define ctermfg=81
hi Delimiter ctermfg=241
hi DiffAdd ctermbg=24
hi DiffChange ctermfg=181 ctermbg=239
hi DiffDelete ctermfg=162 ctermbg=53
hi DiffText ctermbg=102 cterm=bold
hi Directory ctermfg=118 cterm=bold
hi Error ctermfg=219 ctermbg=89
hi ErrorMsg ctermfg=199 ctermbg=16 cterm=bold
hi Exception ctermfg=118 cterm=bold
hi Float ctermfg=135
hi FoldColumn ctermfg=67 ctermbg=16
hi Folded ctermfg=67 ctermbg=16
hi Function ctermfg=118
hi Identifier ctermfg=208 cterm=none
hi Ignore ctermfg=244 ctermbg=232
hi IncSearch ctermfg=193 ctermbg=16
hi keyword ctermfg=161 cterm=bold
hi Label ctermfg=229 cterm=none
hi Macro ctermfg=193
hi SpecialKey ctermfg=81
hi MatchParen ctermfg=233 ctermbg=208 cterm=bold
hi ModeMsg ctermfg=229
hi MoreMsg ctermfg=229
hi Operator ctermfg=161
" complete menu
hi Pmenu ctermfg=81 ctermbg=16
hi PmenuSel ctermfg=255 ctermbg=242
hi PmenuSbar ctermbg=232
hi PmenuThumb ctermfg=81
hi PreCondit ctermfg=118 cterm=bold
hi PreProc ctermfg=118
hi Question ctermfg=81
hi Repeat ctermfg=161 cterm=bold
hi Search ctermfg=0 ctermbg=222 cterm=NONE
" marks column
hi SignColumn ctermfg=118 ctermbg=235
hi SpecialChar ctermfg=161 cterm=bold
hi SpecialComment ctermfg=245 cterm=bold
hi Special ctermfg=81
if has("spell")
hi SpellBad ctermbg=52
hi SpellCap ctermbg=17
hi SpellLocal ctermbg=17
hi SpellRare ctermfg=none ctermbg=none cterm=reverse
endif
hi Statement ctermfg=161 cterm=bold
hi StatusLine ctermfg=238 ctermbg=253
hi StatusLineNC ctermfg=244 ctermbg=232
hi StorageClass ctermfg=208
hi Structure ctermfg=81
hi Tag ctermfg=161
hi Title ctermfg=166
hi Todo ctermfg=231 ctermbg=232 cterm=bold
hi Typedef ctermfg=81
hi Type ctermfg=81 cterm=none
hi Underlined ctermfg=244 cterm=underline
hi VertSplit ctermfg=244 ctermbg=232 cterm=bold
hi VisualNOS ctermbg=238
hi Visual ctermbg=235
hi WarningMsg ctermfg=231 ctermbg=238 cterm=bold
hi WildMenu ctermfg=81 ctermbg=16
hi Comment ctermfg=59
hi CursorColumn ctermbg=236
hi ColorColumn ctermbg=236
hi LineNr ctermfg=250 ctermbg=236
hi NonText ctermfg=59
hi SpecialKey ctermfg=59
if exists("g:rehash256") && g:rehash256 == 1
hi Normal ctermfg=252 ctermbg=234
hi CursorLine ctermbg=236 cterm=none
hi CursorLineNr ctermfg=208 cterm=none
hi Boolean ctermfg=141
hi Character ctermfg=222
hi Number ctermfg=141
hi String ctermfg=222
hi Conditional ctermfg=197 cterm=bold
hi Constant ctermfg=141 cterm=bold
hi DiffDelete ctermfg=125 ctermbg=233
hi Directory ctermfg=154 cterm=bold
hi Error ctermfg=222 ctermbg=233
hi Exception ctermfg=154 cterm=bold
hi Float ctermfg=141
hi Function ctermfg=154
hi Identifier ctermfg=208
hi Keyword ctermfg=197 cterm=bold
hi Operator ctermfg=197
hi PreCondit ctermfg=154 cterm=bold
hi PreProc ctermfg=154
hi Repeat ctermfg=197 cterm=bold
hi Statement ctermfg=197 cterm=bold
hi Tag ctermfg=197
hi Title ctermfg=203
hi Visual ctermbg=238
hi Comment ctermfg=244
hi LineNr ctermfg=239 ctermbg=235
hi NonText ctermfg=239
hi SpecialKey ctermfg=239
endif
end
" Must be at the end, because of ctermbg=234 bug.
" https://groups.google.com/forum/#!msg/vim_dev/afPqwAFNdrU/nqh6tOM87QUJ
set background=dark

View File

@@ -1,65 +0,0 @@
" Maintainer: Henrique C. Alves (hcarvalhoalves@gmail.com)
" Version: 1.0
" Last Change: September 25 2008
set background=dark
hi clear
if exists("syntax_on")
syntax reset
endif
let colors_name = "mustang"
" Vim >= 7.0 specific colors
if version >= 700
hi CursorLine guibg=#2d2d2d ctermbg=236
hi ColorColumn guibg=#2d2d2d ctermbg=236
hi CursorColumn guibg=#2d2d2d ctermbg=236
hi MatchParen guifg=#d0ffc0 guibg=#2f2f2f gui=bold ctermfg=157 ctermbg=237 cterm=bold
hi Pmenu guifg=#ffffff guibg=#444444 ctermfg=255 ctermbg=238
hi PmenuSel guifg=#000000 guibg=#b1d631 ctermfg=0 ctermbg=148
endif
" General colors
hi Cursor guifg=NONE guibg=#626262 gui=none ctermbg=241
hi Normal guifg=#e2e2e5 guibg=#202020 gui=none ctermfg=253 ctermbg=234
hi NonText guifg=#808080 guibg=#202020 gui=none ctermfg=244 ctermbg=235
hi LineNr guifg=#808080 guibg=#202020 gui=none ctermfg=244 ctermbg=232
hi StatusLine guifg=#d3d3d5 guibg=#444444 gui=italic ctermfg=253 ctermbg=238 cterm=italic
hi StatusLineNC guifg=#939395 guibg=#444444 gui=none ctermfg=246 ctermbg=238
hi VertSplit guifg=#444444 guibg=#444444 gui=none ctermfg=238 ctermbg=238
hi Folded guifg=#a0a8b0 guibg=#202020 gui=none ctermbg=4 ctermfg=248
hi Title guifg=#f6f3e8 guibg=NONE gui=bold ctermfg=254 cterm=bold
hi Visual guifg=#faf4c6 guibg=#3c414c gui=none ctermfg=254 ctermbg=4
hi SpecialKey guifg=#808080 guibg=#202020 gui=none ctermfg=244 ctermbg=236
" Syntax highlighting
hi Comment guifg=#808080 gui=italic ctermfg=244
hi Todo guifg=#8f8f8f gui=italic ctermfg=245
hi Boolean guifg=#b1d631 gui=none ctermfg=148
hi String guifg=#b1d631 gui=italic ctermfg=148
hi Identifier guifg=#b1d631 gui=none ctermfg=148
hi Function guifg=#ffffff gui=bold ctermfg=255
hi Type guifg=#7e8aa2 gui=none ctermfg=103
hi Statement guifg=#7e8aa2 gui=none ctermfg=103
hi Keyword guifg=#ff9800 gui=none ctermfg=208
hi Constant guifg=#ff9800 gui=none ctermfg=208
hi Number guifg=#ff9800 gui=none ctermfg=208
hi Special guifg=#ff9800 gui=none ctermfg=208
hi PreProc guifg=#faf4c6 gui=none ctermfg=230
hi Todo guifg=#000000 guibg=#e6ea50 gui=italic
" Code-specific colors
hi pythonOperator guifg=#7e8aa2 gui=none ctermfg=103
" NERDTree colors
hi NERDTreeFile guifg=#cdd2db ctermfg=250
hi NERDTreeDir guifg=#a5aebe ctermfg=111
hi NERDTreeUp guifg=#5b646d ctermfg=62
hi def link NERDTreeOpenable String
hi def link NERDTreeCloseable NERDTreeOpenable
hi def link NERDTreeCWD String
hi def link NERDTreePart String

View File

@@ -1,102 +0,0 @@
" Vim color file - Revolution
set background=dark
if version > 580
hi clear
if exists("syntax_on")
syntax reset
endif
endif
set t_Co=256
let g:colors_name = "Revolution"
hi IncSearch guifg=#bdae88 guibg=#492224 guisp=#492224 gui=NONE ctermfg=144 ctermbg=52 cterm=NONE
hi WildMenu guifg=NONE guibg=#A1A6A8 guisp=#A1A6A8 gui=NONE ctermfg=NONE ctermbg=248 cterm=NONE
hi SignColumn guifg=#192224 guibg=#536991 guisp=#536991 gui=NONE ctermfg=235 ctermbg=60 cterm=NONE
hi SpecialComment guifg=#BD9800 guibg=NONE guisp=NONE gui=NONE ctermfg=1 ctermbg=NONE cterm=NONE
hi Typedef guifg=#536991 guibg=NONE guisp=NONE gui=bold ctermfg=60 ctermbg=NONE cterm=bold
hi Title guifg=#b5b5b5 guibg=#492224 guisp=#492224 gui=bold ctermfg=249 ctermbg=52 cterm=bold
hi Folded guifg=#192224 guibg=#A1A6A8 guisp=#A1A6A8 gui=bold ctermfg=235 ctermbg=248 cterm=bold
hi PreCondit guifg=#965b3f guibg=NONE guisp=NONE gui=NONE ctermfg=137 ctermbg=NONE cterm=NONE
hi Include guifg=#BD9800 guibg=NONE guisp=NONE gui=NONE ctermfg=1 ctermbg=NONE cterm=NONE
hi Float guifg=#A1A6A8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE
hi StatusLineNC guifg=#bdae88 guibg=#4b4b4b guisp=#4b4b4b gui=bold ctermfg=144 ctermbg=239 cterm=bold
"hi CTagsMember -- no settings --
hi NonText guifg=#5E6C70 guibg=NONE guisp=NONE gui=NONE ctermfg=66 ctermbg=NONE cterm=NONE
"hi CTagsGlobalConstant -- no settings --
hi DiffText guifg=NONE guibg=#492224 guisp=#492224 gui=NONE ctermfg=NONE ctermbg=52 cterm=NONE
hi ErrorMsg guifg=#cfcfcf guibg=#a33202 guisp=#a33202 gui=NONE ctermfg=252 ctermbg=130 cterm=NONE
"hi Ignore -- no settings --
hi Debug guifg=#BD9800 guibg=NONE guisp=NONE gui=NONE ctermfg=1 ctermbg=NONE cterm=NONE
hi PMenuSbar guifg=NONE guibg=#828282 guisp=#828282 gui=NONE ctermfg=NONE ctermbg=8 cterm=NONE
hi Identifier guifg=#BD9800 guibg=NONE guisp=NONE gui=NONE ctermfg=1 ctermbg=NONE cterm=NONE
hi SpecialChar guifg=#BD9800 guibg=NONE guisp=NONE gui=NONE ctermfg=1 ctermbg=NONE cterm=NONE
hi Conditional guifg=#BD9800 guibg=NONE guisp=NONE gui=bold ctermfg=1 ctermbg=NONE cterm=bold
hi StorageClass guifg=#536991 guibg=NONE guisp=NONE gui=bold ctermfg=60 ctermbg=NONE cterm=bold
hi Todo guifg=#ff0d0d guibg=#262626 guisp=#262626 gui=NONE ctermfg=196 ctermbg=235 cterm=NONE
hi Special guifg=#BD9800 guibg=NONE guisp=NONE gui=NONE ctermfg=1 ctermbg=NONE cterm=NONE
hi LineNr guifg=#525252 guibg=NONE guisp=NONE gui=NONE ctermfg=239 ctermbg=NONE cterm=NONE
hi StatusLine guifg=#bdae88 guibg=#613830 guisp=#613830 gui=bold ctermfg=144 ctermbg=52 cterm=bold
hi Normal guifg=#bdae88 guibg=#262626 guisp=#262626 gui=NONE ctermfg=144 ctermbg=235 cterm=NONE
hi Label guifg=#BD9800 guibg=NONE guisp=NONE gui=bold ctermfg=1 ctermbg=NONE cterm=bold
"hi CTagsImport -- no settings --
hi PMenuSel guifg=#bdae88 guibg=#492224 guisp=#492224 gui=NONE ctermfg=144 ctermbg=52 cterm=NONE
hi Search guifg=#bdae88 guibg=#492224 guisp=#492224 gui=NONE ctermfg=144 ctermbg=52 cterm=NONE
"hi CTagsGlobalVariable -- no settings --
hi Delimiter guifg=#BD9800 guibg=NONE guisp=NONE gui=NONE ctermfg=1 ctermbg=NONE cterm=NONE
hi Statement guifg=#a26344 guibg=NONE guisp=NONE gui=bold ctermfg=137 ctermbg=NONE cterm=bold
hi SpellRare guifg=#F9F9FF guibg=#192224 guisp=#192224 gui=underline ctermfg=189 ctermbg=235 cterm=underline
"hi EnumerationValue -- no settings --
hi Comment guifg=#6b6b6b guibg=NONE guisp=NONE gui=NONE ctermfg=242 ctermbg=NONE cterm=NONE
hi Character guifg=#A1A6A8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE
hi TabLineSel guifg=#bdae88 guibg=#613830 guisp=#613830 gui=bold ctermfg=144 ctermbg=52 cterm=bold
hi Number guifg=#c4c7c8 guibg=NONE guisp=NONE gui=NONE ctermfg=251 ctermbg=NONE cterm=NONE
hi Boolean guifg=#A1A6A8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE
hi Operator guifg=#d9d5d5 guibg=NONE guisp=NONE gui=bold ctermfg=253 ctermbg=NONE cterm=bold
hi CursorLine guifg=NONE guibg=#161616 guisp=#161616 gui=NONE ctermfg=NONE ctermbg=237 cterm=NONE
"hi Union -- no settings --
hi TabLineFill guifg=#192224 guibg=#4b4b4b guisp=#4b4b4b gui=bold ctermfg=235 ctermbg=239 cterm=bold
"hi Question -- no settings --
hi WarningMsg guifg=#A1A6A8 guibg=#912C00 guisp=#912C00 gui=NONE ctermfg=248 ctermbg=88 cterm=NONE
hi VisualNOS guifg=#192224 guibg=#F9F9FF guisp=#F9F9FF gui=underline ctermfg=235 ctermbg=189 cterm=underline
hi DiffDelete guifg=NONE guibg=#241919 guisp=#241919 gui=NONE ctermfg=NONE ctermbg=235 cterm=NONE
hi ModeMsg guifg=#dedede guibg=#192224 guisp=#192224 gui=bold ctermfg=253 ctermbg=235 cterm=bold
hi CursorColumn guifg=NONE guibg=#282828 guisp=#282828 gui=NONE ctermfg=NONE ctermbg=236 cterm=NONE
hi Define guifg=#BD9800 guibg=NONE guisp=NONE gui=NONE ctermfg=1 ctermbg=NONE cterm=NONE
hi Function guifg=#536991 guibg=NONE guisp=NONE gui=bold ctermfg=60 ctermbg=NONE cterm=bold
hi FoldColumn guifg=#192224 guibg=#A1A6A8 guisp=#A1A6A8 gui=bold ctermfg=235 ctermbg=248 cterm=bold
hi PreProc guifg=#835cad guibg=NONE guisp=NONE gui=NONE ctermfg=97 ctermbg=NONE cterm=NONE
"hi EnumerationName -- no settings --
"hi MarkdownCodeBlock guifg=#dedede guibg=NONE guisp=NONE gui=BOLD
hi Visual guifg=#bdae88 guibg=#613830 guisp=#613830 gui=NONE ctermfg=144 ctermbg=52 cterm=NONE
hi MoreMsg guifg=#BD9800 guibg=NONE guisp=NONE gui=bold ctermfg=1 ctermbg=NONE cterm=bold
hi SpellCap guifg=#F9F9FF guibg=#192224 guisp=#192224 gui=underline ctermfg=189 ctermbg=235 cterm=underline
hi VertSplit guifg=#262626 guibg=#4b4b4b guisp=#4b4b4b gui=bold ctermfg=235 ctermbg=239 cterm=bold
hi Exception guifg=#BD9800 guibg=NONE guisp=NONE gui=bold ctermfg=1 ctermbg=NONE cterm=bold
hi Keyword guifg=#BD9800 guibg=NONE guisp=NONE gui=bold ctermfg=1 ctermbg=NONE cterm=bold
hi Type guifg=#536991 guibg=NONE guisp=NONE gui=bold ctermfg=60 ctermbg=NONE cterm=bold
hi DiffChange guifg=NONE guibg=#492224 guisp=#492224 gui=NONE ctermfg=NONE ctermbg=52 cterm=NONE
hi Cursor guifg=NONE guibg=#b5b5b5 guisp=#b5b5b5 gui=NONE ctermfg=254 ctermbg=131 cterm=NONE
hi SpellLocal guifg=#F9F9FF guibg=#192224 guisp=#192224 gui=underline ctermfg=189 ctermbg=235 cterm=underline
hi Error guifg=#A1A6A8 guibg=#912C00 guisp=#912C00 gui=NONE ctermfg=248 ctermbg=88 cterm=NONE
hi PMenu guifg=#bdae88 guibg=#262626 guisp=#262626 gui=NONE ctermfg=144 ctermbg=235 cterm=NONE
hi SpecialKey guifg=#5E6C70 guibg=NONE guisp=NONE gui=bold ctermfg=66 ctermbg=NONE cterm=bold
hi Constant guifg=#A1A6A8 guibg=NONE guisp=NONE gui=NONE ctermfg=248 ctermbg=NONE cterm=NONE
"hi DefinedName -- no settings --
hi Tag guifg=#BD9800 guibg=NONE guisp=NONE gui=NONE ctermfg=1 ctermbg=NONE cterm=NONE
hi String guifg=#a3b4ba guibg=NONE guisp=NONE gui=NONE ctermfg=109 ctermbg=NONE cterm=NONE
hi PMenuThumb guifg=#e6e6e6 guibg=#a4a6a8 guisp=#a4a6a8 gui=NONE ctermfg=254 ctermbg=248 cterm=NONE
hi MatchParen guifg=#BD9800 guibg=NONE guisp=NONE gui=bold ctermfg=1 ctermbg=NONE cterm=bold
hi LocalVariable guifg=#efae87 guibg=NONE guisp=NONE gui=bold ctermfg=209 ctermbg=NONE cterm=bold
hi Repeat guifg=#bd9700 guibg=NONE guisp=NONE gui=bold ctermfg=1 ctermbg=NONE cterm=bold
hi SpellBad guifg=#F9F9FF guibg=#192224 guisp=#192224 gui=underline ctermfg=189 ctermbg=235 cterm=underline
"hi CTagsClass -- no settings --
hi Directory guifg=#536991 guibg=NONE guisp=NONE gui=bold ctermfg=60 ctermbg=NONE cterm=bold
hi Structure guifg=#536991 guibg=NONE guisp=NONE gui=bold ctermfg=60 ctermbg=NONE cterm=bold
hi Macro guifg=#BD9800 guibg=NONE guisp=NONE gui=NONE ctermfg=1 ctermbg=NONE cterm=NONE
hi Underlined guifg=#F9F9FF guibg=#192224 guisp=#192224 gui=underline ctermfg=189 ctermbg=235 cterm=underline
hi DiffAdd guifg=NONE guibg=#193224 guisp=#193224 gui=NONE ctermfg=NONE ctermbg=236 cterm=NONE
hi TabLine guifg=#192224 guibg=#969693 guisp=#969693 gui=bold ctermfg=235 ctermbg=246 cterm=bold
hi cursorim guifg=NONE guibg=#b5b5b5 guisp=#b5b5b5 gui=NONE ctermfg=235 ctermbg=52 cterm=NONE
hi colorcolumn guifg=NONE guibg=#3a3c3e guisp=#3a3c3e gui=NONE ctermfg=NONE ctermbg=237 cterm=NONE
"hi clear -- no settings --

File diff suppressed because it is too large Load Diff

View File

@@ -1,208 +0,0 @@
" 'sorcerer.vim' -- Vim color scheme.
" Maintainer: Andrew Lawson
" Forked from 'vim-scripts/Sorcerer' by Jeet Sukumaran
" 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 = "sorcerer"
" GUI Colors {{{1
" ============================================================================
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=#686858 guibg=NONE gui=NONE
hi MatchParen guifg=#fff000 guibg=NONE gui=bold
hi ModeMsg guifg=#000000 guibg=#00ff00 gui=bold
hi MoreMsg guifg=#2e8b57 guibg=NONE gui=bold
hi NonText guifg=#404050 guibg=NONE gui=NONE
hi Pmenu guifg=#ffffff guibg=#444444
hi PmenuSel guifg=#000000 guibg=#b1d631
" hi PmenuSbar guifg=#ffffff guibg=#c1cdc1 gui=NONE
" hi PmenuThumb guifg=#ffffff guibg=#838b83 gui=NONE
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
" 1}}}
" 256 Colors {{{1
" ============================================================================
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=NONE ctermfg=59
hi MatchParen cterm=bold ctermbg=NONE ctermfg=226
hi ModeMsg cterm=bold ctermbg=46 ctermfg=16
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=46 ctermfg=16
hi vCursor cterm=NONE ctermbg=201 ctermfg=16
" 1}}}

View File

@@ -1,220 +0,0 @@
" Vim color file - Spink
set background=dark
if version > 580
hi clear
if exists("syntax_on")
syntax reset
endif
endif
set t_Co=256
let g:colors_name = "Spink"
let g:unite_cursor_line_highlight = 'UniteLineHi'
" Alternative support for Vim plugins {
hi MyTagListFileName guifg=#BD9700 guibg=NONE guisp=NONE gui=underline
hi IndentGuidesOdd guifg=NONE guibg=#515e61 guisp=NONE gui=NONE
hi IndentGuidesEven guifg=NONE guibg=#777777 guisp=NONE gui=NONE
hi EasyMotionTarget guifg=#BD9700 guibg=NONE guisp=NONE gui=bold
hi EasyMotionShade guifg=#777777 guibg=NONE guisp=NONE gui=bold
hi EasyMotionTarget2First guifg=#BD9700 guibg=NONE guisp=NONE gui=bold
hi EasyMotionTarget2Second guifg=#BD9700 guibg=NONE guisp=NONE gui=bold
hi CtrlPMatch guifg=#8a3824 guibg=NONE guisp=#F9F9F9 gui=bold
hi UniteLineHi guifg=NONE guibg=#492224 guisp=NONE gui=NONE
hi SyntasticError guifg=#F9F9FF guibg=#912C00 guisp=NONE gui=NONE
hi SyntasticErrorSign guifg=#ceb67f guibg=#492224 guisp=NONE gui=NONE
hi TabLine guifg=#8a3824 guibg=NONE guisp=NONE gui=underline
hi TabLineSel guifg=#9A7B00 guibg=#492224 guisp=NONE gui=underline
hi TabLineFill guifg=#3D3D3D guibg=NONE guisp=NONE gui=underline
" Default syntax {
hi Boolean guifg=#A1A6A8 guibg=NONE guisp=NONE gui=NONE
hi Character guifg=#A1A6A8 guibg=NONE guisp=NONE gui=NONE
hi ColorColumn guifg=NONE guibg=#222222 guisp=#5E6C70 gui=NONE
hi Comment guifg=#515e61 guibg=NONE guisp=NONE gui=italic
hi Conditional guifg=#ceb67f guibg=NONE guisp=NONE gui=bold
hi Constant guifg=#8f1d1d guibg=NONE guisp=NONE gui=NONE
hi Cursor guifg=NONE guibg=#750000 guisp=#F9F9F9 gui=NONE
hi iCursor guifg=#BD9800 guibg=#750000 guisp=NONE gui=NONE
hi Underlined guifg=#BD9800 guibg=#750000 guisp=NONE gui=NONE
hi cursorim guifg=#BD9700 guibg=#750000 guisp=#536991 gui=NONE
hi CursorColumn guifg=NONE guibg=#222E30 guisp=#222E30 gui=NONE
hi CursorLine guifg=NONE guibg=#222E30 guisp=#222E30 gui=NONE
hi CursorLineNR guifg=#8A905D guibg=#3C3836 guisp=#222E30 gui=NONE
hi Debug guifg=#BD9800 guibg=NONE guisp=NONE gui=NONE
hi Define guifg=#ceb67f guibg=NONE guisp=NONE gui=NONE
hi Delimiter guifg=#fffedc guibg=NONE guisp=NONE gui=NONE
hi DiffAdd guifg=NONE guibg=#193224 guisp=#193224 gui=NONE
hi DiffChange guifg=NONE guibg=#492224 guisp=#492224 gui=NONE
hi DiffDelete guifg=NONE guibg=#192224 guisp=#192224 gui=NONE
hi DiffText guifg=NONE guibg=#492224 guisp=#492224 gui=NONE
hi Directory guifg=#536991 guibg=NONE guisp=NONE gui=bold
hi Error guifg=NONE guibg=NONE guisp=NONE gui=NONE
hi ErrorMsg guifg=#A1A6A8 guibg=#643c3c guisp=NONE gui=NONE
hi Exception guifg=#ceb67f guibg=NONE guisp=NONE gui=bold
hi Float guifg=#A1A6A8 guibg=NONE guisp=NONE gui=NONE
hi Folded guibg=#2D3239 guifg=#747474 guisp=NONE gui=bold
hi FoldColumn guifg=#66595f guibg=#1a1a1a guisp=#A1A6A8 gui=NONE
hi Function guifg=#8A3824 guibg=NONE guisp=NONE gui=none
hi Identifier guifg=#fffedc guibg=NONE guisp=NONE gui=NONE
hi IncSearch guifg=#400000 guibg=#515e61 guisp=#BD9800 gui=bold
hi Search guifg=NONE guibg=#710000 guisp=#F9F9FF gui=NONE
hi Include guifg=#ceb67f guibg=NONE guisp=NONE gui=NONE
hi Keyword guifg=#727152 guibg=NONE guisp=NONE gui=bold
hi Label guifg=#BD9800 guibg=NONE guisp=NONE gui=bold
hi LineNr guifg=#3C3836 guibg=NONE guisp=NONE gui=NONE
hi Macro guifg=#BD9800 guibg=NONE guisp=NONE gui=NONE
hi MatchParen guifg=NONE guibg=#3F3F3F guisp=NONE gui=bold,italic
hi ModeMsg guifg=#fffedc guibg=#192224 guisp=#192224 gui=bold
hi MoreMsg guifg=#BD9800 guibg=NONE guisp=NONE gui=bold
hi NonText guifg=#5E6C70 guibg=NONE guisp=NONE gui=italic
hi Normal guifg=#CEB67F guibg=#141414 guisp=#0e1314 gui=NONE
hi Number guifg=#8f0000 guibg=NONE guisp=NONE gui=NONE
hi Operator guifg=#BD9800 guibg=NONE guisp=NONE gui=NONE
hi PMenu guifg=#5a5a5a guibg=#141414 guisp=#1a1a1a gui=underline
hi PMenuSbar guifg=NONE guibg=#848688 guisp=#848688 gui=underline
hi PMenuSel guifg=NONE guibg=#750000 guisp=#BD9800 gui=bold,underline
hi PMenuThumb guifg=NONE guibg=#a4a6a8 guisp=#a4a6a8 gui=underline
hi PreCondit guifg=#ceb67f guibg=NONE guisp=NONE gui=NONE
hi PreProc guifg=#ceb67f guibg=NONE guisp=NONE gui=NONE
hi Repeat guifg=#ceb67f guibg=NONE guisp=NONE gui=bold
hi SignColumn guifg=#BD9800 guibg=NONE guisp=#1a1a1a gui=NONE
hi Special guifg=#Fff5bF guibg=NONE guisp=NONE gui=NONE
hi SpecialChar guifg=#ceb67f guibg=NONE guisp=NONE gui=NONE
hi SpecialComment guifg=#BD9800 guibg=NONE guisp=NONE gui=NONE
hi SpecialKey guifg=#5E6C70 guibg=NONE guisp=NONE gui=italic
hi SpellBad guifg=#F9F9FF guibg=#192224 guisp=#192224 gui=underline
hi SpellCap guifg=#F9F9FF guibg=#192224 guisp=#192224 gui=underline
hi SpellLocal guifg=#F9F9FF guibg=#192224 guisp=#192224 gui=underline
hi SpellRare guifg=#F9F9FF guibg=#192224 guisp=#192224 gui=underline
hi Statement guifg=#8a3824 guibg=NONE guisp=NONE gui=bold
hi StatusLine guifg=#9a7824 guibg=NONE guisp=#750000 gui=NONE
hi StatusLineNC guifg=#4A4A4A guibg=NONE guisp=#5E6C70 gui=NONE
hi Bufferline guifg=#4A4A4A guibg=#F9F9F9 guisp=#5E6C70 gui=NONE
hi StorageClass guifg=#A1A6A8 guibg=NONE guisp=NONE gui=italic
hi String guifg=#617689 guibg=NONE guisp=NONE gui=italic
hi Structure guifg=#A1A6A8 guibg=NONE guisp=NONE gui=italic
hi Tag guifg=#ceb67f guibg=NONE guisp=NONE gui=NONE
hi Title guifg=#F9F9FF guibg=#192224 guisp=#192224 gui=bold
hi Todo guifg=#BD9800 guibg=#492224 guisp=#BD9800 gui=NONE
hi Type guifg=#8A905D guibg=NONE guisp=NONE gui=bold
hi Typedef guifg=#536991 guibg=NONE guisp=NONE gui=italic
hi Underlined guifg=NONE guibg=#492224 guisp=NONE gui=NONE
hi VertSplit guifg=#21201F guibg=#21201F guisp=NONE gui=bold
hi Split guifg=#3D3D3D guibg=NONE guisp=NONE gui=bold
hi Visual guifg=NONE guibg=#492224 guisp=#F9F9FF gui=NONE
hi VisualNOS guifg=#192224 guibg=#750000 guisp=#F9F9FF gui=underline
hi WarningMsg guifg=#A1A6A8 guibg=#912C00 guisp=#912C00 gui=NONE
hi WildMenu guifg=#BD9800 guibg=NONE guisp=NONE gui=NONE
" HTML syntax {
hi HtmlHiLink guifg=NONE guibg=#492224 guisp=NONE gui=underline
hi htmlLinkText guifg=NONE guibg=#492224 guisp=NONE gui=underline
hi htmlTag guifg=#245361 guibg=NONE guisp=#750000 gui=bold
hi htmlEndTag guifg=#245361 guibg=NONE guisp=NONE gui=NONE
hi htmlTagName guifg=#599cab guibg=NONE guisp=NONE gui=NONE
hi htmlTagN guifg=#ceb67f guibg=NONE guisp=NONE gui=NONE
hi htmlString guifg=#FFF5BF guibg=NONE guisp=NONE gui=NONE
hi htmlArg guifg=#599cab guibg=NONE guisp=NONE gui=NONE
hi htmlSpecialChar guifg=#ceb67f guibg=NONE guisp=NONE gui=NONE
" PHP/ Mysql syntax {
hi PHPprivate guifg=#978A55 guibg=NONE guisp=NONE gui=underline,bold
hi PHPfunction guifg=#978A55 guibg=NONE guisp=NONE gui=underline,bold
hi PHPtest guifg=#978A55 guibg=NONE guisp=NONE gui=underline,bold
hi PHPClass guifg=#978A55 guibg=NONE guisp=NONE gui=underline,bold
hi PHPConstant guifg=#978A55 guibg=NONE guisp=NONE gui=underline,bold
hi mysqlKeyword guifg=#889CAC guibg=NONE guisp=NONE gui=NONE
hi mysqlOperator guifg=#889CAC guibg=NONE guisp=NONE gui=NONE
hi phpFunctions guifg=#6C1C00 guibg=NONE guisp=NONE gui=bold
" Python syntax {
hi pythonFunction guifg=#8A905D guibg=NONE guisp=NONE gui=underline
hi pythonString guifg=#617689 guibg=NONE guisp=NONE gui=italic
hi pythonStatement guifg=#973824 guibg=NONE guisp=NONE gui=bold
hi pythonInclude guifg=#727152 guibg=NONE guisp=NONE gui=none
hi pythonImport guifg=#727152 guibg=NONE guisp=NONE gui=none
hi pythonOperator guifg=#BD9800 guibg=NONE guisp=NONE gui=none
hi pythonRepeat guifg=#A88800 guibg=NONE guisp=NONE gui=none
hi pythonConditional guifg=#AA8800 guibg=NONE guisp=NONE gui=none
" Javascript syntax {
hi jsSpecial guifg=#fff5bf guibg=NONE guisp=NONE gui=NONE
hi javascriptSpecial guifg=#fff5bf guibg=NONE guisp=NONE gui=NONE
hi jsString guifg=#868F4E guibg=NONE guisp=NONE gui=italic
hi javascriptString guifg=#868F4E guibg=NONE guisp=NONE gui=italic
hi jsStringS guifg=#868F4E guibg=NONE guisp=NONE gui=italic
hi javascriptStringS guifg=#868F4E guibg=NONE guisp=NONE gui=italic
hi jsStringD guifg=#868F4E guibg=NONE guisp=NONE gui=italic
hi javascriptStringD guifg=#868F4E guibg=NONE guisp=NONE gui=italic
hi jsFunction guifg=#648A1C guibg=NONE guisp=NONE gui=underline,bold
hi javascriptFunction guifg=#648A1C guibg=NONE guisp=NONE gui=underline,bold
hi jsConditional guifg=#C6D93C guibg=NONE guisp=NONE gui=none
hi javascriptConditional guifg=#C6D93C guibg=NONE guisp=NONE gui=none
hi jsFuncName guifg=#648A1C guibg=NONE guisp=NONE gui=underline
hi javascriptFuncName guifg=#648A1C guibg=NONE guisp=NONE gui=underline
hi javascriptIdentifier guifg=#C6D93C guibg=NONE guisp=NONE gui=none
hi jsNumber guifg=#C6D93C guibg=NONE guisp=NONE gui=none
hi javascriptNumber guifg=#C6D93C guibg=NONE guisp=NONE gui=none
hi jsFloat guifg=#C6D93C guibg=NONE guisp=NONE gui=none
hi javascriptFloat guifg=#C6D93C guibg=NONE guisp=NONE gui=none
if (&ft=='javascript' || &ft=='js')
hi level12 guifg=#EEFD86
hi level13 guifg=#EEFD86
hi level14 guifg=#EEFD86
hi level15 guifg=#EEFD86
hi level16 guifg=#EEFD86
endif
" CSS syntax {
hi cssTagName guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssAttrComma guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssAttr guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssClassName guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssIdentifier guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssBraces guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssNoise guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssMediaQuery guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssMedia guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssTextProp guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssFontProp guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssUIProp guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssPageProp guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssTransformProp guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssDimensionProp guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssBackgroundPro guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssTransitionPro guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssListProp guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssBorderProp guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssTableProp guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssColorProp guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssAnimationProp guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssPositioningPr guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssBoxProp guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssMediaProp guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssFlexibleBoxPr guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssFunctionNam guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssURL guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssColor guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssClassName guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssImportant guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssStringQQ guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssValueLength guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssValueTime guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssCommonAttr guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssUnitDecorator guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssValueNumber guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi cssPseudoClass guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi sassProperty guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
hi sassComment guifg=#599cab guibg=NONE guisp=#1a1a1a gui=NONE
if (&ft=='css')
hi level12 guifg=#CEA65B guibg=NONE guisp=#1a1a1a gui=NONE
hi level13 guifg=#CEA65B guibg=NONE guisp=#1a1a1a gui=NONE
hi level14 guifg=#CEA65B guibg=NONE guisp=#1a1a1a gui=NONE
hi level15 guifg=#CEA65B guibg=NONE guisp=#1a1a1a gui=NONE
hi level16 guifg=#CEA65B guibg=NONE guisp=#1a1a1a gui=NONE
endif

File diff suppressed because it is too large Load Diff

View File

@@ -1,87 +0,0 @@
'NERDChristmasTree' NERD_tree.txt /*'NERDChristmasTree'*
'NERDTreeAutoCenter' NERD_tree.txt /*'NERDTreeAutoCenter'*
'NERDTreeAutoCenterThreshold' NERD_tree.txt /*'NERDTreeAutoCenterThreshold'*
'NERDTreeBookmarksFile' NERD_tree.txt /*'NERDTreeBookmarksFile'*
'NERDTreeCaseSensitiveSort' NERD_tree.txt /*'NERDTreeCaseSensitiveSort'*
'NERDTreeChDirMode' NERD_tree.txt /*'NERDTreeChDirMode'*
'NERDTreeDirArrows' NERD_tree.txt /*'NERDTreeDirArrows'*
'NERDTreeHighlightCursorline' NERD_tree.txt /*'NERDTreeHighlightCursorline'*
'NERDTreeHijackNetrw' NERD_tree.txt /*'NERDTreeHijackNetrw'*
'NERDTreeIgnore' NERD_tree.txt /*'NERDTreeIgnore'*
'NERDTreeMinimalUI' NERD_tree.txt /*'NERDTreeMinimalUI'*
'NERDTreeMouseMode' NERD_tree.txt /*'NERDTreeMouseMode'*
'NERDTreeQuitOnOpen' NERD_tree.txt /*'NERDTreeQuitOnOpen'*
'NERDTreeShowBookmarks' NERD_tree.txt /*'NERDTreeShowBookmarks'*
'NERDTreeShowFiles' NERD_tree.txt /*'NERDTreeShowFiles'*
'NERDTreeShowHidden' NERD_tree.txt /*'NERDTreeShowHidden'*
'NERDTreeShowLineNumbers' NERD_tree.txt /*'NERDTreeShowLineNumbers'*
'NERDTreeSortOrder' NERD_tree.txt /*'NERDTreeSortOrder'*
'NERDTreeStatusline' NERD_tree.txt /*'NERDTreeStatusline'*
'NERDTreeWinPos' NERD_tree.txt /*'NERDTreeWinPos'*
'NERDTreeWinSize' NERD_tree.txt /*'NERDTreeWinSize'*
'loaded_nerd_tree' NERD_tree.txt /*'loaded_nerd_tree'*
:NERDTree NERD_tree.txt /*:NERDTree*
:NERDTreeClose NERD_tree.txt /*:NERDTreeClose*
:NERDTreeFind NERD_tree.txt /*:NERDTreeFind*
:NERDTreeFromBookmark NERD_tree.txt /*:NERDTreeFromBookmark*
:NERDTreeMirror NERD_tree.txt /*:NERDTreeMirror*
:NERDTreeToggle NERD_tree.txt /*:NERDTreeToggle*
NERDTree NERD_tree.txt /*NERDTree*
NERDTree-? NERD_tree.txt /*NERDTree-?*
NERDTree-A NERD_tree.txt /*NERDTree-A*
NERDTree-B NERD_tree.txt /*NERDTree-B*
NERDTree-C NERD_tree.txt /*NERDTree-C*
NERDTree-C-J NERD_tree.txt /*NERDTree-C-J*
NERDTree-C-K NERD_tree.txt /*NERDTree-C-K*
NERDTree-D NERD_tree.txt /*NERDTree-D*
NERDTree-F NERD_tree.txt /*NERDTree-F*
NERDTree-I NERD_tree.txt /*NERDTree-I*
NERDTree-J NERD_tree.txt /*NERDTree-J*
NERDTree-K NERD_tree.txt /*NERDTree-K*
NERDTree-O NERD_tree.txt /*NERDTree-O*
NERDTree-P NERD_tree.txt /*NERDTree-P*
NERDTree-R NERD_tree.txt /*NERDTree-R*
NERDTree-T NERD_tree.txt /*NERDTree-T*
NERDTree-U NERD_tree.txt /*NERDTree-U*
NERDTree-X NERD_tree.txt /*NERDTree-X*
NERDTree-cd NERD_tree.txt /*NERDTree-cd*
NERDTree-contents NERD_tree.txt /*NERDTree-contents*
NERDTree-e NERD_tree.txt /*NERDTree-e*
NERDTree-f NERD_tree.txt /*NERDTree-f*
NERDTree-gi NERD_tree.txt /*NERDTree-gi*
NERDTree-go NERD_tree.txt /*NERDTree-go*
NERDTree-gs NERD_tree.txt /*NERDTree-gs*
NERDTree-i NERD_tree.txt /*NERDTree-i*
NERDTree-m NERD_tree.txt /*NERDTree-m*
NERDTree-o NERD_tree.txt /*NERDTree-o*
NERDTree-p NERD_tree.txt /*NERDTree-p*
NERDTree-q NERD_tree.txt /*NERDTree-q*
NERDTree-r NERD_tree.txt /*NERDTree-r*
NERDTree-s NERD_tree.txt /*NERDTree-s*
NERDTree-t NERD_tree.txt /*NERDTree-t*
NERDTree-u NERD_tree.txt /*NERDTree-u*
NERDTree-x NERD_tree.txt /*NERDTree-x*
NERDTreeAPI NERD_tree.txt /*NERDTreeAPI*
NERDTreeAbout NERD_tree.txt /*NERDTreeAbout*
NERDTreeAddKeyMap() NERD_tree.txt /*NERDTreeAddKeyMap()*
NERDTreeAddMenuItem() NERD_tree.txt /*NERDTreeAddMenuItem()*
NERDTreeAddMenuSeparator() NERD_tree.txt /*NERDTreeAddMenuSeparator()*
NERDTreeAddSubmenu() NERD_tree.txt /*NERDTreeAddSubmenu()*
NERDTreeBookmarkCommands NERD_tree.txt /*NERDTreeBookmarkCommands*
NERDTreeBookmarkTable NERD_tree.txt /*NERDTreeBookmarkTable*
NERDTreeBookmarks NERD_tree.txt /*NERDTreeBookmarks*
NERDTreeChangelog NERD_tree.txt /*NERDTreeChangelog*
NERDTreeCredits NERD_tree.txt /*NERDTreeCredits*
NERDTreeFunctionality NERD_tree.txt /*NERDTreeFunctionality*
NERDTreeGlobalCommands NERD_tree.txt /*NERDTreeGlobalCommands*
NERDTreeInvalidBookmarks NERD_tree.txt /*NERDTreeInvalidBookmarks*
NERDTreeKeymapAPI NERD_tree.txt /*NERDTreeKeymapAPI*
NERDTreeLicense NERD_tree.txt /*NERDTreeLicense*
NERDTreeMappings NERD_tree.txt /*NERDTreeMappings*
NERDTreeMenu NERD_tree.txt /*NERDTreeMenu*
NERDTreeMenuAPI NERD_tree.txt /*NERDTreeMenuAPI*
NERDTreeOptionDetails NERD_tree.txt /*NERDTreeOptionDetails*
NERDTreeOptionSummary NERD_tree.txt /*NERDTreeOptionSummary*
NERDTreeOptions NERD_tree.txt /*NERDTreeOptions*
NERDTreeRender() NERD_tree.txt /*NERDTreeRender()*
NERD_tree.txt NERD_tree.txt /*NERD_tree.txt*

View File

@@ -1,41 +0,0 @@
" ============================================================================
" File: exec_menuitem.vim
" Description: plugin for NERD Tree that provides an execute file menu item
" Maintainer: Martin Grenfell <martin.grenfell at gmail dot com>
" Last Change: 22 July, 2009
" License: This program is free software. It comes without any warranty,
" to the extent permitted by applicable law. You can redistribute
" it and/or modify it under the terms of the Do What The Fuck You
" Want To Public License, Version 2, as published by Sam Hocevar.
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"
" ============================================================================
if exists("g:loaded_nerdtree_exec_menuitem")
finish
endif
let g:loaded_nerdtree_exec_menuitem = 1
call NERDTreeAddMenuItem({
\ 'text': '(!)Execute file',
\ 'shortcut': '!',
\ 'callback': 'NERDTreeExecFile',
\ 'isActiveCallback': 'NERDTreeExecFileActive' })
function! NERDTreeExecFileActive()
let node = g:NERDTreeFileNode.GetSelected()
return !node.path.isDirectory && node.path.isExecutable
endfunction
function! NERDTreeExecFile()
let treenode = g:NERDTreeFileNode.GetSelected()
echo "==========================================================\n"
echo "Complete the command to execute (add arguments etc):\n"
let cmd = treenode.path.str({'escape': 1})
let cmd = input(':!', cmd . ' ')
if cmd != ''
exec ':!' . cmd
else
echo "Aborted"
endif
endfunction

View File

@@ -1,224 +0,0 @@
" ============================================================================
" File: fs_menu.vim
" Description: plugin for the NERD Tree that provides a file system menu
" Maintainer: Martin Grenfell <martin.grenfell at gmail dot com>
" Last Change: 17 July, 2009
" License: This program is free software. It comes without any warranty,
" to the extent permitted by applicable law. You can redistribute
" it and/or modify it under the terms of the Do What The Fuck You
" Want To Public License, Version 2, as published by Sam Hocevar.
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"
" ============================================================================
if exists("g:loaded_nerdtree_fs_menu")
finish
endif
let g:loaded_nerdtree_fs_menu = 1
call NERDTreeAddMenuItem({'text': '(a)dd a childnode', 'shortcut': 'a', 'callback': 'NERDTreeAddNode'})
call NERDTreeAddMenuItem({'text': '(m)ove the current node', 'shortcut': 'm', 'callback': 'NERDTreeMoveNode'})
call NERDTreeAddMenuItem({'text': '(d)elete the current node', 'shortcut': 'd', 'callback': 'NERDTreeDeleteNode'})
if has("gui_mac") || has("gui_macvim")
call NERDTreeAddMenuItem({'text': '(r)eveal in Finder the current node', 'shortcut': 'r', 'callback': 'NERDTreeRevealInFinder'})
call NERDTreeAddMenuItem({'text': '(o)pen the current node with system editor', 'shortcut': 'o', 'callback': 'NERDTreeExecuteFile'})
call NERDTreeAddMenuItem({'text': '(q)uicklook the current node', 'shortcut': 'q', 'callback': 'NERDTreeQuickLook'})
endif
if g:NERDTreePath.CopyingSupported()
call NERDTreeAddMenuItem({'text': '(c)copy the current node', 'shortcut': 'c', 'callback': 'NERDTreeCopyNode'})
endif
"FUNCTION: s:echo(msg){{{1
function! s:echo(msg)
redraw
echomsg "NERDTree: " . a:msg
endfunction
"FUNCTION: s:echoWarning(msg){{{1
function! s:echoWarning(msg)
echohl warningmsg
call s:echo(a:msg)
echohl normal
endfunction
"FUNCTION: s:promptToDelBuffer(bufnum, msg){{{1
"prints out the given msg and, if the user responds by pushing 'y' then the
"buffer with the given bufnum is deleted
"
"Args:
"bufnum: the buffer that may be deleted
"msg: a message that will be echoed to the user asking them if they wish to
" del the buffer
function! s:promptToDelBuffer(bufnum, msg)
echo a:msg
if nr2char(getchar()) ==# 'y'
exec "silent bdelete! " . a:bufnum
endif
endfunction
"FUNCTION: NERDTreeAddNode(){{{1
function! NERDTreeAddNode()
let curDirNode = g:NERDTreeDirNode.GetSelected()
let newNodeName = input("Add a childnode\n".
\ "==========================================================\n".
\ "Enter the dir/file name to be created. Dirs end with a '/'\n" .
\ "", curDirNode.path.str() . g:NERDTreePath.Slash(), "file")
if newNodeName ==# ''
call s:echo("Node Creation Aborted.")
return
endif
try
let newPath = g:NERDTreePath.Create(newNodeName)
let parentNode = b:NERDTreeRoot.findNode(newPath.getParent())
let newTreeNode = g:NERDTreeFileNode.New(newPath)
if parentNode.isOpen || !empty(parentNode.children)
call parentNode.addChild(newTreeNode, 1)
call NERDTreeRender()
call newTreeNode.putCursorHere(1, 0)
endif
catch /^NERDTree/
call s:echoWarning("Node Not Created.")
endtry
endfunction
"FUNCTION: NERDTreeMoveNode(){{{1
function! NERDTreeMoveNode()
let curNode = g:NERDTreeFileNode.GetSelected()
let newNodePath = input("Rename the current node\n" .
\ "==========================================================\n" .
\ "Enter the new path for the node: \n" .
\ "", curNode.path.str(), "file")
if newNodePath ==# ''
call s:echo("Node Renaming Aborted.")
return
endif
try
let bufnum = bufnr(curNode.path.str())
call curNode.rename(newNodePath)
call NERDTreeRender()
"if the node is open in a buffer, ask the user if they want to
"close that buffer
if bufnum != -1
let prompt = "\nNode renamed.\n\nThe old file is open in buffer ". bufnum . (bufwinnr(bufnum) ==# -1 ? " (hidden)" : "") .". Delete this buffer? (yN)"
call s:promptToDelBuffer(bufnum, prompt)
endif
call curNode.putCursorHere(1, 0)
redraw
catch /^NERDTree/
call s:echoWarning("Node Not Renamed.")
endtry
endfunction
" FUNCTION: NERDTreeDeleteNode() {{{1
function! NERDTreeDeleteNode()
let currentNode = g:NERDTreeFileNode.GetSelected()
let confirmed = 0
if currentNode.path.isDirectory
let choice =input("Delete the current node\n" .
\ "==========================================================\n" .
\ "STOP! To delete this entire directory, type 'yes'\n" .
\ "" . currentNode.path.str() . ": ")
let confirmed = choice ==# 'yes'
else
echo "Delete the current node\n" .
\ "==========================================================\n".
\ "Are you sure you wish to delete the node:\n" .
\ "" . currentNode.path.str() . " (yN):"
let choice = nr2char(getchar())
let confirmed = choice ==# 'y'
endif
if confirmed
try
call currentNode.delete()
call NERDTreeRender()
"if the node is open in a buffer, ask the user if they want to
"close that buffer
let bufnum = bufnr(currentNode.path.str())
if buflisted(bufnum)
let prompt = "\nNode deleted.\n\nThe file is open in buffer ". bufnum . (bufwinnr(bufnum) ==# -1 ? " (hidden)" : "") .". Delete this buffer? (yN)"
call s:promptToDelBuffer(bufnum, prompt)
endif
redraw
catch /^NERDTree/
call s:echoWarning("Could not remove node")
endtry
else
call s:echo("delete aborted")
endif
endfunction
" FUNCTION: NERDTreeCopyNode() {{{1
function! NERDTreeCopyNode()
let currentNode = g:NERDTreeFileNode.GetSelected()
let newNodePath = input("Copy the current node\n" .
\ "==========================================================\n" .
\ "Enter the new path to copy the node to: \n" .
\ "", currentNode.path.str(), "file")
if newNodePath != ""
"strip trailing slash
let newNodePath = substitute(newNodePath, '\/$', '', '')
let confirmed = 1
if currentNode.path.copyingWillOverwrite(newNodePath)
call s:echo("Warning: copying may overwrite files! Continue? (yN)")
let choice = nr2char(getchar())
let confirmed = choice ==# 'y'
endif
if confirmed
try
let newNode = currentNode.copy(newNodePath)
if !empty(newNode)
call NERDTreeRender()
call newNode.putCursorHere(0, 0)
endif
catch /^NERDTree/
call s:echoWarning("Could not copy node")
endtry
endif
else
call s:echo("Copy aborted.")
endif
redraw
endfunction
function! NERDTreeQuickLook()
let treenode = g:NERDTreeFileNode.GetSelected()
if treenode != {}
call system("qlmanage -p 2>/dev/null '" . treenode.path.str() . "'")
endif
endfunction
function! NERDTreeRevealInFinder()
let treenode = g:NERDTreeFileNode.GetSelected()
if treenode != {}
let x = system("open -R '" . treenode.path.str() . "'")
endif
endfunction
function! NERDTreeExecuteFile()
let treenode = g:NERDTreeFileNode.GetSelected()
if treenode != {}
let x = system("open '" . treenode.path.str() . "'")
endif
endfunction
" vim: set sw=4 sts=4 et fdm=marker:

View File

@@ -1,7 +0,0 @@
#!/bin/bash
cd /nwq/linstore/data/manup/nwq/vimrc/source/vimrc-current/etc/vim/ \
&& git pull \
&& cd ../../../../ \
&& ./package

1
plugged/ctrlp.vim Submodule

Submodule plugged/ctrlp.vim added at 6bca8770a0

Submodule plugged/jellybeans.vim added at ef83bf4dc8

1
plugged/nerdtree Submodule

Submodule plugged/nerdtree added at fec3e57ad2

1
plugged/vim-sensible Submodule

Submodule plugged/vim-sensible added at 4a7159a300

File diff suppressed because it is too large Load Diff

View File

@@ -1,88 +0,0 @@
let s:tree_up_dir_line = '.. (up a dir)'
"NERDTreeFlags are syntax items that should be invisible, but give clues as to
"how things should be highlighted
syn match NERDTreeFlag #\~#
syn match NERDTreeFlag #\[RO\]#
"highlighting for the .. (up dir) line at the top of the tree
execute "syn match NERDTreeUp #\\V". s:tree_up_dir_line ."#"
"highlighting for the ~/+ symbols for the directory nodes
syn match NERDTreeClosable #\~\<#
syn match NERDTreeClosable #\~\.#
syn match NERDTreeOpenable #+\<#
syn match NERDTreeOpenable #+\.#he=e-1
"highlighting for the tree structural parts
syn match NERDTreePart #|#
syn match NERDTreePart #`#
syn match NERDTreePartFile #[|`]-#hs=s+1 contains=NERDTreePart
"quickhelp syntax elements
syn match NERDTreeHelpKey #" \{1,2\}[^ ]*:#hs=s+2,he=e-1
syn match NERDTreeHelpKey #" \{1,2\}[^ ]*,#hs=s+2,he=e-1
syn match NERDTreeHelpTitle #" .*\~#hs=s+2,he=e-1 contains=NERDTreeFlag
syn match NERDTreeToggleOn #".*(on)#hs=e-2,he=e-1 contains=NERDTreeHelpKey
syn match NERDTreeToggleOff #".*(off)#hs=e-3,he=e-1 contains=NERDTreeHelpKey
syn match NERDTreeHelpCommand #" :.\{-}\>#hs=s+3
syn match NERDTreeHelp #^".*# contains=NERDTreeHelpKey,NERDTreeHelpTitle,NERDTreeFlag,NERDTreeToggleOff,NERDTreeToggleOn,NERDTreeHelpCommand
"highlighting for readonly files
syn match NERDTreeRO #.*\[RO\]#hs=s+2 contains=NERDTreeFlag,NERDTreeBookmark,NERDTreePart,NERDTreePartFile
"highlighting for sym links
syn match NERDTreeLink #[^-| `].* -> # contains=NERDTreeBookmark,NERDTreeOpenable,NERDTreeClosable,NERDTreeDirSlash
"highlighing for directory nodes and file nodes
syn match NERDTreeDirSlash #/#
syn match NERDTreeDir #[^-| `].*/# contains=NERDTreeLink,NERDTreeDirSlash,NERDTreeOpenable,NERDTreeClosable
syn match NERDTreeExecFile #[|` ].*\*\($\| \)# contains=NERDTreeLink,NERDTreePart,NERDTreeRO,NERDTreePartFile,NERDTreeBookmark
syn match NERDTreeFile #|-.*# contains=NERDTreeLink,NERDTreePart,NERDTreeRO,NERDTreePartFile,NERDTreeBookmark,NERDTreeExecFile
syn match NERDTreeFile #`-.*# contains=NERDTreeLink,NERDTreePart,NERDTreeRO,NERDTreePartFile,NERDTreeBookmark,NERDTreeExecFile
syn match NERDTreeCWD #^[</].*$#
"highlighting for bookmarks
syn match NERDTreeBookmark # {.*}#hs=s+1
"highlighting for the bookmarks table
syn match NERDTreeBookmarksLeader #^>#
syn match NERDTreeBookmarksHeader #^>-\+Bookmarks-\+$# contains=NERDTreeBookmarksLeader
syn match NERDTreeBookmarkName #^>.\{-} #he=e-1 contains=NERDTreeBookmarksLeader
syn match NERDTreeBookmark #^>.*$# contains=NERDTreeBookmarksLeader,NERDTreeBookmarkName,NERDTreeBookmarksHeader
if exists("g:NERDChristmasTree") && g:NERDChristmasTree
hi def link NERDTreePart Special
hi def link NERDTreePartFile Type
hi def link NERDTreeFile Normal
hi def link NERDTreeExecFile Title
hi def link NERDTreeDirSlash Identifier
hi def link NERDTreeClosable Type
else
hi def link NERDTreePart Normal
hi def link NERDTreePartFile Normal
hi def link NERDTreeFile Normal
hi def link NERDTreeClosable Title
endif
hi def link NERDTreeBookmarksHeader statement
hi def link NERDTreeBookmarksLeader ignore
hi def link NERDTreeBookmarkName Identifier
hi def link NERDTreeBookmark normal
hi def link NERDTreeHelp String
hi def link NERDTreeHelpKey Identifier
hi def link NERDTreeHelpCommand Identifier
hi def link NERDTreeHelpTitle Macro
hi def link NERDTreeToggleOn Question
hi def link NERDTreeToggleOff WarningMsg
hi def link NERDTreeDir Directory
hi def link NERDTreeUp Directory
hi def link NERDTreeCWD Statement
hi def link NERDTreeLink Macro
hi def link NERDTreeOpenable Title
hi def link NERDTreeFlag ignore
hi def link NERDTreeRO WarningMsg
hi def link NERDTreeBookmark Statement
hi def link NERDTreeCurrentNode Search

664
vimrc
View File

@@ -1,607 +1,115 @@
" mReschke Personal Debian based Vimrc
" 2015-03-02
" All new custom and OS agnostic vim configuration using vim-plug plugin manager
" mReschke 2019-10-30
" All system-wide defaults are set in $VIMRUNTIME/debian.vim and sourced by
" the call to :runtime you can find below. If you wish to change any of those
" settings, you should do it in this file (/etc/vim/vimrc), since debian.vim
" will be overwritten everytime an upgrade of the vim packages is performed.
" It is recommended to make changes after sourcing debian.vim since it alters
" the value of the 'compatible' option.
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.
runtime! debian.vim
" ##############################################################################
" Vim Cheatsheet
" ##############################################################################
" vim-plug
" Install plugin, add to vimrc and run :PlugInstall
" Uninstall, remove from vimrc and run :PlugClean
" Uncomment the next line to make Vim more Vi-compatible
" NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes numerous
" options, so any other options should be set AFTER setting 'compatible'.
"set compatible
" Source a global configuration file if available
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
endif
" Use pathogen to easily modify the runtime path to include all plugins under
" the ~/.vim/bundle directory
filetype off " force reloading *after* pathogen loaded
call pathogen#infect()
call pathogen#helptags()
filetype plugin indent on " enable detection, plugins and indenting in one step
syntax on
" Change the mapleader from \ to ,
" ##############################################################################
" Plugins
" ##############################################################################
call plug#begin('~/.vim/plugged')
" Sinsible Defaults
Plug 'tpope/vim-sensible'
" NERDTree file tree
Plug 'scrooloose/nerdtree'
" CTRLP fuzzy buffer search
Plug 'ctrlpvim/ctrlp.vim'
" Color Schemes
Plug 'nanotech/jellybeans.vim'
" Initialize plugin system
call plug#end()
" ##############################################################################
" Configurations
" ##############################################################################
set nowrap
set tabstop=4
set softtabstop=4
set expandtab
set smarttab
set shiftwidth=4
set shiftround
set autoindent
set copyindent
set number
set showmatch
set pastetoggle=<F2>
set ignorecase
set hlsearch
set incsearch
set nobackup
set noswapfile
" Change leader key from default \ to ,
let mapleader=","
let maplocalleader="\\"
scriptencoding utf-8
set encoding=utf-8
" Editing behaviour {{{
set showmode " always show what mode we're currently editing in
set nowrap " don't wrap lines
set tabstop=4 " a tab is four spaces"set softtabstop=4
set softtabstop=4 " when hitting <BS>, pretend like a tab is removed, even if spaces
set expandtab " expand tabs by default (overloadable per file type later) use expandtab or noexpandtab (ie tabs to spaces true/false)
set shiftwidth=4 " number of spaces to use for autoindenting
set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
set backspace=indent,eol,start " allow backspacing over everything in insert mode
set autoindent " always set autoindenting on
set copyindent " copy the previous indentation on autoindenting
set number " always show line numbers
set showmatch " set show matching parenthesis
set ignorecase " ignore case when searching
set smartcase " ignore case if search pattern is all lowercase,
" case-sensitive otherwise
set smarttab " insert tabs on the start of a line according to
" shiftwidth, not tabstop
set scrolloff=4 " keep 4 lines off the edges of the screen when scrolling
"set virtualedit=all " allow the cursor to go in to "invalid" places
set hlsearch " highlight search terms
set incsearch " show search matches as you type
set gdefault " search/replace "globally" (on a line) by default
set listchars=tab:▸\ ,trail,extends:#,nbsp
set nolist " don't show invisible characters by default,
" but it is enabled for some file types (see later)
set pastetoggle=<F2> " when in insert mode, press <F2> to go to
" paste mode, where you can paste mass data
" that won't be autoindented
"set mouse=a " enable using the mouse if terminal emulator
" supports it (xterm does)
set fileformats="unix,dos,mac"
set formatoptions+=1 " When wrapping paragraphs, don't end lines
" with 1-letter words (looks stupid)
set nrformats= " make <C-a> and <C-x> play well with
" zero-padded numbers (i.e. don't consider
" them octal or hex)
set shortmess+=I " hide the launch screen
set clipboard=unnamed " normal OS clipboard interaction
set autoread " automatically reload files changed outside of Vim
"set autowrite " automatically save file on buffer switch
" Allow saving of files as sudo when I forgot to start vim using sudo.
cmap w!! w !sudo tee > /dev/null %
" Toggle show/hide invisible chars
nnoremap <leader>i :set list!<cr>
" Now ; acts liks :, so you can skip pressing shift
nnoremap ; :
" Toggle line numbers
nnoremap <leader>m :setlocal number!<cr>
" Thanks to Steve Losh for this liberating tip
" See http://stevelosh.com/blog/2010/09/coming-home-to-vim
nnoremap / /\v
vnoremap / /\v
" Speed up scrolling of the viewport slightly
nnoremap <C-e> 2<C-e>
nnoremap <C-y> 2<C-y>
" }}}
" Folding rules {{{
set foldenable " enable folding
set foldcolumn=2 " add a fold column
set foldmethod=marker " detect triple-{ style fold markers
set foldlevelstart=99 " start out with everything unfolded
set foldopen=block,hor,insert,jump,mark,percent,quickfix,search,tag,undo
" which commands trigger auto-unfold
let php_folding=1
function! MyFoldText()
let line = getline(v:foldstart)
let nucolwidth = &fdc + &number * &numberwidth
let windowwidth = winwidth(0) - nucolwidth - 3
let foldedlinecount = v:foldend - v:foldstart
" expand tabs into spaces
let onetab = strpart(' ', 0, &tabstop)
let line = substitute(line, '\t', onetab, 'g')
let line = strpart(line, 0, windowwidth - 2 -len(foldedlinecount))
let fillcharcount = windowwidth - len(line) - len(foldedlinecount) - 4
return line . ' …' . repeat(" ",fillcharcount) . foldedlinecount . ' '
endfunction
set foldtext=MyFoldText()
" Mappings to easily toggle fold levels
nnoremap z0 :set foldlevel=0<cr>
nnoremap z1 :set foldlevel=1<cr>
nnoremap z2 :set foldlevel=2<cr>
nnoremap z3 :set foldlevel=3<cr>
nnoremap z4 :set foldlevel=4<cr>
nnoremap z5 :set foldlevel=5<cr>
nnoremap <Space> za
vnoremap <Space> za
" }}}
" Editor layout {{{
set termencoding=utf-8
set encoding=utf-8
set lazyredraw " don't update the display while executing macros
set laststatus=2 " tell VIM to always put a status line in, even
" if there is only one window
"set cmdheight=2 " use a status bar that is 2 rows high
" }}}
" Vim behaviour {{{
set hidden " hide buffers instead of closing them this
" means that the current buffer can be put
" to background without being written; and
" that marks and undo history are preserved
set switchbuf=useopen " reveal already opened files from the
" quickfix window instead of opening new
" buffers
set history=1000 " remember more commands and search history
set undolevels=1000 " use many muchos levels of undo
if v:version >= 730
set undofile " keep a persistent backup file
set undodir=~/.vim/.undo,~/tmp,/tmp
endif
set nobackup " do not keep backup files, it's 70's style cluttering
set noswapfile " do not write annoying intermediate swap files,
" who did ever restore from swap files anyway?
set directory=~/.vim/.tmp,~/tmp,/tmp
" store swap files in one of these directories
" (in case swapfile is ever turned on)
set viminfo='20,\"80 " read/write a .viminfo file, don't store more
" than 80 lines of registers
set wildmenu " make tab completion for files/buffers act like bash
set wildmode=list:full " show a list when pressing tab and complete
" first full match
set wildignore=*.swp,*.bak,*.pyc,*.class
set title " change the terminal's title
set visualbell " don't beep
set noerrorbells " don't beep
set showcmd " show (partial) command in the last line of the screen
" this also shows visual selection info
set nomodeline " disable mode lines (security measure)
"set ttyfast " always use a fast terminal
"set cursorline " underline the current line, for quick orientation
" }}}
" Toggle the quickfix window {{{
" From Steve Losh, http://learnvimscriptthehardway.stevelosh.com/chapters/38.html
nnoremap <C-q> :call <SID>QuickfixToggle()<cr>
let g:quickfix_is_open = 0
function! s:QuickfixToggle()
if g:quickfix_is_open
cclose
let g:quickfix_is_open = 0
execute g:quickfix_return_to_window . "wincmd w"
else
let g:quickfix_return_to_window = winnr()
copen
let g:quickfix_is_open = 1
endif
endfunction
" }}}
" Toggle the foldcolumn {{{
nnoremap <leader>f :call FoldColumnToggle()<cr>
let g:last_fold_column_width = 4 " Pick a sane default for the foldcolumn
function! FoldColumnToggle()
if &foldcolumn
let g:last_fold_column_width = &foldcolumn
setlocal foldcolumn=0
else
let &l:foldcolumn = g:last_fold_column_width
endif
endfunction
" }}}
" Highlighting {{{
if &t_Co > 2 || has("gui_running")
syntax on " switch syntax highlighting on, when the terminal has colors
endif
" }}}
" Shortcut mappings {{{
" Since I never use the ; key anyway, this is a real optimization for almost
" all Vim commands, as I don't have to press the Shift key to form chords to
" enter ex mode.
nnoremap ; :
nnoremap <leader>; ;
" Avoid accidental hits of <F1> while aiming for <Esc>
noremap! <F1> <Esc>
nnoremap <leader>Q :q<CR> " Quickly close the current window
nnoremap <leader>q :bd<CR> " Quickly close the current buffer
" Use Q for formatting the current paragraph (or visual selection)
vnoremap Q gq
nnoremap Q gqap
" set breakindent on " keep paragraph indentation when re-wrapping text
" Sort paragraphs
vnoremap <leader>s !sort -f<CR>gv
nnoremap <leader>s vip!sort -f<CR><Esc>
" make p in Visual mode replace the selected text with the yank register
vnoremap p <Esc>:let current_reg = @"<CR>gvdi<C-R>=current_reg<CR><Esc>
" Shortcut to make
nnoremap mk :make<CR>
" Swap implementations of ` and ' jump to markers
" By default, ' jumps to the marked line, ` jumps to the marked line and
" column, so swap them
nnoremap ' `
nnoremap ` '
" Use the damn hjkl keys
"noremap <up> <nop>
"noremap <down> <nop>
"noremap <left> <nop>
"noremap <right> <nop>
" Remap j and k to act as expected when used on long, wrapped, lines
nnoremap j gj
nnoremap k gk
" Easy window navigation
noremap <C-h> <C-w>h
noremap <C-j> <C-w>j
noremap <C-k> <C-w>k
noremap <C-l> <C-w>l
nnoremap <leader>w <C-w>v<C-w>l
"Resize vsplit
nmap <C-v> :vertical resize +5<cr>
nmap 25 :vertical resize 40<cr>
"Load the current buffer in Chrome
"nmap <leader>o :!chromium<cr>
" Complete whole filenames/lines with a quicker shortcut key in insert mode
inoremap <C-f> <C-x><C-f>
inoremap <C-l> <C-x><C-l>
" Use ,d (or ,dd or ,dj or 20,dd) to delete a line without adding it to the
" yanked stack (also, in visual mode)
nnoremap <silent> <leader>d "_d
vnoremap <silent> <leader>d "_d
" Quick yanking to the end of the line
nnoremap Y y$
" YankRing stuff
let g:yankring_history_dir = '$HOME/.vim/.tmp'
nnoremap <leader>r :YRShow<CR>
" Edit the vimrc file
nnoremap <silent> <leader>ev :e /etc/vim/vimrc<CR>
nnoremap <silent> <leader>sv :so /etc/vim/vimrc<CR>
" Clears the search register
nnoremap <silent> <leader>/ :nohlsearch<CR>
" Pull word under cursor into LHS of a substitute (for quick search and
" replace)
nnoremap <leader>z :%s#\<<C-r>=expand("<cword>")<CR>\>#
" Keep search matches in the middle of the window and pulse the line when moving
" to them.
nnoremap n n:call PulseCursorLine()<cr>
nnoremap N N:call PulseCursorLine()<cr>
" Quickly get out of insert mode without your fingers having to leave the
" home row (either use 'jj' or 'jk')
inoremap jj <Esc>
" Quick alignment of text
" nnoremap <leader>al :left<CR>
" nnoremap <leader>ar :right<CR>
" nnoremap <leader>ac :center<CR>
" Sudo to write
cnoremap w!! w !sudo tee % >/dev/null
" Ctrl+W to redraw
"nnoremap <C-w> :redraw!<cr>
" Jump to matching pairs easily, with Tab
nnoremap <Tab> %
vnoremap <Tab> %
" Strip all trailing whitespace from a file, using ,W
" NO, makes toooo many edits to files
"nnoremap <leader>W :%s/\s\+$//<CR>:let @/=''<CR>
" Use The Silver Searcher over grep, iff possible
if executable('ag')
" Use ag over grep
set grepprg=ag\ --nogroup\ --nocolor
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
" ag is fast enough that CtrlP doesn't need to cache
let g:ctrlp_use_caching = 0
endif
" grep/Ack/Ag for the word under cursor
vnoremap <leader>a y:grep! "\b<c-r>"\b"<cr>:cw<cr>
nnoremap <leader>a :grep! "\b<c-r><c-w>\b"
nnoremap K *N:grep! "\b<c-r><c-w>\b"<cr>:cw<cr>
" Allow quick additions to the spelling dict
nnoremap <leader>g :spellgood <c-r><c-w>
" Define "Ag" command
command -nargs=+ -complete=file -bar Ag silent! grep! <args> | cwindow | redraw!
" bind \ (backward slash) to grep shortcut
nnoremap \ :Ag<SPACE>
" Creating folds for tags in HTML
"nnoremap <leader>ft Vatzf
" Reselect text that was just pasted with ,v
nnoremap <leader>v V`]
" Gundo.vim
nnoremap <F5> :GundoToggle<CR>
" }}}
" NERDTree settings {{{
nnoremap <leader>n :NERDTreeTabsToggle<CR>
"nnoremap <leader>n :NERDTree<CR>
"nnoremap <leader>m :NERDTreeClose<CR>:NERDTreeFind<CR>
"conflicts with toggle line numbers
"nnoremap <leader>N :NERDTreeClose<CR>
" Store the bookmarks file
"let NERDTreeBookmarksFile=expand("$HOME/.vim/NERDTreeBookmarks")
let NERDTreeBookmarksFile=expand("/etc/vim/NERDTreeBookmarks")
" Show the bookmarks table on startup
let NERDTreeShowBookmarks=1
" Show hidden files, too
" Toggle NERDTree
nnoremap <leader>n :NERDTreeToggle<CR>
let NERDTreeShowFiles=1
let NERDTreeShowHidden=1
" Quit on opening files from the tree
let NERDTreeQuitOnOpen=1
" CTRLP (Command Palette, already works with CTRL+P)
nnoremap <leader>. :CtrlPBuffer<CR>
" Highlight the selected entry in the tree
let NERDTreeHighlightCursorline=1
" New Q and q keys to quit quicker
nnoremap <leader>Q :q<CR>
nnoremap <leader>q :bd<CR>
" Use a single click to fold/unfold directories and a double click to open
" files
let NERDTreeMouseMode=2
" Edit vimrc
nnoremap <silent> <leader>ev :e ~/.vim/vimrc<CR>
" Don't display these kinds of files
let NERDTreeIgnore=[ '\.pyc$', '\.pyo$', '\.py\$class$', '\.obj$',
\ '\.o$', '\.so$', '\.egg$', '^\.git$' ]
" Clear the search register
nnoremap <silent> <leader>/ :nohlsearch<CR>
" }}}
" Get out of insert mode with ii (can still use Esc)
inoremap ii <Esc>
" TagList settings {{{
nnoremap <leader>l :TlistClose<CR>:TlistToggle<CR>
nnoremap <leader>L :TlistClose<CR>
cnoremap w!! w !sudo tee % >/dev/null
" quit Vim when the TagList window is the last open window
let Tlist_Exit_OnlyWindow=1 " quit when TagList is the last open window
let Tlist_GainFocus_On_ToggleOpen=1 " put focus on the TagList window when it opens
"let Tlist_Process_File_Always=1 " process files in the background, even when the TagList window isn't open
"let Tlist_Show_One_File=1 " only show tags from the current buffer, not all open buffers
let Tlist_WinWidth=40 " set the width
let Tlist_Inc_Winwidth=1 " increase window by 1 when growing
" shorten the time it takes to highlight the current tag (default is 4 secs)
" note that this setting influences Vim's behaviour when saving swap files,
" but we have already turned off swap files (earlier)
"set updatetime=1000
" the default ctags in /usr/bin on the Mac is GNU ctags, so change it to the
" exuberant ctags version in /usr/local/bin
let Tlist_Ctags_Cmd = '/usr/local/bin/ctags'
" show function/method prototypes in the list
let Tlist_Display_Prototype=1
" ##############################################################################
" Color Schemes
" ##############################################################################
set background=dark
" don't show scope info
let Tlist_Display_Tag_Scope=0
" Enable true color (material requires this)
"if exists('+termguicolors')
" let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
" let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
" set termguicolors
"endif
" show TagList window on the right
let Tlist_Use_Right_Window=1
" }}}
" vim-flake8 default configuration
let g:flake8_show_in_gutter=1
" Conflict markers {{{
" highlight conflict markers
match ErrorMsg '^\(<\|=\|>\)\{7\}\([^=].\+\)\?$'
" shortcut to jump to next conflict marker
nnoremap <silent> <leader>c /^\(<\\|=\\|>\)\{7\}\([^=].\+\)\?$<CR>
" }}}
" Restore or remember last cursor position upon reopening files {{{
"autocmd BufReadPost *
" \ if line("'\"") > 0 && line("'\"") <= line("$") |
" \ exe "normal! g`\"" |
" \ endif
" }}}
" Extra vi-compatibility {{{
" set extra vi-compatible options
set cpoptions+=$ " when changing a line, don't redisplay, but put a '$' at
" the end during the change
set formatoptions-=o " don't start new lines w/ comment leader on pressing 'o'
au filetype vim set formatoptions-=o
" somehow, during vim filetype detection, this gets set
" for vim files, so explicitly unset it again
" }}}
" Ignore common directories
let g:ctrlp_custom_ignore = {
\ 'dir': 'node_modules\|bower_components',
\ }
" Invoke CtrlP, but CommandT style
nnoremap <leader>t :CtrlP<cr>
nnoremap <leader>b :CtrlPTag<cr>
nnoremap <leader>. :CtrlPBuffer<cr>
if has("gui_running")
"colorscheme molokai
"colorscheme mustang
"colorscheme badwolf
colorscheme jellybeans
" Remove toolbar, left scrollbar and right scrollbar
set guioptions-=T
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R
else
set background=dark
"colorscheme molokai
"colorscheme mustang
"colorscheme badwolf
colorscheme jellybeans
"colorscheme heroku-terminal
"colorscheme benokai
"let g:jellybeans_use_lowcolor_black = 1
let g:jellybeans_overrides = {
\ 'background': { 'ctermbg': 'none', '256ctermbg': 'none' },
\}
if has('termguicolors') && &termguicolors
let g:jellybeans_overrides['background']['guibg'] = 'none'
endif
" Pulse ------------------------------------------------------------------- {{{
function! PulseCursorLine()
let current_window = winnr()
windo set nocursorline
execute current_window . 'wincmd w'
setlocal cursorline
redir => old_hi
silent execute 'hi CursorLine'
redir END
let old_hi = split(old_hi, '\n')[0]
let old_hi = substitute(old_hi, 'xxx', '', '')
hi CursorLine guibg=#3a3a3a
redraw
sleep 20m
hi CursorLine guibg=#4a4a4a
redraw
sleep 30m
hi CursorLine guibg=#3a3a3a
redraw
sleep 30m
hi CursorLine guibg=#2a2a2a
redraw
sleep 20m
execute 'hi ' . old_hi
windo set cursorline
execute current_window . 'wincmd w'
endfunction
" }}}
" Powerline configuration ------------------------------------------------- {{{
" Dont have powerline, too much of a pain to install, to many dependencies
"let g:Powerline_symbols = 'compatible'
"let g:Powerline_symbols = 'fancy'
" }}}
" Use shift-H and shift-L for move to beginning/end
nnoremap H 0
nnoremap L $
" Split previously opened file ('#') in a split window
nnoremap <leader>sh :execute "leftabove vsplit" bufname('#')<cr>
nnoremap <leader>sl :execute "rightbelow vsplit" bufname('#')<cr>
" Abbreviations
" ------------------------------------------------------------------------- {{{
"abbrev pv !php artisan
" }}}
" Laravel and PHP stuff --------------------------------------------------- {{{
" Auto-remove trailing spaces in PHP files
autocmd BufWritePre *.php :%s/\s\+$//e
" Laravel framework commons
"nmap <leader>lr :e app/routes.php<cr>
"nmap <leader>lca :e app/config/app.php<cr>81Gf(%O
"nmap <leader>lcd :e app/config/database.php<cr>
"nmap <leader>lc :e composer.json<cr>
" I don't want to pull up these folders/files when calling CtrlP
set wildignore+=*/vendor/**
set wildignore+=*/node_modules/**
"Auto change directory to match current file ,cd
nnoremap ,cd :cd %:p:h<CR>:pwd<CR>
" Prepare a new PHP class
function! Class()
let name = input('Class name? ')
let namespace = input('Any Namespace? ')
if strlen(namespace)
exec "normal i<?php namespace " . namespace . ";\<C-M>\<C-M>"
else
exec "normal i<?php \<C-m>"
endif
" Open class
exec "normal iclass " . name . " {\<C-m>}\<C-[>O\<C-[>"
exec "normal i\<C-M> public function __construct()\<C-M>{\<C-M>\<C-M>}\<C-[>"
endfunction
nmap ,1 :call Class()<cr>
" }}}
colorscheme jellybeans

View File

@@ -1,190 +0,0 @@
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15
set showmode " always show what mode we're currently editing in
set nowrap " don't wrap lines
set tabstop=4 " a tab is four spaces
set smarttab
set tags=tags
set softtabstop=4 " when hitting <BS>, pretend like a tab is removed, even if spaces
set expandtab " expand tabs by default (overloadable per file type later)
set shiftwidth=4 " number of spaces to use for autoindenting
set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
set backspace=indent,eol,start " allow backspacing over everything in insert mode
set autoindent " always set autoindenting on
set copyindent " copy the previous indentation on autoindenting
set number " always show line numbers
set ignorecase " ignore case when searching
set smartcase " ignore case if search pattern is all lowercase,
set timeout timeoutlen=200 ttimeoutlen=100
set visualbell " don't beep
set noerrorbells " don't beep
set autowrite "Save on buffer switch
set mouse=a
" With a map leader it's possible to do extra key combinations
" like <leader>w saves the current file
let mapleader = ","
let g:mapleader = ","
" Fast saves
nmap <leader>w :w!<cr>
" Down is really the next line
nnoremap j gj
nnoremap k gk
"Easy escaping to normal model
imap jj <esc>
"Auto change directory to match current file ,cd
nnoremap ,cd :cd %:p:h<CR>:pwd<CR>
"easier window navigation
nmap <C-h> <C-w>h
nmap <C-j> <C-w>j
nmap <C-k> <C-w>k
nmap <C-l> <C-w>l
"Resize vsplit
nmap <C-v> :vertical resize +5<cr>
nmap 25 :vertical resize 40<cr>
nmap 50 <c-w>=
nmap 75 :vertical resize 120<cr>
nmap <C-b> :NERDTreeToggle<cr>
"Load the current buffer in Chrome
nmap ,c :!open -a Google\ Chrome<cr>
"Show (partial) command in the status line
set showcmd
" Create split below
nmap :sp :rightbelow sp<cr>
" Quickly go forward or backward to buffer
nmap :bp :BufSurfBack<cr>
nmap :bn :BufSurfForward<cr>
highlight Search cterm=underline
" Swap files out of the project root
set backupdir=~/.vim/backup//
set directory=~/.vim/swap//
" Run PHPUnit tests
map <Leader>t :!phpunit %<cr>
" Easy motion stuff
let g:EasyMotion_leader_key = '<Leader>'
" Powerline (Fancy thingy at bottom stuff)
let g:Powerline_symbols = 'fancy'
set laststatus=2 " Always show the statusline
set encoding=utf-8 " Necessary to show Unicode glyphs
set noshowmode " Hide the default mode text (e.g. -- INSERT -- below the statusline)
autocmd cursorhold * set nohlsearch
autocmd cursormoved * set hlsearch
" Remove search results
command! H let @/=""
" If you prefer the Omni-Completion tip window to close when a selection is
" made, these lines close it on movement in insert mode or when leaving
" insert mode
autocmd CursorMovedI * if pumvisible() == 0|pclose|endif
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
" Abbreviations
abbrev pft PHPUnit_Framework_TestCase
abbrev gm !php artisan generate:model
abbrev gc !php artisan generate:controller
abbrev gmig !php artisan generate:migration
" Auto-remove trailing spaces
autocmd BufWritePre *.php :%s/\s\+$//e
" Edit todo list for project
nmap ,todo :e todo.txt<cr>
" Laravel framework commons
nmap <leader>lr :e app/routes.php<cr>
nmap <leader>lca :e app/config/app.php<cr>81Gf(%O
nmap <leader>lcd :e app/config/database.php<cr>
nmap <leader>lc :e composer.json<cr>
" Concept - load underlying class for Laravel
function! FacadeLookup()
let facade = input('Facade Name: ')
let classes = {
\ 'Form': 'Html/FormBuilder.php',
\ 'Html': 'Html/HtmlBuilder.php',
\ 'File': 'Filesystem/Filesystem.php',
\ 'Eloquent': 'Database/Eloquent/Model.php'
\ }
execute ":edit vendor/laravel/framework/src/Illuminate/" . classes[facade]
endfunction
nmap ,lf :call FacadeLookup()<cr>
" CtrlP Stuff
" Familiar commands for file/symbol browsing
map <D-p> :CtrlP<cr>
map <C-r> :CtrlPBufTag<cr>
" I don't want to pull up these folders/files when calling CtrlP
set wildignore+=*/vendor/**
set wildignore+=*/public/forum/**
" Open splits
nmap vs :vsplit<cr>
nmap sp :split<cr>
" Create/edit file in the current directory
nmap :ed :edit %:p:h/
" Prepare a new PHP class
function! Class()
let name = input('Class name? ')
let namespace = input('Any Namespace? ')
if strlen(namespace)
exec 'normal i<?php namespace ' . namespace . ';
else
exec 'normal i<?php
endif
" Open class
exec 'normal iclass ' . name . ' {^M}^[O^['
exec 'normal i^M public function __construct()^M{^M ^M}^['
endfunction
nmap ,1 :call Class()<cr>
" Add a new dependency to a PHP class
function! AddDependency()
let dependency = input('Var Name: ')
let namespace = input('Class Path: ')
let segments = split(namespace, '\')
let typehint = segments[-1]
exec 'normal gg/construct^M:H^Mf)i, ' . typehint . ' $' . dependency . '^[/}^>O$this->^[a' . dependency . ' = $' . dependency . ';^[?{^MkOprotected $' . dependency . ';^M^[?{^MOuse ' . namespace . ';^M^['
" Remove opening comma if there is only one dependency
exec 'normal :%s/(, /(/g
'
endfunction
nmap ,2 :call AddDependency()<cr>

View File

@@ -1,58 +0,0 @@
" All system-wide defaults are set in $VIMRUNTIME/debian.vim and sourced by
" the call to :runtime you can find below. If you wish to change any of those
" settings, you should do it in this file (/etc/vim/vimrc), since debian.vim
" will be overwritten everytime an upgrade of the vim packages is performed.
" It is recommended to make changes after sourcing debian.vim since it alters
" the value of the 'compatible' option.
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.
runtime! debian.vim
" Uncomment the next line to make Vim more Vi-compatible
" NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes numerous
" options, so any other options should be set AFTER setting 'compatible'.
"set compatible
" Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.
"syntax on
" If using a dark background within the editing area and syntax highlighting
" turn on this option as well
"set background=dark
" Uncomment the following to have Vim jump to the last position when
" reopening a file
"if has("autocmd")
" au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
"endif
" Uncomment the following to have Vim load indentation rules and plugins
" according to the detected filetype.
"if has("autocmd")
" filetype plugin indent on
"endif
" The following are commented out as they cause vim to behave a lot
" differently from regular Vi. They are highly recommended though.
"set showcmd " Show (partial) command in status line.
"set showmatch " Show matching brackets.
"set ignorecase " Do case insensitive matching
"set smartcase " Do smart case matching
"set incsearch " Incremental search
"set autowrite " Automatically save before commands like :next and :make
"set hidden " Hide buffers when they are abandoned
"set mouse=a " Enable mouse usage (all modes)
" Source a global configuration file if available
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
endif
set tabstop=4
set ts=4
set sw=4
set nowrap
syntax enable
set ignorecase

View File

@@ -1,59 +0,0 @@
" All system-wide defaults are set in $VIMRUNTIME/debian.vim (usually just
" /usr/share/vim/vimcurrent/debian.vim) and sourced by the call to :runtime
" you can find below. If you wish to change any of those settings, you should
" do it in this file (/etc/vim/vimrc), since debian.vim will be overwritten
" everytime an upgrade of the vim packages is performed. It is recommended to
" make changes after sourcing debian.vim since it alters the value of the
" 'compatible' option.
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.
runtime! debian.vim
" Uncomment the next line to make Vim more Vi-compatible
" NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes numerous
" options, so any other options should be set AFTER setting 'compatible'.
"set compatible
" Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.
"syntax on
" If using a dark background within the editing area and syntax highlighting
" turn on this option as well
"set background=dark
" Uncomment the following to have Vim jump to the last position when
" reopening a file
"if has("autocmd")
" au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
"endif
" Uncomment the following to have Vim load indentation rules and plugins
" according to the detected filetype.
"if has("autocmd")
" filetype plugin indent on
"endif
" The following are commented out as they cause vim to behave a lot
" differently from regular Vi. They are highly recommended though.
"set showcmd " Show (partial) command in status line.
"set showmatch " Show matching brackets.
"set ignorecase " Do case insensitive matching
"set smartcase " Do smart case matching
"set incsearch " Incremental search
"set autowrite " Automatically save before commands like :next and :make
"set hidden " Hide buffers when they are abandoned
"set mouse=a " Enable mouse usage (all modes)
" Source a global configuration file if available
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
endif
set tabstop=4
set ts=4
set sw=4
set nowrap
syntax enable
set ignorecase

View File

@@ -1,13 +0,0 @@
" Vim configuration file, in effect when invoked as "vi". The aim of this
" configuration file is to provide a Vim environment as compatible with the
" original vi as possible. Note that ~/.vimrc configuration files as other
" configuration files in the runtimepath are still sourced.
" When Vim is invoked differently ("vim", "view", "evim", ...) this file is
" _not_ sourced; /etc/vim/vimrc and/or /etc/vim/gvimrc are.
" Debian system-wide default configuration Vim
set runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim74,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after
set compatible
" vim: set ft=vim: