├── .gitmodules ├── README ├── abbrevs.vim ├── autoload ├── pathogen.vim └── plug.vim ├── coc-settings.json ├── cocinit.vim ├── colors ├── Blue2.vim ├── PaperColor.vim ├── billw.vim ├── biogoo.vim ├── black_angus.vim ├── blugrine.vim ├── darkslategray.vim ├── dawn.vim ├── desert256.vim ├── fruit.vim ├── inkpot.vim ├── jellybeans.vim ├── kib_plastic.vim ├── lightblue.vim ├── midnight2.vim ├── murphy.vim ├── nightflight.vim ├── onehalflight.vim ├── polar.vim ├── professional.vim ├── sea.vim ├── softblue.vim ├── vibrantink.vim ├── wombat.vim └── zenburn.vim ├── dict ├── english.vim ├── english_dialects.vim ├── english_special.vim └── english_user.vim ├── doc ├── latexhelp.txt ├── morevimtips.txt ├── spellchecker.txt ├── tags └── vimtips.txt ├── filetype.vim ├── ftdetect └── rust.vim ├── ftplugin ├── c.vim ├── snippet.vim └── todo.vim ├── indent └── rust.vim ├── init.vim ├── lua ├── haskell-tools-setup.lua ├── telescope-setup.lua └── typescript-setup.lua ├── plugin └── bracketed-paste.vim ├── snippets ├── lua.snippets └── tex.snippets ├── spell ├── en.utf-8.add └── en.utf-8.add.spl └── syntax ├── cabal.vim ├── nimrod.vim ├── ruby.vim ├── rust.vim ├── text.vim └── worddiff.vim /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "/Users/jgm/.vim/bundle/vundle"] 2 | path = /Users/jgm/.vim/bundle/vundle 3 | url = https://github.com/gmarik/vundle.git 4 | [submodule "bundle/vundle"] 5 | path = bundle/vundle 6 | url = https://github.com/gmarik/vundle.git 7 | [submodule "bundle/hlint-refactor-vim"] 8 | path = bundle/hlint-refactor-vim 9 | url = https://github.com/mpickering/hlint-refactor-vim.git 10 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | This repository contains the contents of my .vim directory. 2 | 3 | My .vimrc looks like this: 4 | 5 | " put platform-specific settings here 6 | " and then source the common configuration file 7 | source ~/.vim/vimrc 8 | 9 | All addons go in the bundle directory and are managed by 10 | pathogen. When possible I install them as git submodules: 11 | 12 | git submodule add http://github.com/msanders/snipmate.vim.git bundle/snipmate 13 | git submodule add http://github.com/scrooloose/nerdtree.git bundle/nerdtree 14 | git submodule add http://github.com/clones/vim-fuzzyfinder.git bundle/fuzzyfinder 15 | git submodule add git://github.com/tpope/vim-fugitive.git bundle/fugitive 16 | 17 | After a fresh clone of the repository, you need to do this to get 18 | the submodules: 19 | 20 | git submodule init 21 | git submodule update 22 | 23 | If after 'call pathogen#helptags()' you get a warning about a dirty 24 | submodule, add 'tags' to bundle/REPO/.git/info/exclude, where REPO 25 | is the repository that is giving the warning. 26 | 27 | -------------------------------------------------------------------------------- /abbrevs.vim: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /autoload/pathogen.vim: -------------------------------------------------------------------------------- 1 | " pathogen.vim - path option manipulation 2 | " Maintainer: Tim Pope 3 | " Version: 1.2 4 | 5 | " Install in ~/.vim/autoload (or ~\vimfiles\autoload). 6 | " 7 | " API is documented below. 8 | 9 | if exists("g:loaded_pathogen") || &cp 10 | finish 11 | endif 12 | let g:loaded_pathogen = 1 13 | 14 | " Split a path into a list. 15 | function! pathogen#split(path) abort " {{{1 16 | if type(a:path) == type([]) | return a:path | endif 17 | let split = split(a:path,'\\\@ output 71 | silent filetype 72 | redir END 73 | let result = {} 74 | let result.detection = match(output,'detection:ON') >= 0 75 | let result.indent = match(output,'indent:ON') >= 0 76 | let result.plugin = match(output,'plugin:ON') >= 0 77 | return result 78 | endfunction " }}}1 79 | 80 | " \ on Windows unless shellslash is set, / everywhere else. 81 | function! pathogen#separator() abort " {{{1 82 | return !exists("+shellslash") || &shellslash ? '/' : '\' 83 | endfunction " }}}1 84 | 85 | " Convenience wrapper around glob() which returns a list. 86 | function! pathogen#glob(pattern) abort " {{{1 87 | let files = split(glob(a:pattern),"\n") 88 | return map(files,'substitute(v:val,"[".pathogen#separator()."/]$","","")') 89 | endfunction "}}}1 90 | 91 | " Like pathogen#glob(), only limit the results to directories. 92 | function! pathogen#glob_directories(pattern) abort " {{{1 93 | return filter(pathogen#glob(a:pattern),'isdirectory(v:val)') 94 | endfunction "}}}1 95 | 96 | " Prepend all subdirectories of path to the rtp, and append all after 97 | " directories in those subdirectories. 98 | function! pathogen#runtime_prepend_subdirectories(path) " {{{1 99 | let sep = pathogen#separator() 100 | let before = pathogen#glob_directories(a:path.sep."*[^~]") 101 | let after = pathogen#glob_directories(a:path.sep."*[^~]".sep."after") 102 | let rtp = pathogen#split(&rtp) 103 | let path = expand(a:path) 104 | call filter(rtp,'v:val[0:strlen(path)-1] !=# path') 105 | let &rtp = pathogen#join(pathogen#uniq(before + rtp + after)) 106 | return &rtp 107 | endfunction " }}}1 108 | 109 | " For each directory in rtp, check for a subdirectory named dir. If it 110 | " exists, add all subdirectories of that subdirectory to the rtp, immediately 111 | " after the original directory. If no argument is given, 'bundle' is used. 112 | " Repeated calls with the same arguments are ignored. 113 | function! pathogen#runtime_append_all_bundles(...) " {{{1 114 | let sep = pathogen#separator() 115 | let name = a:0 ? a:1 : 'bundle' 116 | let list = [] 117 | for dir in pathogen#split(&rtp) 118 | if dir =~# '\' to make sure tab is not mapped by 18 | " other plugin before putting this into your config. 19 | inoremap 20 | \ coc#pum#visible() ? coc#pum#next(1) : 21 | \ CheckBackspace() ? "\" : 22 | \ coc#refresh() 23 | inoremap coc#pum#visible() ? coc#pum#prev(1) : "\" 24 | 25 | " Make to accept selected completion item or notify coc.nvim to format 26 | " u breaks current undo, please make your own choice. 27 | inoremap coc#pum#visible() ? coc#pum#confirm() 28 | \: "\u\\=coc#on_enter()\" 29 | 30 | function! CheckBackspace() abort 31 | let col = col('.') - 1 32 | return !col || getline('.')[col - 1] =~# '\s' 33 | endfunction 34 | 35 | " Use to trigger completion. 36 | if has('nvim') 37 | inoremap coc#refresh() 38 | else 39 | inoremap coc#refresh() 40 | endif 41 | 42 | " Use `[g` and `]g` to navigate diagnostics 43 | " Use `:CocDiagnostics` to get all diagnostics of current buffer in location list. 44 | nmap [g (coc-diagnostic-prev) 45 | nmap ]g (coc-diagnostic-next) 46 | 47 | " GoTo code navigation. 48 | nmap gd (coc-definition) 49 | nmap gy (coc-type-definition) 50 | nmap gi (coc-implementation) 51 | nmap gr (coc-references) 52 | 53 | " Use K to show documentation in preview window. 54 | nnoremap K :call ShowDocumentation() 55 | 56 | function! ShowDocumentation() 57 | if CocAction('hasProvider', 'hover') 58 | call CocActionAsync('doHover') 59 | else 60 | call feedkeys('K', 'in') 61 | endif 62 | endfunction 63 | 64 | " Highlight the symbol and its references when holding the cursor. 65 | autocmd CursorHold * silent call CocActionAsync('highlight') 66 | 67 | " Symbol renaming. 68 | nmap rn (coc-rename) 69 | 70 | " Formatting selected code. 71 | xmap f (coc-format-selected) 72 | nmap f (coc-format-selected) 73 | 74 | augroup mygroup 75 | autocmd! 76 | " Setup formatexpr specified filetype(s). 77 | autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected') 78 | " Update signature help on jump placeholder. 79 | autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp') 80 | augroup end 81 | 82 | " Applying codeAction to the selected region. 83 | " Example: `aap` for current paragraph 84 | xmap a (coc-codeaction-selected) 85 | nmap a (coc-codeaction-selected) 86 | 87 | " Remap keys for applying codeAction to the current buffer. 88 | nmap ac (coc-codeaction) 89 | " Apply AutoFix to problem on the current line. 90 | nmap qf (coc-fix-current) 91 | 92 | " Run the Code Lens action on the current line. 93 | nmap cl (coc-codelens-action) 94 | 95 | " Map function and class text objects 96 | " NOTE: Requires 'textDocument.documentSymbol' support from the language server. 97 | xmap if (coc-funcobj-i) 98 | omap if (coc-funcobj-i) 99 | xmap af (coc-funcobj-a) 100 | omap af (coc-funcobj-a) 101 | xmap ic (coc-classobj-i) 102 | omap ic (coc-classobj-i) 103 | xmap ac (coc-classobj-a) 104 | omap ac (coc-classobj-a) 105 | 106 | " Remap and for scroll float windows/popups. 107 | if has('nvim-0.4.0') || has('patch-8.2.0750') 108 | nnoremap coc#float#has_scroll() ? coc#float#scroll(1) : "\" 109 | nnoremap coc#float#has_scroll() ? coc#float#scroll(0) : "\" 110 | inoremap coc#float#has_scroll() ? "\=coc#float#scroll(1)\" : "\" 111 | inoremap coc#float#has_scroll() ? "\=coc#float#scroll(0)\" : "\" 112 | vnoremap coc#float#has_scroll() ? coc#float#scroll(1) : "\" 113 | vnoremap coc#float#has_scroll() ? coc#float#scroll(0) : "\" 114 | endif 115 | 116 | " Use CTRL-S for selections ranges. 117 | " Requires 'textDocument/selectionRange' support of language server. 118 | nmap (coc-range-select) 119 | xmap (coc-range-select) 120 | 121 | " Add `:Format` command to format current buffer. 122 | command! -nargs=0 Format :call CocActionAsync('format') 123 | 124 | " Add `:Fold` command to fold current buffer. 125 | command! -nargs=? Fold :call CocAction('fold', ) 126 | 127 | " Add `:OR` command for organize imports of the current buffer. 128 | command! -nargs=0 OR :call CocActionAsync('runCommand', 'editor.action.organizeImport') 129 | 130 | " Add (Neo)Vim's native statusline support. 131 | " NOTE: Please see `:h coc-status` for integrations with external plugins that 132 | " provide custom statusline: lightline.vim, vim-airline. 133 | set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')} 134 | 135 | " Mappings for CoCList 136 | " Show all diagnostics. 137 | nnoremap a :CocList diagnostics 138 | " Manage extensions. 139 | nnoremap e :CocList extensions 140 | " Show commands. 141 | nnoremap c :CocList commands 142 | " Find symbol of current document. 143 | nnoremap o :CocList outline 144 | " Search workspace symbols. 145 | nnoremap s :CocList -I symbols 146 | " Do default action for next item. 147 | nnoremap j :CocNext 148 | " Do default action for previous item. 149 | nnoremap k :CocPrev 150 | " Resume latest coc list. 151 | nnoremap p :CocListResume 152 | 153 | -------------------------------------------------------------------------------- /colors/Blue2.vim: -------------------------------------------------------------------------------- 1 | 2 | " It's based on: 3 | runtime colors/Dark.vim 4 | 5 | let g:colors_name = "Blue" 6 | 7 | " hi Normal guibg=#000070 guifg=GhostWhite 8 | hi Normal guibg=#000050 guifg=GhostWhite 9 | "hi Normal guibg=#000040 guifg=GhostWhite 10 | "hi NonText guibg=#000040 11 | hi NonText guibg=#000038 12 | "hi NonText guibg=#000030 13 | hi Visual guifg=grey40 14 | 15 | " Experimental: 16 | hi Cursor guibg=yellow guifg=bg 17 | -------------------------------------------------------------------------------- /colors/billw.vim: -------------------------------------------------------------------------------- 1 | " vim: set tw=0 sw=4 sts=4 et: 2 | 3 | " Vim color file 4 | " Maintainer: Datila Carvalho 5 | " Last Change: November, 3, 2003 6 | " Version: 0.1 7 | 8 | " This is a VIM's version of the emacs color theme 9 | " _Billw_ created by Bill White. 10 | 11 | set background=dark 12 | hi clear 13 | if exists("syntax_on") 14 | syntax reset 15 | endif 16 | 17 | let g:colors_name = "billw" 18 | 19 | 20 | """ Colors 21 | 22 | " GUI colors 23 | hi Cursor guifg=fg guibg=cornsilk 24 | hi CursorIM guifg=NONE guibg=cornsilk 25 | "hi Directory 26 | "hi DiffAdd 27 | "hi DiffChange 28 | "hi DiffDelete 29 | "hi DiffText 30 | hi ErrorMsg gui=bold guifg=White guibg=Red 31 | "hi VertSplit 32 | "hi Folded 33 | "hi FoldColumn 34 | "hi IncSearch 35 | "hi LineNr 36 | hi ModeMsg gui=bold 37 | "hi MoreMsg 38 | "hi NonText 39 | hi Normal guibg=black guifg=cornsilk 40 | "hi Question 41 | hi Search gui=bold guifg=Black guibg=cornsilk 42 | "hi SpecialKey 43 | hi StatusLine guifg=orange1 44 | hi StatusLineNC guifg=yellow4 45 | "hi Title 46 | hi Visual guifg=gray35 guibg=fg 47 | hi VisualNOS gui=bold guifg=black guibg=fg 48 | hi WarningMsg guifg=White guibg=Tomato 49 | "hi WildMenu 50 | 51 | " Colors for syntax highlighting 52 | hi Comment guifg=gold 53 | 54 | hi Constant guifg=mediumspringgreen 55 | hi String guifg=orange 56 | hi Character guifg=orange 57 | hi Number guifg=mediumspringgreen 58 | hi Boolean guifg=mediumspringgreen 59 | hi Float guifg=mediumspringgreen 60 | 61 | hi Identifier guifg=yellow 62 | hi Function guifg=mediumspringgreen 63 | 64 | hi Statement gui=bold guifg=cyan1 65 | hi Conditional gui=bold guifg=cyan1 66 | hi Repeat gui=bold guifg=cyan1 67 | hi Label guifg=cyan1 68 | hi Operator guifg=cyan1 69 | "hi Keyword 70 | "hi Exception 71 | 72 | hi PreProc guifg=LightSteelBlue 73 | hi Include guifg=LightSteelBlue 74 | hi Define guifg=LightSteelBlue 75 | hi Macro guifg=LightSteelBlue 76 | hi PreCondit guifg=LightSteelBlue 77 | 78 | hi Type guifg=yellow 79 | hi StorageClass guifg=cyan1 80 | hi Structure gui=bold guifg=cyan1 81 | hi Typedef guifg=cyan1 82 | 83 | "hi Special 84 | ""Underline Character 85 | "hi SpecialChar gui=underline 86 | "hi Tag gui=bold,underline 87 | ""Statement 88 | "hi Delimiter gui=bold 89 | ""Bold comment (in Java at least) 90 | "hi SpecialComment gui=bold 91 | "hi Debug gui=bold 92 | 93 | hi Underlined gui=underline 94 | 95 | hi Ignore guifg=bg 96 | 97 | hi Error gui=bold guifg=White guibg=Red 98 | 99 | "hi Todo 100 | -------------------------------------------------------------------------------- /colors/biogoo.vim: -------------------------------------------------------------------------------- 1 | " Vim color File 2 | " Name: biogoo 3 | " Maintainer: Benjamin Esham 4 | " Last Change: 2004-02-03 5 | " Version: 1.2 6 | " 7 | " A fairly simple gray-background scheme. Feedback is greatly appreciated! 8 | " 9 | " Installation: 10 | " Copy to ~/.vim/colors; do :color biogoo 11 | " 12 | " Customization Options: 13 | " Use a 'normal' cursor color: 14 | " let g:biogoo_normal_cursor = 1 15 | " 16 | " Props: 17 | " Jani Nurminen's zenburn.vim as an example file. 18 | " Scott and Matt for feature suggestions. 19 | " 20 | " Version History: 21 | " 1.2: added `SpellErrors' group for use with vimspell. 22 | " 1.1: added `IncSearch' group for improved visibility in incremental searches. 23 | " 1.0: minor tweaks 24 | " 0.95: initial release 25 | " 26 | " TODO: Possibly add some more groups -- please email me if I've left any out. 27 | 28 | set background=light 29 | hi clear 30 | if exists("syntax_on") 31 | syntax reset 32 | endif 33 | let g:colors_name = "biogoo" 34 | 35 | hi Comment guifg=#0000c3 36 | hi Constant guifg=#0000ff 37 | hi Delimiter guifg=#00007f 38 | hi DiffAdd guifg=#007f00 guibg=#e5e5e5 39 | hi DiffChange guifg=#00007f guibg=#e5e5e5 40 | hi DiffDelete guifg=#7f0000 guibg=#e5e5e5 41 | hi DiffText guifg=#ee0000 guibg=#e5e5e5 42 | hi Directory guifg=#b85d00 43 | hi Error guifg=#d6d6d6 guibg=#7f0000 44 | hi ErrorMsg guifg=#ffffff guibg=#ff0000 gui=bold 45 | hi Float guifg=#b85d00 46 | hi FoldColumn guifg=#00007f guibg=#e5e5e5 47 | hi Folded guifg=#00007f guibg=#e5e5e5 48 | hi Function guifg=#7f0000 49 | hi Identifier guifg=#004000 50 | hi Include guifg=#295498 gui=bold 51 | hi IncSearch guifg=#ffffff guibg=#0000ff gui=bold 52 | hi LineNr guifg=#303030 guibg=#e5e5e5 gui=underline 53 | hi Keyword guifg=#00007f 54 | hi Macro guifg=#295498 55 | hi ModeMsg guifg=#00007f 56 | hi MoreMsg guifg=#00007f 57 | hi NonText guifg=#007f00 58 | hi Normal guifg=#000000 guibg=#d6d6d6 59 | hi Number guifg=#b85d00 60 | hi Operator guifg=#00007f 61 | hi PreCondit guifg=#295498 gui=bold 62 | hi PreProc guifg=#0c3b6b gui=bold 63 | hi Question guifg=#00007f 64 | hi Search guibg=#ffff00 65 | hi Special guifg=#007f00 66 | hi SpecialKey guifg=#00007f 67 | hi SpellErrors guifg=#7f0000 gui=underline 68 | hi Statement guifg=#00007f gui=none 69 | hi StatusLine guifg=#00007f guibg=#ffffff 70 | hi StatusLineNC guifg=#676767 guibg=#ffffff 71 | hi String guifg=#d10000 72 | hi Title guifg=#404040 gui=bold 73 | hi Todo guifg=#00007f guibg=#e5e5e5 gui=underline 74 | hi Type guifg=#540054 gui=bold 75 | hi Underlined guifg=#b85d00 76 | hi VertSplit guifg=#676767 guibg=#ffffff 77 | hi Visual guifg=#7f7f7f guibg=#ffffff 78 | hi VisualNOS guifg=#007f00 guibg=#e5e5e5 79 | hi WarningMsg guifg=#500000 80 | hi WildMenu guifg=#540054 81 | 82 | if !exists("g:biogoo_normal_cursor") 83 | " use a gray-on-blue cursor 84 | hi Cursor guifg=#ffffff guibg=#00007f 85 | endif 86 | -------------------------------------------------------------------------------- /colors/black_angus.vim: -------------------------------------------------------------------------------- 1 | " Vim color file 2 | " Maintainer: Angus Salkeld 3 | " Last Change: 14 September 2004 4 | " Version: 1.0 5 | " mainly green on black 6 | 7 | set background=dark 8 | highlight clear 9 | if exists("syntax_on") 10 | syntax reset 11 | endif 12 | 13 | let g:colors_name = "black_angus" 14 | 15 | " GUI 16 | " ----------------------------------------------------------------------- 17 | highlight Normal guifg=Grey80 guibg=Black 18 | highlight Search guifg=brown gui=reverse 19 | highlight Visual guifg=Grey25 gui=bold 20 | highlight Cursor guifg=Yellow guibg=DarkGreen gui=bold 21 | highlight DiffAdd guibg=#000080 gui=NONE 22 | highlight DiffChange guibg=#800080 gui=NONE 23 | highlight DiffDelete guifg=#80c0e0 guibg=#404040 gui=NONE 24 | highlight DiffText guifg=Black guibg=#c0e080 gui=NONE 25 | 26 | " Console 27 | " ----------------------------------------------------------------------- 28 | highlight Normal ctermfg=LightGrey ctermbg=Black 29 | highlight Search ctermfg=Brown cterm=reverse 30 | highlight Visual cterm=reverse 31 | highlight Cursor ctermfg=Yellow ctermbg=Green cterm=bold 32 | 33 | " both 34 | " ----------------------------------------------------------------------- 35 | highlight StatusLine guifg=LightGreen guibg=#003300 gui=none ctermfg=LightGreen ctermbg=DarkGreen term=none 36 | highlight VertSplit guifg=LightGreen guibg=#003300 gui=none ctermfg=LightGreen ctermbg=DarkGreen term=none 37 | highlight Folded guifg=#aaDDaa guibg=#333333 gui=none ctermfg=LightGray ctermbg=DarkGray term=none 38 | highlight FoldColumn guifg=LightGreen guibg=#003300 gui=none ctermfg=LightGreen ctermbg=DarkGreen term=none 39 | highlight SignColumn guifg=LightGreen guibg=#003300 gui=none ctermfg=LightGreen ctermbg=DarkGreen term=none 40 | highlight WildMenu guifg=LightGreen guibg=#003300 gui=none ctermfg=LightGreen ctermbg=DarkGreen term=none 41 | 42 | highlight LineNr guifg=DarkGreen guibg=Black gui=none ctermfg=DarkGreen ctermbg=Black term=none 43 | highlight Directory guifg=LightGreen ctermfg=LightGreen 44 | highlight Comment guifg=DarkGrey ctermfg=DarkGray 45 | 46 | highlight Special guifg=Orange ctermfg=Brown 47 | highlight Title guifg=Orange ctermfg=Brown 48 | highlight Tag guifg=DarkRed ctermfg=DarkRed 49 | highlight link Delimiter Special 50 | highlight link SpecialChar Special 51 | highlight link SpecialComment Special 52 | highlight link SpecialKey Special 53 | highlight link NonText Special 54 | 55 | highlight Error guifg=White guibg=DarkRed gui=none ctermfg=White ctermbg=DarkRed cterm=none 56 | highlight Debug guifg=White guibg=DarkGreen gui=none ctermfg=White ctermbg=DarkRed cterm=none 57 | highlight ErrorMsg guifg=White guibg=DarkBlue gui=none ctermfg=White ctermbg=DarkRed cterm=none 58 | highlight WarningMsg guifg=White guibg=DarkBlue gui=none ctermfg=White ctermbg=DarkBlue cterm=none 59 | highlight Todo guifg=White guibg=DarkYellow gui=none ctermfg=White ctermbg=DarkBlue cterm=none 60 | highlight link cCommentStartError WarningMsg 61 | highlight link cCommentError Debug 62 | 63 | " Preprocesor 64 | highlight PreCondit guifg=Cyan3 ctermfg=Cyan 65 | highlight PreProc guifg=Magenta ctermfg=Magenta 66 | highlight Include guifg=DarkCyan ctermfg=DarkCyan 67 | highlight ifdefIfOut guifg=DarkGray ctermfg=DarkGray 68 | highlight link Macro Include 69 | highlight link Define Include 70 | 71 | " lang 72 | highlight Function guifg=#AAEEAA gui=none ctermfg=LightGreen 73 | highlight Identifier guifg=#bbccbb gui=none ctermfg=Grey 74 | highlight Statement guifg=LightGreen gui=underline ctermfg=LightGreen 75 | highlight Operator guifg=Yellow gui=none ctermfg=Yellow 76 | highlight Conditional guifg=lightslateblue gui=none ctermfg=LightBlue 77 | 78 | highlight link Exception Statement 79 | highlight link Label Statement 80 | highlight link Repeat Conditional 81 | 82 | highlight link Keyword Label 83 | 84 | highlight Constant guifg=LightGreen ctermfg=LightGreen gui=none 85 | highlight link Character Constant 86 | highlight link Number Constant 87 | highlight link Boolean Constant 88 | highlight link String Constant 89 | highlight link Float Constant 90 | 91 | highlight Type guifg=DarkGreen ctermfg=DarkGreen gui=none 92 | highlight link StorageClass Type 93 | highlight link Structure Type 94 | highlight link Typedef Type 95 | 96 | " ------------------------------------------------------------------------------ 97 | " Common groups that link to other highlighting definitions. 98 | highlight link Search IncSearch 99 | highlight link Question Statement 100 | highlight link VisualNOS Visual 101 | " ------------------------------------------------------------------------------ 102 | 103 | " only for vim 5 104 | if has("unix") 105 | if v:version<600 106 | highlight Normal ctermfg=Grey ctermbg=Black cterm=NONE guifg=Grey80 guibg=Black gui=NONE 107 | highlight Search ctermfg=Black ctermbg=Red cterm=bold guifg=Black guibg=Red gui=bold 108 | highlight Visual ctermfg=Black ctermbg=yellow cterm=bold guifg=Grey25 gui=bold 109 | highlight Special ctermfg=LightBlue cterm=NONE guifg=LightBlue 110 | highlight Comment ctermfg=Cyan cterm=NONE guifg=LightBlue 111 | endif 112 | endif 113 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /colors/blugrine.vim: -------------------------------------------------------------------------------- 1 | " author Helder Correia < helder (dot) correia (at) netcabo (dot) pt> 2 | " version 2004.0 3 | " based on bluegreen colorscheme by Joao Estevao 4 | " feel free to modify / redistribute this file 5 | 6 | set background=dark 7 | hi clear 8 | if exists("syntax_on") 9 | syntax reset 10 | endif 11 | let g:colors_name="blugrine" 12 | 13 | hi Normal guifg=White guibg=#000000 14 | 15 | " highlight groups 16 | hi Cursor guibg=#D74141 guifg=#e3e3e3 17 | hi VertSplit guibg=#C0FFFF guifg=#075554 gui=none 18 | hi Folded guibg=#FFC0C0 guifg=black 19 | hi FoldColumn guibg=#800080 guifg=tan 20 | hi ModeMsg guifg=#404040 guibg=#C0C0C0 21 | hi MoreMsg guifg=darkturquoise guibg=#188F90 22 | hi NonText guibg=#334C75 guifg=#9FADC5 23 | hi Question guifg=#F4BB7E 24 | hi Search guibg=fg guifg=bg 25 | hi SpecialKey guifg=#BF9261 26 | hi StatusLine guibg=#004443 guifg=#c0ffff gui=none 27 | hi StatusLineNC guibg=#067C7B guifg=#004443 gui=bold 28 | hi Title guifg=#8DB8C3 29 | hi Visual gui=bold guifg=black guibg=#C0FFC0 30 | hi WarningMsg guifg=#F60000 gui=underline 31 | 32 | " syntax highlighting groups 33 | hi Comment guifg=#DABEA2 34 | hi Constant guifg=#72A5E4 gui=bold 35 | hi Identifier guifg=#ADCBF1 36 | hi Statement guifg=#7E75B5 37 | hi PreProc guifg=#14F07C 38 | hi Type guifg=#A9EE8A 39 | hi Special guifg=#EEBABA 40 | hi Ignore guifg=grey60 41 | hi Todo guibg=#9C8C84 guifg=#244C0A 42 | 43 | -------------------------------------------------------------------------------- /colors/darkslategray.vim: -------------------------------------------------------------------------------- 1 | " vim: set tw=0 sw=4 sts=4 et: 2 | 3 | " Vim color file 4 | " Maintainer: Tuomas Susi 5 | " Last Change: 2004 October 05 6 | " Version: 1.7 7 | 8 | " Emacs in RedHat Linux used to have (still does?) a kind of 'Wheat on 9 | " DarkSlateGray' color scheme by default. This color scheme is created in the 10 | " same spirit. 11 | " 12 | " Darkslategray is intended to be nice to your eyes (low contrast) and to take 13 | " advantage of syntax hilighting as much as possible. 14 | " 15 | " This color scheme is for the GUI only, I'm happy with default console colors. 16 | " Needs at least vim 6.0. 17 | 18 | 19 | " Init stuff 20 | 21 | set background=dark 22 | hi clear 23 | if exists("syntax_on") 24 | syntax reset 25 | endif 26 | 27 | let g:colors_name = "darkslategray" 28 | 29 | 30 | " GUI colors 31 | 32 | hi Cursor guifg=fg guibg=#da70d6 33 | hi CursorIM guifg=NONE guibg=#ff83fa 34 | hi Directory guifg=#e0ffff 35 | hi DiffAdd guibg=#528b8b 36 | hi DiffChange guibg=#8b636c 37 | hi DiffDelete gui=bold guifg=fg guibg=#000000 38 | hi DiffText gui=bold guibg=#6959cd 39 | hi ErrorMsg gui=bold guifg=#ffffff guibg=#ff0000 40 | hi VertSplit gui=bold guifg=#bdb76b guibg=#000000 41 | hi Folded guifg=#000000 guibg=#bdb76b 42 | hi FoldColumn guifg=#000000 guibg=#bdb76b 43 | hi SignColumn gui=bold guifg=#bdb76b guibg=#20b2aa 44 | hi IncSearch gui=bold guifg=#000000 guibg=#ffffff 45 | hi LineNr gui=bold guifg=#bdb76b guibg=#528b8b 46 | hi ModeMsg gui=bold 47 | hi MoreMsg gui=bold guifg=#20b2aa 48 | hi NonText gui=bold guifg=#ffffff 49 | hi Normal guibg=#2f4f4f guifg=#f5deb3 50 | hi Question gui=bold guifg=#ff6347 51 | hi Search gui=bold guifg=#000000 guibg=#ffd700 52 | hi SpecialKey guifg=#00ffff 53 | hi StatusLine gui=bold guifg=#f0e68c guibg=#000000 54 | hi StatusLineNC guibg=#bdb76b guifg=#404040 55 | hi Title gui=bold guifg=#ff6347 56 | hi Visual guifg=#000000 guibg=fg 57 | hi VisualNOS gui=bold guifg=#000000 guibg=fg 58 | hi WarningMsg guifg=#ffffff guibg=#ff6347 59 | hi WildMenu gui=bold guifg=#000000 guibg=#ffff00 60 | 61 | 62 | " I use GTK and don't wanna change these 63 | "hi Menu foobar 64 | "hi Scrollbar foobar 65 | "hi Tooltip foobar 66 | 67 | 68 | " Colors for syntax highlighting 69 | hi Comment guifg=#da70d6 70 | 71 | hi Constant guifg=#cdcd00 72 | hi String guifg=#7fffd4 73 | hi Character guifg=#7fffd4 74 | hi Number guifg=#ff6347 75 | hi Boolean guifg=#cdcd00 76 | hi Float guifg=#ff6347 77 | 78 | hi Identifier guifg=#afeeee 79 | hi Function guifg=#ffffff 80 | 81 | hi Statement gui=bold guifg=#4682b4 82 | hi Conditional gui=bold guifg=#4682b4 83 | hi Repeat gui=bold guifg=#4682b4 84 | hi Label gui=bold guifg=#4682b4 85 | hi Operator gui=bold guifg=#4682b4 86 | hi Keyword gui=bold guifg=#4682b4 87 | hi Exception gui=bold guifg=#4682b4 88 | 89 | hi PreProc guifg=#cdcd00 90 | hi Include guifg=#ffff00 91 | hi Define guifg=#cdcd00 92 | hi Macro guifg=#cdcd00 93 | hi PreCondit guifg=#cdcd00 94 | 95 | hi Type gui=bold guifg=#98fb98 96 | hi StorageClass guifg=#00ff00 97 | hi Structure guifg=#20b2aa 98 | hi Typedef guifg=#00ff7f 99 | 100 | hi Special guifg=#ff6347 101 | "Underline Character 102 | hi SpecialChar gui=underline guifg=#7fffd4 103 | hi Tag guifg=#ff6347 104 | "Statement 105 | hi Delimiter gui=bold guifg=#b0c4de 106 | "Bold comment (in Java at least) 107 | hi SpecialComment gui=bold guifg=#da70d6 108 | hi Debug gui=bold guifg=#ff0000 109 | 110 | hi Underlined gui=underline 111 | 112 | hi Ignore guifg=bg 113 | 114 | hi Error gui=bold guifg=#ffffff guibg=#ff0000 115 | 116 | hi Todo gui=bold guifg=#000000 guibg=#ff83fa 117 | 118 | -------------------------------------------------------------------------------- /colors/dawn.vim: -------------------------------------------------------------------------------- 1 | " Vim color file 2 | " Maintainer: Ajit J. Thakkar (ajit AT unb DOT ca) 3 | " Last Change: 2003 July 23 4 | " Version: 1.2 5 | " URL: http://www.unb.ca/chem/ajit/vim.htm 6 | 7 | " This GUI-only color scheme has a light grey background, and is a softer 8 | " variant of the default and morning color schemes. 9 | 10 | set background=light 11 | hi clear 12 | if exists("syntax_on") 13 | syntax reset 14 | endif 15 | 16 | let colors_name = "dawn" 17 | 18 | hi Normal guifg=Black guibg=grey90 19 | "hi Normal guifg=Black guibg=grey80 20 | 21 | " Groups used in the 'highlight' and 'guicursor' options default value. 22 | hi ErrorMsg gui=NONE guifg=Red guibg=Linen 23 | hi IncSearch gui=NONE guifg=fg guibg=LightGreen 24 | hi ModeMsg gui=bold guifg=fg guibg=bg 25 | hi StatusLine gui=NONE guifg=DarkBlue guibg=grey70 26 | hi StatusLineNC gui=NONE guifg=grey90 guibg=grey70 27 | hi VertSplit gui=NONE guifg=grey70 guibg=grey70 28 | hi Visual gui=reverse guifg=Grey guibg=fg 29 | hi VisualNOS gui=underline,bold guifg=fg guibg=bg 30 | hi DiffText gui=bold guifg=Blue guibg=LightYellow 31 | hi Cursor guifg=NONE guibg=Green 32 | hi lCursor guifg=NONE guibg=Cyan 33 | hi Directory guifg=Blue guibg=bg 34 | hi LineNr guifg=Brown guibg=bg 35 | hi MoreMsg gui=bold guifg=SeaGreen guibg=bg 36 | hi NonText gui=bold guifg=Blue guibg=grey80 37 | hi Question gui=bold guifg=SeaGreen guibg=bg 38 | hi Search guifg=fg guibg=PeachPuff 39 | hi SpecialKey guifg=Blue guibg=bg 40 | hi Title gui=bold guifg=Magenta guibg=bg 41 | hi WarningMsg guifg=Red guibg=bg 42 | hi WildMenu guifg=fg guibg=PeachPuff 43 | hi Folded guifg=Grey40 guibg=bg " guifg=DarkBlue guibg=LightGrey 44 | hi FoldColumn guifg=DarkBlue guibg=Grey 45 | hi DiffAdd gui=bold guifg=Blue guibg=LightCyan 46 | hi DiffChange gui=bold guifg=fg guibg=MistyRose2 47 | hi DiffDelete gui=NONE guifg=LightBlue guibg=LightCyan 48 | 49 | " Colors for syntax highlighting 50 | hi Constant gui=NONE guifg=azure4 guibg=bg 51 | "hi Constant gui=NONE guifg=DeepSkyBlue4 guibg=bg 52 | hi String gui=NONE guifg=DarkOliveGreen4 guibg=bg 53 | hi Special gui=bold guifg=Cyan4 guibg=bg 54 | hi Statement gui=NONE guifg=SlateBlue4 guibg=bg 55 | hi Operator gui=NONE guifg=Purple guibg=bg 56 | hi Ignore gui=NONE guifg=bg guibg=bg 57 | hi ToDo gui=NONE guifg=DeepPink1 guibg=bg 58 | hi Error gui=NONE guifg=Red guibg=Linen 59 | hi Comment gui=NONE guifg=RoyalBlue guibg=NONE 60 | hi Identifier gui=NONE guifg=SteelBlue4 guibg=NONE 61 | hi PreProc gui=NONE guifg=Magenta4 guibg=NONE 62 | hi Type gui=NONE guifg=Brown guibg=NONE 63 | hi Underlined gui=underline guifg=SlateBlue guibg=bg 64 | 65 | " vim: sw=2 66 | -------------------------------------------------------------------------------- /colors/desert256.vim: -------------------------------------------------------------------------------- 1 | " Vim color file 2 | " Maintainer: Henry So, Jr. 3 | 4 | " These are the colors of the "desert" theme by Hans Fugal with a few small 5 | " modifications (namely that I lowered the intensity of the normal white and 6 | " made the normal and nontext backgrounds black), modified to work with 88- 7 | " and 256-color xterms. 8 | " 9 | " The original "desert" theme is available as part of the vim distribution or 10 | " at http://hans.fugal.net/vim/colors/. 11 | " 12 | " The real feature of this color scheme, with a wink to the "inkpot" theme, is 13 | " the programmatic approximation of the gui colors to the palettes of 88- and 14 | " 256- color xterms. The functions that do this (folded away, for 15 | " readability) are calibrated to the colors used for Thomas E. Dickey's xterm 16 | " (version 200), which is available at http://dickey.his.com/xterm/xterm.html. 17 | " 18 | " I struggled with trying to parse the rgb.txt file to avoid the necessity of 19 | " converting color names to #rrggbb form, but decided it was just not worth 20 | " the effort. Maybe someone seeing this may decide otherwise... 21 | 22 | set background=dark 23 | if version > 580 24 | " no guarantees for version 5.8 and below, but this makes it stop 25 | " complaining 26 | hi clear 27 | if exists("syntax_on") 28 | syntax reset 29 | endif 30 | endif 31 | let g:colors_name="desert256" 32 | 33 | if has("gui_running") || &t_Co == 88 || &t_Co == 256 34 | " functions {{{ 35 | " returns an approximate grey index for the given grey level 36 | fun grey_number(x) 37 | if &t_Co == 88 38 | if a:x < 23 39 | return 0 40 | elseif a:x < 69 41 | return 1 42 | elseif a:x < 103 43 | return 2 44 | elseif a:x < 127 45 | return 3 46 | elseif a:x < 150 47 | return 4 48 | elseif a:x < 173 49 | return 5 50 | elseif a:x < 196 51 | return 6 52 | elseif a:x < 219 53 | return 7 54 | elseif a:x < 243 55 | return 8 56 | else 57 | return 9 58 | endif 59 | else 60 | if a:x < 14 61 | return 0 62 | else 63 | let l:n = (a:x - 8) / 10 64 | let l:m = (a:x - 8) % 10 65 | if l:m < 5 66 | return l:n 67 | else 68 | return l:n + 1 69 | endif 70 | endif 71 | endif 72 | endfun 73 | 74 | " returns the actual grey level represented by the grey index 75 | fun grey_level(n) 76 | if &t_Co == 88 77 | if a:n == 0 78 | return 0 79 | elseif a:n == 1 80 | return 46 81 | elseif a:n == 2 82 | return 92 83 | elseif a:n == 3 84 | return 115 85 | elseif a:n == 4 86 | return 139 87 | elseif a:n == 5 88 | return 162 89 | elseif a:n == 6 90 | return 185 91 | elseif a:n == 7 92 | return 208 93 | elseif a:n == 8 94 | return 231 95 | else 96 | return 255 97 | endif 98 | else 99 | if a:n == 0 100 | return 0 101 | else 102 | return 8 + (a:n * 10) 103 | endif 104 | endif 105 | endfun 106 | 107 | " returns the palette index for the given grey index 108 | fun grey_color(n) 109 | if &t_Co == 88 110 | if a:n == 0 111 | return 16 112 | elseif a:n == 9 113 | return 79 114 | else 115 | return 79 + a:n 116 | endif 117 | else 118 | if a:n == 0 119 | return 16 120 | elseif a:n == 25 121 | return 231 122 | else 123 | return 231 + a:n 124 | endif 125 | endif 126 | endfun 127 | 128 | " returns an approximate color index for the given color level 129 | fun rgb_number(x) 130 | if &t_Co == 88 131 | if a:x < 69 132 | return 0 133 | elseif a:x < 172 134 | return 1 135 | elseif a:x < 230 136 | return 2 137 | else 138 | return 3 139 | endif 140 | else 141 | if a:x < 75 142 | return 0 143 | else 144 | let l:n = (a:x - 55) / 40 145 | let l:m = (a:x - 55) % 40 146 | if l:m < 20 147 | return l:n 148 | else 149 | return l:n + 1 150 | endif 151 | endif 152 | endif 153 | endfun 154 | 155 | " returns the actual color level for the given color index 156 | fun rgb_level(n) 157 | if &t_Co == 88 158 | if a:n == 0 159 | return 0 160 | elseif a:n == 1 161 | return 139 162 | elseif a:n == 2 163 | return 205 164 | else 165 | return 255 166 | endif 167 | else 168 | if a:n == 0 169 | return 0 170 | else 171 | return 55 + (a:n * 40) 172 | endif 173 | endif 174 | endfun 175 | 176 | " returns the palette index for the given R/G/B color indices 177 | fun rgb_color(x, y, z) 178 | if &t_Co == 88 179 | return 16 + (a:x * 16) + (a:y * 4) + a:z 180 | else 181 | return 16 + (a:x * 36) + (a:y * 6) + a:z 182 | endif 183 | endfun 184 | 185 | " returns the palette index to approximate the given R/G/B color levels 186 | fun color(r, g, b) 187 | " get the closest grey 188 | let l:gx = grey_number(a:r) 189 | let l:gy = grey_number(a:g) 190 | let l:gz = grey_number(a:b) 191 | 192 | " get the closest color 193 | let l:x = rgb_number(a:r) 194 | let l:y = rgb_number(a:g) 195 | let l:z = rgb_number(a:b) 196 | 197 | if l:gx == l:gy && l:gy == l:gz 198 | " there are two possibilities 199 | let l:dgr = grey_level(l:gx) - a:r 200 | let l:dgg = grey_level(l:gy) - a:g 201 | let l:dgb = grey_level(l:gz) - a:b 202 | let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb) 203 | let l:dr = rgb_level(l:gx) - a:r 204 | let l:dg = rgb_level(l:gy) - a:g 205 | let l:db = rgb_level(l:gz) - a:b 206 | let l:drgb = (l:dr * l:dr) + (l:dg * l:dg) + (l:db * l:db) 207 | if l:dgrey < l:drgb 208 | " use the grey 209 | return grey_color(l:gx) 210 | else 211 | " use the color 212 | return rgb_color(l:x, l:y, l:z) 213 | endif 214 | else 215 | " only one possibility 216 | return rgb_color(l:x, l:y, l:z) 217 | endif 218 | endfun 219 | 220 | " returns the palette index to approximate the 'rrggbb' hex string 221 | fun rgb(rgb) 222 | let l:r = ("0x" . strpart(a:rgb, 0, 2)) + 0 223 | let l:g = ("0x" . strpart(a:rgb, 2, 2)) + 0 224 | let l:b = ("0x" . strpart(a:rgb, 4, 2)) + 0 225 | 226 | return color(l:r, l:g, l:b) 227 | endfun 228 | 229 | " sets the highlighting for the given group 230 | fun X(group, fg, bg, attr) 231 | if a:fg != "" 232 | exec "hi " . a:group . " guifg=#" . a:fg . " ctermfg=" . rgb(a:fg) 233 | endif 234 | if a:bg != "" 235 | exec "hi " . a:group . " guibg=#" . a:bg . " ctermbg=" . rgb(a:bg) 236 | endif 237 | if a:attr != "" 238 | exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr 239 | endif 240 | endfun 241 | " }}} 242 | 243 | call X("Normal", "cccccc", "000000", "") 244 | 245 | " highlight groups 246 | call X("Cursor", "708090", "f0e68c", "") 247 | "CursorIM 248 | "Directory 249 | "DiffAdd 250 | "DiffChange 251 | "DiffDelete 252 | "DiffText 253 | "ErrorMsg 254 | call X("VertSplit", "c2bfa5", "7f7f7f", "reverse") 255 | call X("Folded", "ffd700", "4d4d4d", "") 256 | call X("FoldColumn", "d2b48c", "4d4d4d", "") 257 | call X("IncSearch", "708090", "f0e68c", "") 258 | "LineNr 259 | call X("ModeMsg", "daa520", "", "") 260 | call X("MoreMsg", "2e8b57", "", "") 261 | call X("NonText", "addbe7", "000000", "bold") 262 | call X("Question", "00ff7f", "", "") 263 | call X("Search", "f5deb3", "cd853f", "") 264 | call X("SpecialKey", "9acd32", "", "") 265 | call X("StatusLine", "c2bfa5", "000000", "reverse") 266 | call X("StatusLineNC", "c2bfa5", "7f7f7f", "reverse") 267 | call X("Title", "cd5c5c", "", "") 268 | call X("Visual", "6b8e23", "f0e68c", "reverse") 269 | "VisualNOS 270 | call X("WarningMsg", "fa8072", "", "") 271 | "WildMenu 272 | "Menu 273 | "Scrollbar 274 | "Tooltip 275 | 276 | " syntax highlighting groups 277 | call X("Comment", "87ceeb", "", "") 278 | call X("Constant", "ffa0a0", "", "") 279 | call X("Identifier", "98fb98", "", "none") 280 | call X("Statement", "f0e68c", "", "bold") 281 | call X("PreProc", "cd5c5c", "", "") 282 | call X("Type", "bdb76b", "", "bold") 283 | call X("Special", "ffdead", "", "") 284 | "Underlined 285 | call X("Ignore", "666666", "", "") 286 | "Error 287 | call X("Todo", "ff4500", "eeee00", "") 288 | 289 | " delete functions {{{ 290 | delf X 291 | delf rgb 292 | delf color 293 | delf rgb_color 294 | delf rgb_level 295 | delf rgb_number 296 | delf grey_color 297 | delf grey_level 298 | delf grey_number 299 | " }}} 300 | else 301 | " color terminal definitions 302 | hi SpecialKey ctermfg=darkgreen 303 | hi NonText cterm=bold ctermfg=darkblue 304 | hi Directory ctermfg=darkcyan 305 | hi ErrorMsg cterm=bold ctermfg=7 ctermbg=1 306 | hi IncSearch cterm=NONE ctermfg=yellow ctermbg=green 307 | hi Search cterm=NONE ctermfg=grey ctermbg=blue 308 | hi MoreMsg ctermfg=darkgreen 309 | hi ModeMsg cterm=NONE ctermfg=brown 310 | hi LineNr ctermfg=3 311 | hi Question ctermfg=green 312 | hi StatusLine cterm=bold,reverse 313 | hi StatusLineNC cterm=reverse 314 | hi VertSplit cterm=reverse 315 | hi Title ctermfg=5 316 | hi Visual cterm=reverse 317 | hi VisualNOS cterm=bold,underline 318 | hi WarningMsg ctermfg=1 319 | hi WildMenu ctermfg=0 ctermbg=3 320 | hi Folded ctermfg=darkgrey ctermbg=NONE 321 | hi FoldColumn ctermfg=darkgrey ctermbg=NONE 322 | hi DiffAdd ctermbg=4 323 | hi DiffChange ctermbg=5 324 | hi DiffDelete cterm=bold ctermfg=4 ctermbg=6 325 | hi DiffText cterm=bold ctermbg=1 326 | hi Comment ctermfg=darkcyan 327 | hi Constant ctermfg=brown 328 | hi Special ctermfg=5 329 | hi Identifier ctermfg=6 330 | hi Statement ctermfg=3 331 | hi PreProc ctermfg=5 332 | hi Type ctermfg=2 333 | hi Underlined cterm=underline ctermfg=5 334 | hi Ignore ctermfg=darkgrey 335 | hi Error cterm=bold ctermfg=7 ctermbg=1 336 | endif 337 | 338 | " vim: set fdl=0 fdm=marker: 339 | -------------------------------------------------------------------------------- /colors/fruit.vim: -------------------------------------------------------------------------------- 1 | " Vim color file 2 | " Maintainer: Tiza 3 | " Last Change: 2002/08/28 Wed 00:28. 4 | " version: 1.3 5 | " This color scheme uses a light background. 6 | 7 | set background=light 8 | hi clear 9 | if exists("syntax_on") 10 | syntax reset 11 | endif 12 | 13 | let colors_name = "fruit" 14 | 15 | hi Normal guifg=#404040 guibg=#f8f8f8 16 | 17 | " Search 18 | hi IncSearch gui=UNDERLINE guifg=#404040 guibg=#40ffff 19 | hi Search gui=NONE guifg=#404040 guibg=#ffff60 20 | 21 | " Messages 22 | hi ErrorMsg gui=NONE guifg=#ff0000 guibg=#ffe4e4 23 | hi WarningMsg gui=NONE guifg=#ff0000 guibg=#ffe4e4 24 | hi ModeMsg gui=NONE guifg=#ff4080 guibg=NONE 25 | hi MoreMsg gui=NONE guifg=#009070 guibg=NONE 26 | hi Question gui=NONE guifg=#f030d0 guibg=NONE 27 | 28 | " Split area 29 | hi StatusLine gui=BOLD guifg=#f8f8f8 guibg=#404040 30 | hi StatusLineNC gui=NONE guifg=#a4a4a4 guibg=#404040 31 | hi VertSplit gui=NONE guifg=#f8f8f8 guibg=#404040 32 | hi WildMenu gui=BOLD guifg=#f8f8f8 guibg=#ff4080 33 | 34 | " Diff 35 | hi DiffText gui=NONE guifg=#e04040 guibg=#ffd8d8 36 | hi DiffChange gui=NONE guifg=#408040 guibg=#d0f0d0 37 | hi DiffDelete gui=NONE guifg=#4848ff guibg=#ffd0ff 38 | hi DiffAdd gui=NONE guifg=#4848ff guibg=#ffd0ff 39 | 40 | " Cursor 41 | hi Cursor gui=NONE guifg=#0000ff guibg=#00e0ff 42 | hi lCursor gui=NONE guifg=#f8f8f8 guibg=#8000ff 43 | hi CursorIM gui=NONE guifg=#f8f8f8 guibg=#8000ff 44 | 45 | " Fold 46 | hi Folded gui=NONE guifg=#20605c guibg=#b8e8dc 47 | hi FoldColumn gui=NONE guifg=#40a098 guibg=#f0f0f0 48 | 49 | " Other 50 | hi Directory gui=NONE guifg=#0070b8 guibg=NONE 51 | hi LineNr gui=NONE guifg=#acacac guibg=NONE 52 | hi NonText gui=BOLD guifg=#00a0c0 guibg=#ececec 53 | hi SpecialKey gui=NONE guifg=#4040ff guibg=NONE 54 | hi Title gui=NONE guifg=#0050a0 guibg=#c0e8ff 55 | hi Visual gui=NONE guifg=#484848 guibg=#e0e0e0 56 | " hi VisualNOS gui=NONE guifg=#484848 guibg=#e0e0e0 57 | 58 | " Syntax group 59 | hi Comment gui=NONE guifg=#ff4080 guibg=NONE 60 | hi Constant gui=NONE guifg=#8016ff guibg=NONE 61 | hi Error gui=BOLD guifg=#ffffff guibg=#ff4080 62 | hi Identifier gui=NONE guifg=#008888 guibg=NONE 63 | hi Ignore gui=NONE guifg=#f8f8f8 guibg=NONE 64 | hi PreProc gui=NONE guifg=#e06800 guibg=NONE 65 | hi Special gui=NONE guifg=#4a9400 guibg=NONE 66 | hi Statement gui=NONE guifg=#f030d0 guibg=NONE 67 | hi Todo gui=UNDERLINE guifg=#ff0070 guibg=#ffe0f4 68 | hi Type gui=NONE guifg=#0070e6 guibg=NONE 69 | hi Underlined gui=UNDERLINE guifg=fg guibg=NONE 70 | -------------------------------------------------------------------------------- /colors/inkpot.vim: -------------------------------------------------------------------------------- 1 | " Vim color file 2 | " Name: inkpot.vim 3 | " Maintainer: Ciaran McCreesh 4 | " This should work in the GUI, rxvt-unicode (88 colour mode) and xterm (256 5 | " colour mode). It won't work in 8/16 colour terminals. 6 | " 7 | " To use a black background, :let g:inkpot_black_background = 1 8 | 9 | set background=dark 10 | hi clear 11 | if exists("syntax_on") 12 | syntax reset 13 | endif 14 | 15 | let colors_name = "inkpot" 16 | 17 | " map a urxvt cube number to an xterm-256 cube number 18 | fun! M(a) 19 | return strpart("0135", a:a, 1) + 0 20 | endfun 21 | 22 | " map a urxvt colour to an xterm-256 colour 23 | fun! X(a) 24 | if &t_Co == 88 25 | return a:a 26 | else 27 | if a:a == 8 28 | return 237 29 | elseif a:a < 16 30 | return a:a 31 | elseif a:a > 79 32 | return 232 + (3 * (a:a - 80)) 33 | else 34 | let l:b = a:a - 16 35 | let l:x = l:b % 4 36 | let l:y = (l:b / 4) % 4 37 | let l:z = (l:b / 16) 38 | return 16 + M(l:x) + (6 * M(l:y)) + (36 * M(l:z)) 39 | endif 40 | endif 41 | endfun 42 | 43 | if ! exists("g:inkpot_black_background") 44 | let g:inkpot_black_background = 0 45 | endif 46 | 47 | if has("gui_running") 48 | if ! g:inkpot_black_background 49 | hi Normal gui=NONE guifg=#cfbfad guibg=#1e1e27 50 | else 51 | hi Normal gui=NONE guifg=#cfbfad guibg=#000000 52 | endif 53 | 54 | hi IncSearch gui=BOLD guifg=#303030 guibg=#cd8b60 55 | hi Search gui=NONE guifg=#303030 guibg=#cd8b60 56 | hi ErrorMsg gui=BOLD guifg=#ffffff guibg=#ce4e4e 57 | hi WarningMsg gui=BOLD guifg=#ffffff guibg=#ce8e4e 58 | hi ModeMsg gui=BOLD guifg=#7e7eae guibg=NONE 59 | hi MoreMsg gui=BOLD guifg=#7e7eae guibg=NONE 60 | hi Question gui=BOLD guifg=#ffcd00 guibg=NONE 61 | 62 | hi StatusLine gui=BOLD guifg=#b9b9b9 guibg=#3e3e5e 63 | hi User1 gui=BOLD guifg=#00ff8b guibg=#3e3e5e 64 | hi User2 gui=BOLD guifg=#7070a0 guibg=#3e3e5e 65 | hi StatusLineNC gui=NONE guifg=#b9b9b9 guibg=#3e3e5e 66 | hi VertSplit gui=NONE guifg=#b9b9b9 guibg=#3e3e5e 67 | 68 | hi WildMenu gui=BOLD guifg=#eeeeee guibg=#6e6eaf 69 | 70 | hi MBENormal guifg=#cfbfad guibg=#2e2e3f 71 | hi MBEChanged guifg=#eeeeee guibg=#2e2e3f 72 | hi MBEVisibleNormal guifg=#cfcfcd guibg=#4e4e8f 73 | hi MBEVisibleChanged guifg=#eeeeee guibg=#4e4e8f 74 | 75 | hi DiffText gui=NONE guifg=#ffffcd guibg=#4a2a4a 76 | hi DiffChange gui=NONE guifg=#ffffcd guibg=#306b8f 77 | hi DiffDelete gui=NONE guifg=#ffffcd guibg=#6d3030 78 | hi DiffAdd gui=NONE guifg=#ffffcd guibg=#306d30 79 | 80 | hi Cursor gui=NONE guifg=#404040 guibg=#8b8bff 81 | hi lCursor gui=NONE guifg=#404040 guibg=#8fff8b 82 | hi CursorIM gui=NONE guifg=#404040 guibg=#8b8bff 83 | 84 | hi Folded gui=NONE guifg=#cfcfcd guibg=#4b208f 85 | hi FoldColumn gui=NONE guifg=#8b8bcd guibg=#2e2e2e 86 | 87 | hi Directory gui=NONE guifg=#00ff8b guibg=NONE 88 | hi LineNr gui=NONE guifg=#8b8bcd guibg=#2e2e2e 89 | hi NonText gui=BOLD guifg=#8b8bcd guibg=NONE 90 | hi SpecialKey gui=BOLD guifg=#ab60ed guibg=NONE 91 | hi Title gui=BOLD guifg=#af4f4b guibg=NONE 92 | hi Visual gui=NONE guifg=#eeeeee guibg=#4e4e8f 93 | 94 | hi Comment gui=NONE guifg=#cd8b00 guibg=NONE 95 | hi Constant gui=NONE guifg=#ffcd8b guibg=NONE 96 | hi String gui=NONE guifg=#ffcd8b guibg=#404040 97 | hi Error gui=NONE guifg=#ffffff guibg=#6e2e2e 98 | hi Identifier gui=NONE guifg=#ff8bff guibg=NONE 99 | hi Ignore gui=NONE 100 | hi Number gui=NONE guifg=#f0ad6d guibg=NONE 101 | hi PreProc gui=NONE guifg=#409090 guibg=NONE 102 | hi Special gui=NONE guifg=#c080d0 guibg=NONE 103 | hi SpecialChar gui=NONE guifg=#c080d0 guibg=#404040 104 | hi Statement gui=NONE guifg=#808bed guibg=NONE 105 | hi Todo gui=BOLD guifg=#303030 guibg=#d0a060 106 | hi Type gui=NONE guifg=#ff8bff guibg=NONE 107 | hi Underlined gui=BOLD guifg=#df9f2d guibg=NONE 108 | hi TaglistTagName gui=BOLD guifg=#808bed guibg=NONE 109 | 110 | hi perlSpecialMatch gui=NONE guifg=#c080d0 guibg=#404040 111 | hi perlSpecialString gui=NONE guifg=#c080d0 guibg=#404040 112 | 113 | hi cSpecialCharacter gui=NONE guifg=#c080d0 guibg=#404040 114 | hi cFormat gui=NONE guifg=#c080d0 guibg=#404040 115 | 116 | hi doxygenBrief gui=NONE guifg=#fdab60 guibg=NONE 117 | hi doxygenParam gui=NONE guifg=#fdd090 guibg=NONE 118 | hi doxygenPrev gui=NONE guifg=#fdd090 guibg=NONE 119 | hi doxygenSmallSpecial gui=NONE guifg=#fdd090 guibg=NONE 120 | hi doxygenSpecial gui=NONE guifg=#fdd090 guibg=NONE 121 | hi doxygenComment gui=NONE guifg=#ad7b20 guibg=NONE 122 | hi doxygenSpecial gui=NONE guifg=#fdab60 guibg=NONE 123 | hi doxygenSpecialMultilineDesc gui=NONE guifg=#ad600b guibg=NONE 124 | hi doxygenSpecialOnelineDesc gui=NONE guifg=#ad600b guibg=NONE 125 | 126 | if v:version >= 700 127 | hi Pmenu gui=NONE guifg=#eeeeee guibg=#4e4e8f 128 | hi PmenuSel gui=BOLD guifg=#eeeeee guibg=#2e2e3f 129 | hi PmenuSbar gui=BOLD guifg=#eeeeee guibg=#6e6eaf 130 | hi PmenuThumb gui=BOLD guifg=#eeeeee guibg=#6e6eaf 131 | 132 | hi SpellBad gui=undercurl guisp=#cc6666 133 | hi SpellRare gui=undercurl guisp=#cc66cc 134 | hi SpellLocal gui=undercurl guisp=#cccc66 135 | hi SpellCap gui=undercurl guisp=#66cccc 136 | 137 | hi MatchParen gui=NONE guifg=#404040 guibg=#8fff8b 138 | endif 139 | else 140 | if ! g:inkpot_black_background 141 | exec "hi Normal cterm=NONE ctermfg=" . X(79) . " ctermbg=" . X(80) 142 | else 143 | exec "hi Normal cterm=NONE ctermfg=" . X(79) . " ctermbg=" . X(16) 144 | endif 145 | 146 | exec "hi IncSearch cterm=BOLD ctermfg=" . X(80) . " ctermbg=" . X(73) 147 | exec "hi Search cterm=NONE ctermfg=" . X(80) . " ctermbg=" . X(73) 148 | exec "hi ErrorMsg cterm=BOLD ctermfg=" . X(16) . " ctermbg=" . X(48) 149 | exec "hi WarningMsg cterm=BOLD ctermfg=" . X(16) . " ctermbg=" . X(68) 150 | exec "hi ModeMsg cterm=BOLD ctermfg=" . X(38) . " ctermbg=" . "NONE" 151 | exec "hi MoreMsg cterm=BOLD ctermfg=" . X(38) . " ctermbg=" . "NONE" 152 | exec "hi Question cterm=BOLD ctermfg=" . X(52) . " ctermbg=" . "NONE" 153 | 154 | exec "hi StatusLine cterm=BOLD ctermfg=" . X(85) . " ctermbg=" . X(81) 155 | exec "hi User1 cterm=BOLD ctermfg=" . X(28) . " ctermbg=" . X(81) 156 | exec "hi User2 cterm=BOLD ctermfg=" . X(39) . " ctermbg=" . X(81) 157 | exec "hi StatusLineNC cterm=NONE ctermfg=" . X(84) . " ctermbg=" . X(81) 158 | exec "hi VertSplit cterm=NONE ctermfg=" . X(84) . " ctermbg=" . X(81) 159 | 160 | exec "hi WildMenu cterm=BOLD ctermfg=" . X(87) . " ctermbg=" . X(38) 161 | 162 | exec "hi MBENormal ctermfg=" . X(85) . " ctermbg=" . X(81) 163 | exec "hi MBEChanged ctermfg=" . X(87) . " ctermbg=" . X(81) 164 | exec "hi MBEVisibleNormal ctermfg=" . X(85) . " ctermbg=" . X(82) 165 | exec "hi MBEVisibleChanged ctermfg=" . X(87) . " ctermbg=" . X(82) 166 | 167 | exec "hi DiffText cterm=NONE ctermfg=" . X(79) . " ctermbg=" . X(34) 168 | exec "hi DiffChange cterm=NONE ctermfg=" . X(79) . " ctermbg=" . X(17) 169 | exec "hi DiffDelete cterm=NONE ctermfg=" . X(79) . " ctermbg=" . X(32) 170 | exec "hi DiffAdd cterm=NONE ctermfg=" . X(79) . " ctermbg=" . X(20) 171 | 172 | exec "hi Folded cterm=NONE ctermfg=" . X(79) . " ctermbg=" . X(35) 173 | exec "hi FoldColumn cterm=NONE ctermfg=" . X(39) . " ctermbg=" . X(80) 174 | 175 | exec "hi Directory cterm=NONE ctermfg=" . X(28) . " ctermbg=" . "NONE" 176 | exec "hi LineNr cterm=NONE ctermfg=" . X(39) . " ctermbg=" . X(80) 177 | exec "hi NonText cterm=BOLD ctermfg=" . X(39) . " ctermbg=" . "NONE" 178 | exec "hi SpecialKey cterm=BOLD ctermfg=" . X(55) . " ctermbg=" . "NONE" 179 | exec "hi Title cterm=BOLD ctermfg=" . X(48) . " ctermbg=" . "NONE" 180 | exec "hi Visual cterm=NONE ctermfg=" . X(79) . " ctermbg=" . X(38) 181 | 182 | exec "hi Comment cterm=NONE ctermfg=" . X(52) . " ctermbg=" . "NONE" 183 | exec "hi Constant cterm=NONE ctermfg=" . X(73) . " ctermbg=" . "NONE" 184 | exec "hi String cterm=NONE ctermfg=" . X(73) . " ctermbg=" . X(81) 185 | exec "hi Error cterm=NONE ctermfg=" . X(79) . " ctermbg=" . X(32) 186 | exec "hi Identifier cterm=NONE ctermfg=" . X(53) . " ctermbg=" . "NONE" 187 | exec "hi Ignore cterm=NONE" 188 | exec "hi Number cterm=NONE ctermfg=" . X(69) . " ctermbg=" . "NONE" 189 | exec "hi PreProc cterm=NONE ctermfg=" . X(25) . " ctermbg=" . "NONE" 190 | exec "hi Special cterm=NONE ctermfg=" . X(55) . " ctermbg=" . "NONE" 191 | exec "hi SpecialChar cterm=NONE ctermfg=" . X(55) . " ctermbg=" . X(81) 192 | exec "hi Statement cterm=NONE ctermfg=" . X(27) . " ctermbg=" . "NONE" 193 | exec "hi Todo cterm=BOLD ctermfg=" . X(16) . " ctermbg=" . X(57) 194 | exec "hi Type cterm=NONE ctermfg=" . X(71) . " ctermbg=" . "NONE" 195 | exec "hi Underlined cterm=BOLD ctermfg=" . X(77) . " ctermbg=" . "NONE" 196 | exec "hi TaglistTagName cterm=BOLD ctermfg=" . X(39) . " ctermbg=" . "NONE" 197 | 198 | if v:version >= 700 199 | exec "hi Pmenu cterm=NONE ctermfg=" . X(87) . " ctermbg=" . X(82) 200 | exec "hi PmenuSel cterm=BOLD ctermfg=" . X(87) . " ctermbg=" . X(38) 201 | exec "hi PmenuSbar cterm=BOLD ctermfg=" . X(87) . " ctermbg=" . X(39) 202 | exec "hi PmenuThumb cterm=BOLD ctermfg=" . X(87) . " ctermbg=" . X(39) 203 | 204 | exec "hi SpellBad cterm=NONE ctermbg=" . X(32) 205 | exec "hi SpellRare cterm=NONE ctermbg=" . X(33) 206 | exec "hi SpellLocal cterm=NONE ctermbg=" . X(36) 207 | exec "hi SpellCap cterm=NONE ctermbg=" . X(21) 208 | exec "hi MatchParen cterm=NONE ctermbg=" . X(14) . "ctermfg=" . X(25) 209 | endif 210 | endif 211 | 212 | " vim: set et : 213 | -------------------------------------------------------------------------------- /colors/jellybeans.vim: -------------------------------------------------------------------------------- 1 | " Vim color file 2 | " 3 | " " __ _ _ _ " 4 | " " \ \ ___| | |_ _| |__ ___ __ _ _ __ ___ " 5 | " " \ \/ _ \ | | | | | _ \ / _ \/ _ | _ \/ __| " 6 | " " /\_/ / __/ | | |_| | |_| | __/ |_| | | | \__ \ " 7 | " " \___/ \___|_|_|\__ |____/ \___|\____|_| |_|___/ " 8 | " " \___/ " 9 | " 10 | " "A colorful, dark color scheme for Vim." 11 | " 12 | " File: jellybeans.vim 13 | " Maintainer: NanoTech 14 | " Version: 1.5~git 15 | " Last Change: April 11th, 2011 16 | " Contributors: Daniel Herbert , 17 | " Henry So, Jr. , 18 | " David Liang 19 | " 20 | " Copyright (c) 2009-2011 NanoTech 21 | " 22 | " Permission is hereby granted, free of charge, to any person obtaining a copy 23 | " of this software and associated documentation files (the "Software"), to deal 24 | " in the Software without restriction, including without limitation the rights 25 | " to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 26 | " copies of the Software, and to permit persons to whom the Software is 27 | " furnished to do so, subject to the following conditions: 28 | " 29 | " The above copyright notice and this permission notice shall be included in 30 | " all copies or substantial portions of the Software. 31 | " 32 | " THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 33 | " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 34 | " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 35 | " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 36 | " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 37 | " OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 38 | " THE SOFTWARE. 39 | 40 | set background=dark 41 | 42 | hi clear 43 | 44 | if exists("syntax_on") 45 | syntax reset 46 | endif 47 | 48 | let colors_name = "jellybeans" 49 | 50 | if has("gui_running") || &t_Co == 88 || &t_Co == 256 51 | let s:low_color = 0 52 | else 53 | let s:low_color = 1 54 | endif 55 | 56 | " Color approximation functions by Henry So, Jr. and David Liang {{{ 57 | " Added to jellybeans.vim by Daniel Herbert 58 | 59 | " returns an approximate grey index for the given grey level 60 | fun! s:grey_number(x) 61 | if &t_Co == 88 62 | if a:x < 23 63 | return 0 64 | elseif a:x < 69 65 | return 1 66 | elseif a:x < 103 67 | return 2 68 | elseif a:x < 127 69 | return 3 70 | elseif a:x < 150 71 | return 4 72 | elseif a:x < 173 73 | return 5 74 | elseif a:x < 196 75 | return 6 76 | elseif a:x < 219 77 | return 7 78 | elseif a:x < 243 79 | return 8 80 | else 81 | return 9 82 | endif 83 | else 84 | if a:x < 14 85 | return 0 86 | else 87 | let l:n = (a:x - 8) / 10 88 | let l:m = (a:x - 8) % 10 89 | if l:m < 5 90 | return l:n 91 | else 92 | return l:n + 1 93 | endif 94 | endif 95 | endif 96 | endfun 97 | 98 | " returns the actual grey level represented by the grey index 99 | fun! s:grey_level(n) 100 | if &t_Co == 88 101 | if a:n == 0 102 | return 0 103 | elseif a:n == 1 104 | return 46 105 | elseif a:n == 2 106 | return 92 107 | elseif a:n == 3 108 | return 115 109 | elseif a:n == 4 110 | return 139 111 | elseif a:n == 5 112 | return 162 113 | elseif a:n == 6 114 | return 185 115 | elseif a:n == 7 116 | return 208 117 | elseif a:n == 8 118 | return 231 119 | else 120 | return 255 121 | endif 122 | else 123 | if a:n == 0 124 | return 0 125 | else 126 | return 8 + (a:n * 10) 127 | endif 128 | endif 129 | endfun 130 | 131 | " returns the palette index for the given grey index 132 | fun! s:grey_color(n) 133 | if &t_Co == 88 134 | if a:n == 0 135 | return 16 136 | elseif a:n == 9 137 | return 79 138 | else 139 | return 79 + a:n 140 | endif 141 | else 142 | if a:n == 0 143 | return 16 144 | elseif a:n == 25 145 | return 231 146 | else 147 | return 231 + a:n 148 | endif 149 | endif 150 | endfun 151 | 152 | " returns an approximate color index for the given color level 153 | fun! s:rgb_number(x) 154 | if &t_Co == 88 155 | if a:x < 69 156 | return 0 157 | elseif a:x < 172 158 | return 1 159 | elseif a:x < 230 160 | return 2 161 | else 162 | return 3 163 | endif 164 | else 165 | if a:x < 75 166 | return 0 167 | else 168 | let l:n = (a:x - 55) / 40 169 | let l:m = (a:x - 55) % 40 170 | if l:m < 20 171 | return l:n 172 | else 173 | return l:n + 1 174 | endif 175 | endif 176 | endif 177 | endfun 178 | 179 | " returns the actual color level for the given color index 180 | fun! s:rgb_level(n) 181 | if &t_Co == 88 182 | if a:n == 0 183 | return 0 184 | elseif a:n == 1 185 | return 139 186 | elseif a:n == 2 187 | return 205 188 | else 189 | return 255 190 | endif 191 | else 192 | if a:n == 0 193 | return 0 194 | else 195 | return 55 + (a:n * 40) 196 | endif 197 | endif 198 | endfun 199 | 200 | " returns the palette index for the given R/G/B color indices 201 | fun! s:rgb_color(x, y, z) 202 | if &t_Co == 88 203 | return 16 + (a:x * 16) + (a:y * 4) + a:z 204 | else 205 | return 16 + (a:x * 36) + (a:y * 6) + a:z 206 | endif 207 | endfun 208 | 209 | " returns the palette index to approximate the given R/G/B color levels 210 | fun! s:color(r, g, b) 211 | " get the closest grey 212 | let l:gx = s:grey_number(a:r) 213 | let l:gy = s:grey_number(a:g) 214 | let l:gz = s:grey_number(a:b) 215 | 216 | " get the closest color 217 | let l:x = s:rgb_number(a:r) 218 | let l:y = s:rgb_number(a:g) 219 | let l:z = s:rgb_number(a:b) 220 | 221 | if l:gx == l:gy && l:gy == l:gz 222 | " there are two possibilities 223 | let l:dgr = s:grey_level(l:gx) - a:r 224 | let l:dgg = s:grey_level(l:gy) - a:g 225 | let l:dgb = s:grey_level(l:gz) - a:b 226 | let l:dgrey = (l:dgr * l:dgr) + (l:dgg * l:dgg) + (l:dgb * l:dgb) 227 | let l:dr = s:rgb_level(l:gx) - a:r 228 | let l:dg = s:rgb_level(l:gy) - a:g 229 | let l:db = s:rgb_level(l:gz) - a:b 230 | let l:drgb = (l:dr * l:dr) + (l:dg * l:dg) + (l:db * l:db) 231 | if l:dgrey < l:drgb 232 | " use the grey 233 | return s:grey_color(l:gx) 234 | else 235 | " use the color 236 | return s:rgb_color(l:x, l:y, l:z) 237 | endif 238 | else 239 | " only one possibility 240 | return s:rgb_color(l:x, l:y, l:z) 241 | endif 242 | endfun 243 | 244 | " returns the palette index to approximate the 'rrggbb' hex string 245 | fun! s:rgb(rgb) 246 | let l:r = ("0x" . strpart(a:rgb, 0, 2)) + 0 247 | let l:g = ("0x" . strpart(a:rgb, 2, 2)) + 0 248 | let l:b = ("0x" . strpart(a:rgb, 4, 2)) + 0 249 | return s:color(l:r, l:g, l:b) 250 | endfun 251 | 252 | " sets the highlighting for the given group 253 | fun! s:X(group, fg, bg, attr, lcfg, lcbg) 254 | if s:low_color 255 | let l:fge = empty(a:lcfg) 256 | let l:bge = empty(a:lcbg) 257 | 258 | if !l:fge && !l:bge 259 | exec "hi ".a:group." ctermfg=".a:lcfg." ctermbg=".a:lcbg 260 | elseif !l:fge && l:bge 261 | exec "hi ".a:group." ctermfg=".a:lcfg." ctermbg=NONE" 262 | elseif l:fge && !l:bge 263 | exec "hi ".a:group." ctermfg=NONE ctermbg=".a:lcbg 264 | endif 265 | else 266 | let l:fge = empty(a:fg) 267 | let l:bge = empty(a:bg) 268 | 269 | if !l:fge && !l:bge 270 | exec "hi ".a:group." guifg=#".a:fg." guibg=#".a:bg." ctermfg=".s:rgb(a:fg)." ctermbg=".s:rgb(a:bg) 271 | elseif !l:fge && l:bge 272 | exec "hi ".a:group." guifg=#".a:fg." guibg=NONE ctermfg=".s:rgb(a:fg)." ctermbg=NONE" 273 | elseif l:fge && !l:bge 274 | exec "hi ".a:group." guifg=NONE guibg=#".a:bg." ctermfg=NONE ctermbg=".s:rgb(a:bg) 275 | endif 276 | endif 277 | 278 | if a:attr == "" 279 | exec "hi ".a:group." gui=none cterm=none" 280 | else 281 | let noitalic = join(filter(split(a:attr, ","), "v:val !=? 'italic'"), ",") 282 | if empty(noitalic) 283 | let noitalic = "none" 284 | endif 285 | exec "hi ".a:group." gui=".a:attr." cterm=".noitalic 286 | endif 287 | endfun 288 | " }}} 289 | 290 | call s:X("Normal","e8e8d3","151515","","White","") 291 | set background=dark 292 | 293 | if !exists("g:jellybeans_use_lowcolor_black") || g:jellybeans_use_lowcolor_black 294 | let s:termBlack = "Black" 295 | else 296 | let s:termBlack = "Grey" 297 | endif 298 | 299 | if version >= 700 300 | call s:X("CursorLine","","1c1c1c","","",s:termBlack) 301 | call s:X("CursorColumn","","1c1c1c","","",s:termBlack) 302 | call s:X("MatchParen","ffffff","80a090","bold","","DarkCyan") 303 | 304 | call s:X("TabLine","000000","b0b8c0","italic","",s:termBlack) 305 | call s:X("TabLineFill","9098a0","","","",s:termBlack) 306 | call s:X("TabLineSel","000000","f0f0f0","italic,bold",s:termBlack,"White") 307 | 308 | " Auto-completion 309 | call s:X("Pmenu","ffffff","606060","","White",s:termBlack) 310 | call s:X("PmenuSel","101010","eeeeee","",s:termBlack,"White") 311 | endif 312 | 313 | call s:X("Visual","","404040","","",s:termBlack) 314 | call s:X("Cursor","","b0d0f0","","","") 315 | 316 | call s:X("LineNr","605958","151515","none",s:termBlack,"") 317 | call s:X("Comment","888888","","italic","Grey","") 318 | call s:X("Todo","808080","","bold","White",s:termBlack) 319 | 320 | call s:X("StatusLine","000000","dddddd","italic","","White") 321 | call s:X("StatusLineNC","ffffff","403c41","italic","White","Black") 322 | call s:X("VertSplit","777777","403c41","italic",s:termBlack,s:termBlack) 323 | call s:X("WildMenu","f0a0c0","302028","","Magenta","") 324 | 325 | call s:X("Folded","a0a8b0","384048","italic",s:termBlack,"") 326 | call s:X("FoldColumn","535D66","1f1f1f","","",s:termBlack) 327 | call s:X("SignColumn","777777","333333","","",s:termBlack) 328 | call s:X("ColorColumn","","000000","","",s:termBlack) 329 | 330 | call s:X("Title","70b950","","bold","Green","") 331 | 332 | call s:X("Constant","cf6a4c","","","Red","") 333 | call s:X("Special","799d6a","","","Green","") 334 | call s:X("Delimiter","668799","","","Grey","") 335 | 336 | call s:X("String","99ad6a","","","Green","") 337 | call s:X("StringDelimiter","556633","","","DarkGreen","") 338 | 339 | call s:X("Identifier","c6b6ee","","","LightCyan","") 340 | call s:X("Structure","8fbfdc","","","LightCyan","") 341 | call s:X("Function","fad07a","","","Yellow","") 342 | call s:X("Statement","8197bf","","","DarkBlue","") 343 | call s:X("PreProc","8fbfdc","","","LightBlue","") 344 | 345 | hi! link Operator Normal 346 | 347 | call s:X("Type","ffb964","","","Yellow","") 348 | call s:X("NonText","606060","151515","",s:termBlack,"") 349 | 350 | call s:X("SpecialKey","444444","1c1c1c","",s:termBlack,"") 351 | 352 | call s:X("Search","f0a0c0","302028","underline","Magenta","") 353 | 354 | call s:X("Directory","dad085","","","Yellow","") 355 | call s:X("ErrorMsg","","902020","","","DarkRed") 356 | hi! link Error ErrorMsg 357 | hi! link MoreMsg Special 358 | call s:X("Question","65C254","","","Green","") 359 | 360 | 361 | " Spell Checking 362 | 363 | call s:X("SpellBad","","902020","underline","","DarkRed") 364 | call s:X("SpellCap","","0000df","underline","","Blue") 365 | call s:X("SpellRare","","540063","underline","","DarkMagenta") 366 | call s:X("SpellLocal","","2D7067","underline","","Green") 367 | 368 | " Diff 369 | 370 | hi! link diffRemoved Constant 371 | hi! link diffAdded String 372 | 373 | " VimDiff 374 | 375 | call s:X("DiffAdd","D2EBBE","437019","","White","DarkGreen") 376 | call s:X("DiffDelete","40000A","700009","","DarkRed","DarkRed") 377 | call s:X("DiffChange","","2B5B77","","White","DarkBlue") 378 | call s:X("DiffText","8fbfdc","000000","reverse","Yellow","") 379 | 380 | " PHP 381 | 382 | hi! link phpFunctions Function 383 | call s:X("StorageClass","c59f6f","","","Red","") 384 | hi! link phpSuperglobal Identifier 385 | hi! link phpQuoteSingle StringDelimiter 386 | hi! link phpQuoteDouble StringDelimiter 387 | hi! link phpBoolean Constant 388 | hi! link phpNull Constant 389 | hi! link phpArrayPair Operator 390 | 391 | " Ruby 392 | 393 | hi! link rubySharpBang Comment 394 | call s:X("rubyClass","447799","","","DarkBlue","") 395 | call s:X("rubyIdentifier","c6b6fe","","","Cyan","") 396 | hi! link rubyConstant Type 397 | hi! link rubyFunction Function 398 | 399 | call s:X("rubyInstanceVariable","c6b6fe","","","Cyan","") 400 | call s:X("rubySymbol","7697d6","","","Blue","") 401 | hi! link rubyGlobalVariable rubyInstanceVariable 402 | hi! link rubyModule rubyClass 403 | call s:X("rubyControl","7597c6","","","Blue","") 404 | 405 | hi! link rubyString String 406 | hi! link rubyStringDelimiter StringDelimiter 407 | hi! link rubyInterpolationDelimiter Identifier 408 | 409 | call s:X("rubyRegexpDelimiter","540063","","","Magenta","") 410 | call s:X("rubyRegexp","dd0093","","","DarkMagenta","") 411 | call s:X("rubyRegexpSpecial","a40073","","","Magenta","") 412 | 413 | call s:X("rubyPredefinedIdentifier","de5577","","","Red","") 414 | 415 | " JavaScript 416 | 417 | hi! link javaScriptValue Constant 418 | hi! link javaScriptRegexpString rubyRegexp 419 | 420 | " CoffeeScript 421 | 422 | hi! link coffeeRegExp javaScriptRegexpString 423 | 424 | " Lua 425 | 426 | hi! link luaOperator Conditional 427 | 428 | " C 429 | 430 | hi! link cOperator Constant 431 | 432 | " Objective-C/Cocoa 433 | 434 | hi! link objcClass Type 435 | hi! link cocoaClass objcClass 436 | hi! link objcSubclass objcClass 437 | hi! link objcSuperclass objcClass 438 | hi! link objcDirective rubyClass 439 | hi! link cocoaFunction Function 440 | hi! link objcMethodName Identifier 441 | hi! link objcMethodArg Normal 442 | hi! link objcMessageName Identifier 443 | 444 | " Debugger.vim 445 | 446 | call s:X("DbgCurrent","DEEBFE","345FA8","","White","DarkBlue") 447 | call s:X("DbgBreakPt","","4F0037","","","DarkMagenta") 448 | 449 | " Plugins, etc. 450 | 451 | hi! link TagListFileName Directory 452 | call s:X("PreciseJumpTarget","B9ED67","405026","","White","Green") 453 | 454 | " Manual overrides for 256-color terminals. Dark colors auto-map badly. 455 | if !s:low_color 456 | hi StatusLineNC ctermbg=235 457 | hi Folded ctermbg=236 458 | hi FoldColumn ctermbg=234 459 | hi SignColumn ctermbg=236 460 | hi CursorColumn ctermbg=234 461 | hi CursorLine ctermbg=234 462 | hi SpecialKey ctermbg=234 463 | hi NonText ctermbg=233 464 | hi LineNr ctermbg=233 465 | hi DiffText ctermfg=81 466 | hi Normal ctermbg=233 467 | hi DbgBreakPt ctermbg=53 468 | endif 469 | 470 | " delete functions {{{ 471 | delf s:X 472 | delf s:rgb 473 | delf s:color 474 | delf s:rgb_color 475 | delf s:rgb_level 476 | delf s:rgb_number 477 | delf s:grey_color 478 | delf s:grey_level 479 | delf s:grey_number 480 | " }}} 481 | -------------------------------------------------------------------------------- /colors/kib_plastic.vim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgm/dotvim/54b3fd9e04e6c2746af84804576134e8b23e20cf/colors/kib_plastic.vim -------------------------------------------------------------------------------- /colors/lightblue.vim: -------------------------------------------------------------------------------- 1 | " Vim color file 2 | " Maintainer: David Schweikert 3 | " Last Change: 2004 May 16 4 | 5 | " First remove all existing highlighting. 6 | hi clear 7 | 8 | let colors_name = "delek" 9 | 10 | hi Normal guifg=Black guibg=#5FE6E6 11 | 12 | " Groups used in the 'highlight' and 'guicursor' options default value. 13 | hi ErrorMsg term=standout ctermbg=DarkRed ctermfg=White guibg=Red guifg=White 14 | hi IncSearch term=reverse cterm=reverse gui=reverse 15 | hi ModeMsg term=bold cterm=bold gui=bold 16 | hi VertSplit term=reverse cterm=reverse gui=reverse 17 | hi Visual term=reverse cterm=reverse gui=reverse guifg=Grey guibg=fg 18 | hi VisualNOS term=underline,bold cterm=underline,bold gui=underline,bold 19 | hi DiffText term=reverse cterm=bold ctermbg=Red gui=bold guibg=Red 20 | hi Cursor guibg=Green guifg=NONE 21 | hi lCursor guibg=Cyan guifg=NONE 22 | hi Directory term=bold ctermfg=DarkBlue guifg=Blue 23 | hi LineNr term=underline ctermfg=Brown guifg=Brown 24 | hi MoreMsg term=bold ctermfg=DarkGreen gui=bold guifg=SeaGreen 25 | hi Question term=standout ctermfg=DarkGreen gui=bold guifg=SeaGreen 26 | hi Search term=reverse ctermbg=Yellow ctermfg=NONE guibg=Yellow guifg=NONE 27 | hi SpecialKey term=bold ctermfg=DarkBlue guifg=Blue 28 | hi Title term=bold ctermfg=DarkMagenta gui=bold guifg=Magenta 29 | hi WarningMsg term=standout ctermfg=DarkRed guifg=Red 30 | hi WildMenu term=standout ctermbg=Yellow ctermfg=Black guibg=Yellow guifg=Black 31 | hi Folded term=standout ctermbg=Grey ctermfg=DarkBlue guibg=LightGrey guifg=DarkBlue 32 | hi FoldColumn term=standout ctermbg=Grey ctermfg=DarkBlue guibg=Grey guifg=DarkBlue 33 | hi DiffAdd term=bold ctermbg=LightBlue guibg=LightBlue 34 | hi DiffChange term=bold ctermbg=LightMagenta guibg=LightMagenta 35 | hi DiffDelete term=bold ctermfg=Blue ctermbg=LightCyan gui=bold guifg=Blue guibg=LightCyan 36 | 37 | hi StatusLine cterm=bold ctermbg=blue ctermfg=yellow guibg=gold guifg=blue 38 | hi StatusLineNC cterm=bold ctermbg=blue ctermfg=black guibg=gold guifg=blue 39 | hi NonText term=bold ctermfg=Blue gui=bold guifg=gray guibg=#5FE6E6 40 | hi Cursor guibg=fg guifg=bg 41 | 42 | " syntax highlighting 43 | hi PreProc term=underline cterm=NONE ctermfg=darkmagenta gui=NONE guifg=magenta3 44 | hi Identifier term=underline cterm=NONE ctermfg=darkcyan gui=NONE guifg=cyan4 45 | hi Comment term=NONE cterm=NONE ctermfg=darkred gui=NONE guifg=red2 46 | hi Constant term=underline cterm=NONE ctermfg=darkgreen gui=NONE guifg=green3 47 | hi Special term=bold cterm=NONE ctermfg=lightred gui=NONE guifg=deeppink 48 | hi Statement term=bold cterm=bold ctermfg=blue gui=bold guifg=blue 49 | hi Type term=underline cterm=NONE ctermfg=blue gui=bold guifg=blue 50 | 51 | if exists("syntax_on") 52 | let syntax_cmd = "enable" 53 | runtime syntax/syncolor.vim 54 | unlet syntax_cmd 55 | endif 56 | 57 | " vim: sw=2 58 | -------------------------------------------------------------------------------- /colors/midnight2.vim: -------------------------------------------------------------------------------- 1 | " Vim color file 2 | " Maintainer: Michael Brailsford 3 | " Date: $Date: 2002/04/11 03:29:51 $ 4 | " Version: $Revision: 1.4 $ 5 | " Inspiration: This colorscheme was inspired by midnight.vim. It is a darker 6 | " version of it. With some colors tweaked. 7 | " Thanks: Thanks go to Hans Fugal for creating the colorscheme template. 8 | " Without it I would have been lost creating the original midnight.vim 9 | " Note: If you do not like the dark look of the colorscheme, you can 10 | " easily lighten things up with the following line: 11 | " :%s/\(\w\)3/\12/g 12 | " It is easily pasteable into the command line. you can also 13 | " change "\12" to "\11", "\1" or "\14" (if you want things even 14 | " darker). If you do use the "\14" replacement, then it looks 15 | " like your monitor in a fog bank. :) 16 | 17 | " your pick: 18 | set background=dark 19 | hi clear 20 | if exists("syntax_on") 21 | syntax reset 22 | endif 23 | let g:colors_name="midnight2" 24 | 25 | hi Normal guifg=slategray3 guibg=#000029 ctermfg=14 26 | 27 | "Toggle semicolon matching at the end of lines 28 | nmap ; :call ToggleSemicolonHighlighting() 29 | "{{{ 30 | function! ToggleSemicolonHighlighting() 31 | if exists("b:semicolon") 32 | unlet b:semicolon 33 | hi semicolon guifg=NONE gui=NONE ctermfg=NONE 34 | else 35 | syn match semicolon #;$# 36 | hi semicolon guifg=red3 gui=bold ctermfg=1 37 | let b:semicolon = 1 38 | endif 39 | endfunction 40 | "}}} 41 | 42 | hi Cursor guifg=bg guibg=fg ctermfg=0 ctermbg=11 43 | "hi CursorIM 44 | hi Directory gui=bold 45 | hi DiffAdd guifg=yellow3 guibg=darkgreen ctermbg=0 46 | "hi DiffChange 47 | "hi DiffDelete 48 | "hi DiffText 49 | hi ErrorMsg guibg=red3 ctermfg=1 50 | "hi VertSplit 51 | hi Folded guibg=#00001a ctermbg=4 guifg=yellow3 ctermfg=11 gui=NONE 52 | hi FoldColumn guibg=steelblue3 ctermbg=14 guifg=navyblue ctermfg=11 gui=bold 53 | "hi IncSearch 54 | hi LineNr guifg=yellow3 ctermfg=11 55 | hi ModeMsg guifg=yellow3 gui=bold 56 | "hi MoreMsg 57 | "hi NonText 58 | "hi Question 59 | hi Search guibg=yellow3 guifg=bg 60 | "hi SpecialKey 61 | hi StatusLine guifg=steelblue3 62 | hi StatusLineNC guifg=steelblue4 63 | "hi Title 64 | hi Visual guifg=fg guibg=bg 65 | "hi VisualNOS 66 | "hi WarningMsg 67 | "hi WildMenu 68 | "hi Menu 69 | "hi Scrollbar 70 | "hi Tooltip 71 | 72 | " syntax highlighting groups 73 | hi Comment guifg=chartreuse3 ctermfg=10 74 | hi Constant guifg=plum3 gui=bold ctermfg=13 75 | hi String guifg=indianred3 ctermfg=5 76 | hi Character guifg=mediumpurple3 ctermfg=5 77 | hi Number guifg=turquoise3 ctermfg=5 78 | "hi Identifier 79 | hi Statement guifg=khaki3 gui=bold ctermfg=15 cterm=underline 80 | hi PreProc guifg=firebrick3 gui=italic ctermfg=9 81 | hi Type guifg=gold3 gui=bold ctermfg=3 82 | "hi Special 83 | "hi Underlined 84 | "hi Ignore 85 | "hi Error 86 | hi Todo guifg=yellow3 guibg=blue3 gui=bold 87 | -------------------------------------------------------------------------------- /colors/murphy.vim: -------------------------------------------------------------------------------- 1 | " local syntax file - set colors on a per-machine basis: 2 | " vim: tw=0 ts=4 sw=4 3 | " Vim color file 4 | " Maintainer: Ron Aaron 5 | " Last Change: 2003 May 02 6 | 7 | hi clear 8 | set background=dark 9 | if exists("syntax_on") 10 | syntax reset 11 | endif 12 | let g:colors_name = "murphy" 13 | 14 | hi Normal ctermbg=Black ctermfg=LightGreen guibg=Black guifg=lightgreen 15 | hi Comment term=bold ctermfg=LightRed guifg=Orange 16 | hi Constant term=underline ctermfg=LightGreen guifg=White gui=NONE 17 | hi Identifier term=underline ctermfg=LightCyan guifg=#00ffff 18 | hi Ignore ctermfg=black guifg=bg 19 | hi PreProc term=underline ctermfg=LightBlue guifg=Wheat 20 | hi Search term=reverse guifg=white guibg=Blue 21 | hi Special term=bold ctermfg=LightRed guifg=magenta 22 | hi Statement term=bold ctermfg=Magenta guifg=#ffff00 gui=NONE 23 | hi Type ctermfg=LightGreen guifg=grey gui=none 24 | hi Error term=reverse ctermbg=Red ctermfg=White guibg=Red guifg=White 25 | hi Todo term=standout ctermbg=Black ctermfg=Red guifg=Blue guibg=Yellow 26 | " From the source: 27 | hi Cursor guifg=Orchid guibg=fg 28 | hi Directory term=bold ctermfg=LightCyan guifg=Cyan 29 | hi ErrorMsg term=standout ctermbg=DarkRed ctermfg=White guibg=Red guifg=White 30 | hi IncSearch term=reverse cterm=reverse gui=reverse 31 | hi LineNr term=underline ctermfg=Yellow guifg=Yellow 32 | hi ModeMsg term=bold cterm=bold gui=bold 33 | hi MoreMsg term=bold ctermfg=LightGreen gui=bold guifg=SeaGreen 34 | hi NonText term=bold ctermfg=Blue gui=bold guifg=Blue 35 | hi Question term=standout ctermfg=LightGreen gui=bold guifg=Cyan 36 | hi SpecialKey term=bold ctermfg=LightBlue guifg=Cyan 37 | hi StatusLine term=reverse,bold cterm=reverse gui=NONE guifg=White guibg=darkblue 38 | hi StatusLineNC term=reverse cterm=reverse gui=NONE guifg=white guibg=#333333 39 | hi Title term=bold ctermfg=LightMagenta gui=bold guifg=Pink 40 | hi WarningMsg term=standout ctermfg=LightRed guifg=Red 41 | hi Visual term=reverse cterm=reverse gui=NONE guifg=white guibg=darkgreen 42 | -------------------------------------------------------------------------------- /colors/nightflight.vim: -------------------------------------------------------------------------------- 1 | " local syntax file - set colors on a per-machine basis: 2 | " vim: tw=0 ts=4 sw=4 3 | " Vim color file 4 | " Maintainer: Ralf Holly 5 | " Last Change: 2006 Dec 28 6 | 7 | hi clear 8 | set background=dark 9 | if exists("syntax_on") 10 | syntax reset 11 | endi 12 | 13 | let g:colors_name = "nightflight" 14 | hi Normal cterm=none ctermfg=darkgrey ctermbg=black guifg=#c0c0ff guibg=black 15 | hi Scrollbar cterm=bold ctermfg=darkcyan ctermbg=cyan guifg=darkcyan guibg=cyan 16 | hi Menu guifg=black guibg=cyan 17 | hi SpecialKey term=bold cterm=bold ctermfg=yellow guifg=yellow 18 | hi NonText term=bold cterm=bold ctermfg=yellow gui=none guifg=yellow 19 | hi Directory term=bold cterm=bold ctermfg=cyan guifg=cyan 20 | hi ErrorMsg term=standout cterm=bold ctermfg=white ctermbg=red guifg=white guibg=red 21 | hi Search term=reverse ctermfg=cyan ctermbg=blue guifg=cyan guibg=blue 22 | hi MoreMsg term=bold cterm=bold ctermfg=darkgreen gui=bold guifg=seagreen 23 | hi ModeMsg term=bold cterm=bold gui=bold guifg=white guibg=blue 24 | hi LineNr term=underline cterm=bold ctermfg=darkgrey guifg=darkgrey 25 | hi Question term=standout cterm=bold ctermfg=darkgreen gui=bold guifg=green 26 | hi StatusLine term=bold,reverse cterm=bold ctermfg=black ctermbg=cyan gui=bold guifg=black guibg=cyan 27 | hi StatusLineNC term=reverse ctermfg=black ctermbg=darkcyan guifg=darkcyan guibg=black 28 | hi Title term=bold cterm=bold ctermfg=darkmagenta gui=bold guifg=magenta 29 | hi Visual term=reverse cterm=bold ctermfg=black ctermbg=white guifg=black guibg=white 30 | hi WarningMsg term=standout cterm=bold ctermfg=red guifg=red 31 | hi Cursor guifg=bg guibg=green 32 | hi Comment term=bold cterm=bold ctermfg=lightblue guifg=#0090ff 33 | hi Constant term=underline cterm=bold ctermfg=cyan guifg=cyan 34 | hi Special term=bold cterm=bold ctermfg=cyan guifg=cyan 35 | hi Identifier term=underline ctermfg=cyan guifg=cyan 36 | hi Statement term=bold cterm=bold ctermfg=green gui=none guifg=#60ff60 37 | hi PreProc term=underline ctermfg=magenta guifg=#e080e0 38 | hi Type term=underline cterm=bold ctermfg=lightgreen gui=none guifg=#60ff60 39 | hi Error term=reverse ctermfg=white ctermbg=red guifg=white guibg=red 40 | hi Todo term=standout ctermfg=white ctermbg=magenta guifg=white guibg=magenta 41 | 42 | " If you want to highlight C/Java operators, create c.vim and java.vim files 43 | " in your local $VIM/vimfiles/after/syntax/ directory, containing this statement: 44 | " syntax match _COperators "+\|-\|\*\|;\|:\|,\|<\|>\|&\||\|!\|\~\|%\|=\|)\|(\|{\|}\|\.\|\[\|\]" 45 | hi _COperators ctermfg=white guifg=white gui=none 46 | 47 | " For Vim 7 48 | hi MatchParen ctermbg=blue guifg=white guibg=blue 49 | 50 | hi link IncSearch Visual 51 | hi link String Constant 52 | hi link Character Constant 53 | hi link Number Constant 54 | hi link Boolean Constant 55 | hi link Float Number 56 | hi link Function Identifier 57 | hi link Conditional Statement 58 | hi link Repeat Statement 59 | hi link Label Statement 60 | hi link Operator Statement 61 | hi link Keyword Statement 62 | hi link Exception Statement 63 | hi link Include PreProc 64 | hi link Define PreProc 65 | hi link Macro PreProc 66 | hi link PreCondit PreProc 67 | hi link StorageClass Type 68 | hi link Structure Type 69 | hi link Typedef Type 70 | hi link Tag Special 71 | hi link SpecialChar Special 72 | hi link Delimiter Special 73 | hi link SpecialComment Special 74 | hi link Debug Special 75 | -------------------------------------------------------------------------------- /colors/onehalflight.vim: -------------------------------------------------------------------------------- 1 | " ============================================================================== 2 | " Name: One Half Light 3 | " Author: Son A. Pham 4 | " Url: https://github.com/sonph/onehalf 5 | " License: The MIT License (MIT) 6 | " 7 | " A light vim color scheme based on Atom's One. See github.com/sonph/onehalf 8 | " for installation instructions, a dark color scheme, versions for other 9 | " editors/terminals, and a matching theme for vim-airline. 10 | " ============================================================================== 11 | 12 | set background=light 13 | highlight clear 14 | syntax reset 15 | 16 | let g:colors_name="onehalflight" 17 | let colors_name="onehalflight" 18 | 19 | 20 | let s:black = { "gui": "#383a42", "cterm": "237" } 21 | let s:red = { "gui": "#e45649", "cterm": "167" } 22 | let s:green = { "gui": "#50a14f", "cterm": "71" } 23 | let s:yellow = { "gui": "#c18401", "cterm": "136" } 24 | let s:blue = { "gui": "#0184bc", "cterm": "31" } 25 | let s:purple = { "gui": "#a626a4", "cterm": "127" } 26 | let s:cyan = { "gui": "#0997b3", "cterm": "31" } 27 | let s:white = { "gui": "#fafafa", "cterm": "231" } 28 | 29 | let s:fg = s:black 30 | let s:bg = s:white 31 | 32 | let s:comment_fg = { "gui": "#a0a1a7", "cterm": "247" } 33 | let s:gutter_bg = { "gui": "#fafafa", "cterm": "231" } 34 | let s:gutter_fg = { "gui": "#d4d4d4", "cterm": "252" } 35 | let s:non_text = { "gui": "#e5e5e5", "cterm": "252" } 36 | 37 | let s:cursor_line = { "gui": "#f0f0f0", "cterm": "255" } 38 | let s:color_col = { "gui": "#f0f0f0", "cterm": "255" } 39 | 40 | let s:selection = { "gui": "#bfceff", "cterm": "153" } 41 | let s:vertsplit = { "gui": "#f0f0f0", "cterm": "255" } 42 | 43 | 44 | function! s:h(group, fg, bg, attr) 45 | if type(a:fg) == type({}) 46 | exec "hi " . a:group . " guifg=" . a:fg.gui . " ctermfg=" . a:fg.cterm 47 | else 48 | exec "hi " . a:group . " guifg=NONE cterm=NONE" 49 | endif 50 | if type(a:bg) == type({}) 51 | exec "hi " . a:group . " guibg=" . a:bg.gui . " ctermbg=" . a:bg.cterm 52 | else 53 | exec "hi " . a:group . " guibg=NONE ctermbg=NONE" 54 | endif 55 | if a:attr != "" 56 | exec "hi " . a:group . " gui=" . a:attr . " cterm=" . a:attr 57 | else 58 | exec "hi " . a:group . " gui=NONE cterm=NONE" 59 | endif 60 | endfun 61 | 62 | 63 | " User interface colors { 64 | call s:h("Normal", s:fg, s:bg, "") 65 | 66 | call s:h("Cursor", s:bg, s:blue, "") 67 | call s:h("CursorColumn", "", s:cursor_line, "") 68 | call s:h("CursorLine", "", s:cursor_line, "") 69 | 70 | call s:h("LineNr", s:gutter_fg, s:gutter_bg, "") 71 | call s:h("CursorLineNr", s:fg, "", "") 72 | 73 | call s:h("DiffAdd", s:green, "", "") 74 | call s:h("DiffChange", s:yellow, "", "") 75 | call s:h("DiffDelete", s:red, "", "") 76 | call s:h("DiffText", s:blue, "", "") 77 | 78 | call s:h("IncSearch", s:bg, s:yellow, "") 79 | call s:h("Search", s:bg, s:yellow, "") 80 | 81 | call s:h("ErrorMsg", s:fg, "", "") 82 | call s:h("ModeMsg", s:fg, "", "") 83 | call s:h("MoreMsg", s:fg, "", "") 84 | call s:h("WarningMsg", s:red, "", "") 85 | call s:h("Question", s:purple, "", "") 86 | 87 | call s:h("Pmenu", s:fg, s:cursor_line, "") 88 | call s:h("PmenuSel", s:bg, s:blue, "") 89 | call s:h("PmenuSbar", "", s:cursor_line, "") 90 | call s:h("PmenuThumb", s:fg, s:comment_fg, "") 91 | 92 | call s:h("SpellBad", s:red, "", "") 93 | call s:h("SpellCap", s:yellow, "", "") 94 | call s:h("SpellLocal", s:yellow, "", "") 95 | call s:h("SpellRare", s:yellow, "", "") 96 | 97 | call s:h("StatusLine", s:blue, s:cursor_line, "") 98 | call s:h("StatusLineNC", s:comment_fg, s:cursor_line, "") 99 | call s:h("TabLine", s:comment_fg, s:cursor_line, "") 100 | call s:h("TabLineFill", s:comment_fg, s:cursor_line, "") 101 | call s:h("TabLineSel", s:fg, s:bg, "") 102 | 103 | call s:h("Visual", "", s:selection, "") 104 | call s:h("VisualNOS", "", s:selection, "") 105 | 106 | call s:h("ColorColumn", "", s:color_col, "") 107 | call s:h("Conceal", s:fg, "", "") 108 | call s:h("Directory", s:blue, "", "") 109 | call s:h("VertSplit", s:vertsplit, s:vertsplit, "") 110 | call s:h("Folded", s:fg, "", "") 111 | call s:h("FoldColumn", s:fg, "", "") 112 | call s:h("SignColumn", s:fg, "", "") 113 | 114 | call s:h("MatchParen", s:blue, "", "underline") 115 | call s:h("SpecialKey", s:fg, "", "") 116 | call s:h("Title", s:green, "", "") 117 | call s:h("WildMenu", s:fg, "", "") 118 | " } 119 | 120 | 121 | " Syntax colors { 122 | " Whitespace is defined in Neovim, not Vim. 123 | " See :help hl-Whitespace and :help hl-SpecialKey 124 | call s:h("Whitespace", s:non_text, "", "") 125 | call s:h("NonText", s:non_text, "", "") 126 | call s:h("Comment", s:comment_fg, "", "italic") 127 | call s:h("Constant", s:cyan, "", "") 128 | call s:h("String", s:green, "", "") 129 | call s:h("Character", s:green, "", "") 130 | call s:h("Number", s:yellow, "", "") 131 | call s:h("Boolean", s:yellow, "", "") 132 | call s:h("Float", s:yellow, "", "") 133 | 134 | call s:h("Identifier", s:red, "", "") 135 | call s:h("Function", s:blue, "", "") 136 | call s:h("Statement", s:purple, "", "") 137 | 138 | call s:h("Conditional", s:purple, "", "") 139 | call s:h("Repeat", s:purple, "", "") 140 | call s:h("Label", s:purple, "", "") 141 | call s:h("Operator", s:fg, "", "") 142 | call s:h("Keyword", s:red, "", "") 143 | call s:h("Exception", s:purple, "", "") 144 | 145 | call s:h("PreProc", s:yellow, "", "") 146 | call s:h("Include", s:purple, "", "") 147 | call s:h("Define", s:purple, "", "") 148 | call s:h("Macro", s:purple, "", "") 149 | call s:h("PreCondit", s:yellow, "", "") 150 | 151 | call s:h("Type", s:yellow, "", "") 152 | call s:h("StorageClass", s:yellow, "", "") 153 | call s:h("Structure", s:yellow, "", "") 154 | call s:h("Typedef", s:yellow, "", "") 155 | 156 | call s:h("Special", s:blue, "", "") 157 | call s:h("SpecialChar", s:fg, "", "") 158 | call s:h("Tag", s:fg, "", "") 159 | call s:h("Delimiter", s:fg, "", "") 160 | call s:h("SpecialComment", s:fg, "", "") 161 | call s:h("Debug", s:fg, "", "") 162 | call s:h("Underlined", s:fg, "", "") 163 | call s:h("Ignore", s:fg, "", "") 164 | call s:h("Error", s:red, s:gutter_bg, "") 165 | call s:h("Todo", s:purple, "", "") 166 | " } 167 | 168 | 169 | " Plugins { 170 | " GitGutter 171 | call s:h("GitGutterAdd", s:green, s:gutter_bg, "") 172 | call s:h("GitGutterDelete", s:red, s:gutter_bg, "") 173 | call s:h("GitGutterChange", s:yellow, s:gutter_bg, "") 174 | call s:h("GitGutterChangeDelete", s:red, s:gutter_bg, "") 175 | " Fugitive 176 | call s:h("diffAdded", s:green, "", "") 177 | call s:h("diffRemoved", s:red, "", "") 178 | " } 179 | 180 | 181 | " Git { 182 | call s:h("gitcommitComment", s:comment_fg, "", "") 183 | call s:h("gitcommitUnmerged", s:red, "", "") 184 | call s:h("gitcommitOnBranch", s:fg, "", "") 185 | call s:h("gitcommitBranch", s:purple, "", "") 186 | call s:h("gitcommitDiscardedType", s:red, "", "") 187 | call s:h("gitcommitSelectedType", s:green, "", "") 188 | call s:h("gitcommitHeader", s:fg, "", "") 189 | call s:h("gitcommitUntrackedFile", s:cyan, "", "") 190 | call s:h("gitcommitDiscardedFile", s:red, "", "") 191 | call s:h("gitcommitSelectedFile", s:green, "", "") 192 | call s:h("gitcommitUnmergedFile", s:yellow, "", "") 193 | call s:h("gitcommitFile", s:fg, "", "") 194 | hi link gitcommitNoBranch gitcommitBranch 195 | hi link gitcommitUntracked gitcommitComment 196 | hi link gitcommitDiscarded gitcommitComment 197 | hi link gitcommitSelected gitcommitComment 198 | hi link gitcommitDiscardedArrow gitcommitDiscardedFile 199 | hi link gitcommitSelectedArrow gitcommitSelectedFile 200 | hi link gitcommitUnmergedArrow gitcommitUnmergedFile 201 | " } 202 | 203 | " Fix colors in neovim terminal buffers { 204 | if has('nvim') 205 | let g:terminal_color_0 = s:black.gui 206 | let g:terminal_color_1 = s:red.gui 207 | let g:terminal_color_2 = s:green.gui 208 | let g:terminal_color_3 = s:yellow.gui 209 | let g:terminal_color_4 = s:blue.gui 210 | let g:terminal_color_5 = s:purple.gui 211 | let g:terminal_color_6 = s:cyan.gui 212 | let g:terminal_color_7 = s:white.gui 213 | let g:terminal_color_8 = s:black.gui 214 | let g:terminal_color_9 = s:red.gui 215 | let g:terminal_color_10 = s:green.gui 216 | let g:terminal_color_11 = s:yellow.gui 217 | let g:terminal_color_12 = s:blue.gui 218 | let g:terminal_color_13 = s:purple.gui 219 | let g:terminal_color_14 = s:cyan.gui 220 | let g:terminal_color_15 = s:white.gui 221 | let g:terminal_color_background = s:bg.gui 222 | let g:terminal_color_foreground = s:fg.gui 223 | endif 224 | " } 225 | -------------------------------------------------------------------------------- /colors/polar.vim: -------------------------------------------------------------------------------- 1 | " Name: polar 2 | " Description: White background colorscheme 3 | " Author: Maxim Kim 4 | " Maintainer: Maxim Kim 5 | " License: Vim License (see `:help license`) 6 | " Last Updated: 16.11.2020 22:10:24 7 | 8 | " Generated by Colortemplate v2.1.0 9 | 10 | set background=light 11 | 12 | hi clear 13 | let g:colors_name = 'polar' 14 | 15 | let s:t_Co = exists('&t_Co') && !empty(&t_Co) && &t_Co > 1 ? &t_Co : 2 16 | 17 | if (has('termguicolors') && &termguicolors) || has('gui_running') 18 | let g:terminal_ansi_colors = ['#000000', '#ca1243', '#2a871f', '#c18401', 19 | \ '#2f6aea', '#a626a4', '#0184bc', '#cacbcc', '#808080', '#ca1243', 20 | \ '#2a871f', '#c18401', '#2f6aea', '#a626a4', '#0184bc', '#ffffff'] 21 | if has('nvim') 22 | let g:terminal_color_0 = '#000000' 23 | let g:terminal_color_1 = '#ca1243' 24 | let g:terminal_color_2 = '#2a871f' 25 | let g:terminal_color_3 = '#c18401' 26 | let g:terminal_color_4 = '#2f6aea' 27 | let g:terminal_color_5 = '#a626a4' 28 | let g:terminal_color_6 = '#0184bc' 29 | let g:terminal_color_7 = '#cacbcc' 30 | let g:terminal_color_8 = '#808080' 31 | let g:terminal_color_9 = '#ca1243' 32 | let g:terminal_color_10 = '#2a871f' 33 | let g:terminal_color_11 = '#c18401' 34 | let g:terminal_color_12 = '#2f6aea' 35 | let g:terminal_color_13 = '#a626a4' 36 | let g:terminal_color_14 = '#0184bc' 37 | let g:terminal_color_15 = '#ffffff' 38 | endif 39 | if get(g:, 'polar_transp_bg', 0) && !has('gui_running') 40 | hi Normal guifg=#000000 guibg=NONE gui=NONE cterm=NONE 41 | else 42 | hi Normal guifg=#000000 guibg=#ffffff gui=NONE cterm=NONE 43 | endif 44 | hi EndOfBuffer guifg=#cacbcc guibg=NONE gui=NONE cterm=NONE 45 | hi Statusline guifg=#000000 guibg=#cacbcc gui=bold cterm=bold 46 | hi StatuslineNC guifg=#808080 guibg=#cacbcc gui=NONE cterm=NONE 47 | hi StatuslineTerm guifg=#000000 guibg=#cacbcc gui=bold cterm=bold 48 | hi StatuslineTermNC guifg=#808080 guibg=#cacbcc gui=NONE cterm=NONE 49 | hi VertSplit guifg=#cacbcc guibg=#cacbcc gui=NONE cterm=NONE 50 | hi Pmenu guifg=NONE guibg=#cacbcc gui=NONE cterm=NONE 51 | hi PmenuSel guifg=#ffffff guibg=#c18401 gui=NONE cterm=NONE 52 | hi PmenuSbar guifg=NONE guibg=#cacbcc gui=NONE cterm=NONE 53 | hi PmenuThumb guifg=NONE guibg=#808080 gui=NONE cterm=NONE 54 | hi TabLine guifg=#808080 guibg=#cacbcc gui=NONE cterm=NONE 55 | hi TabLineFill guifg=NONE guibg=#cacbcc gui=NONE cterm=NONE 56 | hi TabLineSel guifg=NONE guibg=#ffffff gui=NONE cterm=NONE 57 | hi ToolbarLine guifg=#ffffff guibg=#e0e4e4 gui=NONE cterm=NONE 58 | hi ToolbarButton guifg=NONE guibg=#cacbcc gui=bold cterm=bold 59 | hi NonText guifg=#cacbcc guibg=NONE gui=NONE cterm=NONE 60 | hi SpecialKey guifg=#cacbcc guibg=NONE gui=NONE cterm=NONE 61 | hi Folded guifg=#808080 guibg=#e0e4e4 gui=NONE cterm=NONE 62 | hi Visual guifg=NONE guibg=#d0d9ea gui=NONE cterm=NONE 63 | hi VisualNOS guifg=NONE guibg=#808080 gui=NONE cterm=NONE 64 | hi LineNr guifg=#808080 guibg=NONE gui=NONE cterm=NONE 65 | hi FoldColumn guifg=#808080 guibg=NONE gui=NONE cterm=NONE 66 | hi CursorLine guifg=NONE guibg=#f4f4f4 gui=NONE cterm=NONE 67 | hi CursorColumn guifg=NONE guibg=#f4f4f4 gui=NONE cterm=NONE 68 | hi CursorLineNr guifg=NONE guibg=#f4f4f4 gui=NONE cterm=NONE 69 | hi QuickFixLine guifg=NONE guibg=#e0e4e4 gui=NONE cterm=NONE 70 | hi SignColumn guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE 71 | hi Underlined guifg=#2f6aea guibg=NONE gui=underline cterm=underline 72 | hi Error guifg=#ffffff guibg=#d70000 gui=NONE cterm=NONE 73 | hi ErrorMsg guifg=#ffffff guibg=#d70000 gui=NONE cterm=NONE 74 | hi ModeMsg guifg=#000000 guibg=NONE gui=bold cterm=bold 75 | hi WarningMsg guifg=#c18401 guibg=NONE gui=bold cterm=bold 76 | hi MoreMsg guifg=#2a871f guibg=NONE gui=bold cterm=bold 77 | hi Question guifg=#2a871f guibg=NONE gui=bold cterm=bold 78 | hi Todo guifg=#ffffff guibg=#808080 gui=NONE cterm=NONE 79 | hi MatchParen guifg=#ffffff guibg=#0184bc gui=NONE cterm=NONE 80 | hi Search guifg=#ffffff guibg=#c18401 gui=NONE cterm=NONE 81 | hi IncSearch guifg=#ffffff guibg=#2a871f gui=NONE cterm=NONE 82 | hi WildMenu guifg=#ffffff guibg=#c18401 gui=NONE cterm=NONE 83 | hi ColorColumn guifg=NONE guibg=#f4f4f4 gui=NONE cterm=NONE 84 | hi Cursor guifg=#ffffff guibg=#000000 gui=NONE cterm=NONE 85 | hi lCursor guifg=#000000 guibg=#d75f00 gui=NONE cterm=NONE 86 | hi DiffAdd guifg=NONE guibg=#c9f9c9 gui=NONE cterm=NONE 87 | hi DiffChange guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE 88 | hi DiffText guifg=NONE guibg=#f9f9c9 gui=NONE cterm=NONE 89 | hi DiffDelete guifg=#f9c9c9 guibg=NONE gui=NONE cterm=NONE 90 | hi SpellBad guifg=#ca1243 guibg=NONE guisp=#ca1243 gui=undercurl cterm=underline 91 | hi SpellCap guifg=#2a871f guibg=NONE guisp=#2a871f gui=undercurl cterm=underline 92 | hi SpellLocal guifg=#0184bc guibg=NONE guisp=#0184bc gui=undercurl cterm=underline 93 | hi SpellRare guifg=#a626a4 guibg=NONE guisp=#a626a4 gui=undercurl cterm=underline 94 | hi Identifier guifg=#2f6aea guibg=NONE gui=NONE cterm=NONE 95 | hi Statement guifg=#ca1243 guibg=NONE gui=NONE cterm=NONE 96 | hi Constant guifg=#d75f00 guibg=NONE gui=NONE cterm=NONE 97 | hi String guifg=#2a871f guibg=NONE gui=NONE cterm=NONE 98 | hi PreProc guifg=#c18401 guibg=NONE gui=NONE cterm=NONE 99 | hi Special guifg=#0184bc guibg=NONE gui=NONE cterm=NONE 100 | hi Tag guifg=#c18401 guibg=NONE gui=NONE cterm=NONE 101 | hi Delimiter guifg=#986801 guibg=NONE gui=NONE cterm=NONE 102 | hi Type guifg=#a626a4 guibg=NONE gui=NONE cterm=NONE 103 | hi Directory guifg=#2f6aea guibg=NONE gui=bold cterm=bold 104 | hi Comment guifg=#808080 guibg=NONE gui=NONE cterm=NONE 105 | hi Conceal guifg=#808080 guibg=NONE gui=NONE cterm=NONE 106 | hi Ignore guifg=NONE guibg=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE 107 | hi Title guifg=#ca1243 guibg=NONE gui=bold cterm=bold 108 | hi qfError guifg=#d70000 guibg=NONE gui=NONE cterm=NONE 109 | hi! link colortemplateKey Statement 110 | hi! link colortemplateAttr String 111 | hi! link vimNotation Type 112 | hi! link vimFuncSID PreProc 113 | hi! link vimHiTerm Identifier 114 | hi! link helpNotVi Comment 115 | hi! link helpExample PreProc 116 | hi! link gitCommitSummary Title 117 | hi! link cocErrorSign Type 118 | hi! link diffAdded String 119 | hi diffRemoved guifg=#d70000 guibg=NONE gui=NONE cterm=NONE 120 | hi asciidoctorOption guifg=#808080 guibg=NONE gui=NONE cterm=NONE 121 | hi asciidoctorLiteralBlock guifg=#808080 guibg=NONE gui=NONE cterm=NONE 122 | hi asciidoctorIndented guifg=#808080 guibg=NONE gui=NONE cterm=NONE 123 | hi SelectDirectoryPrefix guifg=#808080 guibg=NONE gui=NONE cterm=NONE 124 | unlet s:t_Co 125 | finish 126 | endif 127 | 128 | if s:t_Co >= 256 129 | if get(g:, 'polar_transp_bg', 0) 130 | hi Normal ctermfg=16 ctermbg=NONE cterm=NONE 131 | else 132 | hi Normal ctermfg=16 ctermbg=231 cterm=NONE 133 | endif 134 | hi EndOfBuffer ctermfg=251 ctermbg=NONE cterm=NONE 135 | hi Statusline ctermfg=16 ctermbg=251 cterm=bold 136 | hi StatuslineNC ctermfg=244 ctermbg=251 cterm=NONE 137 | hi StatuslineTerm ctermfg=16 ctermbg=251 cterm=bold 138 | hi StatuslineTermNC ctermfg=244 ctermbg=251 cterm=NONE 139 | hi VertSplit ctermfg=251 ctermbg=251 cterm=NONE 140 | hi Pmenu ctermfg=16 ctermbg=251 cterm=NONE 141 | hi PmenuSel ctermfg=231 ctermbg=172 cterm=NONE 142 | hi PmenuSbar ctermfg=NONE ctermbg=251 cterm=NONE 143 | hi PmenuThumb ctermfg=16 ctermbg=244 cterm=NONE 144 | hi TabLine ctermfg=244 ctermbg=251 cterm=NONE 145 | hi TabLineFill ctermfg=NONE ctermbg=251 cterm=NONE 146 | hi TabLineSel ctermfg=NONE ctermbg=231 cterm=NONE 147 | hi ToolbarLine ctermfg=231 ctermbg=254 cterm=NONE 148 | hi ToolbarButton ctermfg=NONE ctermbg=251 cterm=bold 149 | hi NonText ctermfg=251 ctermbg=NONE cterm=NONE 150 | hi SpecialKey ctermfg=251 ctermbg=NONE cterm=NONE 151 | hi Folded ctermfg=244 ctermbg=254 cterm=NONE 152 | hi Visual ctermfg=NONE ctermbg=153 cterm=NONE 153 | hi VisualNOS ctermfg=NONE ctermbg=244 cterm=NONE 154 | hi LineNr ctermfg=244 ctermbg=NONE cterm=NONE 155 | hi FoldColumn ctermfg=244 ctermbg=NONE cterm=NONE 156 | hi CursorLine ctermfg=NONE ctermbg=254 cterm=NONE 157 | hi CursorColumn ctermfg=NONE ctermbg=254 cterm=NONE 158 | hi CursorLineNr ctermfg=NONE ctermbg=254 cterm=NONE 159 | hi QuickFixLine ctermfg=NONE ctermbg=254 cterm=NONE 160 | hi SignColumn ctermfg=NONE ctermbg=NONE cterm=NONE 161 | hi Underlined ctermfg=27 ctermbg=NONE cterm=underline 162 | hi Error ctermfg=231 ctermbg=160 cterm=NONE 163 | hi ErrorMsg ctermfg=231 ctermbg=160 cterm=NONE 164 | hi ModeMsg ctermfg=16 ctermbg=NONE cterm=bold 165 | hi WarningMsg ctermfg=172 ctermbg=NONE cterm=bold 166 | hi MoreMsg ctermfg=28 ctermbg=NONE cterm=bold 167 | hi Question ctermfg=28 ctermbg=NONE cterm=bold 168 | hi Todo ctermfg=231 ctermbg=244 cterm=NONE 169 | hi MatchParen ctermfg=231 ctermbg=67 cterm=NONE 170 | hi Search ctermfg=231 ctermbg=172 cterm=NONE 171 | hi IncSearch ctermfg=231 ctermbg=28 cterm=NONE 172 | hi WildMenu ctermfg=231 ctermbg=172 cterm=NONE 173 | hi ColorColumn ctermfg=NONE ctermbg=254 cterm=NONE 174 | hi Cursor ctermfg=231 ctermbg=16 cterm=NONE 175 | hi lCursor ctermfg=16 ctermbg=166 cterm=NONE 176 | hi DiffAdd ctermfg=NONE ctermbg=194 cterm=NONE 177 | hi DiffChange ctermfg=NONE ctermbg=NONE cterm=NONE 178 | hi DiffText ctermfg=NONE ctermbg=222 cterm=NONE 179 | hi DiffDelete ctermfg=224 ctermbg=NONE cterm=NONE 180 | hi SpellBad ctermfg=161 ctermbg=NONE cterm=underline 181 | hi SpellCap ctermfg=28 ctermbg=NONE cterm=underline 182 | hi SpellLocal ctermfg=67 ctermbg=NONE cterm=underline 183 | hi SpellRare ctermfg=127 ctermbg=NONE cterm=underline 184 | hi Identifier ctermfg=27 ctermbg=NONE cterm=NONE 185 | hi Statement ctermfg=161 ctermbg=NONE cterm=NONE 186 | hi Constant ctermfg=166 ctermbg=NONE cterm=NONE 187 | hi String ctermfg=28 ctermbg=NONE cterm=NONE 188 | hi PreProc ctermfg=172 ctermbg=NONE cterm=NONE 189 | hi Special ctermfg=67 ctermbg=NONE cterm=NONE 190 | hi Tag ctermfg=172 ctermbg=NONE cterm=NONE 191 | hi Delimiter ctermfg=94 ctermbg=NONE cterm=NONE 192 | hi Type ctermfg=127 ctermbg=NONE cterm=NONE 193 | hi Directory ctermfg=27 ctermbg=NONE cterm=bold 194 | hi Comment ctermfg=244 ctermbg=NONE cterm=NONE 195 | hi Conceal ctermfg=244 ctermbg=NONE cterm=NONE 196 | hi Ignore ctermfg=NONE ctermbg=NONE cterm=NONE 197 | hi Title ctermfg=161 ctermbg=NONE cterm=bold 198 | hi qfError ctermfg=160 ctermbg=NONE cterm=NONE 199 | hi! link colortemplateKey Statement 200 | hi! link colortemplateAttr String 201 | hi! link vimNotation Type 202 | hi! link vimFuncSID PreProc 203 | hi! link vimHiTerm Identifier 204 | hi! link helpNotVi Comment 205 | hi! link helpExample PreProc 206 | hi! link gitCommitSummary Title 207 | hi! link cocErrorSign Type 208 | hi! link diffAdded String 209 | hi diffRemoved ctermfg=160 ctermbg=NONE cterm=NONE 210 | hi asciidoctorOption ctermfg=244 ctermbg=NONE cterm=NONE 211 | hi asciidoctorLiteralBlock ctermfg=244 ctermbg=NONE cterm=NONE 212 | hi asciidoctorIndented ctermfg=244 ctermbg=NONE cterm=NONE 213 | hi SelectDirectoryPrefix ctermfg=244 ctermbg=NONE cterm=NONE 214 | unlet s:t_Co 215 | finish 216 | endif 217 | 218 | " Background: light 219 | " Color: comment #808080 244 220 | " Color: constant #d75f00 166 221 | " Color: string #2a871f 28 222 | " Color: identifier #2f6aea 27 223 | " Color: statement #ca1243 161 224 | " Color: preproc #c18401 172 225 | " Color: type #a626a4 127 226 | " Color: special #0184bc 67 227 | " Color: delimiter #986801 94 228 | " Color: fg0 #000000 16 229 | " Color: bg0 #ffffff 231 230 | " Color: bg1 #cacbcc 251 231 | " Color: folded #e0e4e4 254 232 | " Color: cursorline #f4f4f4 254 233 | " Color: visual #d0d9ea 153 234 | " Color: error #d70000 160 235 | " Color: diffadd #c9f9c9 194 236 | " Color: difftext #f9f9c9 222 237 | " Color: diffdelete #f9c9c9 224 238 | " Term colors: fg0 statement string preproc identifier type special bg1 239 | " Term colors: comment statement string preproc identifier type special bg0 240 | " vim: et ts=2 sw=2 241 | -------------------------------------------------------------------------------- /colors/professional.vim: -------------------------------------------------------------------------------- 1 | " Vim color file 2 | " Maintainer: iyerns 3 | " 4 | " Comments are welcome ! 5 | " Spammers will be shot. Survivors will be shot again 6 | " 7 | " Last Change: 10 Sep 2005 8 | " Version:1.4 9 | " Changes:Changed background color for better tone 10 | " Comment: Atlast, a professional colorscheme for Vim 11 | " Released by popular demand. in case other highlighting 12 | " terms are to be included, please feel free to add those 13 | " and send me your updated .vim file :) to be included in 14 | " the next version.If there are enough requests, I will 15 | " release a cterm version also. 16 | " Recolored comments and Statement 17 | " Uses only safe HTML colors 18 | " 19 | 20 | set background=light 21 | hi clear 22 | if exists("syntax_on") 23 | syntax reset 24 | endif 25 | let g:colors_name="professional" 26 | 27 | hi Normal guifg=black guibg=#ffffdd 28 | hi Statusline gui=none guibg=#006666 guifg=#ffffff 29 | hi VertSplit gui=none guibg=#006666 guifg=#ffffff 30 | hi StatuslineNC gui=none guibg=#666633 guifg=#ffffff 31 | 32 | hi Title guifg=black guibg=white gui=BOLD 33 | hi lCursor guibg=Cyan guifg=NONE 34 | hi LineNr guifg=white guibg=#006666 35 | "guibg=#8c9bfa 36 | 37 | " syntax highlighting groups 38 | hi Comment gui=NONE guifg=SteelBlue 39 | hi Operator guifg=#ff0000 40 | 41 | hi Identifier guifg=#339900 gui=NONE 42 | 43 | hi Statement guifg=orange gui=NONE 44 | hi TypeDef guifg=#c000c8 gui=NONE 45 | hi Type guifg=#0000c8 gui=NONE 46 | hi Boolean guifg=#0000aa gui=NONE 47 | 48 | hi String guifg=#006600 gui=NONE 49 | hi Number guifg=#9933ff gui=NONE 50 | hi Constant guifg=#ff8080 gui=NONE 51 | 52 | hi Function gui=NONE guifg=#6600ff 53 | hi PreProc guifg=#993300 gui=NONE 54 | hi Define gui=bold guifg=#ff0000 55 | 56 | hi Keyword guifg=#ff8088 gui=NONE 57 | hi Search gui=NONE guibg=#ffff00 58 | "guibg=#339900 59 | hi IncSearch gui=NONE guifg=#ffff00 guibg=#990000 60 | hi Conditional gui=none guifg=#660000 guibg=#ffffff 61 | hi browseDirectory gui=none guifg=#660000 guibg=#ffffff 62 | 63 | -------------------------------------------------------------------------------- /colors/sea.vim: -------------------------------------------------------------------------------- 1 | " Vim color file 2 | " Maintainer: Tiza 3 | " Last Change: 2002/10/30 Wed 00:01. 4 | " version: 1.0 5 | " This color scheme uses a dark background. 6 | 7 | set background=dark 8 | hi clear 9 | if exists("syntax_on") 10 | syntax reset 11 | endif 12 | 13 | let colors_name = "sea" 14 | 15 | hi Normal guifg=#f0f0f8 guibg=#343478 16 | 17 | " Search 18 | hi IncSearch gui=UNDERLINE,BOLD guifg=#ffffff guibg=#c030ff 19 | hi Search gui=BOLD guifg=#f0e0ff guibg=#b020ff 20 | 21 | " Messages 22 | hi ErrorMsg gui=BOLD guifg=#ffffff guibg=#f000a0 23 | hi WarningMsg gui=BOLD guifg=#ffffff guibg=#f000a0 24 | hi ModeMsg gui=BOLD guifg=#00e0ff guibg=NONE 25 | hi MoreMsg gui=BOLD guifg=#00ffff guibg=#6060ff 26 | hi Question gui=BOLD guifg=#00f0d0 guibg=NONE 27 | 28 | " Split area 29 | hi StatusLine gui=NONE guifg=#000000 guibg=#d0d0e0 30 | hi StatusLineNC gui=NONE guifg=#606080 guibg=#d0d0e0 31 | hi VertSplit gui=NONE guifg=#606080 guibg=#d0d0e0 32 | hi WildMenu gui=NONE guifg=#000000 guibg=#ff90ff 33 | 34 | " Diff 35 | hi DiffText gui=UNDERLINE guifg=#ffff00 guibg=#000000 36 | hi DiffChange gui=NONE guifg=#ffffff guibg=#000000 37 | hi DiffDelete gui=NONE guifg=#60ff60 guibg=#000000 38 | hi DiffAdd gui=NONE guifg=#60ff60 guibg=#000000 39 | 40 | " Cursor 41 | hi Cursor gui=NONE guifg=#ffffff guibg=#d86020 42 | hi lCursor gui=NONE guifg=#ffffff guibg=#e000b0 43 | hi CursorIM gui=NONE guifg=#ffffff guibg=#e000b0 44 | 45 | " Fold 46 | hi Folded gui=NONE guifg=#ffffff guibg=#0080a0 47 | hi FoldColumn gui=NONE guifg=#9090ff guibg=#3c3c88 48 | 49 | " Other 50 | hi Directory gui=NONE guifg=#00ffff guibg=NONE 51 | hi LineNr gui=NONE guifg=#7070e8 guibg=NONE 52 | hi NonText gui=BOLD guifg=#8080ff guibg=#2c2c78 53 | hi SpecialKey gui=BOLD guifg=#60c0ff guibg=NONE 54 | hi Title gui=BOLD guifg=#f0f0f8 guibg=NONE 55 | hi Visual gui=NONE guifg=#ffffff guibg=#6060ff 56 | " hi VisualNOS gui=NONE guifg=#ffffff guibg=#6060ff 57 | 58 | " Syntax group 59 | hi Comment gui=NONE guifg=#b0b0c8 guibg=NONE 60 | hi Constant gui=NONE guifg=#60ffff guibg=NONE 61 | hi Error gui=BOLD guifg=#ffffff guibg=#f000a0 62 | hi Identifier gui=NONE guifg=#c0c0ff guibg=NONE 63 | hi Ignore gui=NONE guifg=#303080 guibg=NONE 64 | hi PreProc gui=NONE guifg=#ffb0ff guibg=NONE 65 | hi Special gui=NONE guifg=#ffd858 guibg=NONE 66 | hi Statement gui=NONE guifg=#f0f060 guibg=NONE 67 | hi Todo gui=BOLD,UNDERLINE guifg=#ff70e0 guibg=NONE 68 | hi Type gui=NONE guifg=#40ff80 guibg=NONE 69 | hi Underlined gui=UNDERLINE,BOLD guifg=#f0f0f8 guibg=NONE 70 | -------------------------------------------------------------------------------- /colors/softblue.vim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgm/dotvim/54b3fd9e04e6c2746af84804576134e8b23e20cf/colors/softblue.vim -------------------------------------------------------------------------------- /colors/vibrantink.vim: -------------------------------------------------------------------------------- 1 | " Vim color scheme 2 | " 3 | " Name: vibrantink.vim 4 | " Maintainer: Jo Vermeulen 5 | " Last Change: 10 Apr 2007 6 | " Version: 1.1 7 | " 8 | " This scheme should work in the GUI and in xterm's 256 color mode. It won't 9 | " work in 8/16 color terminals. 10 | " 11 | " I based it on John Lam's initial VibrantInk port to Vim [1]. Thanks to a 12 | " great tutorial [2], I was able to convert it to xterm 256 color mode. And 13 | " of course, credits go to Justin Palmer for creating the original VibrantInk 14 | " TextMate color scheme [3]. 15 | " 16 | " [1] http://www.iunknown.com/articles/2006/09/04/vim-can-save-your-hands-too 17 | " [2] http://frexx.de/xterm-256-notes/ 18 | " [3] http://encytemedia.com/blog/articles/2006/01/03/textmate-vibrant-ink-theme-and-prototype-bundle 19 | 20 | set background=dark 21 | hi clear 22 | if exists("syntax_on") 23 | syntax reset 24 | endif 25 | 26 | let colors_name = "vibrantink" 27 | 28 | if has("gui_running") 29 | highlight Normal guifg=White guibg=Black 30 | highlight Cursor guifg=Black guibg=Yellow 31 | highlight Keyword guifg=#FF6600 32 | highlight Define guifg=#FF6600 33 | highlight Comment guifg=#9933CC 34 | highlight Type guifg=White gui=NONE 35 | highlight rubySymbol guifg=#339999 gui=NONE 36 | highlight Identifier guifg=White gui=NONE 37 | highlight rubyStringDelimiter guifg=#66FF00 38 | highlight rubyInterpolation guifg=White 39 | highlight rubyPseudoVariable guifg=#339999 40 | highlight Constant guifg=#FFEE98 41 | highlight Function guifg=#FFCC00 gui=NONE 42 | highlight Include guifg=#FFCC00 gui=NONE 43 | highlight Statement guifg=#FF6600 gui=NONE 44 | highlight String guifg=#66FF00 45 | highlight Search guibg=White 46 | highlight CursorLine guibg=#323300 47 | else 48 | set t_Co=256 49 | highlight Normal ctermfg=White ctermbg=Black 50 | highlight Cursor ctermfg=Black ctermbg=Yellow 51 | highlight Keyword ctermfg=202 52 | highlight Define ctermfg=202 53 | highlight Comment ctermfg=98 54 | highlight Type ctermfg=White 55 | highlight rubySymbol ctermfg=66 56 | highlight Identifier ctermfg=White 57 | highlight rubyStringDelimiter ctermfg=82 58 | highlight rubyInterpolation ctermfg=White 59 | highlight rubyPseudoVariable ctermfg=66 60 | highlight Constant ctermfg=228 61 | highlight Function ctermfg=220 62 | highlight Include ctermfg=220 63 | highlight Statement ctermfg=202 64 | highlight String ctermfg=82 65 | highlight Search ctermbg=White 66 | highlight CursorLine cterm=NONE ctermbg=235 67 | endif 68 | -------------------------------------------------------------------------------- /colors/wombat.vim: -------------------------------------------------------------------------------- 1 | " Maintainer: Lars H. Nielsen (dengmao@gmail.com) 2 | " Last Change: January 22 2007 3 | 4 | set background=dark 5 | 6 | hi clear 7 | 8 | if exists("syntax_on") 9 | syntax reset 10 | endif 11 | 12 | let colors_name = "wombat" 13 | 14 | 15 | " Vim >= 7.0 specific colors 16 | if version >= 700 17 | hi CursorLine guibg=#2d2d2d 18 | hi CursorColumn guibg=#2d2d2d 19 | hi MatchParen guifg=#f6f3e8 guibg=#857b6f gui=bold 20 | hi Pmenu guifg=#f6f3e8 guibg=#444444 21 | hi PmenuSel guifg=#000000 guibg=#cae682 22 | endif 23 | 24 | " General colors 25 | hi Cursor guifg=NONE guibg=#656565 gui=none 26 | hi Normal guifg=#f6f3e8 guibg=#242424 gui=none 27 | hi NonText guifg=#808080 guibg=#303030 gui=none 28 | hi LineNr guifg=#857b6f guibg=#000000 gui=none 29 | hi StatusLine guifg=#f6f3e8 guibg=#444444 gui=italic 30 | hi StatusLineNC guifg=#857b6f guibg=#444444 gui=none 31 | hi VertSplit guifg=#444444 guibg=#444444 gui=none 32 | hi Folded guibg=#384048 guifg=#a0a8b0 gui=none 33 | hi Title guifg=#f6f3e8 guibg=NONE gui=bold 34 | hi Visual guifg=#f6f3e8 guibg=#444444 gui=none 35 | hi SpecialKey guifg=#808080 guibg=#343434 gui=none 36 | 37 | " Syntax highlighting 38 | hi Comment guifg=#99968b gui=italic 39 | hi Todo guifg=#8f8f8f gui=italic 40 | hi Constant guifg=#e5786d gui=none 41 | hi String guifg=#95e454 gui=italic 42 | hi Identifier guifg=#cae682 gui=none 43 | hi Function guifg=#cae682 gui=none 44 | hi Type guifg=#cae682 gui=none 45 | hi Statement guifg=#8ac6f2 gui=none 46 | hi Keyword guifg=#8ac6f2 gui=none 47 | hi PreProc guifg=#e5786d gui=none 48 | hi Number guifg=#e5786d gui=none 49 | hi Special guifg=#e7f6da gui=none 50 | 51 | 52 | -------------------------------------------------------------------------------- /colors/zenburn.vim: -------------------------------------------------------------------------------- 1 | " Vim color file 2 | " Maintainer: Jani Nurminen 3 | " Last Change: $Id: zenburn.vim,v 2.4 2008/11/18 20:43:18 slinky Exp $ 4 | " URL: http://slinky.imukuppi.org/zenburnpage/ 5 | " License: GPL 6 | " 7 | " Nothing too fancy, just some alien fruit salad to keep you in the zone. 8 | " This syntax file was designed to be used with dark environments and 9 | " low light situations. Of course, if it works during a daybright office, go 10 | " ahead :) 11 | " 12 | " Owes heavily to other Vim color files! With special mentions 13 | " to "BlackDust", "Camo" and "Desert". 14 | " 15 | " To install, copy to ~/.vim/colors directory. Then :colorscheme zenburn. 16 | " See also :help syntax 17 | " 18 | " Credits: 19 | " - Jani Nurminen - original Zenburn 20 | " - Steve Hall & Cream posse - higher-contrast Visual selection 21 | " - Kurt Maier - 256 color console coloring, low and high contrast toggle, 22 | " bug fixing 23 | " - Charlie - spotted too bright StatusLine in non-high contrast mode 24 | " - Pablo Castellazzi - CursorLine fix for 256 color mode 25 | " - Tim Smith - force dark background 26 | " 27 | " CONFIGURABLE PARAMETERS: 28 | " 29 | " You can use the default (don't set any parameters), or you can 30 | " set some parameters to tweak the Zenburn colours. 31 | " 32 | " * You can now set a darker background for bright environments. To activate, use: 33 | " contrast Zenburn, use: 34 | " 35 | " let g:zenburn_high_Contrast = 1 36 | " 37 | " * To get more contrast to the Visual selection, use 38 | " 39 | " let g:zenburn_alternate_Visual = 1 40 | " 41 | " * To use alternate colouring for Error message, use 42 | " 43 | " let g:zenburn_alternate_Error = 1 44 | " 45 | " * The new default for Include is a duller orange. To use the original 46 | " colouring for Include, use 47 | " 48 | " let g:zenburn_alternate_Include = 1 49 | " 50 | " * Work-around to a Vim bug, it seems to misinterpret ctermfg and 234 and 237 51 | " as light values, and sets background to light for some people. If you have 52 | " this problem, use: 53 | " 54 | " let g:zenburn_force_dark_Background = 1 55 | " 56 | " * To turn the parameter(s) back to defaults, use UNLET: 57 | " 58 | " unlet g:zenburn_alternate_Include 59 | " 60 | " Setting to 0 won't work! 61 | " 62 | " That's it, enjoy! 63 | " 64 | " TODO 65 | " - Visual alternate color is broken? Try GVim >= 7.0.66 if you have trouble 66 | " - IME colouring (CursorIM) 67 | 68 | set background=dark 69 | hi clear 70 | if exists("syntax_on") 71 | syntax reset 72 | endif 73 | let g:colors_name="zenburn" 74 | 75 | hi Boolean guifg=#dca3a3 76 | hi Character guifg=#dca3a3 gui=bold 77 | hi Comment guifg=#7f9f7f gui=italic 78 | hi Conditional guifg=#f0dfaf gui=bold 79 | hi Constant guifg=#dca3a3 gui=bold 80 | hi Cursor guifg=#000d18 guibg=#8faf9f gui=bold 81 | hi Debug guifg=#bca3a3 gui=bold 82 | hi Define guifg=#ffcfaf gui=bold 83 | hi Delimiter guifg=#8f8f8f 84 | hi DiffAdd guifg=#709080 guibg=#313c36 gui=bold 85 | hi DiffChange guibg=#333333 86 | hi DiffDelete guifg=#333333 guibg=#464646 87 | hi DiffText guifg=#ecbcbc guibg=#41363c gui=bold 88 | hi Directory guifg=#dcdccc gui=bold 89 | hi ErrorMsg guifg=#80d4aa guibg=#2f2f2f gui=bold 90 | hi Exception guifg=#c3bf9f gui=bold 91 | hi Float guifg=#c0bed1 92 | hi FoldColumn guifg=#93b3a3 guibg=#3f4040 93 | hi Folded guifg=#93b3a3 guibg=#3f4040 94 | hi Function guifg=#efef8f 95 | hi Identifier guifg=#efdcbc 96 | hi IncSearch guibg=#f8f893 guifg=#385f38 97 | hi Keyword guifg=#f0dfaf gui=bold 98 | hi Label guifg=#dfcfaf gui=underline 99 | hi LineNr guifg=#9fafaf guibg=#262626 100 | hi Macro guifg=#ffcfaf gui=bold 101 | hi ModeMsg guifg=#ffcfaf gui=none 102 | hi MoreMsg guifg=#ffffff gui=bold 103 | hi NonText guifg=#404040 104 | hi Number guifg=#8cd0d3 105 | hi Operator guifg=#f0efd0 106 | hi PreCondit guifg=#dfaf8f gui=bold 107 | hi PreProc guifg=#ffcfaf gui=bold 108 | hi Question guifg=#ffffff gui=bold 109 | hi Repeat guifg=#ffd7a7 gui=bold 110 | hi Search guifg=#ffffe0 guibg=#284f28 111 | hi SpecialChar guifg=#dca3a3 gui=bold 112 | hi SpecialComment guifg=#82a282 gui=bold 113 | hi Special guifg=#cfbfaf 114 | hi SpecialKey guifg=#9ece9e 115 | hi Statement guifg=#e3ceab gui=none 116 | hi StatusLine guifg=#313633 guibg=#ccdc90 117 | hi StatusLineNC guifg=#2e3330 guibg=#88b090 118 | hi StorageClass guifg=#c3bf9f gui=bold 119 | hi String guifg=#cc9393 120 | hi Structure guifg=#efefaf gui=bold 121 | hi Tag guifg=#e89393 gui=bold 122 | hi Title guifg=#efefef gui=bold 123 | hi Todo guifg=#dfdfdf guibg=bg gui=bold 124 | hi Typedef guifg=#dfe4cf gui=bold 125 | hi Type guifg=#dfdfbf gui=bold 126 | hi Underlined guifg=#dcdccc gui=underline 127 | hi VertSplit guifg=#2e3330 guibg=#688060 128 | hi VisualNOS guifg=#333333 guibg=#f18c96 gui=bold,underline 129 | hi WarningMsg guifg=#ffffff guibg=#333333 gui=bold 130 | hi WildMenu guibg=#2c302d guifg=#cbecd0 gui=underline 131 | 132 | hi SpellBad guisp=#bc6c4c guifg=#dc8c6c 133 | hi SpellCap guisp=#6c6c9c guifg=#8c8cbc 134 | hi SpellRare guisp=#bc6c9c guifg=#bc8cbc 135 | hi SpellLocal guisp=#7cac7c guifg=#9ccc9c 136 | 137 | " Entering Kurt zone 138 | if &t_Co > 255 139 | hi Boolean ctermfg=181 140 | hi Character ctermfg=181 cterm=bold 141 | hi Comment ctermfg=108 142 | hi Conditional ctermfg=223 cterm=bold 143 | hi Constant ctermfg=181 cterm=bold 144 | hi Cursor ctermfg=233 ctermbg=109 cterm=bold 145 | hi Debug ctermfg=181 cterm=bold 146 | hi Define ctermfg=223 cterm=bold 147 | hi Delimiter ctermfg=245 148 | hi DiffAdd ctermfg=66 ctermbg=237 cterm=bold 149 | hi DiffChange ctermbg=236 150 | hi DiffDelete ctermfg=236 ctermbg=238 151 | hi DiffText ctermfg=217 ctermbg=237 cterm=bold 152 | hi Directory ctermfg=188 cterm=bold 153 | hi ErrorMsg ctermfg=115 ctermbg=236 cterm=bold 154 | hi Exception ctermfg=249 cterm=bold 155 | hi Float ctermfg=251 156 | hi FoldColumn ctermfg=109 ctermbg=238 157 | hi Folded ctermfg=109 ctermbg=238 158 | hi Function ctermfg=228 159 | hi Identifier ctermfg=223 160 | hi IncSearch ctermbg=228 ctermfg=238 161 | hi Keyword ctermfg=223 cterm=bold 162 | hi Label ctermfg=187 cterm=underline 163 | hi LineNr ctermfg=248 ctermbg=235 164 | hi Macro ctermfg=223 cterm=bold 165 | hi ModeMsg ctermfg=223 cterm=none 166 | hi MoreMsg ctermfg=15 cterm=bold 167 | hi NonText ctermfg=238 168 | hi Number ctermfg=116 169 | hi Operator ctermfg=230 170 | hi PreCondit ctermfg=180 cterm=bold 171 | hi PreProc ctermfg=223 cterm=bold 172 | hi Question ctermfg=15 cterm=bold 173 | hi Repeat ctermfg=223 cterm=bold 174 | hi Search ctermfg=230 ctermbg=236 175 | hi SpecialChar ctermfg=181 cterm=bold 176 | hi SpecialComment ctermfg=108 cterm=bold 177 | hi Special ctermfg=181 178 | hi SpecialKey ctermfg=151 179 | hi Statement ctermfg=187 ctermbg=234 cterm=none 180 | hi StatusLine ctermfg=236 ctermbg=186 181 | hi StatusLineNC ctermfg=235 ctermbg=108 182 | hi StorageClass ctermfg=249 cterm=bold 183 | hi String ctermfg=174 184 | hi Structure ctermfg=229 cterm=bold 185 | hi Tag ctermfg=181 cterm=bold 186 | hi Title ctermfg=7 ctermbg=234 cterm=bold 187 | hi Todo ctermfg=108 ctermbg=234 cterm=bold 188 | hi Typedef ctermfg=253 cterm=bold 189 | hi Type ctermfg=187 cterm=bold 190 | hi Underlined ctermfg=188 ctermbg=234 cterm=bold 191 | hi VertSplit ctermfg=236 ctermbg=65 192 | hi VisualNOS ctermfg=236 ctermbg=210 cterm=bold 193 | hi WarningMsg ctermfg=15 ctermbg=236 cterm=bold 194 | hi WildMenu ctermbg=236 ctermfg=194 cterm=bold 195 | hi CursorLine ctermbg=236 cterm=none 196 | 197 | " spellchecking, always "bright" background 198 | hi SpellLocal ctermfg=14 ctermbg=237 199 | hi SpellBad ctermfg=9 ctermbg=237 200 | hi SpellCap ctermfg=12 ctermbg=237 201 | hi SpellRare ctermfg=13 ctermbg=237 202 | 203 | " pmenu 204 | hi PMenu ctermfg=248 ctermbg=0 205 | hi PMenuSel ctermfg=223 ctermbg=235 206 | 207 | if exists("g:zenburn_high_Contrast") 208 | hi Normal ctermfg=188 ctermbg=234 209 | else 210 | hi Normal ctermfg=188 ctermbg=237 211 | hi Cursor ctermbg=109 212 | hi diffadd ctermbg=237 213 | hi diffdelete ctermbg=238 214 | hi difftext ctermbg=237 215 | hi errormsg ctermbg=237 216 | hi foldcolumn ctermbg=238 217 | hi folded ctermbg=238 218 | hi incsearch ctermbg=228 219 | hi linenr ctermbg=238 220 | hi search ctermbg=238 221 | hi statement ctermbg=237 222 | hi statusline ctermbg=144 223 | hi statuslinenc ctermbg=108 224 | hi title ctermbg=237 225 | hi todo ctermbg=237 226 | hi underlined ctermbg=237 227 | hi vertsplit ctermbg=65 228 | hi visualnos ctermbg=210 229 | hi warningmsg ctermbg=236 230 | hi wildmenu ctermbg=236 231 | endif 232 | endif 233 | 234 | if exists("g:zenburn_force_dark_Background") 235 | " Force dark background, because of a bug in VIM: VIM sets background 236 | " automatically during "hi Normal ctermfg=X"; it misinterprets the high 237 | " value (234 or 237 above) as a light color, and wrongly sets background to 238 | " light. See ":help highlight" for details. 239 | set background=dark 240 | endif 241 | 242 | if exists("g:zenburn_high_Contrast") 243 | " use new darker background 244 | hi Normal guifg=#dcdccc guibg=#1f1f1f 245 | hi CursorLine guibg=#121212 gui=bold 246 | hi Pmenu guibg=#242424 guifg=#ccccbc 247 | hi PMenuSel guibg=#353a37 guifg=#ccdc90 gui=bold 248 | hi PmenuSbar guibg=#2e3330 guifg=#000000 249 | hi PMenuThumb guibg=#a0afa0 guifg=#040404 250 | hi MatchParen guifg=#f0f0c0 guibg=#383838 gui=bold 251 | hi SignColumn guifg=#9fafaf guibg=#181818 gui=bold 252 | hi TabLineFill guifg=#cfcfaf guibg=#181818 gui=bold 253 | hi TabLineSel guifg=#efefef guibg=#1c1c1b gui=bold 254 | hi TabLine guifg=#b6bf98 guibg=#181818 gui=bold 255 | hi CursorColumn guifg=#dcdccc guibg=#2b2b2b 256 | else 257 | " Original, lighter background 258 | hi Normal guifg=#dcdccc guibg=#3f3f3f 259 | hi CursorLine guibg=#434443 260 | hi Pmenu guibg=#2c2e2e guifg=#9f9f9f 261 | hi PMenuSel guibg=#242424 guifg=#d0d0a0 gui=bold 262 | hi PmenuSbar guibg=#2e3330 guifg=#000000 263 | hi PMenuThumb guibg=#a0afa0 guifg=#040404 264 | hi MatchParen guifg=#b2b2a0 guibg=#2e2e2e gui=bold 265 | hi SignColumn guifg=#9fafaf guibg=#343434 gui=bold 266 | hi TabLineFill guifg=#cfcfaf guibg=#353535 gui=bold 267 | hi TabLineSel guifg=#efefef guibg=#3a3a39 gui=bold 268 | hi TabLine guifg=#b6bf98 guibg=#353535 gui=bold 269 | hi CursorColumn guifg=#dcdccc guibg=#4f4f4f 270 | endif 271 | 272 | 273 | if exists("g:zenburn_alternate_Visual") 274 | " Visual with more contrast, thanks to Steve Hall & Cream posse 275 | " gui=none fixes weird highlight problem in at least GVim 7.0.66, thanks to Kurt Maier 276 | hi Visual guifg=#000000 guibg=#71d3b4 gui=none 277 | hi VisualNOS guifg=#000000 guibg=#71d3b4 gui=none 278 | else 279 | " use default visual 280 | hi Visual guifg=#233323 guibg=#71d3b4 gui=none 281 | hi VisualNOS guifg=#233323 guibg=#71d3b4 gui=none 282 | endif 283 | 284 | if exists("g:zenburn_alternate_Error") 285 | " use a bit different Error 286 | hi Error guifg=#ef9f9f guibg=#201010 gui=bold 287 | else 288 | " default 289 | hi Error guifg=#e37170 guibg=#332323 gui=none 290 | endif 291 | 292 | if exists("g:zenburn_alternate_Include") 293 | " original setting 294 | hi Include guifg=#ffcfaf gui=bold 295 | else 296 | " new, less contrasted one 297 | hi Include guifg=#dfaf8f gui=bold 298 | endif 299 | " TODO check for more obscure syntax groups that they're ok 300 | -------------------------------------------------------------------------------- /dict/english_special.vim: -------------------------------------------------------------------------------- 1 | " Lexicon of contractions and other special items. 2 | " For use with SpellChecker.vim. 3 | " Author: Ajit J. Thakkar 4 | " Last Change: 2003 Jan. 08 5 | 6 | syn case match 7 | " Contractions 8 | syn match GoodWord "\" 9 | if !exists("b:formal") 10 | syn match GoodWord "\" 11 | endif 12 | " Initials 13 | syn match GoodWord "\<\u\." 14 | " Abbreviations 15 | syn match GoodWord "\<\(et\_s\+al\|etc\|cf\|Ph\.D\|B\.Sc\|M\.Sc\|Dr\|Mrs\=\|Ms\|Jr\|e\.g\|i\.e\|pp\|Mon\|Tue\|Thu\|Fri\|Jan\|Feb\|Apr\|Jun\|Jul\|Aug\|Sep\|Oct\|Nov\|Dec\)\." 16 | 17 | syn case ignore 18 | " Contractions 19 | syn match GoodWord "\<\(can\|don\|haven\|he\|it\|she\|they\|we\|who\|won\|you\)\>" 20 | if exists("b:formal") 21 | syn match BadWord "\<\(o\|m\|ve\|d\|ll\|re\|t\)\>" 22 | syn match BadWord "\<\(aren\|couldn\|didn\|doesn\|isn\|wasn\|wouldn\|ain\|hadn\|hasn\|mustn\|needn\|shan\|shouldn\|weren\)\>" 23 | else 24 | syn match GoodWord "\<\(ma'am\|o'clock\)\>" 25 | syn match GoodWord "\<\(they\|we\|you\)'[vr]e\>" 26 | syn match GoodWord "\<\(he\|it\|she\|they\|we\|who\|you\)'\(ll\|d\)\>" 27 | syn match GoodWord "\<\(aren\|can\|couldn\|didn\|doesn\|don\|haven\|isn\|wasn\|won\|wouldn\|ain\|hadn\|hasn\|mustn\|needn\|shan\|shouldn\|weren\)'t\>" 28 | endif 29 | " Reserved vim syntax 30 | syn match GoodWord "\<\(contains\|contained\|display\|extend\|fold\|skip\|transparent\)\>" 31 | " Numbered lists 32 | syn match GoodWord "\<\(i\{1,3}\|iv\|vi\{0,3}\|i\=x\))" 33 | syn match GoodWord "\<\(b\|c\|d\|e\|f\|g\))" 34 | " Prefixes and suffixes 35 | syn match GoodWord "\<\(ex\|non\)-" 36 | syn match GoodWord "'s\>" 37 | " Abbreviations 38 | syn match GoodWord "\" 42 | endif 43 | " URLs 44 | syn match GoodWord "\<\(ht\|f\)tp://\S\+" 45 | syn match GoodWord "\<\k\+@\S\+" 46 | syn match GoodWord "\. 25 | 26 | SpellChecker highlights both misspelled words and spellings corresponding to a 27 | dialect different from the one selected. This helps to ensure that the 28 | selected dialect has been used consistently throughout a document. 29 | 30 | In addition to a global user dictionary (english_user.vim) used for all 31 | documents, each directory may contain a project-specific dictionary that is 32 | used only when documents in that directory are being spell-checked. 33 | Buffer-local commands, key mappings and menus are provided for turning spell 34 | checking on and off, for moving through the errors with or without dialogs, 35 | changing dialects, adding and removing words to the global user and local 36 | project dictionaries, for accepting words for the current document only, for 37 | modifying all occurrences of a word, and for querying SpellChecker settings. 38 | ============================================================================== 39 | 2. Installation *SpellChecker-installation* 40 | 41 | 1. Unzip Spellchecker.zip, preserving directory structure, into either 42 | $HOME/.vim for unix or $HOME\vimfiles for MSWindows. Make sure that 43 | Spellchecker.vim is in the plugin subdirectory, the english.vim, 44 | english_dialects.vim, and english_special.vim files are in the dict 45 | subdirectory, and spellchecker.txt is in the doc subdirectory of 46 | $HOME/.vim or $HOME\vimfiles as the case may be. Do ":help 47 | add-plugin", ":help add-global-plugin" and ":help runtimepath" for more 48 | details about Vim plugins. 49 | 50 | 2. Do 51 | :helptags ~/.vim/doc (for unix) 52 | or 53 | :helptags ~\vimfiles\doc (for MSWindows) 54 | to rebuild the tags file. Do ":help add-local-help" for more details. 55 | 56 | 3. Restart vim 57 | 58 | 4. Do :help SpellChecker or otherwise read spellchecker.txt to learn 59 | about usage and customization. 60 | ============================================================================== 61 | 3. Usage *SpellChecker-usage* 62 | 63 | Command summary~ 64 | The fundamental mode of operation is via commands. Key mappings and menus (for 65 | the GUI) are provided as alternative means of issuing the commands. The key 66 | mappings use , which is \ by default. 67 | Command Key mapping Action ~ 68 | :SPCheck sc Turn spell checking on/off 69 | :SPInteract si Interactively step through errors 70 | :SPHarvest sh Harvest all errors to user dictionary 71 | in a single step 72 | The three commands above may be all some users need. 73 | 74 | :SPNext sn Move to next error 75 | :SPPrevious sp Move to previous error 76 | :SPModify sm Modify all occurrences of cursor word 77 | :SPAllow sa Allow word in current document 78 | :SPLocalSave sl Save word in local project dictionary 79 | dirname_words.vim 80 | :SPGlobalSave sg Save word in global user dictionary 81 | english_user.vim 82 | :SPRemove sr Remove word from any user dictionary 83 | 84 | :SPDialect sd Change dialect 85 | :SPQuery sq Query SpellChecker settings 86 | :SPFormal sf Toggle "allow word contractions" 87 | 88 | Deprecated command~ 89 | :SPOff (so) Use :SPCheck instead 90 | 91 | Commands no longer available~ 92 | Use :SPInteract instead of 93 | :SPSave (ss) 94 | :SPToggleScanMode (st) 95 | 96 | Unless you have other user-defined commands with similar names, the first 97 | three letters (all uppercase) are enough to activate the commands. 98 | 99 | Popup menu~ 100 | If you have > 101 | set mousemodel=popup_setpos 102 | in your vimrc, then after spellchecker has been invoked, right-clicking on a 103 | word will pop up a menu offering various actions that can be performed on that 104 | word. 105 | 106 | Why are there so many dictionaries?~ 107 | SpellChecker uses as many as five dictionaries for each document it checks. 108 | There are three "system" dictionaries (english.vim, english_dialects.vim, 109 | english_special.vim) that are always used. SpellChecker will also consult two 110 | user dictionaries if they exist or are created during a SpellChecker session. 111 | The global user dictionary is called english_user.vim and is used for all 112 | documents. The fifth dictionary is a directory-local dictionary called 113 | dirname_words.vim which is used only for documents that reside in the dirname 114 | directory. 115 | 116 | It is intended that the global user dictionary be a collection of normal 117 | English words that are too rare or specialized to have made it into the 118 | "system" dictionaries. For example, my global user dictionary contains words 119 | like metastable, hypervirial and Ajit. Directory-local dictionaries are 120 | intended to be collections of acronyms, words and quasi-words that are known 121 | only to likely readers of the documents in that directory. For example, the 122 | dictionary local to the directory in which I work on documentation for 123 | SpellChecker contains "words" like SpellChecker, plugin and vim. 124 | 125 | Saving to the global user dictionary (:SPG or \sg) saves to english_user.vim 126 | Saving to the local user dictionary (:SPL or \sl) saves to dirname_words.vim 127 | Words containing an upper-case letter are saved in a case-sensitive fashion. 128 | 129 | english_user.vim can reside in any dict directory in vim's runtime path (:he 130 | rtp). dirname_words.vim must reside in the directory where it is to be used. 131 | dirname is the lowest-level name for that directory. For example, the 132 | dictionary stored in and used for documents in $HOME/work/write/2003/january 133 | is called january_words.vim. 134 | 135 | Spell-checking comments in source code~ 136 | Comments in various computer languages can be spell-checked if that language's 137 | vim syntax file is set up to have its comment syntax group contain a cluster. 138 | The vim syntax languages that currently support this include: amiga, bash, 139 | bib, c, cpp, csh, dcl, fortran, ksh, latex, sh, tex, and vim. 140 | If you need to spell check comments in a program written in a different 141 | computer language, please ask that vim syntax file's maintainer to add the 142 | support mentioned above. 143 | 144 | Coexistence with other highlighting~ 145 | SpellChecker does not do a "syntax clear", so you can use it on top of other 146 | highlighting. On the other hand, most syntax highlighting files do use "syntax 147 | clear" so resetting syntax, (by changing buffers or filetype, for example) 148 | will clear SpellChecker's highlighting. 149 | ============================================================================== 150 | 4. Customization *SpellChecker-customization* 151 | 152 | Dialect choice ~ 153 | If all your documents are written in American English, then there is nothing 154 | you need to do. If all your documents are written in British English, then > 155 | let dialect='UK' 156 | in your vimrc file. If your documents are written in Canadian English, then 157 | add > 158 | let dialect='CA' 159 | to your vimrc file. 160 | 161 | If you write documents in more than one dialect, then set your primary dialect 162 | in the vimrc file as described above. Then documents in a dialect other than 163 | your primary one can be automatically identified if one of the first 164 | &modelines (default five, see |modelines|) lines of your document contains a 165 | directive such as > 166 | dialect=US 167 | For example, in a LaTeX document this line could begin with % and therefore be 168 | a comment. The dialect can also be changed on the fly by the :SPDialect 169 | command, or the equivalent key mapping or menu item. 170 | 171 | Word Contractions ~ 172 | Several word contractions, such as I'll, are recognized as correct spellings. 173 | This can be disabled in all your documents by adding > 174 | let formal=1 175 | to your vimrc file. 176 | 177 | User dictionary ~ 178 | The global user dictionary must be named english_user.vim. It can be placed in 179 | a dict subdirectory anywhere in your runtime path, and does not need to be in 180 | the same location as the main dictionaries (english.vim, etc.). User 181 | dictionaries created for engspchk.vim will work if you rename them to 182 | english_user.vim. If you do not have a user dictionary, then one will be 183 | created in the same location as the supplied dictionaries when you first save 184 | a word to it. 185 | 186 | Project-specific dictionaries ~ 187 | A user-defined name for the project-specific dictionary can be chosen by 188 | placing a directive among the first &modelines (default five, see |modelines|) 189 | lines of your document; for example a directive such as > 190 | project_file=gos 191 | will lead to the local project-specific dictionary being named gos_words.vim. 192 | If a file called project_words.vim exists in a directory, it is used as the 193 | local dictionary for compatibility with old versions of SpellChecker. 194 | 195 | Colors~ 196 | The highlighting for spelling errors and spelling variants can be customized 197 | for gvim by adding commands such as > 198 | hi BadWord guifg=Black guibg=LightGreen 199 | hi Variant guifg=Black guibg=White 200 | to your vimrc. For console mode, ctermfg and ctermbg need to be set instead. 201 | 202 | Key mappings~ 203 | is \ by default but can be set according to the user's preferences in 204 | the vimrc file. If you want to disable the key mappings, perhaps in order to 205 | define different ones, then add the following to your vimrc file > 206 | let no_spellchecker_maps=1 207 | Another way to disable the key mappings is to put > 208 | let no_plugin_maps=1 209 | in your vimrc but note that this will disable key mappings in all default 210 | ftplugins (e.g. ftplugin/mail.vim) and other plugins that honor this 211 | convention. 212 | 213 | Autocommands~ 214 | If you want SpellChecker to start checking as soon as you open a document, 215 | consider adding an autocommand to your vimrc. For example, > 216 | au BufRead,BufNewFile *.tex SPCheck 217 | will do the trick for all files with a tex extension. Change *.tex to match 218 | the extensions that you need. Another example is > 219 | au BufRead,BufNewFile * if &ft ==? 'mail' | SPCheck | endif 220 | ============================================================================== 221 | 5. Design *SpellChecker-design* 222 | 223 | The design is based on the following premises: 224 | 225 | a) Consistency in spelling is important. The spelling in a document should 226 | conform to a single dialect. A word should be spelled in the same way 227 | throughout a document even when it has more than one accepted spelling. 228 | Therefore, variant spellings and spellings that are correct in a dialect other 229 | than the chosen one are highlighted as "todo" items. Moreover, adding variant 230 | spellings to the permanent user dictionary is made inconvenient to help ensure 231 | that this only happens when the user has made a well-considered decision to do 232 | so. Hitting a key to add a word to a user dictionary is not always a 233 | well-considered decision. 234 | 235 | b) The words that occur in most documents are drawn from a relatively small 236 | core vocabulary that is widely known among users of the language, and possibly 237 | also from a specialist vocabulary that is known primarily among those 238 | knowledgeable in the subject area of the document. Therefore, the primary 239 | lexicon used for spell checking should contain only the core vocabulary. 240 | Arcane words in the lexicon often hinder the task of finding spelling errors. 241 | For example, inadvertently typing "ort he" instead of "or the" will not be 242 | spotted if the spell checker's lexicon includes the rarely-used word "ort". 243 | Specialist vocabulary should be covered by optional add-on specialist 244 | lexicons, by the global user dictionary, or by project-specific dictionaries. 245 | ============================================================================== 246 | 6. Limitations and future development *SpellChecker-limitations* 247 | 248 | SpellChecker.vim requires Vim 6.0 or later compiled with +syntax, and run with 249 | at least "set nocompatible" in the vimrc. No facility for suggesting 250 | alternative spellings is currently provided. It may be added later. 251 | 252 | You cannot spellcheck files named english_user.vim or *_words.vim 253 | If you need to do so, just rename them first. 254 | 255 | The current development priorities are add-on lexicons for slang, and for 256 | technical disciplines such as physics, mathematics, chemistry and computer 257 | science. 258 | 259 | If you have suitable word lists for other languages, please contact the author 260 | for assistance in using them with SpellChecker.vim. Hooks have been built 261 | into the code to facilitate the addition of other languages. 262 | ============================================================================== 263 | 7. Credits *SpellChecker-credits* 264 | 265 | None of this would be possible without Vim which was created by the efforts of 266 | Bram Moolenaar and the other Vim developers. SpellChecker.vim was inspired by 267 | Charles Campbell's engspchk.vim 268 | ============================================================================== 269 | vim:tw=78:ts=8:ft=help:norl: 270 | -------------------------------------------------------------------------------- /doc/tags: -------------------------------------------------------------------------------- 1 | -P vimtips.txt /*-P* 2 | . vimtips.txt /*.* 3 | . vimtips.txt /*.* 4 | . vimtips.txt /*.* 5 | .htm vimtips.txt /*.htm* 6 | .htm vimtips.txt /*.htm* 7 | .htm vimtips.txt /*.htm* 8 | .htm vimtips.txt /*.htm* 9 | .htm vimtips.txt /*.htm* 10 | /Content.IE?/ morevimtips.txt /*\/Content.IE?\/* 11 | 1 vimtips.txt /*1* 12 | 12 vimtips.txt /*12* 13 | 2 vimtips.txt /*2* 14 | 3 vimtips.txt /*3* 15 | 4 vimtips.txt /*4* 16 | 5 vimtips.txt /*5* 17 | Alph latexhelp.txt /*Alph* 18 | BibTeX latexhelp.txt /*BibTeX* 19 | C morevimtips.txt /*C* 20 | HUGE vimtips.txt /*HUGE* 21 | LaTeX latexhelp.txt /*LaTeX* 22 | N morevimtips.txt /*N* 23 | N morevimtips.txt /*N* 24 | N morevimtips.txt /*N* 25 | N morevimtips.txt /*N* 26 | Roman latexhelp.txt /*Roman* 27 | SpellChecker spellchecker.txt /*SpellChecker* 28 | SpellChecker-credits spellchecker.txt /*SpellChecker-credits* 29 | SpellChecker-customization spellchecker.txt /*SpellChecker-customization* 30 | SpellChecker-design spellchecker.txt /*SpellChecker-design* 31 | SpellChecker-installation spellchecker.txt /*SpellChecker-installation* 32 | SpellChecker-limitations spellchecker.txt /*SpellChecker-limitations* 33 | SpellChecker-overview spellchecker.txt /*SpellChecker-overview* 34 | SpellChecker-usage spellchecker.txt /*SpellChecker-usage* 35 | SpellChecker.txt spellchecker.txt /*SpellChecker.txt* 36 | \Alph latexhelp.txt /*\\Alph* 37 | \Huge latexhelp.txt /*\\Huge* 38 | \LARGE latexhelp.txt /*\\LARGE* 39 | \Large latexhelp.txt /*\\Large* 40 | \Roman latexhelp.txt /*\\Roman* 41 | \\ latexhelp.txt /*\\\\* 42 | \\\\ latexhelp.txt /*\\\\\\\\* 43 | \addcontentsline latexhelp.txt /*\\addcontentsline* 44 | \address latexhelp.txt /*\\address* 45 | \addtocontents latexhelp.txt /*\\addtocontents* 46 | \addtocounter latexhelp.txt /*\\addtocounter* 47 | \addtolength latexhelp.txt /*\\addtolength* 48 | \addvspace latexhelp.txt /*\\addvspace* 49 | \alph latexhelp.txt /*\\alph* 50 | \and latexhelp.txt /*\\and* 51 | \appendix latexhelp.txt /*\\appendix* 52 | \arabic latexhelp.txt /*\\arabic* 53 | \author latexhelp.txt /*\\author* 54 | \begin latexhelp.txt /*\\begin* 55 | \bfseries latexhelp.txt /*\\bfseries* 56 | \bibitem latexhelp.txt /*\\bibitem* 57 | \bibliography latexhelp.txt /*\\bibliography* 58 | \bibliographystyle latexhelp.txt /*\\bibliographystyle* 59 | \bigskip latexhelp.txt /*\\bigskip* 60 | \cc latexhelp.txt /*\\cc* 61 | \cdots latexhelp.txt /*\\cdots* 62 | \centering latexhelp.txt /*\\centering* 63 | \chapter latexhelp.txt /*\\chapter* 64 | \circle latexhelp.txt /*\\circle* 65 | \cite latexhelp.txt /*\\cite* 66 | \cleardoublepage latexhelp.txt /*\\cleardoublepage* 67 | \clearpage latexhelp.txt /*\\clearpage* 68 | \cline latexhelp.txt /*\\cline* 69 | \closing latexhelp.txt /*\\closing* 70 | \dashbox latexhelp.txt /*\\dashbox* 71 | \date latexhelp.txt /*\\date* 72 | \ddots latexhelp.txt /*\\ddots* 73 | \depth latexhelp.txt /*\\depth* 74 | \documentclass latexhelp.txt /*\\documentclass* 75 | \dotfill latexhelp.txt /*\\dotfill* 76 | \emph latexhelp.txt /*\\emph* 77 | \end latexhelp.txt /*\\end* 78 | \enlargethispage latexhelp.txt /*\\enlargethispage* 79 | \fbox latexhelp.txt /*\\fbox* 80 | \flushbottom latexhelp.txt /*\\flushbottom* 81 | \fnsymbol latexhelp.txt /*\\fnsymbol* 82 | \fontencoding latexhelp.txt /*\\fontencoding* 83 | \fontfamily latexhelp.txt /*\\fontfamily* 84 | \fontseries latexhelp.txt /*\\fontseries* 85 | \fontshape latexhelp.txt /*\\fontshape* 86 | \fontsize latexhelp.txt /*\\fontsize* 87 | \footnote latexhelp.txt /*\\footnote* 88 | \footnotemark latexhelp.txt /*\\footnotemark* 89 | \footnotesize latexhelp.txt /*\\footnotesize* 90 | \footnotetext latexhelp.txt /*\\footnotetext* 91 | \frac latexhelp.txt /*\\frac* 92 | \frame latexhelp.txt /*\\frame* 93 | \framebox latexhelp.txt /*\\framebox* 94 | \fussy latexhelp.txt /*\\fussy* 95 | \height latexhelp.txt /*\\height* 96 | \hfill latexhelp.txt /*\\hfill* 97 | \hline latexhelp.txt /*\\hline* 98 | \hrulefill latexhelp.txt /*\\hrulefill* 99 | \hspace latexhelp.txt /*\\hspace* 100 | \huge latexhelp.txt /*\\huge* 101 | \hyphenation latexhelp.txt /*\\hyphenation* 102 | \include latexhelp.txt /*\\include* 103 | \includeonly latexhelp.txt /*\\includeonly* 104 | \indent latexhelp.txt /*\\indent* 105 | \input latexhelp.txt /*\\input* 106 | \item latexhelp.txt /*\\item* 107 | \itshape latexhelp.txt /*\\itshape* 108 | \kill latexhelp.txt /*\\kill* 109 | \label latexhelp.txt /*\\label* 110 | \large latexhelp.txt /*\\large* 111 | \ldots latexhelp.txt /*\\ldots* 112 | \lefteqn latexhelp.txt /*\\lefteqn* 113 | \letter latexhelp.txt /*\\letter* 114 | \line latexhelp.txt /*\\line* 115 | \linebreak latexhelp.txt /*\\linebreak* 116 | \linethickness latexhelp.txt /*\\linethickness* 117 | \listoffigures latexhelp.txt /*\\listoffigures* 118 | \listoftables latexhelp.txt /*\\listoftables* 119 | \location latexhelp.txt /*\\location* 120 | \lrbox latexhelp.txt /*\\lrbox* 121 | \makebox latexhelp.txt /*\\makebox* 122 | \makelabels latexhelp.txt /*\\makelabels* 123 | \maketitle latexhelp.txt /*\\maketitle* 124 | \marginpar latexhelp.txt /*\\marginpar* 125 | \markboth latexhelp.txt /*\\markboth* 126 | \markright latexhelp.txt /*\\markright* 127 | \mathbf latexhelp.txt /*\\mathbf* 128 | \mathcal latexhelp.txt /*\\mathcal* 129 | \mathit latexhelp.txt /*\\mathit* 130 | \mathnormal latexhelp.txt /*\\mathnormal* 131 | \mathrm latexhelp.txt /*\\mathrm* 132 | \mathsf latexhelp.txt /*\\mathsf* 133 | \mathtt latexhelp.txt /*\\mathtt* 134 | \mathversion latexhelp.txt /*\\mathversion* 135 | \mbox latexhelp.txt /*\\mbox* 136 | \mdseries latexhelp.txt /*\\mdseries* 137 | \medskip latexhelp.txt /*\\medskip* 138 | \multicolumn latexhelp.txt /*\\multicolumn* 139 | \multiput latexhelp.txt /*\\multiput* 140 | \name latexhelp.txt /*\\name* 141 | \newcommand latexhelp.txt /*\\newcommand* 142 | \newcounter latexhelp.txt /*\\newcounter* 143 | \newenvironment latexhelp.txt /*\\newenvironment* 144 | \newfont latexhelp.txt /*\\newfont* 145 | \newlength latexhelp.txt /*\\newlength* 146 | \newline latexhelp.txt /*\\newline* 147 | \newpage latexhelp.txt /*\\newpage* 148 | \newsavebox latexhelp.txt /*\\newsavebox* 149 | \newtheorem latexhelp.txt /*\\newtheorem* 150 | \nocite latexhelp.txt /*\\nocite* 151 | \nofiles latexhelp.txt /*\\nofiles* 152 | \noindent latexhelp.txt /*\\noindent* 153 | \nolinebreak latexhelp.txt /*\\nolinebreak* 154 | \nonumber latexhelp.txt /*\\nonumber* 155 | \nopagebreak latexhelp.txt /*\\nopagebreak* 156 | \normalfont latexhelp.txt /*\\normalfont* 157 | \normalsize latexhelp.txt /*\\normalsize* 158 | \onecolumn latexhelp.txt /*\\onecolumn* 159 | \opening latexhelp.txt /*\\opening* 160 | \oval latexhelp.txt /*\\oval* 161 | \overbrace latexhelp.txt /*\\overbrace* 162 | \overline latexhelp.txt /*\\overline* 163 | \pagebreak latexhelp.txt /*\\pagebreak* 164 | \pagenumbering latexhelp.txt /*\\pagenumbering* 165 | \pageref latexhelp.txt /*\\pageref* 166 | \pagestyle latexhelp.txt /*\\pagestyle* 167 | \par latexhelp.txt /*\\par* 168 | \paragraph latexhelp.txt /*\\paragraph* 169 | \parbox latexhelp.txt /*\\parbox* 170 | \part latexhelp.txt /*\\part* 171 | \picture-framebox latexhelp.txt /*\\picture-framebox* 172 | \ps latexhelp.txt /*\\ps* 173 | \pushtabs latexhelp.txt /*\\pushtabs* 174 | \put latexhelp.txt /*\\put* 175 | \raggedbottom latexhelp.txt /*\\raggedbottom* 176 | \raggedleft latexhelp.txt /*\\raggedleft* 177 | \raggedright latexhelp.txt /*\\raggedright* 178 | \raisebox latexhelp.txt /*\\raisebox* 179 | \ref latexhelp.txt /*\\ref* 180 | \refstepcounter latexhelp.txt /*\\refstepcounter* 181 | \renewcommand latexhelp.txt /*\\renewcommand* 182 | \renewenvironment latexhelp.txt /*\\renewenvironment* 183 | \reversemarginpar latexhelp.txt /*\\reversemarginpar* 184 | \rmfamily latexhelp.txt /*\\rmfamily* 185 | \roman latexhelp.txt /*\\roman* 186 | \rule latexhelp.txt /*\\rule* 187 | \savebox latexhelp.txt /*\\savebox* 188 | \sbox latexhelp.txt /*\\sbox* 189 | \scriptsize latexhelp.txt /*\\scriptsize* 190 | \scshape latexhelp.txt /*\\scshape* 191 | \section latexhelp.txt /*\\section* 192 | \selectfont latexhelp.txt /*\\selectfont* 193 | \setcounter latexhelp.txt /*\\setcounter* 194 | \setlength latexhelp.txt /*\\setlength* 195 | \settodepth latexhelp.txt /*\\settodepth* 196 | \settoheight latexhelp.txt /*\\settoheight* 197 | \settowidth latexhelp.txt /*\\settowidth* 198 | \sffamily latexhelp.txt /*\\sffamily* 199 | \shortstack latexhelp.txt /*\\shortstack* 200 | \signature latexhelp.txt /*\\signature* 201 | \sloppy latexhelp.txt /*\\sloppy* 202 | \slshape latexhelp.txt /*\\slshape* 203 | \small latexhelp.txt /*\\small* 204 | \smallskip latexhelp.txt /*\\smallskip* 205 | \space latexhelp.txt /*\\space* 206 | \sqrt latexhelp.txt /*\\sqrt* 207 | \startbreaks latexhelp.txt /*\\startbreaks* 208 | \stepcounter latexhelp.txt /*\\stepcounter* 209 | \stopbreaks latexhelp.txt /*\\stopbreaks* 210 | \subparagraph latexhelp.txt /*\\subparagraph* 211 | \subsection latexhelp.txt /*\\subsection* 212 | \subsubsection latexhelp.txt /*\\subsubsection* 213 | \symbol latexhelp.txt /*\\symbol* 214 | \table latexhelp.txt /*\\table* 215 | \tableofcontents latexhelp.txt /*\\tableofcontents* 216 | \telephone latexhelp.txt /*\\telephone* 217 | \textbf latexhelp.txt /*\\textbf* 218 | \textit latexhelp.txt /*\\textit* 219 | \textmd latexhelp.txt /*\\textmd* 220 | \textnormal latexhelp.txt /*\\textnormal* 221 | \textrm latexhelp.txt /*\\textrm* 222 | \textsc latexhelp.txt /*\\textsc* 223 | \textsf latexhelp.txt /*\\textsf* 224 | \textsl latexhelp.txt /*\\textsl* 225 | \texttt latexhelp.txt /*\\texttt* 226 | \textup latexhelp.txt /*\\textup* 227 | \thanks latexhelp.txt /*\\thanks* 228 | \thebibliography latexhelp.txt /*\\thebibliography* 229 | \thispagestyle latexhelp.txt /*\\thispagestyle* 230 | \tiny latexhelp.txt /*\\tiny* 231 | \title latexhelp.txt /*\\title* 232 | \totalheight latexhelp.txt /*\\totalheight* 233 | \ttfamily latexhelp.txt /*\\ttfamily* 234 | \twocolumn latexhelp.txt /*\\twocolumn* 235 | \typein latexhelp.txt /*\\typein* 236 | \typeout latexhelp.txt /*\\typeout* 237 | \underbrace latexhelp.txt /*\\underbrace* 238 | \underline latexhelp.txt /*\\underline* 239 | \upshape latexhelp.txt /*\\upshape* 240 | \usebox latexhelp.txt /*\\usebox* 241 | \usecounter latexhelp.txt /*\\usecounter* 242 | \usefont latexhelp.txt /*\\usefont* 243 | \usepackage latexhelp.txt /*\\usepackage* 244 | \value latexhelp.txt /*\\value* 245 | \vdots latexhelp.txt /*\\vdots* 246 | \vector latexhelp.txt /*\\vector* 247 | \verb latexhelp.txt /*\\verb* 248 | \vfill latexhelp.txt /*\\vfill* 249 | \vline latexhelp.txt /*\\vline* 250 | \vspace latexhelp.txt /*\\vspace* 251 | \width latexhelp.txt /*\\width* 252 | after vimtips.txt /*after* 253 | alph latexhelp.txt /*alph* 254 | and vimtips.txt /*and* 255 | and vimtips.txt /*and* 256 | another vimtips.txt /*another* 257 | arabic latexhelp.txt /*arabic* 258 | arbritary vimtips.txt /*arbritary* 259 | are vimtips.txt /*are* 260 | array latexhelp.txt /*array* 261 | article-class latexhelp.txt /*article-class* 262 | bar vimtips.txt /*bar* 263 | bibtex latexhelp.txt /*bibtex* 264 | book-class latexhelp.txt /*book-class* 265 | breakdown vimtips.txt /*breakdown* 266 | breakdown vimtips.txt /*breakdown* 267 | c_files vimtips.txt /*c_files* 268 | center latexhelp.txt /*center* 269 | cmd vimtips.txt /*cmd* 270 | description latexhelp.txt /*description* 271 | dev vimtips.txt /*dev* 272 | develop vimtips.txt /*develop* 273 | displaymath latexhelp.txt /*displaymath* 274 | draft latexhelp.txt /*draft* 275 | empty latexhelp.txt /*empty* 276 | enumerate latexhelp.txt /*enumerate* 277 | eqnarray latexhelp.txt /*eqnarray* 278 | equation latexhelp.txt /*equation* 279 | figure latexhelp.txt /*figure* 280 | file-searching vimtips.txt /*file-searching* 281 | final latexhelp.txt /*final* 282 | fleqn latexhelp.txt /*fleqn* 283 | flushleft latexhelp.txt /*flushleft* 284 | flushright latexhelp.txt /*flushright* 285 | font-lowlevelcommands latexhelp.txt /*font-lowlevelcommands* 286 | font-size latexhelp.txt /*font-size* 287 | font-styles latexhelp.txt /*font-styles* 288 | foo vimtips.txt /*foo* 289 | headings latexhelp.txt /*headings* 290 | highlighting vimtips.txt /*highlighting* 291 | hl-User1..9 vimtips.txt /*hl-User1..9* 292 | hyph- latexhelp.txt /*hyph-* 293 | is vimtips.txt /*is* 294 | itemize latexhelp.txt /*itemize* 295 | landscape latexhelp.txt /*landscape* 296 | latex latexhelp.txt /*latex* 297 | latex-boxes latexhelp.txt /*latex-boxes* 298 | latex-breaking latexhelp.txt /*latex-breaking* 299 | latex-classes latexhelp.txt /*latex-classes* 300 | latex-commands latexhelp.txt /*latex-commands* 301 | latex-counters latexhelp.txt /*latex-counters* 302 | latex-definitions latexhelp.txt /*latex-definitions* 303 | latex-environments latexhelp.txt /*latex-environments* 304 | latex-footnotes latexhelp.txt /*latex-footnotes* 305 | latex-hor-space latexhelp.txt /*latex-hor-space* 306 | latex-inputting latexhelp.txt /*latex-inputting* 307 | latex-layout latexhelp.txt /*latex-layout* 308 | latex-lengths latexhelp.txt /*latex-lengths* 309 | latex-letters latexhelp.txt /*latex-letters* 310 | latex-margin-notes latexhelp.txt /*latex-margin-notes* 311 | latex-math latexhelp.txt /*latex-math* 312 | latex-modes latexhelp.txt /*latex-modes* 313 | latex-page-styles latexhelp.txt /*latex-page-styles* 314 | latex-paragraphs latexhelp.txt /*latex-paragraphs* 315 | latex-parameters latexhelp.txt /*latex-parameters* 316 | latex-references latexhelp.txt /*latex-references* 317 | latex-sectioning latexhelp.txt /*latex-sectioning* 318 | latex-spaces-boxes latexhelp.txt /*latex-spaces-boxes* 319 | latex-special latexhelp.txt /*latex-special* 320 | latex-start-end latexhelp.txt /*latex-start-end* 321 | latex-terminal latexhelp.txt /*latex-terminal* 322 | latex-toc latexhelp.txt /*latex-toc* 323 | latex-typefaces latexhelp.txt /*latex-typefaces* 324 | latex-ver-space latexhelp.txt /*latex-ver-space* 325 | latexhelp.txt latexhelp.txt /*latexhelp.txt* 326 | leqno latexhelp.txt /*leqno* 327 | letter-class latexhelp.txt /*letter-class* 328 | list latexhelp.txt /*list* 329 | lr-mode latexhelp.txt /*lr-mode* 330 | math, latexhelp.txt /*math,* 331 | math-misc latexhelp.txt /*math-misc* 332 | math-mode latexhelp.txt /*math-mode* 333 | math-spacing latexhelp.txt /*math-spacing* 334 | math-symbols latexhelp.txt /*math-symbols* 335 | math: latexhelp.txt /*math:* 336 | math; latexhelp.txt /*math;* 337 | matn! latexhelp.txt /*matn!* 338 | memo.txt vimtips.txt /*memo.txt* 339 | minipage latexhelp.txt /*minipage* 340 | must vimtips.txt /*must* 341 | must vimtips.txt /*must* 342 | notitlepage latexhelp.txt /*notitlepage* 343 | now vimtips.txt /*now* 344 | one vimtips.txt /*one* 345 | one vimtips.txt /*one* 346 | onecolumn latexhelp.txt /*onecolumn* 347 | oneside latexhelp.txt /*oneside* 348 | openany latexhelp.txt /*openany* 349 | openbib latexhelp.txt /*openbib* 350 | openright latexhelp.txt /*openright* 351 | paragraph-mode latexhelp.txt /*paragraph-mode* 352 | picture latexhelp.txt /*picture* 353 | picture-makebox latexhelp.txt /*picture-makebox* 354 | plain latexhelp.txt /*plain* 355 | pre-lengths latexhelp.txt /*pre-lengths* 356 | quotation latexhelp.txt /*quotation* 357 | quote-l latexhelp.txt /*quote-l* 358 | report-class latexhelp.txt /*report-class* 359 | request vimtips.txt /*request* 360 | request vimtips.txt /*request* 361 | restore-position vimtips.txt /*restore-position* 362 | rocks vimtips.txt /*rocks* 363 | roman latexhelp.txt /*roman* 364 | rqno latexhelp.txt /*rqno* 365 | sed vimtips.txt /*sed* 366 | sfphone vimtips.txt /*sfphone* 367 | sfsed vimtips.txt /*sfsed* 368 | sfvim vimtips.txt /*sfvim* 369 | slides-class latexhelp.txt /*slides-class* 370 | sub-sup latexhelp.txt /*sub-sup* 371 | subjects vimtips.txt /*subjects* 372 | subscripts latexhelp.txt /*subscripts* 373 | superscripts latexhelp.txt /*superscripts* 374 | tab' latexhelp.txt /*tab'* 375 | tab+ latexhelp.txt /*tab+* 376 | tab- latexhelp.txt /*tab-* 377 | tab< latexhelp.txt /*tab<* 378 | tab= latexhelp.txt /*tab=* 379 | tab> latexhelp.txt /*tab>* 380 | tab` latexhelp.txt /*tab`* 381 | taba latexhelp.txt /*taba* 382 | tabbing latexhelp.txt /*tabbing* 383 | tabular latexhelp.txt /*tabular* 384 | tag vimtips.txt /*tag* 385 | that vimtips.txt /*that* 386 | theorem latexhelp.txt /*theorem* 387 | titlepage latexhelp.txt /*titlepage* 388 | toc vimtips.txt /*toc* 389 | two vimtips.txt /*two* 390 | twocolumn latexhelp.txt /*twocolumn* 391 | twoside latexhelp.txt /*twoside* 392 | ultimate vimtips.txt /*ultimate* 393 | verbatim latexhelp.txt /*verbatim* 394 | verse latexhelp.txt /*verse* 395 | vim vimtips.txt /*vim* 396 | vimtips.txt vimtips.txt /*vimtips.txt* 397 | without vimtips.txt /*without* 398 | word vimtips.txt /*word* 399 | -------------------------------------------------------------------------------- /doc/vimtips.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgm/dotvim/54b3fd9e04e6c2746af84804576134e8b23e20cf/doc/vimtips.txt -------------------------------------------------------------------------------- /filetype.vim: -------------------------------------------------------------------------------- 1 | if exists("did_load_filetypes") 2 | finish 3 | endif 4 | 5 | augroup filetypedetect 6 | au! BufRead,BufNewFile *.leg setfiletype c 7 | au! BufRead,BufNewFile *.nim setfiletype nimrod 8 | au! BufRead,BufNewFile {TODO,todo,TodoList} setfiletype todo 9 | au! BufRead,BufNewFile *.txt setfiletype text 10 | au! BufRead,BufNewFile *.markdown setfiletype text 11 | au! BufRead,BufNewFile *.md setfiletype text 12 | au! BufRead,BufNewFile *.st setfiletype stringtemplate 13 | augroup END 14 | 15 | runtime! ftdetect/*.vim 16 | -------------------------------------------------------------------------------- /ftdetect/rust.vim: -------------------------------------------------------------------------------- 1 | au BufRead,BufNewFile *.rs,*.rc set filetype=rust 2 | -------------------------------------------------------------------------------- /ftplugin/c.vim: -------------------------------------------------------------------------------- 1 | set noexpandtab 2 | set softtabstop=8 3 | set shiftwidth=8 4 | set autoindent 5 | set cindent 6 | -------------------------------------------------------------------------------- /ftplugin/snippet.vim: -------------------------------------------------------------------------------- 1 | set noexpandtab 2 | set softtabstop=8 3 | -------------------------------------------------------------------------------- /ftplugin/todo.vim: -------------------------------------------------------------------------------- 1 | set shiftwidth=4 2 | set autoindent 3 | setlocal foldmethod=indent 4 | :nmap td I[ ] 5 | :nmap tc :s/^\(\s*\)\[ \]/\1[x]/ 6 | :nmap tu :s/^\(\s*\)\[x\]/\1[ ]/ 7 | -------------------------------------------------------------------------------- /indent/rust.vim: -------------------------------------------------------------------------------- 1 | " Vim indent file 2 | 3 | if exists("b:did_indent") 4 | finish 5 | endif 6 | 7 | let b:did_indent = 1 8 | setlocal cindent 9 | setlocal cinkeys-=0# 10 | setlocal cino=j1,J1 11 | -------------------------------------------------------------------------------- /init.vim: -------------------------------------------------------------------------------- 1 | " :PlugInstall to install these plugins 2 | call plug#begin('~/.vim/plug') 3 | 4 | Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} 5 | Plug 'vim-airline/vim-airline' 6 | Plug 'vim-airline/vim-airline-themes' 7 | Plug 'airblade/vim-gitgutter' 8 | Plug 'junegunn/tabularize' 9 | Plug 'tpope/vim-fugitive' 10 | Plug 'tpope/vim-surround' 11 | Plug 'mbbill/undotree' 12 | Plug 'kien/ctrlp.vim' 13 | Plug 'tpope/vim-speeddating' 14 | Plug 'vim-scripts/loremipsum' 15 | Plug 'LaTeX-Box-Team/LaTeX-Box' 16 | Plug 'neovimhaskell/haskell-vim' 17 | Plug 'junegunn/vim-easy-align' 18 | Plug 'godlygeek/tabular' 19 | Plug 'vimwiki/vimwiki' 20 | Plug 'junegunn/fzf' 21 | Plug 'junegunn/fzf.vim' 22 | "Plug 'neoclide/coc.nvim', {'branch': 'release'} 23 | 24 | Plug 'neovim/nvim-lspconfig' 25 | Plug 'nvim-lua/plenary.nvim' 26 | Plug 'nvim-telescope/telescope.nvim', { 'branch': 'master'} 27 | Plug 'MrcJkb/haskell-tools.nvim', { 'branch': '1.x.x' } 28 | 29 | " initialize plugins 30 | call plug#end() 31 | 32 | set nocompatible 33 | filetype off " temporarily 34 | 35 | " Behave intelligently for type of file. 36 | filetype plugin indent on 37 | syntax on 38 | 39 | " Set leader to comma. 40 | let mapleader = "," 41 | 42 | " Don't redraw screen while executing macros. 43 | set nolazyredraw 44 | 45 | " Give more context in viewport. 46 | set scrolloff=3 47 | 48 | " Scroll viewport faster. 49 | nnoremap 3 50 | nnoremap 3 51 | 52 | set nomodeline " for security reasons 53 | 54 | " Encoding and line breaks. 55 | set encoding=utf-8 56 | set ffs=unix,dos 57 | 58 | set grepprg=grep\ -nH\ $* 59 | 60 | " Completion for file open etc. 61 | set wildmenu 62 | set wildmode=list:longest 63 | set wildignore+=*.log,*.pdf,*.swp,*.o,*.hi,*.py[co],*~ 64 | 65 | " Ignore these when using TAB key with :e 66 | set suffixes=~,.aux,.bak,.bkp,.dvi,.hi,.o,.pdf,.gz,.idx,.log,.ps,.swp,.tar,.ilg,.bbl,.toc,.ind 67 | 68 | " Create backup files ending in ~, in ~/tmp or, if 69 | " that is not possible, in the working directory. 70 | set backup 71 | set backupdir=~/tmp,. 72 | 73 | " Flexible backspace: allow backspacing over autoindent, line breaks, start of 74 | " insert. 75 | set backspace=indent,eol,start 76 | 77 | " No audible bell. 78 | set visualbell 79 | 80 | " Show line and column position of cursor, with percentage. 81 | set ruler 82 | 83 | " Show trailing whitespace, tabs 84 | "highlight TabChar ctermbg=yellow guibg=yellow 85 | highlight ExtraWhitespace ctermbg=Gray guibg=Gray 86 | 87 | " Highlight PmenuThumb with readable background 88 | highlight PMenu ctermbg=gray 89 | highlight PMenuThumb ctermbg=gray 90 | 91 | "match TabChar /\t\+/ 92 | match ExtraWhitespace /\s\+$/ 93 | 94 | " Show matching brackets. 95 | set showmatch 96 | set mat=5 " for half a sec 97 | 98 | " Tabs: default is two spaces. 99 | set expandtab 100 | set tabstop=8 " real tabs are 8 101 | set softtabstop=4 102 | set shiftwidth=2 " for autoindent 103 | set shiftround " indent to a multiple of shiftwidth 104 | set autoindent 105 | set cindent 106 | 107 | " Reflow paragraphs intelligently. using 'par'. 108 | set formatprg="par -h -w64 -B=.,\?_A_a " 109 | map !}par -h -w64 -B=.,\?_A_a 110 | 111 | " Go to nearest match as you type. 112 | set incsearch 113 | set ignorecase " ignore case in search and tags 114 | set smartcase " unless the pattern contains uppercase 115 | 116 | " Set title of window according to filename. 117 | set title 118 | 119 | " Show command on last line. 120 | set showcmd 121 | 122 | "" Disable arrow keys. 123 | "map 124 | "map 125 | "map 126 | "map 127 | "imap 128 | "imap 129 | "imap 130 | "imap 131 | 132 | " Switch ' and ` 133 | nnoremap ' ` 134 | nnoremap ` ' 135 | 136 | " This sets soft wrapping: 137 | " set wrap linebreak textwidth=0 138 | 139 | :nmap ,w :w 140 | 141 | " Don't force save when changing buffers 142 | set hidden 143 | 144 | " NOTE: Snipmate won't work in paste mode! 145 | set pastetoggle= " formerly 146 | 147 | " Remember more commands. 148 | set history=200 149 | 150 | " Buffer movement (C-n - next, C-p - previous). 151 | map :bn 152 | map :bp 153 | 154 | " Tab movement 155 | " gt next tab 156 | " gT prev tab 157 | " 3gt tab 3 158 | 159 | " Split window movement 160 | map 161 | map 162 | map 163 | map 164 | map 165 | 166 | " Use g to go to a url under cursor in UTL format 167 | :map g :Utl 168 | :let g:utl_opt_highlight_urls='yes' 169 | :let g:utl_cfg_hdl_mt_generic = 'silent !open "%p"&' 170 | 171 | " s skips whitespace and puts cursor on next non-whitespace char 172 | :map s :call search('\S','ceW') 173 | " S skips preceding whitespace and puts cursor on last non-whitespace char 174 | :map S :call search('\S','bceW') 175 | 176 | " toggle spelling 177 | :map s :set invspell 178 | 179 | " If for aesthetic reasons you want a left margin in writing text... 180 | function! GutterLeft() 181 | set number 182 | highlight LineNr ctermfg=Black 183 | endfunction 184 | 185 | " Use space and backspace for quick navigation forward/back. 186 | noremap 187 | noremap 188 | 189 | " Instead of ctrl-O, ctrl-I, leader b/f for back/forward in jumplist 190 | noremap f 191 | noremap b 192 | 193 | " for text files set width 194 | autocmd FileType text setlocal textwidth=64 195 | autocmd FileType tex setlocal textwidth=64 196 | autocmd FileType markdown setlocal textwidth=64 197 | autocmd FileType vimwiki setlocal foldlevel=99 198 | 199 | " When editing a file, always jump to the last known cursor position. Don't 200 | " do it when the position is invalid or when inside an event handler (happens 201 | " when dropping a file on gvim). 202 | autocmd BufReadPost * 203 | \ if line("'\"") > 0 && line("'\"") <= line("$") | 204 | \ exe "normal g`\"" | 205 | \ endif 206 | 207 | " Highlight according to markdown conventions in text files. 208 | augroup markdown 209 | autocmd BufRead *.md set filetype=markdown ai formatoptions=tcroqn2 comments=n:> 210 | autocmd BufRead *.txt set ai filetype=markdown formatoptions=tcroqn2 comments=n:> 211 | augroup END 212 | 213 | " vim-markdown settings 214 | let g:vim_markdown_folding_disabled = 1 215 | let g:vim_markdown_math = 1 216 | let g:vim_markdown_frontmatter = 1 217 | let g:vim_markdown_strikethrough = 1 218 | 219 | let g:zettel_fzf_command = 'ls *.md' 220 | " use [[Page]] for links instead of [Page](Page) 221 | let g:zettel_link_format="[[%title]]" 222 | 223 | hi htmlItalic gui=underline cterm=underline 224 | 225 | " augroup pandoc_syntax 226 | " au! BufNewFile,BufFilePre,BufRead *.md set filetype=markdown.pandoc 227 | " au! BufNewFile,BufFilePre,BufRead *.txt set filetype=markdown.pandoc 228 | " augroup END 229 | 230 | " Edit another file in the same directory as the current file 231 | " uses expression to extract path from current file's path 232 | " thanks Douglas Potts). 233 | map e :e =expand("%:p:h") . "/" 234 | 235 | " Use zl to list buffers, and go to matching buffer 236 | " Type part of bufname after prompt. 237 | nmap zl :ls!:buf 238 | 239 | " Read abbreviations file if present. 240 | if filereadable(expand("~/.vim/abbrevs.vim")) 241 | source ~/.vim/abbrevs.vim 242 | endif 243 | 244 | "----------------------------------------------------------------------- 245 | " GUI Settings { 246 | if has("gui_running") 247 | set background=dark 248 | colorscheme wombat " solarized 249 | set columns=80 250 | set lsp=3 " line spacing 251 | set guifont=DejaVu\ Sans\ Mono\ 10 " set in ~/.vimrc 252 | set guioptions=ce 253 | " || 254 | " |+-- use simple dialogs rather than pop-ups 255 | " + use GUI tabs, not console style tabs 256 | set lines=40 257 | set mousehide " hide the mouse cursor when typing 258 | endif 259 | 260 | " NERD_tree (file browser) 261 | function! NERDTreeToggleInCurDir() 262 | " If NERDTree is open in the current buffer 263 | if (exists("t:NERDTreeBufName") && bufwinnr(t:NERDTreeBufName) != -1) 264 | exe ":NERDTreeClose" 265 | else 266 | exe ":NERDTreeFind %" 267 | endif 268 | endfunction 269 | map n :call NERDTreeToggleInCurDir() 270 | 271 | function UploadICAL() 272 | let source = bufname("") 273 | let fullname = expand("%") 274 | exec ":! icalupload.py " . fullname 275 | endfunction 276 | 277 | map ui :call UploadICAL() 278 | 279 | " ,cd changes working directory to directory of file being edited 280 | map ,cd :cd %:p:h 281 | 282 | " for syntastic 283 | map e :Errors 284 | " keep disabled until you do S for errorr 285 | let g:syntastic_mode_map = { 'mode': 'passive', 'active_filetypes': [],'passive_filetypes': [] } 286 | nnoremap S :SyntasticCheck :SyntasticToggleMode 287 | 288 | " enable filetype detection, plus loading of filetype plugins 289 | filetype plugin on 290 | 291 | " for haskell-vim 292 | let g:haskell_indent_if = 3 293 | " if foo 294 | " then ... 295 | let g:haskell_indent_case = 2 296 | " case foo of 297 | " bar -> 298 | let g:haskell_indent_let = 4 299 | " let foo = ... 300 | " bar 301 | let g:haskell_indent_after_bare_where = 1 302 | " where 303 | " foo = 304 | let g:haskell_indent_do = 2 305 | let g:haskell_indent_guard = 2 306 | " f x y 307 | " | 308 | let g:cabal_indent_section = 2 309 | " executable name 310 | " main-is: 311 | 312 | " configure browser for haskell_doc.vim 313 | let g:haddock_browser = "open" 314 | let g:haddock_browser_callformat = "%s %s" 315 | let g:haddock_docdir = "/usr/share/doc/ghc/" 316 | 317 | " Haskell type signatures - from S. Visser 318 | 319 | function! HaskellType() 320 | w 321 | execute "normal {j^YP" 322 | execute (".!ghc -XNoMonomorphismRestriction -w % -e \":t " . expand("") . "\"") 323 | redraw! 324 | endfunction 325 | 326 | function Haskell() 327 | map tt :call HaskellType() 328 | " more haskell stuff here 329 | endfunction 330 | 331 | autocmd BufRead,BufNewFile *.{ag,hs,lhs,ghs} call Haskell() 332 | 333 | if &diff 334 | colorscheme desert256 335 | endif 336 | 337 | "----------------------------------------------------------------------- 338 | " Custom digraphs 339 | 340 | dig cl 8988 " left corner quote U+231C 341 | dig cr 8989 " right corner quote U+231D 342 | 343 | " makes vim default register = the system clipboard 344 | set clipboard+=unnamed 345 | 346 | function FixBS() " fix on OSX 347 | set t_kb= 348 | fixdel 349 | endfunction 350 | 351 | " Plugin settings 352 | 353 | " gitgutter 354 | let g:gitgutter_enabled=0 355 | set updatetime=250 356 | " bindings: 357 | nmap ]h GitGutterNextHunk 358 | nmap [h GitGutterPrevHunk 359 | " You can stage or undo an individual hunk when your cursor is in it: 360 | " stage the hunk with hs or 361 | " undo it with hu. 362 | 363 | " key bindings for vim-fugitive 364 | nmap gs :Gstatus 365 | nmap gc :Gcommit 366 | nmap ga :Gwrite 367 | nmap gl :Glog 368 | nmap gd :Gdiff 369 | 370 | " this is for vim-airline 371 | let g:airline_theme='papercolor' 372 | set laststatus=2 373 | 374 | " key bindings for ghc-mod 375 | map tw :GhcModTypeInsert 376 | map ts :GhcModSplitFunCase 377 | map tq :GhcModType 378 | map te :GhcModTypeClear 379 | 380 | " tabularize with haskell 381 | let g:haskell_tabular = 1 382 | 383 | vmap a= :Tabularize /= 384 | vmap a; :Tabularize /:: 385 | vmap a- :Tabularize /-> 386 | 387 | " vim-pandoc 388 | " let g:pandoc#syntax#conceal#urls=1 389 | let g:pandoc#syntax#conceal#use=0 390 | " emphasis looks bad in macos terminal which doesn't have ital/bold: 391 | let g:pandoc#syntax#style#emphases=0 392 | 393 | " undo-tree 394 | map u :UndotreeToggle 395 | 396 | " ctrl-p 397 | let g:ctrlp_map = 'p' 398 | 399 | " easy-align 400 | " Start interactive EasyAlign in visual mode (e.g. vipga) 401 | xmap ga (EasyAlign) 402 | 403 | " Start interactive EasyAlign for a motion/text object (e.g. gaip) 404 | nmap ga (EasyAlign) 405 | 406 | " fold markdown headings in vimwiki 407 | let g:vimwiki_folding = 'expr' 408 | augroup vimwiki 409 | noremap za 410 | augroup END 411 | 412 | " " CoC config 413 | " runtime cocinit.vim 414 | 415 | if has('nvim') 416 | " nvim only stuff here 417 | lua require('haskell-tools-setup') 418 | lua require('typescript-setup') 419 | lua require('telescope-setup') 420 | endif 421 | 422 | -------------------------------------------------------------------------------- /lua/haskell-tools-setup.lua: -------------------------------------------------------------------------------- 1 | local ht = require('haskell-tools') 2 | 3 | vim.diagnostic.config({ 4 | virtual_text = false, 5 | signs = true, 6 | float = { 7 | border = "single", 8 | format = function(diagnostic) 9 | return string.format( 10 | "%s (%s) [%s]", 11 | diagnostic.message, 12 | diagnostic.source, 13 | diagnostic.code or diagnostic.user_data.lsp.code 14 | ) 15 | end, 16 | }}) 17 | 18 | vim.api.nvim_set_keymap('n', 'o', 'lua vim.diagnostic.open_float()', { noremap = true, silent = true }) 19 | vim.api.nvim_set_keymap('n', 'oe', 'Telescope diagnostics', { noremap = true, silent = true }) 20 | 21 | local opts = { noremap = true, silent = true, buffer = bufnr } 22 | ht.setup { 23 | hls = { 24 | -- See nvim-lspconfig's suggested configuration for keymaps, etc. 25 | on_attach = function(client, bufnr) 26 | -- haskell-language-server relies heavily on codeLenses, 27 | -- so auto-refresh (see advanced configuration) is enabled by default 28 | vim.keymap.set('n', 'ca', vim.lsp.codelens.run, opts) 29 | vim.keymap.set('n', 'hs', ht.hoogle.hoogle_signature, opts) 30 | -- default_on_attach(client, bufnr) -- if defined, see nvim-lspconfig 31 | end, 32 | }, 33 | } 34 | -------------------------------------------------------------------------------- /lua/telescope-setup.lua: -------------------------------------------------------------------------------- 1 | local builtin = require('telescope.builtin') 2 | vim.keymap.set('n', 'ff', builtin.find_files, {}) 3 | vim.keymap.set('n', 'fg', builtin.live_grep, {}) 4 | vim.keymap.set('n', 'fb', builtin.buffers, {}) 5 | vim.keymap.set('n', 'fh', builtin.help_tags, {}) 6 | vim.keymap.set('n', 'fd', builtin.lsp_definitions, {}) 7 | vim.keymap.set('n', 'gd', builtin.lsp_definitions, {}) 8 | -------------------------------------------------------------------------------- /lua/typescript-setup.lua: -------------------------------------------------------------------------------- 1 | local status, nvim_lsp = pcall(require, "lspconfig") 2 | if (not status) then return end 3 | 4 | local protocol = require('vim.lsp.protocol') 5 | 6 | -- TypeScript 7 | nvim_lsp.tsserver.setup { 8 | filetypes = { "typescript", "typescriptreact", "typescript.tsx" }, 9 | cmd = { "typescript-language-server", "--stdio" } 10 | } 11 | -------------------------------------------------------------------------------- /plugin/bracketed-paste.vim: -------------------------------------------------------------------------------- 1 | " Code from: 2 | " http://stackoverflow.com/questions/5585129/pasting-code-into-terminal-window-into-vim-on-mac-os-x 3 | " then https://coderwall.com/p/if9mda 4 | " and then https://github.com/aaronjensen/vimfiles/blob/59a7019b1f2d08c70c28a41ef4e2612470ea0549/plugin/terminaltweaks.vim 5 | " to fix the escape time problem with insert mode. 6 | " 7 | " Docs on bracketed paste mode: 8 | " http://www.xfree86.org/current/ctlseqs.html 9 | " Docs on mapping fast escape codes in vim 10 | " http://vim.wikia.com/wiki/Mapping_fast_keycodes_in_terminal_Vim 11 | 12 | if !exists("g:bracketed_paste_tmux_wrap") 13 | let g:bracketed_paste_tmux_wrap = 1 14 | endif 15 | 16 | function! WrapForTmux(s) 17 | if !g:bracketed_paste_tmux_wrap || !exists('$TMUX') 18 | return a:s 19 | endif 20 | 21 | let tmux_start = "\Ptmux;" 22 | let tmux_end = "\\\" 23 | 24 | return tmux_start . substitute(a:s, "\", "\\", 'g') . tmux_end 25 | endfunction 26 | 27 | let &t_ti .= WrapForTmux("\[?2004h") 28 | let &t_te .= WrapForTmux("\[?2004l") 29 | 30 | function! XTermPasteBegin(ret) 31 | set pastetoggle= 32 | set paste 33 | return a:ret 34 | endfunction 35 | 36 | execute "set =\[200~" 37 | execute "set =\[201~" 38 | map XTermPasteBegin("i") 39 | imap XTermPasteBegin("") 40 | vmap XTermPasteBegin("c") 41 | cmap 42 | cmap 43 | -------------------------------------------------------------------------------- /snippets/lua.snippets: -------------------------------------------------------------------------------- 1 | # These snippets override anything in the default lua snippets. 2 | snippet if 3 | if ${1} then 4 | ${2} 5 | else 6 | ${3} 7 | end 8 | -------------------------------------------------------------------------------- /snippets/tex.snippets: -------------------------------------------------------------------------------- 1 | # These snippets override anything in the default tex snippets. 2 | # Quotation 3 | snippet quo 4 | \begin{quote} 5 | ${1} 6 | \end{quote} 7 | # Exe 8 | snippet exe 9 | \begin{exe} 10 | \ex ${1} 11 | \end{exe} 12 | -------------------------------------------------------------------------------- /spell/en.utf-8.add: -------------------------------------------------------------------------------- 1 | expressivism 2 | assertoric 3 | Stalnaker 4 | nonveridical 5 | illocutionary 6 | Stalnaker's 7 | Searle 8 | Pagin 9 | alia 10 | Brandom 11 | Vindicatory 12 | p 13 | hornbill 14 | vindicatory 15 | Brandom's 16 | temporalist 17 | contextualism 18 | relativization 19 | -------------------------------------------------------------------------------- /spell/en.utf-8.add.spl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgm/dotvim/54b3fd9e04e6c2746af84804576134e8b23e20cf/spell/en.utf-8.add.spl -------------------------------------------------------------------------------- /syntax/cabal.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: Haskell Cabal Build file 3 | " Maintainer: Vincent Berthoux 4 | " File Types: .cabal 5 | " v1.4: Add benchmark support, thanks to Simon Meier 6 | " v1.3: Updated to the last version of cabal 7 | " Added more highlighting for cabal function, true/false 8 | " and version number. Also added missing comment highlighting. 9 | " Cabal known compiler are highlighted too. 10 | " 11 | " V1.2: Added cpp-options which was missing. Feature implemented 12 | " by GHC, found with a GHC warning, but undocumented. 13 | " Whatever... 14 | " 15 | " v1.1: Fixed operator problems and added ftdetect file 16 | " (thanks to Sebastian Schwarz) 17 | " 18 | " v1.0: Cabal syntax in vimball format 19 | " (thanks to Magnus Therning) 20 | 21 | " For version 5.x: Clear all syntax items 22 | " For version 6.x: Quit when a syntax file was already loaded 23 | if version < 600 24 | syntax clear 25 | elseif exists("b:current_syntax") 26 | finish 27 | endif 28 | 29 | syn match cabalCategory "\c\" 30 | syn match cabalCategory "\c\" 31 | syn match cabalCategory "\c\" 32 | syn match cabalCategory "\c\" 33 | syn match cabalCategory "\c\" 34 | syn match cabalCategory "\c\" 35 | syn match cabalCategory "\c\" 36 | 37 | syn keyword cabalConditional if else 38 | syn match cabalOperator "&&\|||\|!\|==\|>=\|<=" 39 | syn keyword cabalFunction os arche impl flag 40 | syn match cabalComment /--.*$/ 41 | syn match cabalVersion "\d\+\(\.\(\d\)\+\)\+\(\.\*\)\?" 42 | 43 | syn match cabalTruth "\c\" 44 | syn match cabalTruth "\c\" 45 | 46 | syn match cabalCompiler "\c\" 47 | syn match cabalCompiler "\c\" 48 | syn match cabalCompiler "\c\" 49 | syn match cabalCompiler "\c\" 50 | syn match cabalCompiler "\c\" 51 | syn match cabalCompiler "\c\" 52 | syn match cabalCompiler "\c\" 53 | syn match cabalCompiler "\c\" 54 | 55 | syn match cabalStatement /^\c\s*\= 508 || !exists("did_cabal_syn_inits") 121 | if version < 508 122 | let did_cabal_syn_inits = 1 123 | command -nargs=+ HiLink hi link 124 | else 125 | command -nargs=+ HiLink hi def link 126 | endif 127 | 128 | HiLink cabalVersion Number 129 | HiLink cabalTruth Boolean 130 | HiLink cabalComment Comment 131 | HiLink cabalStatement Statement 132 | HiLink cabalCategory Type 133 | HiLink cabalFunction Function 134 | HiLink cabalConditional Conditional 135 | HiLink cabalOperator Operator 136 | HiLink cabalCompiler Constant 137 | delcommand HiLink 138 | endif 139 | 140 | let b:current_syntax = "cabal" 141 | 142 | " vim: ts=8 143 | -------------------------------------------------------------------------------- /syntax/nimrod.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: Nimrod 3 | " Maintainer: Kearn Holliday (thekearnman at gmail dot com) 4 | " Updated: 2009-05-15 5 | " 6 | " Options to control nimrod syntax highlighting: 7 | " 8 | " For highlighted numbers: 9 | " 10 | let nimrod_highlight_numbers = 1 11 | " 12 | " For highlighted builtin functions: 13 | " 14 | let nimrod_highlight_builtins = 1 15 | " 16 | " For highlighted standard exceptions: 17 | " 18 | let nimrod_highlight_exceptions = 1 19 | " 20 | " Highlight erroneous whitespace: 21 | " 22 | let nimrod_highlight_space_errors = 1 23 | " 24 | " If you want all possible nimrod highlighting (the same as setting the 25 | " preceding options): 26 | " 27 | " let nimrod_highlight_all = 1 28 | " 29 | 30 | " For version 5.x: Clear all syntax items 31 | " For version 6.x: Quit when a syntax file was already loaded 32 | if version < 600 33 | syntax clear 34 | elseif exists("b:current_syntax") 35 | finish 36 | endif 37 | 38 | syn region nimrodBrackets contained extend keepend matchgroup=Bold start=+\(\\\)\@" 86 | syn match nimrodNumber "\<\d\+[LljJ]\=\>" 87 | syn match nimrodNumber "\.\d\+\([eE][+-]\=\d\+\)\=[jJ]\=\>" 88 | syn match nimrodNumber "\<\d\+\.\([eE][+-]\=\d\+\)\=[jJ]\=\>" 89 | syn match nimrodNumber "\<\d\+\.\d\+\([eE][+-]\=\d\+\)\=[jJ]\=\>" 90 | endif 91 | 92 | if exists("nimrod_highlight_builtins") 93 | " builtin functions, types and objects, not really part of the syntax 94 | syn keyword nimrodBuiltin int int8 int16 int32 int64 float float32 float64 bool 95 | syn keyword nimrodBuiltin char string cstring pointer range array openarray seq 96 | syn keyword nimrodBuiltin set Byte Natural Positive TObject PObject Conversion TResult TAddress 97 | syn keyword nimrodBuiltin BiggestInt BiggestFloat cchar cschar cshort cint 98 | syn keyword nimrodBuiltin clong clonglong cfloat cdouble clongdouble 99 | syn keyword nimrodBuiltin cstringArray TEndian PFloat32 PFloat64 PInt64 PInt32 100 | syn keyword nimrodBuiltin TGC_Strategy TFile TFileMode TFileHandle isMainModule 101 | syn keyword nimrodBuiltin CompileDate CompileTime NimrodVersion NimrodMajor 102 | syn keyword nimrodBuiltin NimrodMinor NimrodPatch cpuEndian hostOS hostCPU inf 103 | syn keyword nimrodBuiltin neginf nan QuitSuccess QuitFailure dbgLineHook stdin 104 | syn keyword nimrodBuiltin stdout stderr defined new high low sizeof succ pred 105 | syn keyword nimrodBuiltin inc dec newSeq len incl excl card ord chr ze ze64 106 | syn keyword nimrodBuiltin toU8 toU16 toU32 abs min max add repr 107 | syn match nimrodBuiltin "\" 108 | syn keyword nimrodBuiltin toFloat toBiggestFloat toInt toBiggestInt addQuitProc 109 | syn keyword nimrodBuiltin copy setLen newString zeroMem copyMem moveMem 110 | syn keyword nimrodBuiltin equalMem alloc alloc0 realloc dealloc setLen assert 111 | syn keyword nimrodBuiltin swap getRefcount getCurrentException Msg 112 | syn keyword nimrodBuiltin getOccupiedMem getFreeMem getTotalMem isNil seqToPtr 113 | syn keyword nimrodBuiltin find pop GC_disable GC_enable GC_fullCollect 114 | syn keyword nimrodBuiltin GC_setStrategy GC_enableMarkAnd Sweep 115 | syn keyword nimrodBuiltin GC_disableMarkAnd Sweep GC_getStatistics GC_ref 116 | syn keyword nimrodBuiltin GC_ref GC_ref GC_unref GC_unref GC_unref quit 117 | syn keyword nimrodBuiltin OpenFile OpenFile CloseFile EndOfFile readChar 118 | syn keyword nimrodBuiltin FlushFile readFile write readLine writeln writeln 119 | syn keyword nimrodBuiltin getFileSize ReadBytes ReadChars readBuffer writeBytes 120 | syn keyword nimrodBuiltin writeChars writeBuffer setFilePos getFilePos 121 | syn keyword nimrodBuiltin fileHandle countdown countup items lines 122 | endif 123 | 124 | if exists("nimrod_highlight_exceptions") 125 | " builtin exceptions and warnings 126 | syn keyword nimrodException E_Base EAsynch ESynch ESystem EIO EOS 127 | syn keyword nimrodException ERessourceExhausted EArithmetic EDivByZero 128 | syn keyword nimrodException EOverflow EAccessViolation EAssertionFailed 129 | syn keyword nimrodException EControlC EInvalidValue EOutOfMemory EInvalidIndex 130 | syn keyword nimrodException EInvalidField EOutOfRange EStackOverflow 131 | syn keyword nimrodException ENoExceptionToReraise EInvalidObjectAssignment 132 | syn keyword nimrodException EInvalidObject 133 | endif 134 | 135 | if exists("nimrod_highlight_space_errors") 136 | " trailing whitespace 137 | syn match nimrodSpaceError display excludenl "\S\s\+$"ms=s+1 138 | " mixed tabs and spaces 139 | syn match nimrodSpaceError display " \+\t" 140 | syn match nimrodSpaceError display "\t\+ " 141 | endif 142 | 143 | syn sync match nimrodSync grouphere NONE "):$" 144 | syn sync maxlines=200 145 | syn sync minlines=2000 146 | 147 | if version >= 508 || !exists("did_nimrod_syn_inits") 148 | if version <= 508 149 | let did_nimrod_syn_inits = 1 150 | command -nargs=+ HiLink hi link 151 | else 152 | command -nargs=+ HiLink hi def link 153 | endif 154 | 155 | " The default methods for highlighting. Can be overridden later 156 | HiLink nimrodBrackets Operator 157 | HiLink nimrodStatement Statement 158 | HiLink nimrodFunction Function 159 | HiLink nimrodConditional Conditional 160 | HiLink nimrodRepeat Repeat 161 | HiLink nimrodString String 162 | HiLink nimrodRawString String 163 | HiLink nimrodEscape Special 164 | HiLink nimrodOperator Operator 165 | HiLink nimrodPreCondit PreCondit 166 | HiLink nimrodComment Comment 167 | HiLink nimrodTodo Todo 168 | HiLink nimrodDecorator Define 169 | if exists("nimrod_highlight_numbers") 170 | HiLink nimrodNumber Number 171 | endif 172 | if exists("nimrod_highlight_builtins") 173 | HiLink nimrodBuiltin Number 174 | endif 175 | if exists("nimrod_highlight_exceptions") 176 | HiLink nimrodException Exception 177 | endif 178 | if exists("nimrod_highlight_space_errors") 179 | HiLink nimrodSpaceError Error 180 | endif 181 | 182 | delcommand HiLink 183 | endif 184 | 185 | let b:current_syntax = "nimrod" 186 | 187 | 188 | 189 | -------------------------------------------------------------------------------- /syntax/ruby.vim: -------------------------------------------------------------------------------- 1 | set softtabstop=2 2 | set shiftwidth=2 " for autoindent 3 | -------------------------------------------------------------------------------- /syntax/rust.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: Rust 3 | " Maintainer: Patrick Walton 4 | " Maintainer: Ben Blum 5 | " Last Change: 2012 Jul 06 6 | 7 | if version < 600 8 | syntax clear 9 | elseif exists("b:current_syntax") 10 | finish 11 | endif 12 | 13 | syn keyword rustAssert assert 14 | syn match rustAssert "assert\(\w\)*" 15 | syn keyword rustKeyword alt as break 16 | syn keyword rustKeyword check claim cont const copy do drop else export extern fail 17 | syn keyword rustKeyword for if impl import in let log 18 | syn keyword rustKeyword loop mod mut new of pure 19 | syn keyword rustKeyword ret self to unchecked 20 | syn match rustKeyword "unsafe" " Allows also matching unsafe::foo() 21 | syn keyword rustKeyword use while with 22 | " FIXME: Scoped impl's name is also fallen in this category 23 | syn keyword rustKeyword mod iface trait class enum type nextgroup=rustIdentifier skipwhite 24 | syn keyword rustKeyword fn nextgroup=rustFuncName skipwhite 25 | 26 | syn match rustIdentifier "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained 27 | syn match rustFuncName "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained 28 | 29 | " Reserved words 30 | syn keyword rustKeyword m32 m64 m128 f80 f16 f128 31 | 32 | syn keyword rustType any int uint float char bool u8 u16 u32 u64 f32 33 | syn keyword rustType f64 i8 i16 i32 i64 str 34 | syn keyword rustType option either 35 | 36 | " Types from libc 37 | syn keyword rustType c_float c_double c_void FILE fpos_t 38 | syn keyword rustType DIR dirent 39 | syn keyword rustType c_char c_schar c_uchar 40 | syn keyword rustType c_short c_ushort c_int c_uint c_long c_ulong 41 | syn keyword rustType size_t ptrdiff_t clock_t time_t 42 | syn keyword rustType c_longlong c_ulonglong intptr_t uintptr_t 43 | syn keyword rustType off_t dev_t ino_t pid_t mode_t ssize_t 44 | 45 | syn keyword rustBoolean true false 46 | 47 | syn keyword rustConstant some none " option 48 | syn keyword rustConstant left right " either 49 | syn keyword rustConstant ok err " result 50 | syn keyword rustConstant success failure " task 51 | syn keyword rustConstant cons nil " list 52 | " syn keyword rustConstant empty node " tree 53 | 54 | " Constants from libc 55 | syn keyword rustConstant EXIT_FAILURE EXIT_SUCCESS RAND_MAX 56 | syn keyword rustConstant EOF SEEK_SET SEEK_CUR SEEK_END _IOFBF _IONBF 57 | syn keyword rustConstant _IOLBF BUFSIZ FOPEN_MAX FILENAME_MAX L_tmpnam 58 | syn keyword rustConstant TMP_MAX O_RDONLY O_WRONLY O_RDWR O_APPEND O_CREAT 59 | syn keyword rustConstant O_EXCL O_TRUNC S_IFIFO S_IFCHR S_IFBLK S_IFDIR 60 | syn keyword rustConstant S_IFREG S_IFMT S_IEXEC S_IWRITE S_IREAD S_IRWXU 61 | syn keyword rustConstant S_IXUSR S_IWUSR S_IRUSR F_OK R_OK W_OK X_OK 62 | syn keyword rustConstant STDIN_FILENO STDOUT_FILENO STDERR_FILENO 63 | 64 | " If foo::bar changes to foo.bar, change this ("::" to "\."). 65 | " If foo::bar changes to Foo::bar, change this (first "\w" to "\u"). 66 | syn match rustModPath "\w\(\w\)*::[^<]"he=e-3,me=e-3 67 | syn match rustModPathSep "::" 68 | 69 | syn region rustString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=rustTodo 70 | 71 | syn region rustAttribute start="#\[" end="\]" contains=rustString 72 | 73 | " Number literals 74 | syn match rustNumber display "\<[0-9][0-9_]*\>" 75 | syn match rustNumber display "\<[0-9][0-9_]*\(u\|u8\|u16\|u32\|u64\)\>" 76 | syn match rustNumber display "\<[0-9][0-9_]*\(i8\|i16\|i32\|i64\)\>" 77 | 78 | syn match rustHexNumber display "\<0x[a-fA-F0-9_]\+\>" 79 | syn match rustHexNumber display "\<0x[a-fA-F0-9_]\+\(u\|u8\|u16\|u32\|u64\)\>" 80 | syn match rustHexNumber display "\<0x[a-fA-F0-9_]\+\(i8\|i16\|i32\|i64\)\>" 81 | syn match rustBinNumber display "\<0b[01_]\+\>" 82 | syn match rustBinNumber display "\<0b[01_]\+\(u\|u8\|u16\|u32\|u64\)\>" 83 | syn match rustBinNumber display "\<0b[01_]\+\(i8\|i16\|i32\|i64\)\>" 84 | 85 | syn match rustFloat display "\<[0-9][0-9_]*\(f\|f32\|f64\)\>" 86 | syn match rustFloat display "\<[0-9][0-9_]*\([eE][+-]\=[0-9_]\+\)\>" 87 | syn match rustFloat display "\<[0-9][0-9_]*\([eE][+-]\=[0-9_]\+\)\(f\|f32\|f64\)\>" 88 | syn match rustFloat display "\<[0-9][0-9_]*\.[0-9_]\+\>" 89 | syn match rustFloat display "\<[0-9][0-9_]*\.[0-9_]\+\(f\|f32\|f64\)\>" 90 | syn match rustFloat display "\<[0-9][0-9_]*\.[0-9_]\+\%([eE][+-]\=[0-9_]\+\)\>" 91 | syn match rustFloat display "\<[0-9][0-9_]*\.[0-9_]\+\%([eE][+-]\=[0-9_]\+\)\(f\|f32\|f64\)\>" 92 | 93 | syn match rustCharacter "'\([^'\\]\|\\\(['nrt\\\"]\|x\x\{2}\|u\x\{4}\|U\x\{8}\)\)'" 94 | 95 | syn region rustComment start="/\*" end="\*/" contains=rustComment,rustTodo 96 | syn region rustComment start="//" skip="\\$" end="$" contains=rustTodo keepend 97 | 98 | syn keyword rustTodo TODO FIXME XXX NB 99 | 100 | hi def link rustHexNumber rustNumber 101 | hi def link rustBinNumber rustNumber 102 | 103 | hi def link rustString String 104 | hi def link rustCharacter Character 105 | hi def link rustNumber Number 106 | hi def link rustBoolean Boolean 107 | hi def link rustConstant Constant 108 | hi def link rustFloat Float 109 | hi def link rustAssert Keyword 110 | hi def link rustKeyword Keyword 111 | hi def link rustIdentifier Identifier 112 | hi def link rustModPath Include 113 | hi def link rustFuncName Function 114 | hi def link rustComment Comment 115 | hi def link rustMacro Macro 116 | hi def link rustType Type 117 | hi def link rustTodo Todo 118 | hi def link rustAttribute PreProc 119 | " Other Suggestions: 120 | " hi def link rustModPathSep Conceal 121 | " hi rustAssert ctermfg=yellow 122 | 123 | syn sync minlines=200 124 | syn sync maxlines=500 125 | 126 | let b:current_syntax = "rust" 127 | -------------------------------------------------------------------------------- /syntax/text.vim: -------------------------------------------------------------------------------- 1 | " Vim syntax file 2 | " Language: Text with light markup conventions 3 | " Author: John MacFarlane 4 | 5 | syn spell toplevel 6 | syn case ignore 7 | syn sync linebreaks=1 8 | 9 | "define Markdown groups 10 | syn match Keyword "^\s*[-*+]\s\+" " list item 11 | syn match Keyword "^\s*\d\+\.\s\+" " list item 12 | syn region Operator start=/`/ end=/`/ 13 | "syn region Operator start=/\s*``[^`]*/ skip=/`/ end=/[^`]*``\s*/ 14 | syn region Operator start=/^```/ end=/^``` *$/ 15 | syn region Comment start=/^\s*>/ end=/$/ 16 | syn region Function start=// 17 | 18 | " headings 19 | syn region Header start="^##* " end="\($\|#\+\)" 20 | syn match Header /^.\+\n=\+$/ 21 | syn match Header /^.\+\n-\+$/ 22 | 23 | " inline footnotes 24 | syn region Comment start=/\^\[/ skip=/\[[^]]*\]/ end=/\]/ 25 | 26 | " yaml headers 27 | syn region Comment start=/^--- *$/ end=/^... *$/ 28 | 29 | " links 30 | "syn region String start=/\[/ end=/\]/ 31 | 32 | " code blocks - FIX: captures continuations on lists 33 | " syn region Operator start=/^\s*\n\( \|\t\)/ end=/.*\n\s*\n/ 34 | 35 | " math 36 | syn region Operator start=/\$[^ \t\n0-9$]/ end=/\$/ " inline math 37 | syn region Operator start=/\$\$/ end=/\$\$/ " display math 38 | 39 | hi Header cterm=bold term=bold gui=bold 40 | 41 | let b:current_syntax = "text" 42 | 43 | -------------------------------------------------------------------------------- /syntax/worddiff.vim: -------------------------------------------------------------------------------- 1 | syn region diffRemoved start=/\[-/ end=/-\]/ 2 | syn region diffAdded start=/{+/ end=/+}/ 3 | syn match diffFile "^diff.*" 4 | syn match diffIndexLine "^index.*" 5 | syn match diffLine "^\(+++\|---\|@@\).*" 6 | 7 | hi diffAdded cterm=bold ctermfg=DarkGreen 8 | hi diffRemoved cterm=bold ctermfg=DarkRed 9 | hi diffFile cterm=NONE ctermfg=DarkBlue 10 | hi diffIndexLine cterm=NONE ctermfg=Grey 11 | hi diffLine cterm=NONE ctermfg=Grey 12 | --------------------------------------------------------------------------------