commit
d44eb467d0
268 changed files with 8378 additions and 2204 deletions
21
LICENSE
Normal file
21
LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2016 Amir Salihefendic
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
15
README.md
15
README.md
|
@ -7,7 +7,7 @@ There are two versions:
|
||||||
* **Basic**: If you want something small just copy [basic.vim](https://github.com/amix/vimrc/blob/master/vimrcs/basic.vim) into your ~/.vimrc and you will have a great basic setup
|
* **Basic**: If you want something small just copy [basic.vim](https://github.com/amix/vimrc/blob/master/vimrcs/basic.vim) into your ~/.vimrc and you will have a great basic setup
|
||||||
* **Awesome**: This includes a ton of useful plugins, color schemes and configurations
|
* **Awesome**: This includes a ton of useful plugins, color schemes and configurations
|
||||||
|
|
||||||
I would of course recommend using the awesome version.
|
I would of course recommend using the awesome version.c
|
||||||
|
|
||||||
## How to install the Awesome version?
|
## How to install the Awesome version?
|
||||||
The awesome version includes a lot of great plugins, configurations and color schemes that make Vim a lot better. To install it simply do following:
|
The awesome version includes a lot of great plugins, configurations and color schemes that make Vim a lot better. To install it simply do following:
|
||||||
|
@ -15,8 +15,6 @@ The awesome version includes a lot of great plugins, configurations and color sc
|
||||||
git clone https://github.com/amix/vimrc.git ~/.vim_runtime
|
git clone https://github.com/amix/vimrc.git ~/.vim_runtime
|
||||||
sh ~/.vim_runtime/install_awesome_vimrc.sh
|
sh ~/.vim_runtime/install_awesome_vimrc.sh
|
||||||
|
|
||||||
The taglist.vim plugin will require ctags (http://ctags.sourceforge.net) (Debian: apt-get install ctags)
|
|
||||||
|
|
||||||
I also recommend using [Source Code Pro font from Adobe](http://store1.adobe.com/cfusion/store/html/index.cfm?event=displayFontPackage&code=1960) (it's free and awesome font for writing and programming). The Awesome vimrc is already setup to try to use it
|
I also recommend using [Source Code Pro font from Adobe](http://store1.adobe.com/cfusion/store/html/index.cfm?event=displayFontPackage&code=1960) (it's free and awesome font for writing and programming). The Awesome vimrc is already setup to try to use it
|
||||||
|
|
||||||
## How to install the Basic version?
|
## How to install the Basic version?
|
||||||
|
@ -75,7 +73,6 @@ I recommend reading the docs of these plugins to understand them better. Each of
|
||||||
* [open_file_under_cursor.vim](https://github.com/amix/open_file_under_cursor.vim): Open file under cursor when pressing `gf`
|
* [open_file_under_cursor.vim](https://github.com/amix/open_file_under_cursor.vim): Open file under cursor when pressing `gf`
|
||||||
* [zencoding](https://github.com/mattn/emmet-vim): Expanding abbreviation like zen-coding, very useful for editing XML, HTML.
|
* [zencoding](https://github.com/mattn/emmet-vim): Expanding abbreviation like zen-coding, very useful for editing XML, HTML.
|
||||||
* [vim-indent-object](https://github.com/michaeljsmith/vim-indent-object): Defines a new text object representing lines of code at the same indent level. Useful for python/vim scripts
|
* [vim-indent-object](https://github.com/michaeljsmith/vim-indent-object): Defines a new text object representing lines of code at the same indent level. Useful for python/vim scripts
|
||||||
* [taglist.vim](https://github.com/vim-scripts/taglist.vim): Source code browser (supports C/C++, java, perl, python, tcl, sql, php, etc)
|
|
||||||
* [vim-multiple-cursors](https://github.com/terryma/vim-multiple-cursors): Sublime Text style multiple selections for Vim, CTRL+N is remapped to CTRL+S (due to YankRing)
|
* [vim-multiple-cursors](https://github.com/terryma/vim-multiple-cursors): Sublime Text style multiple selections for Vim, CTRL+N is remapped to CTRL+S (due to YankRing)
|
||||||
* [vim-expand-region](https://github.com/terryma/vim-expand-region): Allows you to visually select increasingly larger regions of text using the same key combination.
|
* [vim-expand-region](https://github.com/terryma/vim-expand-region): Allows you to visually select increasingly larger regions of text using the same key combination.
|
||||||
* [vim-airline](https://github.com/bling/vim-airline): Lean & mean status/tabline for vim that's light as air (replacing powerline)
|
* [vim-airline](https://github.com/bling/vim-airline): Lean & mean status/tabline for vim that's light as air (replacing powerline)
|
||||||
|
@ -102,7 +99,7 @@ Remove all clutter and focus only on the essential. Similar to iA Writer or Writ
|
||||||
* [vim-bundle-mako](https://github.com/sophacles/vim-bundle-mako)
|
* [vim-bundle-mako](https://github.com/sophacles/vim-bundle-mako)
|
||||||
* [vim-markdown](https://github.com/tpope/vim-markdown)
|
* [vim-markdown](https://github.com/tpope/vim-markdown)
|
||||||
* [nginx.vim](https://github.com/vim-scripts/nginx.vim): Highlights configuration files for nginx
|
* [nginx.vim](https://github.com/vim-scripts/nginx.vim): Highlights configuration files for nginx
|
||||||
* [vim-golang](https://github.com/jnwhiteh/vim-golang)
|
* [vim-go](https://github.com/fatih/vim-go)
|
||||||
|
|
||||||
|
|
||||||
## How to include your own stuff?
|
## How to include your own stuff?
|
||||||
|
@ -137,7 +134,7 @@ Open [ctrlp.vim](https://github.com/kien/ctrlp.vim) plugin:
|
||||||
|
|
||||||
let g:ctrlp_map = '<c-f>'
|
let g:ctrlp_map = '<c-f>'
|
||||||
|
|
||||||
Open [PeepOpen](https://peepcode.com/products/peepopen) plugin:
|
Open [PeepOpen](http://topfunky.github.io/PeepOpen/) plugin:
|
||||||
|
|
||||||
map <leader>j :PeepOpen<cr>
|
map <leader>j :PeepOpen<cr>
|
||||||
|
|
||||||
|
@ -327,3 +324,9 @@ Vimscript mappings:
|
||||||
* [Folding in Vim](http://amix.dk/blog/post/19132#Folding-in-Vim)
|
* [Folding in Vim](http://amix.dk/blog/post/19132#Folding-in-Vim)
|
||||||
* [
|
* [
|
||||||
Zen room for Vim: Focusing only on the essential](http://amix.dk/blog/post/19744#zenroom-for-Vim-Focsuing-only-on-the-essential)
|
Zen room for Vim: Focusing only on the essential](http://amix.dk/blog/post/19744#zenroom-for-Vim-Focsuing-only-on-the-essential)
|
||||||
|
|
||||||
|
## How to uninstall
|
||||||
|
Do following:
|
||||||
|
* Remove `~/.vim_runtime`
|
||||||
|
* Remove any lines that refernce `.vim_runtime` in your `~/.vimrc`
|
||||||
|
|
||||||
|
|
89
sources_non_forked/ack.vim/LICENSE
Normal file
89
sources_non_forked/ack.vim/LICENSE
Normal file
|
@ -0,0 +1,89 @@
|
||||||
|
ack.vim is distributed under the same license terms as Vim itself, which you
|
||||||
|
can find in full with `:help license` within Vim, or copied in full herein.
|
||||||
|
|
||||||
|
Copyright (c) 2007-2015 Antoine Imbert <antoine.imbert+ackvim@gmail.com>
|
||||||
|
and contributors.
|
||||||
|
|
||||||
|
Maintainers may be contacted via GitHub Issues at:
|
||||||
|
|
||||||
|
https://github.com/mileszs/ack.vim/issues
|
||||||
|
|
||||||
|
|
||||||
|
VIM LICENSE
|
||||||
|
|
||||||
|
I) There are no restrictions on distributing unmodified copies of Vim except
|
||||||
|
that they must include this license text. You can also distribute
|
||||||
|
unmodified parts of Vim, likewise unrestricted except that they must
|
||||||
|
include this license text. You are also allowed to include executables
|
||||||
|
that you made from the unmodified Vim sources, plus your own usage
|
||||||
|
examples and Vim scripts.
|
||||||
|
|
||||||
|
II) It is allowed to distribute a modified (or extended) version of Vim,
|
||||||
|
including executables and/or source code, when the following four
|
||||||
|
conditions are met:
|
||||||
|
1) This license text must be included unmodified.
|
||||||
|
2) The modified Vim must be distributed in one of the following five ways:
|
||||||
|
a) If you make changes to Vim yourself, you must clearly describe in
|
||||||
|
the distribution how to contact you. When the maintainer asks you
|
||||||
|
(in any way) for a copy of the modified Vim you distributed, you
|
||||||
|
must make your changes, including source code, available to the
|
||||||
|
maintainer without fee. The maintainer reserves the right to
|
||||||
|
include your changes in the official version of Vim. What the
|
||||||
|
maintainer will do with your changes and under what license they
|
||||||
|
will be distributed is negotiable. If there has been no negotiation
|
||||||
|
then this license, or a later version, also applies to your changes.
|
||||||
|
The current maintainer is Bram Moolenaar <Bram@vim.org>. If this
|
||||||
|
changes it will be announced in appropriate places (most likely
|
||||||
|
vim.sf.net, www.vim.org and/or comp.editors). When it is completely
|
||||||
|
impossible to contact the maintainer, the obligation to send him
|
||||||
|
your changes ceases. Once the maintainer has confirmed that he has
|
||||||
|
received your changes they will not have to be sent again.
|
||||||
|
b) If you have received a modified Vim that was distributed as
|
||||||
|
mentioned under a) you are allowed to further distribute it
|
||||||
|
unmodified, as mentioned at I). If you make additional changes the
|
||||||
|
text under a) applies to those changes.
|
||||||
|
c) Provide all the changes, including source code, with every copy of
|
||||||
|
the modified Vim you distribute. This may be done in the form of a
|
||||||
|
context diff. You can choose what license to use for new code you
|
||||||
|
add. The changes and their license must not restrict others from
|
||||||
|
making their own changes to the official version of Vim.
|
||||||
|
d) When you have a modified Vim which includes changes as mentioned
|
||||||
|
under c), you can distribute it without the source code for the
|
||||||
|
changes if the following three conditions are met:
|
||||||
|
- The license that applies to the changes permits you to distribute
|
||||||
|
the changes to the Vim maintainer without fee or restriction, and
|
||||||
|
permits the Vim maintainer to include the changes in the official
|
||||||
|
version of Vim without fee or restriction.
|
||||||
|
- You keep the changes for at least three years after last
|
||||||
|
distributing the corresponding modified Vim. When the maintainer
|
||||||
|
or someone who you distributed the modified Vim to asks you (in
|
||||||
|
any way) for the changes within this period, you must make them
|
||||||
|
available to him.
|
||||||
|
- You clearly describe in the distribution how to contact you. This
|
||||||
|
contact information must remain valid for at least three years
|
||||||
|
after last distributing the corresponding modified Vim, or as long
|
||||||
|
as possible.
|
||||||
|
e) When the GNU General Public License (GPL) applies to the changes,
|
||||||
|
you can distribute the modified Vim under the GNU GPL version 2 or
|
||||||
|
any later version.
|
||||||
|
3) A message must be added, at least in the output of the ":version"
|
||||||
|
command and in the intro screen, such that the user of the modified Vim
|
||||||
|
is able to see that it was modified. When distributing as mentioned
|
||||||
|
under 2)e) adding the message is only required for as far as this does
|
||||||
|
not conflict with the license used for the changes.
|
||||||
|
4) The contact information as required under 2)a) and 2)d) must not be
|
||||||
|
removed or changed, except that the person himself can make
|
||||||
|
corrections.
|
||||||
|
|
||||||
|
III) If you distribute a modified version of Vim, you are encouraged to use
|
||||||
|
the Vim license for your changes and make them available to the
|
||||||
|
maintainer, including the source code. The preferred way to do this is
|
||||||
|
by e-mail or by uploading the files to a server and e-mailing the URL.
|
||||||
|
If the number of changes is small (e.g., a modified Makefile) e-mailing a
|
||||||
|
context diff will do. The e-mail address to be used is
|
||||||
|
<maintainer@vim.org>
|
||||||
|
|
||||||
|
IV) It is not allowed to remove this license from the distribution of the Vim
|
||||||
|
sources, parts of it or from a modified version. You may use this
|
||||||
|
license for previous Vim releases instead of the license that they came
|
||||||
|
with, at your option.
|
|
@ -129,15 +129,6 @@ optional background search execution with [vim-dispatch], and auto-previewing.
|
||||||
|
|
||||||
Please see [the Github releases page][releases].
|
Please see [the Github releases page][releases].
|
||||||
|
|
||||||
### 1.0.9 (unreleased)
|
|
||||||
|
|
||||||
* Fix location list and layout of quickfix when using Dispatch (#154)
|
|
||||||
* Fix the quick help overlay clobbering the list mappings
|
|
||||||
* Fix `:AckFile` when using Dispatch
|
|
||||||
* Restore original `'makeprg'` and `'errorformat'` when using Dispatch
|
|
||||||
* Arrow keys also work for auto-preview (#158)
|
|
||||||
* Internal refactoring and clean-up
|
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
This plugin is derived from Antoine Imbert's blog post [Ack and Vim
|
This plugin is derived from Antoine Imbert's blog post [Ack and Vim
|
||||||
|
|
|
@ -67,6 +67,9 @@ In the quickfix window, you can use:
|
||||||
gv to open in vertical split silently
|
gv to open in vertical split silently
|
||||||
q to close the quickfix window
|
q to close the quickfix window
|
||||||
|
|
||||||
|
### Related Plugin ###
|
||||||
|
[vim-ag-anything](https://github.com/Chun-Yang/vim-ag-anything) adds an 'ga' action to search any text object.
|
||||||
|
|
||||||
### Acknowledgements ###
|
### Acknowledgements ###
|
||||||
|
|
||||||
This Vim plugin is derived (and by derived, I mean copied, almost entirely)
|
This Vim plugin is derived (and by derived, I mean copied, almost entirely)
|
||||||
|
|
|
@ -33,8 +33,8 @@ function! s:get_color(group, attr)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:set_color(group, attr, color)
|
function! s:set_color(group, attr, color)
|
||||||
let gui = has('gui_running')
|
let gui = a:color =~ '^#'
|
||||||
execute printf("hi %s %s%s=%s", a:group, gui ? 'gui' : 'cterm', a:attr, a:color)
|
execute printf('hi %s %s%s=%s', a:group, gui ? 'gui' : 'cterm', a:attr, a:color)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:blank(repel)
|
function! s:blank(repel)
|
||||||
|
@ -106,7 +106,7 @@ function! s:resize_pads()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:tranquilize()
|
function! s:tranquilize()
|
||||||
let bg = s:get_color('Normal', 'bg')
|
let bg = s:get_color('Normal', 'bg#')
|
||||||
for grp in ['NonText', 'FoldColumn', 'ColorColumn', 'VertSplit',
|
for grp in ['NonText', 'FoldColumn', 'ColorColumn', 'VertSplit',
|
||||||
\ 'StatusLine', 'StatusLineNC', 'SignColumn']
|
\ 'StatusLine', 'StatusLineNC', 'SignColumn']
|
||||||
" -1 on Vim / '' on GVim
|
" -1 on Vim / '' on GVim
|
||||||
|
@ -207,13 +207,13 @@ function! s:goyo_on(dim)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" vim-airline
|
" vim-airline
|
||||||
let t:goyo_disabled_airline = exists("#airline")
|
let t:goyo_disabled_airline = exists('#airline')
|
||||||
if t:goyo_disabled_airline
|
if t:goyo_disabled_airline
|
||||||
AirlineToggle
|
AirlineToggle
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" vim-powerline
|
" vim-powerline
|
||||||
let t:goyo_disabled_powerline = exists("#PowerlineMain")
|
let t:goyo_disabled_powerline = exists('#PowerlineMain')
|
||||||
if t:goyo_disabled_powerline
|
if t:goyo_disabled_powerline
|
||||||
augroup PowerlineMain
|
augroup PowerlineMain
|
||||||
autocmd!
|
autocmd!
|
||||||
|
@ -222,7 +222,7 @@ function! s:goyo_on(dim)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" lightline.vim
|
" lightline.vim
|
||||||
let t:goyo_disabled_lightline = exists('#LightLine')
|
let t:goyo_disabled_lightline = exists('#lightline')
|
||||||
if t:goyo_disabled_lightline
|
if t:goyo_disabled_lightline
|
||||||
silent! call lightline#disable()
|
silent! call lightline#disable()
|
||||||
endif
|
endif
|
||||||
|
@ -330,7 +330,7 @@ function! s:goyo_off()
|
||||||
let &winheight = wh
|
let &winheight = wh
|
||||||
|
|
||||||
for [k, v] in items(goyo_revert)
|
for [k, v] in items(goyo_revert)
|
||||||
execute printf("let &%s = %s", k, string(v))
|
execute printf('let &%s = %s', k, string(v))
|
||||||
endfor
|
endfor
|
||||||
execute 'colo '. get(g:, 'colors_name', 'default')
|
execute 'colo '. get(g:, 'colors_name', 'default')
|
||||||
|
|
||||||
|
@ -344,7 +344,7 @@ function! s:goyo_off()
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if goyo_disabled_airline && !exists("#airline")
|
if goyo_disabled_airline && !exists('#airline')
|
||||||
AirlineToggle
|
AirlineToggle
|
||||||
" For some reason, Airline requires two refreshes to avoid display
|
" For some reason, Airline requires two refreshes to avoid display
|
||||||
" artifacts
|
" artifacts
|
||||||
|
@ -352,7 +352,7 @@ function! s:goyo_off()
|
||||||
silent! AirlineRefresh
|
silent! AirlineRefresh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if goyo_disabled_powerline && !exists("#PowerlineMain")
|
if goyo_disabled_powerline && !exists('#PowerlineMain')
|
||||||
doautocmd PowerlineStartup VimEnter
|
doautocmd PowerlineStartup VimEnter
|
||||||
silent! PowerlineReloadColorscheme
|
silent! PowerlineReloadColorscheme
|
||||||
endif
|
endif
|
||||||
|
|
10
sources_non_forked/nginx-vim-syntax/README.md
Normal file
10
sources_non_forked/nginx-vim-syntax/README.md
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# nginx syntax files for Vim.
|
||||||
|
|
||||||
|
*NOTE*: As of Dec. 2013, these scripts are maintained in the "contrib" directory of the Nginx source:
|
||||||
|
|
||||||
|
* http://hg.nginx.org/nginx/rev/f38043bd15f5
|
||||||
|
|
||||||
|
You can see the original vim.org version here:
|
||||||
|
|
||||||
|
* http://www.vim.org/scripts/script.php?script_id=1886
|
||||||
|
|
4
sources_non_forked/nginx-vim-syntax/ftdetect/nginx.vim
Normal file
4
sources_non_forked/nginx-vim-syntax/ftdetect/nginx.vim
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
au BufRead,BufNewFile *.nginx set ft=nginx
|
||||||
|
au BufRead,BufNewFile */etc/nginx/* set ft=nginx
|
||||||
|
au BufRead,BufNewFile */usr/local/nginx/conf/* set ft=nginx
|
||||||
|
au BufRead,BufNewFile nginx.conf set ft=nginx
|
2
sources_non_forked/nginx-vim/indent/nginx.vim → sources_non_forked/nginx-vim-syntax/indent/nginx.vim
Executable file → Normal file
2
sources_non_forked/nginx-vim/indent/nginx.vim → sources_non_forked/nginx-vim-syntax/indent/nginx.vim
Executable file → Normal file
|
@ -3,6 +3,8 @@ if exists("b:did_indent")
|
||||||
endif
|
endif
|
||||||
let b:did_indent = 1
|
let b:did_indent = 1
|
||||||
|
|
||||||
|
setlocal indentexpr=
|
||||||
|
|
||||||
" cindent actually works for nginx' simple file structure
|
" cindent actually works for nginx' simple file structure
|
||||||
setlocal cindent
|
setlocal cindent
|
||||||
" Just make sure that the comments are not reset as defs would be.
|
" Just make sure that the comments are not reset as defs would be.
|
|
@ -9,12 +9,11 @@ setlocal iskeyword+=.
|
||||||
setlocal iskeyword+=/
|
setlocal iskeyword+=/
|
||||||
setlocal iskeyword+=:
|
setlocal iskeyword+=:
|
||||||
|
|
||||||
syn match ngxVariable '\$\w\w*'
|
syn match ngxVariable '\$\(\w\+\|{\w\+}\)'
|
||||||
syn match ngxVariableBlock '\$\w\w*' contained
|
syn match ngxVariableBlock '\$\(\w\+\|{\w\+}\)' contained
|
||||||
syn match ngxVariableString '\$\w\w*' contained
|
syn match ngxVariableString '\$\(\w\+\|{\w\+}\)' contained
|
||||||
syn region ngxBlock start=+^+ end=+{+ contains=ngxComment,ngxDirectiveBlock,ngxVariableBlock,ngxString oneline
|
syn region ngxBlock start=+^+ end=+{+ skip=+\${+ contains=ngxComment,ngxDirectiveBlock,ngxVariableBlock,ngxString oneline
|
||||||
syn region ngxString start=+"+ end=+"+ skip=+\\\\\|\\"+ contains=ngxVariableString oneline
|
syn region ngxString start=+\z(["']\)+ end=+\z1+ skip=+\\\\\|\\\z1+ contains=ngxVariableString
|
||||||
syn region ngxString start=+'+ end=+'+ skip=+\\\\\|\\'+ contains=ngxVariableString oneline
|
|
||||||
syn match ngxComment ' *#.*$'
|
syn match ngxComment ' *#.*$'
|
||||||
|
|
||||||
syn keyword ngxBoolean on
|
syn keyword ngxBoolean on
|
||||||
|
@ -643,6 +642,46 @@ syn keyword ngxDirectiveThirdParty xss_get
|
||||||
syn keyword ngxDirectiveThirdParty xss_input_types
|
syn keyword ngxDirectiveThirdParty xss_input_types
|
||||||
syn keyword ngxDirectiveThirdParty xss_output_type
|
syn keyword ngxDirectiveThirdParty xss_output_type
|
||||||
|
|
||||||
|
" uWSGI Module <http://wiki.nginx.org/HttpUwsgiModule>
|
||||||
|
" Allows Nginx to interact with uWSGI processes and control what parameters are passed to the process.
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_bind
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_buffer_size
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_buffering
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_buffers
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_busy_buffers_size
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_cache
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_cache_bypass
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_cache_key
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_cache_lock
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_cache_lock_timeout
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_cache_methods
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_cache_min_uses
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_cache_path
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_cache_use_stale
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_cache_valid
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_connect_timeout
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_hide_header
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_ignore_client_abort
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_ignore_headers
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_intercept_errors
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_max_temp_file_size
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_modifier1
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_modifier2
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_next_upstream
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_no_cache
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_param
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_pass
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_pass_header
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_pass_request_body
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_pass_request_headers
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_read_timeout
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_send_timeout
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_store
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_store_access
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_string
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_temp_file_write_size
|
||||||
|
syn keyword ngxDirectiveThirdParty uwsgi_temp_path
|
||||||
|
|
||||||
" highlight
|
" highlight
|
||||||
|
|
||||||
hi link ngxComment Comment
|
hi link ngxComment Comment
|
|
@ -1,7 +0,0 @@
|
||||||
# nginx syntax files for Vim.
|
|
||||||
|
|
||||||
Copied into a directory to play well with pathogen.
|
|
||||||
|
|
||||||
* Original: http://www.vim.org/scripts/script.php?script_id=1886
|
|
||||||
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
au BufRead,BufNewFile /etc/nginx/* set ft=nginx
|
|
||||||
au BufRead,BufNewFile /usr/local/nginx/conf/* set ft=nginx
|
|
|
@ -1,664 +0,0 @@
|
||||||
" Vim syntax file
|
|
||||||
" Language: nginx.conf
|
|
||||||
|
|
||||||
if exists("b:current_syntax")
|
|
||||||
finish
|
|
||||||
end
|
|
||||||
|
|
||||||
setlocal iskeyword+=.
|
|
||||||
setlocal iskeyword+=/
|
|
||||||
setlocal iskeyword+=:
|
|
||||||
|
|
||||||
syn match ngxVariable '\$\w\w*'
|
|
||||||
syn match ngxVariableBlock '\$\w\w*' contained
|
|
||||||
syn match ngxVariableString '\$\w\w*' contained
|
|
||||||
syn region ngxBlock start=+^+ end=+{+ contains=ngxComment,ngxDirectiveBlock,ngxVariableBlock,ngxString oneline
|
|
||||||
syn region ngxString start=+"+ end=+"+ skip=+\\\\\|\\"+ contains=ngxVariableString oneline
|
|
||||||
syn region ngxString start=+'+ end=+'+ skip=+\\\\\|\\'+ contains=ngxVariableString oneline
|
|
||||||
syn match ngxComment ' *#.*$'
|
|
||||||
|
|
||||||
syn keyword ngxBoolean on
|
|
||||||
syn keyword ngxBoolean off
|
|
||||||
|
|
||||||
syn keyword ngxDirectiveBlock http contained
|
|
||||||
syn keyword ngxDirectiveBlock mail contained
|
|
||||||
syn keyword ngxDirectiveBlock events contained
|
|
||||||
syn keyword ngxDirectiveBlock server contained
|
|
||||||
syn keyword ngxDirectiveBlock types contained
|
|
||||||
syn keyword ngxDirectiveBlock location contained
|
|
||||||
syn keyword ngxDirectiveBlock upstream contained
|
|
||||||
syn keyword ngxDirectiveBlock charset_map contained
|
|
||||||
syn keyword ngxDirectiveBlock limit_except contained
|
|
||||||
syn keyword ngxDirectiveBlock if contained
|
|
||||||
syn keyword ngxDirectiveBlock geo contained
|
|
||||||
syn keyword ngxDirectiveBlock map contained
|
|
||||||
|
|
||||||
syn keyword ngxDirectiveImportant include
|
|
||||||
syn keyword ngxDirectiveImportant root
|
|
||||||
syn keyword ngxDirectiveImportant server
|
|
||||||
syn keyword ngxDirectiveImportant server_name
|
|
||||||
syn keyword ngxDirectiveImportant listen
|
|
||||||
syn keyword ngxDirectiveImportant internal
|
|
||||||
syn keyword ngxDirectiveImportant proxy_pass
|
|
||||||
syn keyword ngxDirectiveImportant memcached_pass
|
|
||||||
syn keyword ngxDirectiveImportant fastcgi_pass
|
|
||||||
syn keyword ngxDirectiveImportant try_files
|
|
||||||
|
|
||||||
syn keyword ngxDirectiveControl break
|
|
||||||
syn keyword ngxDirectiveControl return
|
|
||||||
syn keyword ngxDirectiveControl rewrite
|
|
||||||
syn keyword ngxDirectiveControl set
|
|
||||||
|
|
||||||
syn keyword ngxDirectiveError error_page
|
|
||||||
syn keyword ngxDirectiveError post_action
|
|
||||||
|
|
||||||
syn keyword ngxDirectiveDeprecated connections
|
|
||||||
syn keyword ngxDirectiveDeprecated imap
|
|
||||||
syn keyword ngxDirectiveDeprecated open_file_cache_retest
|
|
||||||
syn keyword ngxDirectiveDeprecated optimize_server_names
|
|
||||||
syn keyword ngxDirectiveDeprecated satisfy_any
|
|
||||||
|
|
||||||
syn keyword ngxDirective accept_mutex
|
|
||||||
syn keyword ngxDirective accept_mutex_delay
|
|
||||||
syn keyword ngxDirective access_log
|
|
||||||
syn keyword ngxDirective add_after_body
|
|
||||||
syn keyword ngxDirective add_before_body
|
|
||||||
syn keyword ngxDirective add_header
|
|
||||||
syn keyword ngxDirective addition_types
|
|
||||||
syn keyword ngxDirective aio
|
|
||||||
syn keyword ngxDirective alias
|
|
||||||
syn keyword ngxDirective allow
|
|
||||||
syn keyword ngxDirective ancient_browser
|
|
||||||
syn keyword ngxDirective ancient_browser_value
|
|
||||||
syn keyword ngxDirective auth_basic
|
|
||||||
syn keyword ngxDirective auth_basic_user_file
|
|
||||||
syn keyword ngxDirective auth_http
|
|
||||||
syn keyword ngxDirective auth_http_header
|
|
||||||
syn keyword ngxDirective auth_http_timeout
|
|
||||||
syn keyword ngxDirective autoindex
|
|
||||||
syn keyword ngxDirective autoindex_exact_size
|
|
||||||
syn keyword ngxDirective autoindex_localtime
|
|
||||||
syn keyword ngxDirective charset
|
|
||||||
syn keyword ngxDirective charset_types
|
|
||||||
syn keyword ngxDirective client_body_buffer_size
|
|
||||||
syn keyword ngxDirective client_body_in_file_only
|
|
||||||
syn keyword ngxDirective client_body_in_single_buffer
|
|
||||||
syn keyword ngxDirective client_body_temp_path
|
|
||||||
syn keyword ngxDirective client_body_timeout
|
|
||||||
syn keyword ngxDirective client_header_buffer_size
|
|
||||||
syn keyword ngxDirective client_header_timeout
|
|
||||||
syn keyword ngxDirective client_max_body_size
|
|
||||||
syn keyword ngxDirective connection_pool_size
|
|
||||||
syn keyword ngxDirective create_full_put_path
|
|
||||||
syn keyword ngxDirective daemon
|
|
||||||
syn keyword ngxDirective dav_access
|
|
||||||
syn keyword ngxDirective dav_methods
|
|
||||||
syn keyword ngxDirective debug_connection
|
|
||||||
syn keyword ngxDirective debug_points
|
|
||||||
syn keyword ngxDirective default_type
|
|
||||||
syn keyword ngxDirective degradation
|
|
||||||
syn keyword ngxDirective degrade
|
|
||||||
syn keyword ngxDirective deny
|
|
||||||
syn keyword ngxDirective devpoll_changes
|
|
||||||
syn keyword ngxDirective devpoll_events
|
|
||||||
syn keyword ngxDirective directio
|
|
||||||
syn keyword ngxDirective directio_alignment
|
|
||||||
syn keyword ngxDirective empty_gif
|
|
||||||
syn keyword ngxDirective env
|
|
||||||
syn keyword ngxDirective epoll_events
|
|
||||||
syn keyword ngxDirective error_log
|
|
||||||
syn keyword ngxDirective eventport_events
|
|
||||||
syn keyword ngxDirective expires
|
|
||||||
syn keyword ngxDirective fastcgi_bind
|
|
||||||
syn keyword ngxDirective fastcgi_buffer_size
|
|
||||||
syn keyword ngxDirective fastcgi_buffers
|
|
||||||
syn keyword ngxDirective fastcgi_busy_buffers_size
|
|
||||||
syn keyword ngxDirective fastcgi_cache
|
|
||||||
syn keyword ngxDirective fastcgi_cache_key
|
|
||||||
syn keyword ngxDirective fastcgi_cache_methods
|
|
||||||
syn keyword ngxDirective fastcgi_cache_min_uses
|
|
||||||
syn keyword ngxDirective fastcgi_cache_path
|
|
||||||
syn keyword ngxDirective fastcgi_cache_use_stale
|
|
||||||
syn keyword ngxDirective fastcgi_cache_valid
|
|
||||||
syn keyword ngxDirective fastcgi_catch_stderr
|
|
||||||
syn keyword ngxDirective fastcgi_connect_timeout
|
|
||||||
syn keyword ngxDirective fastcgi_hide_header
|
|
||||||
syn keyword ngxDirective fastcgi_ignore_client_abort
|
|
||||||
syn keyword ngxDirective fastcgi_ignore_headers
|
|
||||||
syn keyword ngxDirective fastcgi_index
|
|
||||||
syn keyword ngxDirective fastcgi_intercept_errors
|
|
||||||
syn keyword ngxDirective fastcgi_max_temp_file_size
|
|
||||||
syn keyword ngxDirective fastcgi_next_upstream
|
|
||||||
syn keyword ngxDirective fastcgi_param
|
|
||||||
syn keyword ngxDirective fastcgi_pass_header
|
|
||||||
syn keyword ngxDirective fastcgi_pass_request_body
|
|
||||||
syn keyword ngxDirective fastcgi_pass_request_headers
|
|
||||||
syn keyword ngxDirective fastcgi_read_timeout
|
|
||||||
syn keyword ngxDirective fastcgi_send_lowat
|
|
||||||
syn keyword ngxDirective fastcgi_send_timeout
|
|
||||||
syn keyword ngxDirective fastcgi_split_path_info
|
|
||||||
syn keyword ngxDirective fastcgi_store
|
|
||||||
syn keyword ngxDirective fastcgi_store_access
|
|
||||||
syn keyword ngxDirective fastcgi_temp_file_write_size
|
|
||||||
syn keyword ngxDirective fastcgi_temp_path
|
|
||||||
syn keyword ngxDirective fastcgi_upstream_fail_timeout
|
|
||||||
syn keyword ngxDirective fastcgi_upstream_max_fails
|
|
||||||
syn keyword ngxDirective flv
|
|
||||||
syn keyword ngxDirective geoip_city
|
|
||||||
syn keyword ngxDirective geoip_country
|
|
||||||
syn keyword ngxDirective google_perftools_profiles
|
|
||||||
syn keyword ngxDirective gzip
|
|
||||||
syn keyword ngxDirective gzip_buffers
|
|
||||||
syn keyword ngxDirective gzip_comp_level
|
|
||||||
syn keyword ngxDirective gzip_disable
|
|
||||||
syn keyword ngxDirective gzip_hash
|
|
||||||
syn keyword ngxDirective gzip_http_version
|
|
||||||
syn keyword ngxDirective gzip_min_length
|
|
||||||
syn keyword ngxDirective gzip_no_buffer
|
|
||||||
syn keyword ngxDirective gzip_proxied
|
|
||||||
syn keyword ngxDirective gzip_static
|
|
||||||
syn keyword ngxDirective gzip_types
|
|
||||||
syn keyword ngxDirective gzip_vary
|
|
||||||
syn keyword ngxDirective gzip_window
|
|
||||||
syn keyword ngxDirective if_modified_since
|
|
||||||
syn keyword ngxDirective ignore_invalid_headers
|
|
||||||
syn keyword ngxDirective image_filter
|
|
||||||
syn keyword ngxDirective image_filter_buffer
|
|
||||||
syn keyword ngxDirective image_filter_jpeg_quality
|
|
||||||
syn keyword ngxDirective image_filter_transparency
|
|
||||||
syn keyword ngxDirective imap_auth
|
|
||||||
syn keyword ngxDirective imap_capabilities
|
|
||||||
syn keyword ngxDirective imap_client_buffer
|
|
||||||
syn keyword ngxDirective index
|
|
||||||
syn keyword ngxDirective ip_hash
|
|
||||||
syn keyword ngxDirective keepalive_requests
|
|
||||||
syn keyword ngxDirective keepalive_timeout
|
|
||||||
syn keyword ngxDirective kqueue_changes
|
|
||||||
syn keyword ngxDirective kqueue_events
|
|
||||||
syn keyword ngxDirective large_client_header_buffers
|
|
||||||
syn keyword ngxDirective limit_conn
|
|
||||||
syn keyword ngxDirective limit_conn_log_level
|
|
||||||
syn keyword ngxDirective limit_rate
|
|
||||||
syn keyword ngxDirective limit_rate_after
|
|
||||||
syn keyword ngxDirective limit_req
|
|
||||||
syn keyword ngxDirective limit_req_log_level
|
|
||||||
syn keyword ngxDirective limit_req_zone
|
|
||||||
syn keyword ngxDirective limit_zone
|
|
||||||
syn keyword ngxDirective lingering_time
|
|
||||||
syn keyword ngxDirective lingering_timeout
|
|
||||||
syn keyword ngxDirective lock_file
|
|
||||||
syn keyword ngxDirective log_format
|
|
||||||
syn keyword ngxDirective log_not_found
|
|
||||||
syn keyword ngxDirective log_subrequest
|
|
||||||
syn keyword ngxDirective map_hash_bucket_size
|
|
||||||
syn keyword ngxDirective map_hash_max_size
|
|
||||||
syn keyword ngxDirective master_process
|
|
||||||
syn keyword ngxDirective memcached_bind
|
|
||||||
syn keyword ngxDirective memcached_buffer_size
|
|
||||||
syn keyword ngxDirective memcached_connect_timeout
|
|
||||||
syn keyword ngxDirective memcached_next_upstream
|
|
||||||
syn keyword ngxDirective memcached_read_timeout
|
|
||||||
syn keyword ngxDirective memcached_send_timeout
|
|
||||||
syn keyword ngxDirective memcached_upstream_fail_timeout
|
|
||||||
syn keyword ngxDirective memcached_upstream_max_fails
|
|
||||||
syn keyword ngxDirective merge_slashes
|
|
||||||
syn keyword ngxDirective min_delete_depth
|
|
||||||
syn keyword ngxDirective modern_browser
|
|
||||||
syn keyword ngxDirective modern_browser_value
|
|
||||||
syn keyword ngxDirective msie_padding
|
|
||||||
syn keyword ngxDirective msie_refresh
|
|
||||||
syn keyword ngxDirective multi_accept
|
|
||||||
syn keyword ngxDirective open_file_cache
|
|
||||||
syn keyword ngxDirective open_file_cache_errors
|
|
||||||
syn keyword ngxDirective open_file_cache_events
|
|
||||||
syn keyword ngxDirective open_file_cache_min_uses
|
|
||||||
syn keyword ngxDirective open_file_cache_valid
|
|
||||||
syn keyword ngxDirective open_log_file_cache
|
|
||||||
syn keyword ngxDirective output_buffers
|
|
||||||
syn keyword ngxDirective override_charset
|
|
||||||
syn keyword ngxDirective perl
|
|
||||||
syn keyword ngxDirective perl_modules
|
|
||||||
syn keyword ngxDirective perl_require
|
|
||||||
syn keyword ngxDirective perl_set
|
|
||||||
syn keyword ngxDirective pid
|
|
||||||
syn keyword ngxDirective pop3_auth
|
|
||||||
syn keyword ngxDirective pop3_capabilities
|
|
||||||
syn keyword ngxDirective port_in_redirect
|
|
||||||
syn keyword ngxDirective postpone_gzipping
|
|
||||||
syn keyword ngxDirective postpone_output
|
|
||||||
syn keyword ngxDirective protocol
|
|
||||||
syn keyword ngxDirective proxy
|
|
||||||
syn keyword ngxDirective proxy_bind
|
|
||||||
syn keyword ngxDirective proxy_buffer
|
|
||||||
syn keyword ngxDirective proxy_buffer_size
|
|
||||||
syn keyword ngxDirective proxy_buffering
|
|
||||||
syn keyword ngxDirective proxy_buffers
|
|
||||||
syn keyword ngxDirective proxy_busy_buffers_size
|
|
||||||
syn keyword ngxDirective proxy_cache
|
|
||||||
syn keyword ngxDirective proxy_cache_key
|
|
||||||
syn keyword ngxDirective proxy_cache_methods
|
|
||||||
syn keyword ngxDirective proxy_cache_min_uses
|
|
||||||
syn keyword ngxDirective proxy_cache_path
|
|
||||||
syn keyword ngxDirective proxy_cache_use_stale
|
|
||||||
syn keyword ngxDirective proxy_cache_valid
|
|
||||||
syn keyword ngxDirective proxy_connect_timeout
|
|
||||||
syn keyword ngxDirective proxy_headers_hash_bucket_size
|
|
||||||
syn keyword ngxDirective proxy_headers_hash_max_size
|
|
||||||
syn keyword ngxDirective proxy_hide_header
|
|
||||||
syn keyword ngxDirective proxy_ignore_client_abort
|
|
||||||
syn keyword ngxDirective proxy_ignore_headers
|
|
||||||
syn keyword ngxDirective proxy_intercept_errors
|
|
||||||
syn keyword ngxDirective proxy_max_temp_file_size
|
|
||||||
syn keyword ngxDirective proxy_method
|
|
||||||
syn keyword ngxDirective proxy_next_upstream
|
|
||||||
syn keyword ngxDirective proxy_pass_error_message
|
|
||||||
syn keyword ngxDirective proxy_pass_header
|
|
||||||
syn keyword ngxDirective proxy_pass_request_body
|
|
||||||
syn keyword ngxDirective proxy_pass_request_headers
|
|
||||||
syn keyword ngxDirective proxy_read_timeout
|
|
||||||
syn keyword ngxDirective proxy_redirect
|
|
||||||
syn keyword ngxDirective proxy_send_lowat
|
|
||||||
syn keyword ngxDirective proxy_send_timeout
|
|
||||||
syn keyword ngxDirective proxy_set_body
|
|
||||||
syn keyword ngxDirective proxy_set_header
|
|
||||||
syn keyword ngxDirective proxy_ssl_session_reuse
|
|
||||||
syn keyword ngxDirective proxy_store
|
|
||||||
syn keyword ngxDirective proxy_store_access
|
|
||||||
syn keyword ngxDirective proxy_temp_file_write_size
|
|
||||||
syn keyword ngxDirective proxy_temp_path
|
|
||||||
syn keyword ngxDirective proxy_timeout
|
|
||||||
syn keyword ngxDirective proxy_upstream_fail_timeout
|
|
||||||
syn keyword ngxDirective proxy_upstream_max_fails
|
|
||||||
syn keyword ngxDirective random_index
|
|
||||||
syn keyword ngxDirective read_ahead
|
|
||||||
syn keyword ngxDirective real_ip_header
|
|
||||||
syn keyword ngxDirective recursive_error_pages
|
|
||||||
syn keyword ngxDirective request_pool_size
|
|
||||||
syn keyword ngxDirective reset_timedout_connection
|
|
||||||
syn keyword ngxDirective resolver
|
|
||||||
syn keyword ngxDirective resolver_timeout
|
|
||||||
syn keyword ngxDirective rewrite_log
|
|
||||||
syn keyword ngxDirective rtsig_overflow_events
|
|
||||||
syn keyword ngxDirective rtsig_overflow_test
|
|
||||||
syn keyword ngxDirective rtsig_overflow_threshold
|
|
||||||
syn keyword ngxDirective rtsig_signo
|
|
||||||
syn keyword ngxDirective satisfy
|
|
||||||
syn keyword ngxDirective secure_link_secret
|
|
||||||
syn keyword ngxDirective send_lowat
|
|
||||||
syn keyword ngxDirective send_timeout
|
|
||||||
syn keyword ngxDirective sendfile
|
|
||||||
syn keyword ngxDirective sendfile_max_chunk
|
|
||||||
syn keyword ngxDirective server_name_in_redirect
|
|
||||||
syn keyword ngxDirective server_names_hash_bucket_size
|
|
||||||
syn keyword ngxDirective server_names_hash_max_size
|
|
||||||
syn keyword ngxDirective server_tokens
|
|
||||||
syn keyword ngxDirective set_real_ip_from
|
|
||||||
syn keyword ngxDirective smtp_auth
|
|
||||||
syn keyword ngxDirective smtp_capabilities
|
|
||||||
syn keyword ngxDirective smtp_client_buffer
|
|
||||||
syn keyword ngxDirective smtp_greeting_delay
|
|
||||||
syn keyword ngxDirective so_keepalive
|
|
||||||
syn keyword ngxDirective source_charset
|
|
||||||
syn keyword ngxDirective ssi
|
|
||||||
syn keyword ngxDirective ssi_ignore_recycled_buffers
|
|
||||||
syn keyword ngxDirective ssi_min_file_chunk
|
|
||||||
syn keyword ngxDirective ssi_silent_errors
|
|
||||||
syn keyword ngxDirective ssi_types
|
|
||||||
syn keyword ngxDirective ssi_value_length
|
|
||||||
syn keyword ngxDirective ssl
|
|
||||||
syn keyword ngxDirective ssl_certificate
|
|
||||||
syn keyword ngxDirective ssl_certificate_key
|
|
||||||
syn keyword ngxDirective ssl_ciphers
|
|
||||||
syn keyword ngxDirective ssl_client_certificate
|
|
||||||
syn keyword ngxDirective ssl_crl
|
|
||||||
syn keyword ngxDirective ssl_dhparam
|
|
||||||
syn keyword ngxDirective ssl_engine
|
|
||||||
syn keyword ngxDirective ssl_prefer_server_ciphers
|
|
||||||
syn keyword ngxDirective ssl_protocols
|
|
||||||
syn keyword ngxDirective ssl_session_cache
|
|
||||||
syn keyword ngxDirective ssl_session_timeout
|
|
||||||
syn keyword ngxDirective ssl_verify_client
|
|
||||||
syn keyword ngxDirective ssl_verify_depth
|
|
||||||
syn keyword ngxDirective starttls
|
|
||||||
syn keyword ngxDirective stub_status
|
|
||||||
syn keyword ngxDirective sub_filter
|
|
||||||
syn keyword ngxDirective sub_filter_once
|
|
||||||
syn keyword ngxDirective sub_filter_types
|
|
||||||
syn keyword ngxDirective tcp_nodelay
|
|
||||||
syn keyword ngxDirective tcp_nopush
|
|
||||||
syn keyword ngxDirective thread_stack_size
|
|
||||||
syn keyword ngxDirective timeout
|
|
||||||
syn keyword ngxDirective timer_resolution
|
|
||||||
syn keyword ngxDirective types_hash_bucket_size
|
|
||||||
syn keyword ngxDirective types_hash_max_size
|
|
||||||
syn keyword ngxDirective underscores_in_headers
|
|
||||||
syn keyword ngxDirective uninitialized_variable_warn
|
|
||||||
syn keyword ngxDirective use
|
|
||||||
syn keyword ngxDirective user
|
|
||||||
syn keyword ngxDirective userid
|
|
||||||
syn keyword ngxDirective userid_domain
|
|
||||||
syn keyword ngxDirective userid_expires
|
|
||||||
syn keyword ngxDirective userid_mark
|
|
||||||
syn keyword ngxDirective userid_name
|
|
||||||
syn keyword ngxDirective userid_p3p
|
|
||||||
syn keyword ngxDirective userid_path
|
|
||||||
syn keyword ngxDirective userid_service
|
|
||||||
syn keyword ngxDirective valid_referers
|
|
||||||
syn keyword ngxDirective variables_hash_bucket_size
|
|
||||||
syn keyword ngxDirective variables_hash_max_size
|
|
||||||
syn keyword ngxDirective worker_connections
|
|
||||||
syn keyword ngxDirective worker_cpu_affinity
|
|
||||||
syn keyword ngxDirective worker_priority
|
|
||||||
syn keyword ngxDirective worker_processes
|
|
||||||
syn keyword ngxDirective worker_rlimit_core
|
|
||||||
syn keyword ngxDirective worker_rlimit_nofile
|
|
||||||
syn keyword ngxDirective worker_rlimit_sigpending
|
|
||||||
syn keyword ngxDirective worker_threads
|
|
||||||
syn keyword ngxDirective working_directory
|
|
||||||
syn keyword ngxDirective xclient
|
|
||||||
syn keyword ngxDirective xml_entities
|
|
||||||
syn keyword ngxDirective xslt_stylesheet
|
|
||||||
syn keyword ngxDirective xslt_types
|
|
||||||
|
|
||||||
" 3rd party module list:
|
|
||||||
" http://wiki.nginx.org/Nginx3rdPartyModules
|
|
||||||
|
|
||||||
" Accept Language Module <http://wiki.nginx.org/NginxAcceptLanguageModule>
|
|
||||||
" Parses the Accept-Language header and gives the most suitable locale from a list of supported locales.
|
|
||||||
syn keyword ngxDirectiveThirdParty set_from_accept_language
|
|
||||||
|
|
||||||
" Access Key Module <http://wiki.nginx.org/NginxHttpAccessKeyModule>
|
|
||||||
" Denies access unless the request URL contains an access key.
|
|
||||||
syn keyword ngxDirectiveThirdParty accesskey
|
|
||||||
syn keyword ngxDirectiveThirdParty accesskey_arg
|
|
||||||
syn keyword ngxDirectiveThirdParty accesskey_hashmethod
|
|
||||||
syn keyword ngxDirectiveThirdParty accesskey_signature
|
|
||||||
|
|
||||||
" Auth PAM Module <http://web.iti.upv.es/~sto/nginx/>
|
|
||||||
" HTTP Basic Authentication using PAM.
|
|
||||||
syn keyword ngxDirectiveThirdParty auth_pam
|
|
||||||
syn keyword ngxDirectiveThirdParty auth_pam_service_name
|
|
||||||
|
|
||||||
" Cache Purge Module <http://labs.frickle.com/nginx_ngx_cache_purge/>
|
|
||||||
" Module adding ability to purge content from FastCGI and proxy caches.
|
|
||||||
syn keyword ngxDirectiveThirdParty fastcgi_cache_purge
|
|
||||||
syn keyword ngxDirectiveThirdParty proxy_cache_purge
|
|
||||||
|
|
||||||
" Chunkin Module <http://wiki.nginx.org/NginxHttpChunkinModule>
|
|
||||||
" HTTP 1.1 chunked-encoding request body support for Nginx.
|
|
||||||
syn keyword ngxDirectiveThirdParty chunkin
|
|
||||||
syn keyword ngxDirectiveThirdParty chunkin_keepalive
|
|
||||||
syn keyword ngxDirectiveThirdParty chunkin_max_chunks_per_buf
|
|
||||||
syn keyword ngxDirectiveThirdParty chunkin_resume
|
|
||||||
|
|
||||||
" Circle GIF Module <http://wiki.nginx.org/NginxHttpCircleGifModule>
|
|
||||||
" Generates simple circle images with the colors and size specified in the URL.
|
|
||||||
syn keyword ngxDirectiveThirdParty circle_gif
|
|
||||||
syn keyword ngxDirectiveThirdParty circle_gif_max_radius
|
|
||||||
syn keyword ngxDirectiveThirdParty circle_gif_min_radius
|
|
||||||
syn keyword ngxDirectiveThirdParty circle_gif_step_radius
|
|
||||||
|
|
||||||
" Drizzle Module <http://github.com/chaoslawful/drizzle-nginx-module>
|
|
||||||
" Make nginx talk directly to mysql, drizzle, and sqlite3 by libdrizzle.
|
|
||||||
syn keyword ngxDirectiveThirdParty drizzle_connect_timeout
|
|
||||||
syn keyword ngxDirectiveThirdParty drizzle_dbname
|
|
||||||
syn keyword ngxDirectiveThirdParty drizzle_keepalive
|
|
||||||
syn keyword ngxDirectiveThirdParty drizzle_module_header
|
|
||||||
syn keyword ngxDirectiveThirdParty drizzle_pass
|
|
||||||
syn keyword ngxDirectiveThirdParty drizzle_query
|
|
||||||
syn keyword ngxDirectiveThirdParty drizzle_recv_cols_timeout
|
|
||||||
syn keyword ngxDirectiveThirdParty drizzle_recv_rows_timeout
|
|
||||||
syn keyword ngxDirectiveThirdParty drizzle_send_query_timeout
|
|
||||||
syn keyword ngxDirectiveThirdParty drizzle_server
|
|
||||||
|
|
||||||
" Echo Module <http://wiki.nginx.org/NginxHttpEchoModule>
|
|
||||||
" Brings 'echo', 'sleep', 'time', 'exec' and more shell-style goodies to Nginx config file.
|
|
||||||
syn keyword ngxDirectiveThirdParty echo
|
|
||||||
syn keyword ngxDirectiveThirdParty echo_after_body
|
|
||||||
syn keyword ngxDirectiveThirdParty echo_before_body
|
|
||||||
syn keyword ngxDirectiveThirdParty echo_blocking_sleep
|
|
||||||
syn keyword ngxDirectiveThirdParty echo_duplicate
|
|
||||||
syn keyword ngxDirectiveThirdParty echo_end
|
|
||||||
syn keyword ngxDirectiveThirdParty echo_exec
|
|
||||||
syn keyword ngxDirectiveThirdParty echo_flush
|
|
||||||
syn keyword ngxDirectiveThirdParty echo_foreach_split
|
|
||||||
syn keyword ngxDirectiveThirdParty echo_location
|
|
||||||
syn keyword ngxDirectiveThirdParty echo_location_async
|
|
||||||
syn keyword ngxDirectiveThirdParty echo_read_request_body
|
|
||||||
syn keyword ngxDirectiveThirdParty echo_request_body
|
|
||||||
syn keyword ngxDirectiveThirdParty echo_reset_timer
|
|
||||||
syn keyword ngxDirectiveThirdParty echo_sleep
|
|
||||||
syn keyword ngxDirectiveThirdParty echo_subrequest
|
|
||||||
syn keyword ngxDirectiveThirdParty echo_subrequest_async
|
|
||||||
|
|
||||||
" Events Module <http://docs.dutov.org/nginx_modules_events_en.html>
|
|
||||||
" Privides options for start/stop events.
|
|
||||||
syn keyword ngxDirectiveThirdParty on_start
|
|
||||||
syn keyword ngxDirectiveThirdParty on_stop
|
|
||||||
|
|
||||||
" EY Balancer Module <http://github.com/ry/nginx-ey-balancer>
|
|
||||||
" Adds a request queue to Nginx that allows the limiting of concurrent requests passed to the upstream.
|
|
||||||
syn keyword ngxDirectiveThirdParty max_connections
|
|
||||||
syn keyword ngxDirectiveThirdParty max_connections_max_queue_length
|
|
||||||
syn keyword ngxDirectiveThirdParty max_connections_queue_timeout
|
|
||||||
|
|
||||||
" Fancy Indexes Module <https://connectical.com/projects/ngx-fancyindex/wiki>
|
|
||||||
" Like the built-in autoindex module, but fancier.
|
|
||||||
syn keyword ngxDirectiveThirdParty fancyindex
|
|
||||||
syn keyword ngxDirectiveThirdParty fancyindex_exact_size
|
|
||||||
syn keyword ngxDirectiveThirdParty fancyindex_footer
|
|
||||||
syn keyword ngxDirectiveThirdParty fancyindex_header
|
|
||||||
syn keyword ngxDirectiveThirdParty fancyindex_localtime
|
|
||||||
syn keyword ngxDirectiveThirdParty fancyindex_readme
|
|
||||||
syn keyword ngxDirectiveThirdParty fancyindex_readme_mode
|
|
||||||
|
|
||||||
" GeoIP Module (DEPRECATED) <http://wiki.nginx.org/NginxHttp3rdPartyGeoIPModule>
|
|
||||||
" Country code lookups via the MaxMind GeoIP API.
|
|
||||||
syn keyword ngxDirectiveThirdParty geoip_country_file
|
|
||||||
|
|
||||||
" Headers More Module <http://wiki.nginx.org/NginxHttpHeadersMoreModule>
|
|
||||||
" Set and clear input and output headers...more than "add"!
|
|
||||||
syn keyword ngxDirectiveThirdParty more_clear_headers
|
|
||||||
syn keyword ngxDirectiveThirdParty more_clear_input_headers
|
|
||||||
syn keyword ngxDirectiveThirdParty more_set_headers
|
|
||||||
syn keyword ngxDirectiveThirdParty more_set_input_headers
|
|
||||||
|
|
||||||
" HTTP Push Module <http://pushmodule.slact.net/>
|
|
||||||
" Turn Nginx into an adept long-polling HTTP Push (Comet) server.
|
|
||||||
syn keyword ngxDirectiveThirdParty push_buffer_size
|
|
||||||
syn keyword ngxDirectiveThirdParty push_listener
|
|
||||||
syn keyword ngxDirectiveThirdParty push_message_timeout
|
|
||||||
syn keyword ngxDirectiveThirdParty push_queue_messages
|
|
||||||
syn keyword ngxDirectiveThirdParty push_sender
|
|
||||||
|
|
||||||
" HTTP Redis Module <http://people.FreeBSD.ORG/~osa/ngx_http_redis-0.3.1.tar.gz>>
|
|
||||||
" Redis <http://code.google.com/p/redis/> support.>
|
|
||||||
syn keyword ngxDirectiveThirdParty redis_bind
|
|
||||||
syn keyword ngxDirectiveThirdParty redis_buffer_size
|
|
||||||
syn keyword ngxDirectiveThirdParty redis_connect_timeout
|
|
||||||
syn keyword ngxDirectiveThirdParty redis_next_upstream
|
|
||||||
syn keyword ngxDirectiveThirdParty redis_pass
|
|
||||||
syn keyword ngxDirectiveThirdParty redis_read_timeout
|
|
||||||
syn keyword ngxDirectiveThirdParty redis_send_timeout
|
|
||||||
|
|
||||||
" HTTP JavaScript Module <http://wiki.github.com/kung-fu-tzu/ngx_http_js_module>
|
|
||||||
" Embedding SpiderMonkey. Nearly full port on Perl module.
|
|
||||||
syn keyword ngxDirectiveThirdParty js
|
|
||||||
syn keyword ngxDirectiveThirdParty js_filter
|
|
||||||
syn keyword ngxDirectiveThirdParty js_filter_types
|
|
||||||
syn keyword ngxDirectiveThirdParty js_load
|
|
||||||
syn keyword ngxDirectiveThirdParty js_maxmem
|
|
||||||
syn keyword ngxDirectiveThirdParty js_require
|
|
||||||
syn keyword ngxDirectiveThirdParty js_set
|
|
||||||
syn keyword ngxDirectiveThirdParty js_utf8
|
|
||||||
|
|
||||||
" Log Request Speed <http://wiki.nginx.org/NginxHttpLogRequestSpeed>
|
|
||||||
" Log the time it took to process each request.
|
|
||||||
syn keyword ngxDirectiveThirdParty log_request_speed_filter
|
|
||||||
syn keyword ngxDirectiveThirdParty log_request_speed_filter_timeout
|
|
||||||
|
|
||||||
" Memc Module <http://wiki.nginx.org/NginxHttpMemcModule>
|
|
||||||
" An extended version of the standard memcached module that supports set, add, delete, and many more memcached commands.
|
|
||||||
syn keyword ngxDirectiveThirdParty memc_buffer_size
|
|
||||||
syn keyword ngxDirectiveThirdParty memc_cmds_allowed
|
|
||||||
syn keyword ngxDirectiveThirdParty memc_connect_timeout
|
|
||||||
syn keyword ngxDirectiveThirdParty memc_flags_to_last_modified
|
|
||||||
syn keyword ngxDirectiveThirdParty memc_next_upstream
|
|
||||||
syn keyword ngxDirectiveThirdParty memc_pass
|
|
||||||
syn keyword ngxDirectiveThirdParty memc_read_timeout
|
|
||||||
syn keyword ngxDirectiveThirdParty memc_send_timeout
|
|
||||||
syn keyword ngxDirectiveThirdParty memc_upstream_fail_timeout
|
|
||||||
syn keyword ngxDirectiveThirdParty memc_upstream_max_fails
|
|
||||||
|
|
||||||
" Mogilefs Module <http://www.grid.net.ru/nginx/mogilefs.en.html>
|
|
||||||
" Implements a MogileFS client, provides a replace to the Perlbal reverse proxy of the original MogileFS.
|
|
||||||
syn keyword ngxDirectiveThirdParty mogilefs_connect_timeout
|
|
||||||
syn keyword ngxDirectiveThirdParty mogilefs_domain
|
|
||||||
syn keyword ngxDirectiveThirdParty mogilefs_methods
|
|
||||||
syn keyword ngxDirectiveThirdParty mogilefs_noverify
|
|
||||||
syn keyword ngxDirectiveThirdParty mogilefs_pass
|
|
||||||
syn keyword ngxDirectiveThirdParty mogilefs_read_timeout
|
|
||||||
syn keyword ngxDirectiveThirdParty mogilefs_send_timeout
|
|
||||||
syn keyword ngxDirectiveThirdParty mogilefs_tracker
|
|
||||||
|
|
||||||
" MP4 Streaming Lite Module <http://wiki.nginx.org/NginxMP4StreamingLite>
|
|
||||||
" Will seek to a certain time within H.264/MP4 files when provided with a 'start' parameter in the URL.
|
|
||||||
syn keyword ngxDirectiveThirdParty mp4
|
|
||||||
|
|
||||||
" Nginx Notice Module <http://xph.us/software/nginx-notice/>
|
|
||||||
" Serve static file to POST requests.
|
|
||||||
syn keyword ngxDirectiveThirdParty notice
|
|
||||||
syn keyword ngxDirectiveThirdParty notice_type
|
|
||||||
|
|
||||||
" Phusion Passenger <http://www.modrails.com/documentation.html>
|
|
||||||
" Easy and robust deployment of Ruby on Rails application on Apache and Nginx webservers.
|
|
||||||
syn keyword ngxDirectiveThirdParty passenger_base_uri
|
|
||||||
syn keyword ngxDirectiveThirdParty passenger_default_user
|
|
||||||
syn keyword ngxDirectiveThirdParty passenger_enabled
|
|
||||||
syn keyword ngxDirectiveThirdParty passenger_log_level
|
|
||||||
syn keyword ngxDirectiveThirdParty passenger_max_instances_per_app
|
|
||||||
syn keyword ngxDirectiveThirdParty passenger_max_pool_size
|
|
||||||
syn keyword ngxDirectiveThirdParty passenger_pool_idle_time
|
|
||||||
syn keyword ngxDirectiveThirdParty passenger_root
|
|
||||||
syn keyword ngxDirectiveThirdParty passenger_ruby
|
|
||||||
syn keyword ngxDirectiveThirdParty passenger_use_global_queue
|
|
||||||
syn keyword ngxDirectiveThirdParty passenger_user_switching
|
|
||||||
syn keyword ngxDirectiveThirdParty rack_env
|
|
||||||
syn keyword ngxDirectiveThirdParty rails_app_spawner_idle_time
|
|
||||||
syn keyword ngxDirectiveThirdParty rails_env
|
|
||||||
syn keyword ngxDirectiveThirdParty rails_framework_spawner_idle_time
|
|
||||||
syn keyword ngxDirectiveThirdParty rails_spawn_method
|
|
||||||
|
|
||||||
" RDS JSON Module <http://github.com/agentzh/rds-json-nginx-module>
|
|
||||||
" Help ngx_drizzle and other DBD modules emit JSON data.
|
|
||||||
syn keyword ngxDirectiveThirdParty rds_json
|
|
||||||
syn keyword ngxDirectiveThirdParty rds_json_content_type
|
|
||||||
syn keyword ngxDirectiveThirdParty rds_json_format
|
|
||||||
syn keyword ngxDirectiveThirdParty rds_json_ret
|
|
||||||
|
|
||||||
" RRD Graph Module <http://wiki.nginx.org/NginxNgx_rrd_graph>
|
|
||||||
" This module provides an HTTP interface to RRDtool's graphing facilities.
|
|
||||||
syn keyword ngxDirectiveThirdParty rrd_graph
|
|
||||||
syn keyword ngxDirectiveThirdParty rrd_graph_root
|
|
||||||
|
|
||||||
" Secure Download <http://wiki.nginx.org/NginxHttpSecureDownload>
|
|
||||||
" Create expiring links.
|
|
||||||
syn keyword ngxDirectiveThirdParty secure_download
|
|
||||||
syn keyword ngxDirectiveThirdParty secure_download_fail_location
|
|
||||||
syn keyword ngxDirectiveThirdParty secure_download_path_mode
|
|
||||||
syn keyword ngxDirectiveThirdParty secure_download_secret
|
|
||||||
|
|
||||||
" SlowFS Cache Module <http://labs.frickle.com/nginx_ngx_slowfs_cache/>
|
|
||||||
" Module adding ability to cache static files.
|
|
||||||
syn keyword ngxDirectiveThirdParty slowfs_big_file_size
|
|
||||||
syn keyword ngxDirectiveThirdParty slowfs_cache
|
|
||||||
syn keyword ngxDirectiveThirdParty slowfs_cache_key
|
|
||||||
syn keyword ngxDirectiveThirdParty slowfs_cache_min_uses
|
|
||||||
syn keyword ngxDirectiveThirdParty slowfs_cache_path
|
|
||||||
syn keyword ngxDirectiveThirdParty slowfs_cache_purge
|
|
||||||
syn keyword ngxDirectiveThirdParty slowfs_cache_valid
|
|
||||||
syn keyword ngxDirectiveThirdParty slowfs_temp_path
|
|
||||||
|
|
||||||
" Strip Module <http://wiki.nginx.org/NginxHttpStripModule>
|
|
||||||
" Whitespace remover.
|
|
||||||
syn keyword ngxDirectiveThirdParty strip
|
|
||||||
|
|
||||||
" Substitutions Module <http://wiki.nginx.org/NginxHttpSubsModule>
|
|
||||||
" A filter module which can do both regular expression and fixed string substitutions on response bodies.
|
|
||||||
syn keyword ngxDirectiveThirdParty subs_filter
|
|
||||||
syn keyword ngxDirectiveThirdParty subs_filter_types
|
|
||||||
|
|
||||||
" Supervisord Module <http://labs.frickle.com/nginx_ngx_supervisord/>
|
|
||||||
" Module providing nginx with API to communicate with supervisord and manage (start/stop) backends on-demand.
|
|
||||||
syn keyword ngxDirectiveThirdParty supervisord
|
|
||||||
syn keyword ngxDirectiveThirdParty supervisord_inherit_backend_status
|
|
||||||
syn keyword ngxDirectiveThirdParty supervisord_name
|
|
||||||
syn keyword ngxDirectiveThirdParty supervisord_start
|
|
||||||
syn keyword ngxDirectiveThirdParty supervisord_stop
|
|
||||||
|
|
||||||
" Upload Module <http://www.grid.net.ru/nginx/upload.en.html>
|
|
||||||
" Parses multipart/form-data allowing arbitrary handling of uploaded files.
|
|
||||||
syn keyword ngxDirectiveThirdParty upload_aggregate_form_field
|
|
||||||
syn keyword ngxDirectiveThirdParty upload_buffer_size
|
|
||||||
syn keyword ngxDirectiveThirdParty upload_cleanup
|
|
||||||
syn keyword ngxDirectiveThirdParty upload_limit_rate
|
|
||||||
syn keyword ngxDirectiveThirdParty upload_max_file_size
|
|
||||||
syn keyword ngxDirectiveThirdParty upload_max_output_body_len
|
|
||||||
syn keyword ngxDirectiveThirdParty upload_max_part_header_len
|
|
||||||
syn keyword ngxDirectiveThirdParty upload_pass
|
|
||||||
syn keyword ngxDirectiveThirdParty upload_pass_args
|
|
||||||
syn keyword ngxDirectiveThirdParty upload_pass_form_field
|
|
||||||
syn keyword ngxDirectiveThirdParty upload_set_form_field
|
|
||||||
syn keyword ngxDirectiveThirdParty upload_store
|
|
||||||
syn keyword ngxDirectiveThirdParty upload_store_access
|
|
||||||
|
|
||||||
" Upload Progress Module <http://wiki.nginx.org/NginxHttpUploadProgressModule>
|
|
||||||
" Tracks and reports upload progress.
|
|
||||||
syn keyword ngxDirectiveThirdParty report_uploads
|
|
||||||
syn keyword ngxDirectiveThirdParty track_uploads
|
|
||||||
syn keyword ngxDirectiveThirdParty upload_progress
|
|
||||||
syn keyword ngxDirectiveThirdParty upload_progress_content_type
|
|
||||||
syn keyword ngxDirectiveThirdParty upload_progress_header
|
|
||||||
syn keyword ngxDirectiveThirdParty upload_progress_json_output
|
|
||||||
syn keyword ngxDirectiveThirdParty upload_progress_template
|
|
||||||
|
|
||||||
" Upstream Fair Balancer <http://wiki.nginx.org/NginxHttpUpstreamFairModule>
|
|
||||||
" Sends an incoming request to the least-busy backend server, rather than distributing requests round-robin.
|
|
||||||
syn keyword ngxDirectiveThirdParty fair
|
|
||||||
syn keyword ngxDirectiveThirdParty upstream_fair_shm_size
|
|
||||||
|
|
||||||
" Upstream Consistent Hash <http://wiki.nginx.org/NginxHttpUpstreamConsistentHash>
|
|
||||||
" Select backend based on Consistent hash ring.
|
|
||||||
syn keyword ngxDirectiveThirdParty consistent_hash
|
|
||||||
|
|
||||||
" Upstream Hash Module <http://wiki.nginx.org/NginxHttpUpstreamRequestHashModule>
|
|
||||||
" Provides simple upstream load distribution by hashing a configurable variable.
|
|
||||||
syn keyword ngxDirectiveThirdParty hash
|
|
||||||
syn keyword ngxDirectiveThirdParty hash_again
|
|
||||||
|
|
||||||
" XSS Module <http://github.com/agentzh/xss-nginx-module>
|
|
||||||
" Native support for cross-site scripting (XSS) in an nginx.
|
|
||||||
syn keyword ngxDirectiveThirdParty xss_callback_arg
|
|
||||||
syn keyword ngxDirectiveThirdParty xss_get
|
|
||||||
syn keyword ngxDirectiveThirdParty xss_input_types
|
|
||||||
syn keyword ngxDirectiveThirdParty xss_output_type
|
|
||||||
|
|
||||||
" highlight
|
|
||||||
|
|
||||||
hi link ngxComment Comment
|
|
||||||
hi link ngxVariable Identifier
|
|
||||||
hi link ngxVariableBlock Identifier
|
|
||||||
hi link ngxVariableString PreProc
|
|
||||||
hi link ngxBlock Normal
|
|
||||||
hi link ngxString String
|
|
||||||
|
|
||||||
hi link ngxBoolean Boolean
|
|
||||||
hi link ngxDirectiveBlock Statement
|
|
||||||
hi link ngxDirectiveImportant Type
|
|
||||||
hi link ngxDirectiveControl Keyword
|
|
||||||
hi link ngxDirectiveError Constant
|
|
||||||
hi link ngxDirectiveDeprecated Error
|
|
||||||
hi link ngxDirective Identifier
|
|
||||||
hi link ngxDirectiveThirdParty Special
|
|
||||||
|
|
||||||
let b:current_syntax = "nginx"
|
|
|
@ -1,3 +0,0 @@
|
||||||
This is a mirror of http://www.vim.org/scripts/script.php?script_id=1886
|
|
||||||
|
|
||||||
nginx.vim highlights configuration files for nginx, the high-performance web server (see http://nginx.net).
|
|
1
sources_non_forked/rust.vim/.gitignore
vendored
Normal file
1
sources_non_forked/rust.vim/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/doc/tags
|
30
sources_non_forked/rust.vim/README.md
Normal file
30
sources_non_forked/rust.vim/README.md
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
# rust.vim
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
This is a vim plugin provides [Rust][r] file detection and syntax highlighting.
|
||||||
|
|
||||||
|
It is synchronized daily to the vim support code in [rust-lang/rust][rr]'s
|
||||||
|
master branch via cronjob.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
### Using [Vundle][v]
|
||||||
|
|
||||||
|
1. Add `Plugin 'wting/rust.vim'` to `~/.vimrc`
|
||||||
|
2. `vim +PluginInstall +qall`
|
||||||
|
|
||||||
|
*Note:* Vundle will not automatically detect Rust files properly if `filetype
|
||||||
|
on` is executed before Vundle. Please check the [quickstart][vqs] for more
|
||||||
|
details.
|
||||||
|
|
||||||
|
### Using [Pathogen][p]
|
||||||
|
|
||||||
|
1. `cd ~/.vim/bundle`
|
||||||
|
2. `git clone https://github.com/wting/rust.vim.git`
|
||||||
|
|
||||||
|
[rr]: https://github.com/rust-lang/rust
|
||||||
|
[p]: https://github.com/tpope/vim-pathogen
|
||||||
|
[r]: https://en.wikipedia.org/wiki/Rust_language
|
||||||
|
[v]: https://github.com/gmarik/vundle
|
||||||
|
[vqs]: https://github.com/gmarik/vundle#quick-start
|
31
sources_non_forked/rust.vim/after/syntax/rust.vim
Normal file
31
sources_non_forked/rust.vim/after/syntax/rust.vim
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
if !exists('g:rust_conceal') || !has('conceal') || &enc != 'utf-8'
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
" For those who don't want to see `::`...
|
||||||
|
if exists('g:rust_conceal_mod_path')
|
||||||
|
syn match rustNiceOperator "::" conceal cchar=ㆍ
|
||||||
|
endif
|
||||||
|
|
||||||
|
syn match rustRightArrowHead contained ">" conceal cchar=
|
||||||
|
syn match rustRightArrowTail contained "-" conceal cchar=⟶
|
||||||
|
syn match rustNiceOperator "->" contains=rustRightArrowHead,rustRightArrowTail
|
||||||
|
|
||||||
|
syn match rustFatRightArrowHead contained ">" conceal cchar=
|
||||||
|
syn match rustFatRightArrowTail contained "=" conceal cchar=⟹
|
||||||
|
syn match rustNiceOperator "=>" contains=rustFatRightArrowHead,rustFatRightArrowTail
|
||||||
|
|
||||||
|
syn match rustNiceOperator /\<\@!_\(_*\>\)\@=/ conceal cchar=′
|
||||||
|
|
||||||
|
" For those who don't want to see `pub`...
|
||||||
|
if exists('g:rust_conceal_pub')
|
||||||
|
syn match rustPublicSigil contained "pu" conceal cchar=*
|
||||||
|
syn match rustPublicRest contained "b" conceal cchar=
|
||||||
|
syn match rustNiceOperator "pub " contains=rustPublicSigil,rustPublicRest
|
||||||
|
endif
|
||||||
|
|
||||||
|
hi link rustNiceOperator Operator
|
||||||
|
|
||||||
|
if !exists('g:rust_conceal_mod_path')
|
||||||
|
hi! link Conceal Operator
|
||||||
|
endif
|
225
sources_non_forked/rust.vim/autoload/rust.vim
Normal file
225
sources_non_forked/rust.vim/autoload/rust.vim
Normal file
|
@ -0,0 +1,225 @@
|
||||||
|
" Author: Kevin Ballard
|
||||||
|
" Description: Helper functions for Rust commands/mappings
|
||||||
|
" Last Modified: May 27, 2014
|
||||||
|
|
||||||
|
" Jump {{{1
|
||||||
|
|
||||||
|
function! rust#Jump(mode, function) range
|
||||||
|
let cnt = v:count1
|
||||||
|
normal! m'
|
||||||
|
if a:mode ==# 'v'
|
||||||
|
norm! gv
|
||||||
|
endif
|
||||||
|
let foldenable = &foldenable
|
||||||
|
set nofoldenable
|
||||||
|
while cnt > 0
|
||||||
|
execute "call <SID>Jump_" . a:function . "()"
|
||||||
|
let cnt = cnt - 1
|
||||||
|
endwhile
|
||||||
|
let &foldenable = foldenable
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:Jump_Back()
|
||||||
|
call search('{', 'b')
|
||||||
|
keepjumps normal! w99[{
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:Jump_Forward()
|
||||||
|
normal! j0
|
||||||
|
call search('{', 'b')
|
||||||
|
keepjumps normal! w99[{%
|
||||||
|
call search('{')
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" Run {{{1
|
||||||
|
|
||||||
|
function! rust#Run(bang, args)
|
||||||
|
if a:bang
|
||||||
|
let idx = index(a:args, '--')
|
||||||
|
if idx != -1
|
||||||
|
let rustc_args = idx == 0 ? [] : a:args[:idx-1]
|
||||||
|
let args = a:args[idx+1:]
|
||||||
|
else
|
||||||
|
let rustc_args = a:args
|
||||||
|
let args = []
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
let rustc_args = []
|
||||||
|
let args = a:args
|
||||||
|
endif
|
||||||
|
|
||||||
|
let b:rust_last_rustc_args = rustc_args
|
||||||
|
let b:rust_last_args = args
|
||||||
|
|
||||||
|
call s:WithPath(function("s:Run"), rustc_args, args)
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:Run(path, rustc_args, args)
|
||||||
|
try
|
||||||
|
let exepath = tempname()
|
||||||
|
if has('win32')
|
||||||
|
let exepath .= '.exe'
|
||||||
|
endif
|
||||||
|
|
||||||
|
let rustc_args = [a:path, '-o', exepath] + a:rustc_args
|
||||||
|
|
||||||
|
let rustc = exists("g:rustc_path") ? g:rustc_path : "rustc"
|
||||||
|
|
||||||
|
let output = system(shellescape(rustc) . " " . join(map(rustc_args, 'shellescape(v:val)')))
|
||||||
|
if output != ''
|
||||||
|
echohl WarningMsg
|
||||||
|
echo output
|
||||||
|
echohl None
|
||||||
|
endif
|
||||||
|
if !v:shell_error
|
||||||
|
exe '!' . shellescape(exepath) . " " . join(map(a:args, 'shellescape(v:val)'))
|
||||||
|
endif
|
||||||
|
finally
|
||||||
|
if exists("exepath")
|
||||||
|
silent! call delete(exepath)
|
||||||
|
endif
|
||||||
|
endtry
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" Expand {{{1
|
||||||
|
|
||||||
|
function! rust#Expand(bang, args)
|
||||||
|
if a:bang && !empty(a:args)
|
||||||
|
let pretty = a:args[0]
|
||||||
|
let args = a:args[1:]
|
||||||
|
else
|
||||||
|
let pretty = "expanded"
|
||||||
|
let args = a:args
|
||||||
|
endif
|
||||||
|
call s:WithPath(function("s:Expand"), pretty, args)
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:Expand(path, pretty, args)
|
||||||
|
try
|
||||||
|
let rustc = exists("g:rustc_path") ? g:rustc_path : "rustc"
|
||||||
|
|
||||||
|
let args = [a:path, '--pretty', a:pretty] + a:args
|
||||||
|
let output = system(shellescape(rustc) . " " . join(map(args, "shellescape(v:val)")))
|
||||||
|
if v:shell_error
|
||||||
|
echohl WarningMsg
|
||||||
|
echo output
|
||||||
|
echohl None
|
||||||
|
else
|
||||||
|
new
|
||||||
|
silent put =output
|
||||||
|
1
|
||||||
|
d
|
||||||
|
setl filetype=rust
|
||||||
|
setl buftype=nofile
|
||||||
|
setl bufhidden=hide
|
||||||
|
setl noswapfile
|
||||||
|
endif
|
||||||
|
endtry
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! rust#CompleteExpand(lead, line, pos)
|
||||||
|
if a:line[: a:pos-1] =~ '^RustExpand!\s*\S*$'
|
||||||
|
" first argument and it has a !
|
||||||
|
let list = ["normal", "expanded", "typed", "expanded,identified", "flowgraph="]
|
||||||
|
if !empty(a:lead)
|
||||||
|
call filter(list, "v:val[:len(a:lead)-1] == a:lead")
|
||||||
|
endif
|
||||||
|
return list
|
||||||
|
endif
|
||||||
|
|
||||||
|
return glob(escape(a:lead, "*?[") . '*', 0, 1)
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" Emit {{{1
|
||||||
|
|
||||||
|
function! rust#Emit(type, args)
|
||||||
|
call s:WithPath(function("s:Emit"), a:type, a:args)
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:Emit(path, type, args)
|
||||||
|
try
|
||||||
|
let rustc = exists("g:rustc_path") ? g:rustc_path : "rustc"
|
||||||
|
|
||||||
|
let args = [a:path, '--emit', a:type, '-o', '-'] + a:args
|
||||||
|
let output = system(shellescape(rustc) . " " . join(map(args, "shellescape(v:val)")))
|
||||||
|
if v:shell_error
|
||||||
|
echohl WarningMsg
|
||||||
|
echo output
|
||||||
|
echohl None
|
||||||
|
else
|
||||||
|
new
|
||||||
|
silent put =output
|
||||||
|
1
|
||||||
|
d
|
||||||
|
if a:type == "ir"
|
||||||
|
setl filetype=llvm
|
||||||
|
elseif a:type == "asm"
|
||||||
|
setl filetype=asm
|
||||||
|
endif
|
||||||
|
setl buftype=nofile
|
||||||
|
setl bufhidden=hide
|
||||||
|
setl noswapfile
|
||||||
|
endif
|
||||||
|
endtry
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" Utility functions {{{1
|
||||||
|
|
||||||
|
function! s:WithPath(func, ...)
|
||||||
|
try
|
||||||
|
let save_write = &write
|
||||||
|
set write
|
||||||
|
let path = expand('%')
|
||||||
|
let pathisempty = empty(path)
|
||||||
|
if pathisempty || !save_write
|
||||||
|
" use a temporary file named 'unnamed.rs' inside a temporary
|
||||||
|
" directory. This produces better error messages
|
||||||
|
let tmpdir = tempname()
|
||||||
|
call mkdir(tmpdir)
|
||||||
|
|
||||||
|
let save_cwd = getcwd()
|
||||||
|
silent exe 'lcd' fnameescape(tmpdir)
|
||||||
|
|
||||||
|
let path = 'unnamed.rs'
|
||||||
|
|
||||||
|
let save_mod = &mod
|
||||||
|
set nomod
|
||||||
|
|
||||||
|
silent exe 'keepalt write! ' . fnameescape(path)
|
||||||
|
if pathisempty
|
||||||
|
silent keepalt 0file
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
update
|
||||||
|
endif
|
||||||
|
|
||||||
|
call call(a:func, [path] + a:000)
|
||||||
|
finally
|
||||||
|
if exists("save_mod") | let &mod = save_mod | endif
|
||||||
|
if exists("save_write") | let &write = save_write | endif
|
||||||
|
if exists("save_cwd") | silent exe 'lcd' fnameescape(save_cwd) | endif
|
||||||
|
if exists("tmpdir") | silent call s:RmDir(tmpdir) | endif
|
||||||
|
endtry
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! rust#AppendCmdLine(text)
|
||||||
|
call setcmdpos(getcmdpos())
|
||||||
|
let cmd = getcmdline() . a:text
|
||||||
|
return cmd
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:RmDir(path)
|
||||||
|
" sanity check; make sure it's not empty, /, or $HOME
|
||||||
|
if empty(a:path)
|
||||||
|
echoerr 'Attempted to delete empty path'
|
||||||
|
return 0
|
||||||
|
elseif a:path == '/' || a:path == $HOME
|
||||||
|
echoerr 'Attempted to delete protected path: ' . a:path
|
||||||
|
return 0
|
||||||
|
endif
|
||||||
|
silent exe "!rm -rf " . shellescape(a:path)
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" }}}1
|
||||||
|
|
||||||
|
" vim: set noet sw=4 ts=4:
|
65
sources_non_forked/rust.vim/compiler/cargo.vim
Normal file
65
sources_non_forked/rust.vim/compiler/cargo.vim
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
" Vim compiler file
|
||||||
|
" Compiler: Cargo Compiler
|
||||||
|
" Maintainer: Damien Radtke <damienradtke@gmail.com>
|
||||||
|
" Latest Revision: 2014 Sep 24
|
||||||
|
|
||||||
|
if exists('current_compiler')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
runtime compiler/rustc.vim
|
||||||
|
let current_compiler = "cargo"
|
||||||
|
|
||||||
|
if exists(':CompilerSet') != 2
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
if exists('g:cargo_makeprg_params')
|
||||||
|
execute 'CompilerSet makeprg=cargo\ '.escape(g:cargo_makeprg_params, ' \|"').'\ $*'
|
||||||
|
else
|
||||||
|
CompilerSet makeprg=cargo\ $*
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Allow a configurable global Cargo.toml name. This makes it easy to
|
||||||
|
" support variations like 'cargo.toml'.
|
||||||
|
let s:cargo_manifest_name = get(g:, 'cargo_manifest_name', 'Cargo.toml')
|
||||||
|
|
||||||
|
function! s:is_absolute(path)
|
||||||
|
return a:path[0] == '/' || a:path =~ '[A-Z]\+:'
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
let s:local_manifest = findfile(s:cargo_manifest_name, '.;')
|
||||||
|
if s:local_manifest != ''
|
||||||
|
let s:local_manifest = fnamemodify(s:local_manifest, ':p:h').'/'
|
||||||
|
augroup cargo
|
||||||
|
au!
|
||||||
|
au QuickfixCmdPost make call s:FixPaths()
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
" FixPaths() is run after Cargo, and is used to change the file paths
|
||||||
|
" to be relative to the current directory instead of Cargo.toml.
|
||||||
|
function! s:FixPaths()
|
||||||
|
let qflist = getqflist()
|
||||||
|
let manifest = s:local_manifest
|
||||||
|
for qf in qflist
|
||||||
|
if !qf.valid
|
||||||
|
let m = matchlist(qf.text, '(file://\(.*\))$')
|
||||||
|
if !empty(m)
|
||||||
|
let manifest = m[1].'/'
|
||||||
|
" Manually strip another slash if needed; usually just an
|
||||||
|
" issue on Windows.
|
||||||
|
if manifest =~ '^/[A-Z]\+:/'
|
||||||
|
let manifest = manifest[1:]
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
continue
|
||||||
|
endif
|
||||||
|
let filename = bufname(qf.bufnr)
|
||||||
|
if s:is_absolute(filename)
|
||||||
|
continue
|
||||||
|
endif
|
||||||
|
let qf.filename = simplify(manifest.filename)
|
||||||
|
call remove(qf, 'bufnr')
|
||||||
|
endfor
|
||||||
|
call setqflist(qflist, 'r')
|
||||||
|
endfunction
|
||||||
|
endif
|
33
sources_non_forked/rust.vim/compiler/rustc.vim
Normal file
33
sources_non_forked/rust.vim/compiler/rustc.vim
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
" Vim compiler file
|
||||||
|
" Compiler: Rust Compiler
|
||||||
|
" Maintainer: Chris Morgan <me@chrismorgan.info>
|
||||||
|
" Latest Revision: 2013 Jul 12
|
||||||
|
|
||||||
|
if exists("current_compiler")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let current_compiler = "rustc"
|
||||||
|
|
||||||
|
let s:cpo_save = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
if exists(":CompilerSet") != 2
|
||||||
|
command -nargs=* CompilerSet setlocal <args>
|
||||||
|
endif
|
||||||
|
|
||||||
|
if exists("g:rustc_makeprg_no_percent") && g:rustc_makeprg_no_percent == 1
|
||||||
|
CompilerSet makeprg=rustc
|
||||||
|
else
|
||||||
|
CompilerSet makeprg=rustc\ \%
|
||||||
|
endif
|
||||||
|
|
||||||
|
CompilerSet errorformat=
|
||||||
|
\%f:%l:%c:\ %t%*[^:]:\ %m,
|
||||||
|
\%f:%l:%c:\ %*\\d:%*\\d\ %t%*[^:]:\ %m,
|
||||||
|
\%-G%f:%l\ %s,
|
||||||
|
\%-G%*[\ ]^,
|
||||||
|
\%-G%*[\ ]^%*[~],
|
||||||
|
\%-G%*[\ ]...
|
||||||
|
|
||||||
|
let &cpo = s:cpo_save
|
||||||
|
unlet s:cpo_save
|
178
sources_non_forked/rust.vim/doc/rust.txt
Normal file
178
sources_non_forked/rust.vim/doc/rust.txt
Normal file
|
@ -0,0 +1,178 @@
|
||||||
|
*rust.txt* Filetype plugin for Rust
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
CONTENTS *rust* *ft-rust*
|
||||||
|
|
||||||
|
1. Introduction |rust-intro|
|
||||||
|
2. Settings |rust-settings|
|
||||||
|
3. Commands |rust-commands|
|
||||||
|
4. Mappings |rust-mappings|
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
INTRODUCTION *rust-intro*
|
||||||
|
|
||||||
|
This plugin provides syntax and supporting functionality for the Rust
|
||||||
|
filetype.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
SETTINGS *rust-settings*
|
||||||
|
|
||||||
|
This plugin has a few variables you can define in your vimrc that change the
|
||||||
|
behavior of the plugin.
|
||||||
|
|
||||||
|
*g:rustc_path*
|
||||||
|
g:rustc_path~
|
||||||
|
Set this option to the path to rustc for use in the |:RustRun| and
|
||||||
|
|:RustExpand| commands. If unset, "rustc" will be located in $PATH: >
|
||||||
|
let g:rustc_path = $HOME."/bin/rustc"
|
||||||
|
<
|
||||||
|
|
||||||
|
*g:rustc_makeprg_no_percent*
|
||||||
|
g:rustc_makeprg_no_percent~
|
||||||
|
Set this option to 1 to have 'makeprg' default to "rustc" instead of
|
||||||
|
"rustc %": >
|
||||||
|
let g:rustc_makeprg_no_percent = 1
|
||||||
|
<
|
||||||
|
|
||||||
|
*g:rust_conceal*
|
||||||
|
g:rust_conceal~
|
||||||
|
Set this option to turn on the basic |conceal| support: >
|
||||||
|
let g:rust_conceal = 1
|
||||||
|
<
|
||||||
|
|
||||||
|
*g:rust_conceal_mod_path*
|
||||||
|
g:rust_conceal_mod_path~
|
||||||
|
Set this option to turn on |conceal| for the path connecting token
|
||||||
|
"::": >
|
||||||
|
let g:rust_conceal_mod_path = 1
|
||||||
|
<
|
||||||
|
|
||||||
|
*g:rust_conceal_pub*
|
||||||
|
g:rust_conceal_pub~
|
||||||
|
Set this option to turn on |conceal| for the "pub" token: >
|
||||||
|
let g:rust_conceal_pub = 1
|
||||||
|
<
|
||||||
|
|
||||||
|
*g:rust_recommended_style*
|
||||||
|
g:rust_recommended_style~
|
||||||
|
Set this option to enable vim indentation and textwidth settings to
|
||||||
|
conform to style conventions of the rust standard library (i.e. use 4
|
||||||
|
spaces for indents and sets 'textwidth' to 99). This option is enabled
|
||||||
|
by default. To disable it: >
|
||||||
|
let g:rust_recommended_style = 0
|
||||||
|
<
|
||||||
|
|
||||||
|
*g:rust_fold*
|
||||||
|
g:rust_fold~
|
||||||
|
Set this option to turn on |folding|: >
|
||||||
|
let g:rust_fold = 1
|
||||||
|
<
|
||||||
|
Value Effect ~
|
||||||
|
0 No folding
|
||||||
|
1 Braced blocks are folded. All folds are open by
|
||||||
|
default.
|
||||||
|
2 Braced blocks are folded. 'foldlevel' is left at the
|
||||||
|
global value (all folds are closed by default).
|
||||||
|
|
||||||
|
*g:rust_bang_comment_leader*
|
||||||
|
g:rust_bang_comment_leader~
|
||||||
|
Set this option to 1 to preserve the leader on multi-line doc comments
|
||||||
|
using the /*! syntax: >
|
||||||
|
let g:rust_bang_comment_leader = 1
|
||||||
|
<
|
||||||
|
|
||||||
|
*g:ftplugin_rust_source_path*
|
||||||
|
g:ftplugin_rust_source_path~
|
||||||
|
Set this option to a path that should be prepended to 'path' for Rust
|
||||||
|
source files: >
|
||||||
|
let g:ftplugin_rust_source_path = $HOME.'/dev/rust'
|
||||||
|
<
|
||||||
|
|
||||||
|
*g:cargo_manifest_name*
|
||||||
|
g:cargo_manifest_name~
|
||||||
|
Set this option to the name of the manifest file for your projects. If
|
||||||
|
not specified it defaults to 'Cargo.toml' : >
|
||||||
|
let g:cargo_manifest_name = 'Cargo.toml'
|
||||||
|
<
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
COMMANDS *rust-commands*
|
||||||
|
|
||||||
|
:RustRun [args] *:RustRun*
|
||||||
|
:RustRun! [rustc-args] [--] [args]
|
||||||
|
Compiles and runs the current file. If it has unsaved changes,
|
||||||
|
it will be saved first using |:update|. If the current file is
|
||||||
|
an unnamed buffer, it will be written to a temporary file
|
||||||
|
first. The compiled binary is always placed in a temporary
|
||||||
|
directory, but is run from the current directory.
|
||||||
|
|
||||||
|
The arguments given to |:RustRun| will be passed to the
|
||||||
|
compiled binary.
|
||||||
|
|
||||||
|
If ! is specified, the arguments are passed to rustc instead.
|
||||||
|
A "--" argument will separate the rustc arguments from the
|
||||||
|
arguments passed to the binary.
|
||||||
|
|
||||||
|
If |g:rustc_path| is defined, it is used as the path to rustc.
|
||||||
|
Otherwise it is assumed rustc can be found in $PATH.
|
||||||
|
|
||||||
|
:RustExpand [args] *:RustExpand*
|
||||||
|
:RustExpand! [TYPE] [args]
|
||||||
|
Expands the current file using --pretty and displays the
|
||||||
|
results in a new split. If the current file has unsaved
|
||||||
|
changes, it will be saved first using |:update|. If the
|
||||||
|
current file is an unnamed buffer, it will be written to a
|
||||||
|
temporary file first.
|
||||||
|
|
||||||
|
The arguments given to |:RustExpand| will be passed to rustc.
|
||||||
|
This is largely intended for specifying various --cfg
|
||||||
|
configurations.
|
||||||
|
|
||||||
|
If ! is specified, the first argument is the expansion type to
|
||||||
|
pass to rustc --pretty. Otherwise it will default to
|
||||||
|
"expanded".
|
||||||
|
|
||||||
|
If |g:rustc_path| is defined, it is used as the path to rustc.
|
||||||
|
Otherwise it is assumed rustc can be found in $PATH.
|
||||||
|
|
||||||
|
:RustEmitIr [args] *:RustEmitIr*
|
||||||
|
Compiles the current file to LLVM IR and displays the results
|
||||||
|
in a new split. If the current file has unsaved changes, it
|
||||||
|
will be saved first using |:update|. If the current file is an
|
||||||
|
unnamed buffer, it will be written to a temporary file first.
|
||||||
|
|
||||||
|
The arguments given to |:RustEmitIr| will be passed to rustc.
|
||||||
|
|
||||||
|
If |g:rustc_path| is defined, it is used as the path to rustc.
|
||||||
|
Otherwise it is assumed rustc can be found in $PATH.
|
||||||
|
|
||||||
|
:RustEmitAsm [args] *:RustEmitAsm*
|
||||||
|
Compiles the current file to assembly and displays the results
|
||||||
|
in a new split. If the current file has unsaved changes, it
|
||||||
|
will be saved first using |:update|. If the current file is an
|
||||||
|
unnamed buffer, it will be written to a temporary file first.
|
||||||
|
|
||||||
|
The arguments given to |:RustEmitAsm| will be passed to rustc.
|
||||||
|
|
||||||
|
If |g:rustc_path| is defined, it is used as the path to rustc.
|
||||||
|
Otherwise it is assumed rustc can be found in $PATH.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
MAPPINGS *rust-mappings*
|
||||||
|
|
||||||
|
This plugin defines mappings for |[[| and |]]| to support hanging indents.
|
||||||
|
|
||||||
|
It also has a few other mappings:
|
||||||
|
|
||||||
|
*rust_<D-r>*
|
||||||
|
<D-r> Executes |:RustRun| with no arguments.
|
||||||
|
Note: This binding is only available in MacVim.
|
||||||
|
|
||||||
|
*rust_<D-R>*
|
||||||
|
<D-R> Populates the command line with |:RustRun|! using the
|
||||||
|
arguments given to the last invocation, but does not
|
||||||
|
execute it.
|
||||||
|
Note: This binding is only available in MacVim.
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
vim:tw=78:sw=4:noet:ts=8:ft=help:norl:
|
1
sources_non_forked/rust.vim/ftdetect/rust.vim
Normal file
1
sources_non_forked/rust.vim/ftdetect/rust.vim
Normal file
|
@ -0,0 +1 @@
|
||||||
|
au BufRead,BufNewFile *.rs set filetype=rust
|
150
sources_non_forked/rust.vim/ftplugin/rust.vim
Normal file
150
sources_non_forked/rust.vim/ftplugin/rust.vim
Normal file
|
@ -0,0 +1,150 @@
|
||||||
|
" Language: Rust
|
||||||
|
" Description: Vim syntax file for Rust
|
||||||
|
" Maintainer: Chris Morgan <me@chrismorgan.info>
|
||||||
|
" Maintainer: Kevin Ballard <kevin@sb.org>
|
||||||
|
" Last Change: Jul 07, 2014
|
||||||
|
|
||||||
|
if exists("b:did_ftplugin")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
|
let s:save_cpo = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
" Variables {{{1
|
||||||
|
|
||||||
|
" The rust source code at present seems to typically omit a leader on /*!
|
||||||
|
" comments, so we'll use that as our default, but make it easy to switch.
|
||||||
|
" This does not affect indentation at all (I tested it with and without
|
||||||
|
" leader), merely whether a leader is inserted by default or not.
|
||||||
|
if exists("g:rust_bang_comment_leader") && g:rust_bang_comment_leader == 1
|
||||||
|
" Why is the `,s0:/*,mb:\ ,ex:*/` there, you ask? I don't understand why,
|
||||||
|
" but without it, */ gets indented one space even if there were no
|
||||||
|
" leaders. I'm fairly sure that's a Vim bug.
|
||||||
|
setlocal comments=s1:/*,mb:*,ex:*/,s0:/*,mb:\ ,ex:*/,:///,://!,://
|
||||||
|
else
|
||||||
|
setlocal comments=s0:/*!,m:\ ,ex:*/,s1:/*,mb:*,ex:*/,:///,://!,://
|
||||||
|
endif
|
||||||
|
setlocal commentstring=//%s
|
||||||
|
setlocal formatoptions-=t formatoptions+=croqnl
|
||||||
|
" j was only added in 7.3.541, so stop complaints about its nonexistence
|
||||||
|
silent! setlocal formatoptions+=j
|
||||||
|
|
||||||
|
" smartindent will be overridden by indentexpr if filetype indent is on, but
|
||||||
|
" otherwise it's better than nothing.
|
||||||
|
setlocal smartindent nocindent
|
||||||
|
|
||||||
|
if !exists("g:rust_recommended_style") || g:rust_recommended_style == 1
|
||||||
|
setlocal tabstop=4 shiftwidth=4 softtabstop=4 expandtab
|
||||||
|
setlocal textwidth=99
|
||||||
|
endif
|
||||||
|
|
||||||
|
" This includeexpr isn't perfect, but it's a good start
|
||||||
|
setlocal includeexpr=substitute(v:fname,'::','/','g')
|
||||||
|
|
||||||
|
" NOT adding .rc as it's being phased out (0.7)
|
||||||
|
setlocal suffixesadd=.rs
|
||||||
|
|
||||||
|
if exists("g:ftplugin_rust_source_path")
|
||||||
|
let &l:path=g:ftplugin_rust_source_path . ',' . &l:path
|
||||||
|
endif
|
||||||
|
|
||||||
|
if exists("g:loaded_delimitMate")
|
||||||
|
if exists("b:delimitMate_excluded_regions")
|
||||||
|
let b:rust_original_delimitMate_excluded_regions = b:delimitMate_excluded_regions
|
||||||
|
endif
|
||||||
|
let b:delimitMate_excluded_regions = delimitMate#Get("excluded_regions") . ',rustLifetimeCandidate,rustGenericLifetimeCandidate'
|
||||||
|
endif
|
||||||
|
|
||||||
|
if has("folding") && exists('g:rust_fold') && g:rust_fold != 0
|
||||||
|
let b:rust_set_foldmethod=1
|
||||||
|
setlocal foldmethod=syntax
|
||||||
|
if g:rust_fold == 2
|
||||||
|
setlocal foldlevel<
|
||||||
|
else
|
||||||
|
setlocal foldlevel=99
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
if has('conceal') && exists('g:rust_conceal')
|
||||||
|
let b:rust_set_conceallevel=1
|
||||||
|
setlocal conceallevel=2
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Motion Commands {{{1
|
||||||
|
|
||||||
|
" Bind motion commands to support hanging indents
|
||||||
|
nnoremap <silent> <buffer> [[ :call rust#Jump('n', 'Back')<CR>
|
||||||
|
nnoremap <silent> <buffer> ]] :call rust#Jump('n', 'Forward')<CR>
|
||||||
|
xnoremap <silent> <buffer> [[ :call rust#Jump('v', 'Back')<CR>
|
||||||
|
xnoremap <silent> <buffer> ]] :call rust#Jump('v', 'Forward')<CR>
|
||||||
|
onoremap <silent> <buffer> [[ :call rust#Jump('o', 'Back')<CR>
|
||||||
|
onoremap <silent> <buffer> ]] :call rust#Jump('o', 'Forward')<CR>
|
||||||
|
|
||||||
|
" Commands {{{1
|
||||||
|
|
||||||
|
" See |:RustRun| for docs
|
||||||
|
command! -nargs=* -complete=file -bang -bar -buffer RustRun call rust#Run(<bang>0, [<f-args>])
|
||||||
|
|
||||||
|
" See |:RustExpand| for docs
|
||||||
|
command! -nargs=* -complete=customlist,rust#CompleteExpand -bang -bar -buffer RustExpand call rust#Expand(<bang>0, [<f-args>])
|
||||||
|
|
||||||
|
" See |:RustEmitIr| for docs
|
||||||
|
command! -nargs=* -bar -buffer RustEmitIr call rust#Emit("ir", [<f-args>])
|
||||||
|
|
||||||
|
" See |:RustEmitAsm| for docs
|
||||||
|
command! -nargs=* -bar -buffer RustEmitAsm call rust#Emit("asm", [<f-args>])
|
||||||
|
|
||||||
|
" Mappings {{{1
|
||||||
|
|
||||||
|
" Bind ⌘R in MacVim to :RustRun
|
||||||
|
nnoremap <silent> <buffer> <D-r> :RustRun<CR>
|
||||||
|
" Bind ⌘⇧R in MacVim to :RustRun! pre-filled with the last args
|
||||||
|
nnoremap <buffer> <D-R> :RustRun! <C-r>=join(b:rust_last_rustc_args)<CR><C-\>erust#AppendCmdLine(' -- ' . join(b:rust_last_args))<CR>
|
||||||
|
|
||||||
|
if !exists("b:rust_last_rustc_args") || !exists("b:rust_last_args")
|
||||||
|
let b:rust_last_rustc_args = []
|
||||||
|
let b:rust_last_args = []
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Cleanup {{{1
|
||||||
|
|
||||||
|
let b:undo_ftplugin = "
|
||||||
|
\ setlocal formatoptions< comments< commentstring< includeexpr< suffixesadd<
|
||||||
|
\|setlocal tabstop< shiftwidth< softtabstop< expandtab< textwidth<
|
||||||
|
\|if exists('b:rust_original_delimitMate_excluded_regions')
|
||||||
|
\|let b:delimitMate_excluded_regions = b:rust_original_delimitMate_excluded_regions
|
||||||
|
\|unlet b:rust_original_delimitMate_excluded_regions
|
||||||
|
\|else
|
||||||
|
\|unlet! b:delimitMate_excluded_regions
|
||||||
|
\|endif
|
||||||
|
\|if exists('b:rust_set_foldmethod')
|
||||||
|
\|setlocal foldmethod< foldlevel<
|
||||||
|
\|unlet b:rust_set_foldmethod
|
||||||
|
\|endif
|
||||||
|
\|if exists('b:rust_set_conceallevel')
|
||||||
|
\|setlocal conceallevel<
|
||||||
|
\|unlet b:rust_set_conceallevel
|
||||||
|
\|endif
|
||||||
|
\|unlet! b:rust_last_rustc_args b:rust_last_args
|
||||||
|
\|delcommand RustRun
|
||||||
|
\|delcommand RustExpand
|
||||||
|
\|delcommand RustEmitIr
|
||||||
|
\|delcommand RustEmitAsm
|
||||||
|
\|nunmap <buffer> <D-r>
|
||||||
|
\|nunmap <buffer> <D-R>
|
||||||
|
\|nunmap <buffer> [[
|
||||||
|
\|nunmap <buffer> ]]
|
||||||
|
\|xunmap <buffer> [[
|
||||||
|
\|xunmap <buffer> ]]
|
||||||
|
\|ounmap <buffer> [[
|
||||||
|
\|ounmap <buffer> ]]
|
||||||
|
\"
|
||||||
|
|
||||||
|
" }}}1
|
||||||
|
|
||||||
|
let &cpo = s:save_cpo
|
||||||
|
unlet s:save_cpo
|
||||||
|
|
||||||
|
" vim: set noet sw=4 ts=4:
|
196
sources_non_forked/rust.vim/indent/rust.vim
Normal file
196
sources_non_forked/rust.vim/indent/rust.vim
Normal file
|
@ -0,0 +1,196 @@
|
||||||
|
" Vim indent file
|
||||||
|
" Language: Rust
|
||||||
|
" Author: Chris Morgan <me@chrismorgan.info>
|
||||||
|
" Last Change: 2014 Sep 13
|
||||||
|
|
||||||
|
" Only load this indent file when no other was loaded.
|
||||||
|
if exists("b:did_indent")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let b:did_indent = 1
|
||||||
|
|
||||||
|
setlocal cindent
|
||||||
|
setlocal cinoptions=L0,(0,Ws,J1,j1
|
||||||
|
setlocal cinkeys=0{,0},!^F,o,O,0[,0]
|
||||||
|
" Don't think cinwords will actually do anything at all... never mind
|
||||||
|
setlocal cinwords=for,if,else,while,loop,impl,mod,unsafe,trait,struct,enum,fn,extern
|
||||||
|
|
||||||
|
" Some preliminary settings
|
||||||
|
setlocal nolisp " Make sure lisp indenting doesn't supersede us
|
||||||
|
setlocal autoindent " indentexpr isn't much help otherwise
|
||||||
|
" Also do indentkeys, otherwise # gets shoved to column 0 :-/
|
||||||
|
setlocal indentkeys=0{,0},!^F,o,O,0[,0]
|
||||||
|
|
||||||
|
setlocal indentexpr=GetRustIndent(v:lnum)
|
||||||
|
|
||||||
|
" Only define the function once.
|
||||||
|
if exists("*GetRustIndent")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Come here when loading the script the first time.
|
||||||
|
|
||||||
|
function! s:get_line_trimmed(lnum)
|
||||||
|
" Get the line and remove a trailing comment.
|
||||||
|
" Use syntax highlighting attributes when possible.
|
||||||
|
" NOTE: this is not accurate; /* */ or a line continuation could trick it
|
||||||
|
let line = getline(a:lnum)
|
||||||
|
let line_len = strlen(line)
|
||||||
|
if has('syntax_items')
|
||||||
|
" If the last character in the line is a comment, do a binary search for
|
||||||
|
" the start of the comment. synID() is slow, a linear search would take
|
||||||
|
" too long on a long line.
|
||||||
|
if synIDattr(synID(a:lnum, line_len, 1), "name") =~ 'Comment\|Todo'
|
||||||
|
let min = 1
|
||||||
|
let max = line_len
|
||||||
|
while min < max
|
||||||
|
let col = (min + max) / 2
|
||||||
|
if synIDattr(synID(a:lnum, col, 1), "name") =~ 'Comment\|Todo'
|
||||||
|
let max = col
|
||||||
|
else
|
||||||
|
let min = col + 1
|
||||||
|
endif
|
||||||
|
endwhile
|
||||||
|
let line = strpart(line, 0, min - 1)
|
||||||
|
endif
|
||||||
|
return substitute(line, "\s*$", "", "")
|
||||||
|
else
|
||||||
|
" Sorry, this is not complete, nor fully correct (e.g. string "//").
|
||||||
|
" Such is life.
|
||||||
|
return substitute(line, "\s*//.*$", "", "")
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:is_string_comment(lnum, col)
|
||||||
|
if has('syntax_items')
|
||||||
|
for id in synstack(a:lnum, a:col)
|
||||||
|
let synname = synIDattr(id, "name")
|
||||||
|
if synname == "rustString" || synname =~ "^rustComment"
|
||||||
|
return 1
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
else
|
||||||
|
" without syntax, let's not even try
|
||||||
|
return 0
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function GetRustIndent(lnum)
|
||||||
|
|
||||||
|
" Starting assumption: cindent (called at the end) will do it right
|
||||||
|
" normally. We just want to fix up a few cases.
|
||||||
|
|
||||||
|
let line = getline(a:lnum)
|
||||||
|
|
||||||
|
if has('syntax_items')
|
||||||
|
let synname = synIDattr(synID(a:lnum, 1, 1), "name")
|
||||||
|
if synname == "rustString"
|
||||||
|
" If the start of the line is in a string, don't change the indent
|
||||||
|
return -1
|
||||||
|
elseif synname =~ '\(Comment\|Todo\)'
|
||||||
|
\ && line !~ '^\s*/\*' " not /* opening line
|
||||||
|
if synname =~ "CommentML" " multi-line
|
||||||
|
if line !~ '^\s*\*' && getline(a:lnum - 1) =~ '^\s*/\*'
|
||||||
|
" This is (hopefully) the line after a /*, and it has no
|
||||||
|
" leader, so the correct indentation is that of the
|
||||||
|
" previous line.
|
||||||
|
return GetRustIndent(a:lnum - 1)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
" If it's in a comment, let cindent take care of it now. This is
|
||||||
|
" for cases like "/*" where the next line should start " * ", not
|
||||||
|
" "* " as the code below would otherwise cause for module scope
|
||||||
|
" Fun fact: " /*\n*\n*/" takes two calls to get right!
|
||||||
|
return cindent(a:lnum)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
" cindent gets second and subsequent match patterns/struct members wrong,
|
||||||
|
" as it treats the comma as indicating an unfinished statement::
|
||||||
|
"
|
||||||
|
" match a {
|
||||||
|
" b => c,
|
||||||
|
" d => e,
|
||||||
|
" f => g,
|
||||||
|
" };
|
||||||
|
|
||||||
|
" Search backwards for the previous non-empty line.
|
||||||
|
let prevlinenum = prevnonblank(a:lnum - 1)
|
||||||
|
let prevline = s:get_line_trimmed(prevlinenum)
|
||||||
|
while prevlinenum > 1 && prevline !~ '[^[:blank:]]'
|
||||||
|
let prevlinenum = prevnonblank(prevlinenum - 1)
|
||||||
|
let prevline = s:get_line_trimmed(prevlinenum)
|
||||||
|
endwhile
|
||||||
|
if prevline[len(prevline) - 1] == ","
|
||||||
|
\ && s:get_line_trimmed(a:lnum) !~ '^\s*[\[\]{}]'
|
||||||
|
\ && prevline !~ '^\s*fn\s'
|
||||||
|
\ && prevline !~ '([^()]\+,$'
|
||||||
|
" Oh ho! The previous line ended in a comma! I bet cindent will try to
|
||||||
|
" take this too far... For now, let's normally use the previous line's
|
||||||
|
" indent.
|
||||||
|
|
||||||
|
" One case where this doesn't work out is where *this* line contains
|
||||||
|
" square or curly brackets; then we normally *do* want to be indenting
|
||||||
|
" further.
|
||||||
|
"
|
||||||
|
" Another case where we don't want to is one like a function
|
||||||
|
" definition with arguments spread over multiple lines:
|
||||||
|
"
|
||||||
|
" fn foo(baz: Baz,
|
||||||
|
" baz: Baz) // <-- cindent gets this right by itself
|
||||||
|
"
|
||||||
|
" Another case is similar to the previous, except calling a function
|
||||||
|
" instead of defining it, or any conditional expression that leaves
|
||||||
|
" an open paren:
|
||||||
|
"
|
||||||
|
" foo(baz,
|
||||||
|
" baz);
|
||||||
|
"
|
||||||
|
" if baz && (foo ||
|
||||||
|
" bar) {
|
||||||
|
"
|
||||||
|
" There are probably other cases where we don't want to do this as
|
||||||
|
" well. Add them as needed.
|
||||||
|
return indent(prevlinenum)
|
||||||
|
endif
|
||||||
|
|
||||||
|
if !has("patch-7.4.355")
|
||||||
|
" cindent before 7.4.355 doesn't do the module scope well at all; e.g.::
|
||||||
|
"
|
||||||
|
" static FOO : &'static [bool] = [
|
||||||
|
" true,
|
||||||
|
" false,
|
||||||
|
" false,
|
||||||
|
" true,
|
||||||
|
" ];
|
||||||
|
"
|
||||||
|
" uh oh, next statement is indented further!
|
||||||
|
|
||||||
|
" Note that this does *not* apply the line continuation pattern properly;
|
||||||
|
" that's too hard to do correctly for my liking at present, so I'll just
|
||||||
|
" start with these two main cases (square brackets and not returning to
|
||||||
|
" column zero)
|
||||||
|
|
||||||
|
call cursor(a:lnum, 1)
|
||||||
|
if searchpair('{\|(', '', '}\|)', 'nbW',
|
||||||
|
\ 's:is_string_comment(line("."), col("."))') == 0
|
||||||
|
if searchpair('\[', '', '\]', 'nbW',
|
||||||
|
\ 's:is_string_comment(line("."), col("."))') == 0
|
||||||
|
" Global scope, should be zero
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
" At the module scope, inside square brackets only
|
||||||
|
"if getline(a:lnum)[0] == ']' || search('\[', '', '\]', 'nW') == a:lnum
|
||||||
|
if line =~ "^\\s*]"
|
||||||
|
" It's the closing line, dedent it
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
return &shiftwidth
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Fall back on cindent, which does it mostly right
|
||||||
|
return cindent(a:lnum)
|
||||||
|
endfunction
|
22
sources_non_forked/rust.vim/plugin/rust.vim
Normal file
22
sources_non_forked/rust.vim/plugin/rust.vim
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
" Vim syntastic plugin helper
|
||||||
|
" Language: Rust
|
||||||
|
" Maintainer: Andrew Gallant <jamslam@gmail.com>
|
||||||
|
|
||||||
|
if exists("g:loaded_syntastic_rust_filetype")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:loaded_syntastic_rust_filetype = 1
|
||||||
|
let s:save_cpo = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
" This is to let Syntastic know about the Rust filetype.
|
||||||
|
" It enables tab completion for the 'SyntasticInfo' command.
|
||||||
|
" (This does not actually register the syntax checker.)
|
||||||
|
if exists('g:syntastic_extra_filetypes')
|
||||||
|
call add(g:syntastic_extra_filetypes, 'rust')
|
||||||
|
else
|
||||||
|
let g:syntastic_extra_filetypes = ['rust']
|
||||||
|
endif
|
||||||
|
|
||||||
|
let &cpo = s:save_cpo
|
||||||
|
unlet s:save_cpo
|
262
sources_non_forked/rust.vim/syntax/rust.vim
Normal file
262
sources_non_forked/rust.vim/syntax/rust.vim
Normal file
|
@ -0,0 +1,262 @@
|
||||||
|
" Vim syntax file
|
||||||
|
" Language: Rust
|
||||||
|
" Maintainer: Patrick Walton <pcwalton@mozilla.com>
|
||||||
|
" Maintainer: Ben Blum <bblum@cs.cmu.edu>
|
||||||
|
" Maintainer: Chris Morgan <me@chrismorgan.info>
|
||||||
|
" Last Change: January 5, 2015
|
||||||
|
|
||||||
|
if version < 600
|
||||||
|
syntax clear
|
||||||
|
elseif exists("b:current_syntax")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Syntax definitions {{{1
|
||||||
|
" Basic keywords {{{2
|
||||||
|
syn keyword rustConditional match if else
|
||||||
|
syn keyword rustOperator as
|
||||||
|
|
||||||
|
syn match rustAssert "\<assert\(\w\)*!" contained
|
||||||
|
syn match rustPanic "\<panic\(\w\)*!" contained
|
||||||
|
syn keyword rustKeyword break
|
||||||
|
syn keyword rustKeyword box nextgroup=rustBoxPlacement skipwhite skipempty
|
||||||
|
syn keyword rustKeyword continue
|
||||||
|
syn keyword rustKeyword extern nextgroup=rustExternCrate,rustObsoleteExternMod skipwhite skipempty
|
||||||
|
syn keyword rustKeyword fn nextgroup=rustFuncName skipwhite skipempty
|
||||||
|
syn keyword rustKeyword for in if impl let
|
||||||
|
syn keyword rustKeyword loop once pub
|
||||||
|
syn keyword rustKeyword return super
|
||||||
|
syn keyword rustKeyword unsafe virtual where while
|
||||||
|
syn keyword rustKeyword use nextgroup=rustModPath skipwhite skipempty
|
||||||
|
" FIXME: Scoped impl's name is also fallen in this category
|
||||||
|
syn keyword rustKeyword mod trait struct enum type nextgroup=rustIdentifier skipwhite skipempty
|
||||||
|
syn keyword rustStorage move mut ref static const
|
||||||
|
|
||||||
|
syn keyword rustInvalidBareKeyword crate
|
||||||
|
|
||||||
|
syn keyword rustExternCrate crate contained nextgroup=rustIdentifier,rustExternCrateString skipwhite skipempty
|
||||||
|
" This is to get the `bar` part of `extern crate "foo" as bar;` highlighting.
|
||||||
|
syn match rustExternCrateString /".*"\_s*as/ contained nextgroup=rustIdentifier skipwhite transparent skipempty contains=rustString,rustOperator
|
||||||
|
syn keyword rustObsoleteExternMod mod contained nextgroup=rustIdentifier skipwhite skipempty
|
||||||
|
|
||||||
|
syn match rustIdentifier contains=rustIdentifierPrime "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
|
||||||
|
syn match rustFuncName "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
|
||||||
|
|
||||||
|
syn region rustBoxPlacement matchgroup=rustBoxPlacementParens start="(" end=")" contains=TOP contained
|
||||||
|
syn keyword rustBoxPlacementExpr GC containedin=rustBoxPlacement
|
||||||
|
" Ideally we'd have syntax rules set up to match arbitrary expressions. Since
|
||||||
|
" we don't, we'll just define temporary contained rules to handle balancing
|
||||||
|
" delimiters.
|
||||||
|
syn region rustBoxPlacementBalance start="(" end=")" containedin=rustBoxPlacement transparent
|
||||||
|
syn region rustBoxPlacementBalance start="\[" end="\]" containedin=rustBoxPlacement transparent
|
||||||
|
" {} are handled by rustFoldBraces
|
||||||
|
|
||||||
|
syn region rustMacroRepeat matchgroup=rustMacroRepeatDelimiters start="$(" end=")" contains=TOP nextgroup=rustMacroRepeatCount
|
||||||
|
syn match rustMacroRepeatCount ".\?[*+]" contained
|
||||||
|
syn match rustMacroVariable "$\w\+"
|
||||||
|
|
||||||
|
" Reserved (but not yet used) keywords {{{2
|
||||||
|
syn keyword rustReservedKeyword alignof be do offsetof priv pure sizeof typeof unsized yield abstract final override macro
|
||||||
|
|
||||||
|
" Built-in types {{{2
|
||||||
|
syn keyword rustType isize usize float char bool u8 u16 u32 u64 f32
|
||||||
|
syn keyword rustType f64 i8 i16 i32 i64 str Self
|
||||||
|
|
||||||
|
" Things from the prelude (src/libstd/prelude.rs) {{{2
|
||||||
|
" This section is just straight transformation of the contents of the prelude,
|
||||||
|
" to make it easy to update.
|
||||||
|
|
||||||
|
" Reexported core operators {{{3
|
||||||
|
syn keyword rustTrait Copy Send Sized Sync
|
||||||
|
syn keyword rustTrait Drop Fn FnMut FnOnce
|
||||||
|
|
||||||
|
" Reexported functions {{{3
|
||||||
|
syn keyword rustFunction drop
|
||||||
|
|
||||||
|
" Reexported types and traits {{{3
|
||||||
|
syn keyword rustTrait Box
|
||||||
|
syn keyword rustTrait CharExt
|
||||||
|
syn keyword rustTrait Clone
|
||||||
|
syn keyword rustTrait PartialEq PartialOrd Eq Ord
|
||||||
|
syn keyword rustTrait DoubleEndedIterator
|
||||||
|
syn keyword rustTrait ExactSizeIterator
|
||||||
|
syn keyword rustTrait Iterator IteratorExt Extend
|
||||||
|
syn keyword rustEnum Option
|
||||||
|
syn keyword rustEnumVariant Some None
|
||||||
|
syn keyword rustTrait PtrExt MutPtrExt
|
||||||
|
syn keyword rustEnum Result
|
||||||
|
syn keyword rustEnumVariant Ok Err
|
||||||
|
syn keyword rustTrait AsSlice
|
||||||
|
syn keyword rustTrait SliceExt SliceConcatExt
|
||||||
|
syn keyword rustTrait Str StrExt
|
||||||
|
syn keyword rustTrait String ToString
|
||||||
|
syn keyword rustTrait Vec
|
||||||
|
" FIXME: remove when path reform lands
|
||||||
|
syn keyword rustTrait Path GenericPath
|
||||||
|
" FIXME: remove when I/O reform lands
|
||||||
|
syn keyword rustTrait Buffer Writer Reader Seek BufferPrelude
|
||||||
|
|
||||||
|
" Other syntax {{{2
|
||||||
|
syn keyword rustSelf self
|
||||||
|
syn keyword rustBoolean true false
|
||||||
|
|
||||||
|
" If foo::bar changes to foo.bar, change this ("::" to "\.").
|
||||||
|
" If foo::bar changes to Foo::bar, change this (first "\w" to "\u").
|
||||||
|
syn match rustModPath "\w\(\w\)*::[^<]"he=e-3,me=e-3
|
||||||
|
syn match rustModPathSep "::"
|
||||||
|
|
||||||
|
syn match rustFuncCall "\w\(\w\)*("he=e-1,me=e-1
|
||||||
|
syn match rustFuncCall "\w\(\w\)*::<"he=e-3,me=e-3 " foo::<T>();
|
||||||
|
|
||||||
|
" This is merely a convention; note also the use of [A-Z], restricting it to
|
||||||
|
" latin identifiers rather than the full Unicode uppercase. I have not used
|
||||||
|
" [:upper:] as it depends upon 'noignorecase'
|
||||||
|
"syn match rustCapsIdent display "[A-Z]\w\(\w\)*"
|
||||||
|
|
||||||
|
syn match rustOperator display "\%(+\|-\|/\|*\|=\|\^\|&\||\|!\|>\|<\|%\)=\?"
|
||||||
|
" This one isn't *quite* right, as we could have binary-& with a reference
|
||||||
|
syn match rustSigil display /&\s\+[&~@*][^)= \t\r\n]/he=e-1,me=e-1
|
||||||
|
syn match rustSigil display /[&~@*][^)= \t\r\n]/he=e-1,me=e-1
|
||||||
|
" This isn't actually correct; a closure with no arguments can be `|| { }`.
|
||||||
|
" Last, because the & in && isn't a sigil
|
||||||
|
syn match rustOperator display "&&\|||"
|
||||||
|
|
||||||
|
syn match rustMacro '\w\(\w\)*!' contains=rustAssert,rustPanic
|
||||||
|
syn match rustMacro '#\w\(\w\)*' contains=rustAssert,rustPanic
|
||||||
|
|
||||||
|
syn match rustEscapeError display contained /\\./
|
||||||
|
syn match rustEscape display contained /\\\([nrt0\\'"]\|x\x\{2}\)/
|
||||||
|
syn match rustEscapeUnicode display contained /\\\(u\x\{4}\|U\x\{8}\)/
|
||||||
|
syn match rustEscapeUnicode display contained /\\u{\x\{1,6}}/
|
||||||
|
syn match rustStringContinuation display contained /\\\n\s*/
|
||||||
|
syn region rustString start=+b"+ skip=+\\\\\|\\"+ end=+"+ contains=rustEscape,rustEscapeError,rustStringContinuation
|
||||||
|
syn region rustString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=rustEscape,rustEscapeUnicode,rustEscapeError,rustStringContinuation,@Spell
|
||||||
|
syn region rustString start='b\?r\z(#*\)"' end='"\z1' contains=@Spell
|
||||||
|
|
||||||
|
syn region rustAttribute start="#!\?\[" end="\]" contains=rustString,rustDerive
|
||||||
|
syn region rustDerive start="derive(" end=")" contained contains=rustTrait
|
||||||
|
|
||||||
|
" Number literals
|
||||||
|
syn match rustDecNumber display "\<[0-9][0-9_]*\%([iu]\%(s\|8\|16\|32\|64\)\)\="
|
||||||
|
syn match rustHexNumber display "\<0x[a-fA-F0-9_]\+\%([iu]\%(s\|8\|16\|32\|64\)\)\="
|
||||||
|
syn match rustOctNumber display "\<0o[0-7_]\+\%([iu]\%(s\|8\|16\|32\|64\)\)\="
|
||||||
|
syn match rustBinNumber display "\<0b[01_]\+\%([iu]\%(s\|8\|16\|32\|64\)\)\="
|
||||||
|
|
||||||
|
" Special case for numbers of the form "1." which are float literals, unless followed by
|
||||||
|
" an identifier, which makes them integer literals with a method call or field access,
|
||||||
|
" or by another ".", which makes them integer literals followed by the ".." token.
|
||||||
|
" (This must go first so the others take precedence.)
|
||||||
|
syn match rustFloat display "\<[0-9][0-9_]*\.\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\|\.\)\@!"
|
||||||
|
" To mark a number as a normal float, it must have at least one of the three things integral values don't have:
|
||||||
|
" a decimal point and more numbers; an exponent; and a type suffix.
|
||||||
|
syn match rustFloat display "\<[0-9][0-9_]*\%(\.[0-9][0-9_]*\)\%([eE][+-]\=[0-9_]\+\)\=\(f32\|f64\)\="
|
||||||
|
syn match rustFloat display "\<[0-9][0-9_]*\%(\.[0-9][0-9_]*\)\=\%([eE][+-]\=[0-9_]\+\)\(f32\|f64\)\="
|
||||||
|
syn match rustFloat display "\<[0-9][0-9_]*\%(\.[0-9][0-9_]*\)\=\%([eE][+-]\=[0-9_]\+\)\=\(f32\|f64\)"
|
||||||
|
|
||||||
|
" For the benefit of delimitMate
|
||||||
|
syn region rustLifetimeCandidate display start=/&'\%(\([^'\\]\|\\\(['nrt0\\\"]\|x\x\{2}\|u\x\{4}\|U\x\{8}\)\)'\)\@!/ end=/[[:cntrl:][:space:][:punct:]]\@=\|$/ contains=rustSigil,rustLifetime
|
||||||
|
syn region rustGenericRegion display start=/<\%('\|[^[cntrl:][:space:][:punct:]]\)\@=')\S\@=/ end=/>/ contains=rustGenericLifetimeCandidate
|
||||||
|
syn region rustGenericLifetimeCandidate display start=/\%(<\|,\s*\)\@<='/ end=/[[:cntrl:][:space:][:punct:]]\@=\|$/ contains=rustSigil,rustLifetime
|
||||||
|
|
||||||
|
"rustLifetime must appear before rustCharacter, or chars will get the lifetime highlighting
|
||||||
|
syn match rustLifetime display "\'\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*"
|
||||||
|
syn match rustCharacterInvalid display contained /b\?'\zs[\n\r\t']\ze'/
|
||||||
|
" The groups negated here add up to 0-255 but nothing else (they do not seem to go beyond ASCII).
|
||||||
|
syn match rustCharacterInvalidUnicode display contained /b'\zs[^[:cntrl:][:graph:][:alnum:][:space:]]\ze'/
|
||||||
|
syn match rustCharacter /b'\([^\\]\|\\\(.\|x\x\{2}\)\)'/ contains=rustEscape,rustEscapeError,rustCharacterInvalid,rustCharacterInvalidUnicode
|
||||||
|
syn match rustCharacter /'\([^\\]\|\\\(.\|x\x\{2}\|u\x\{4}\|U\x\{8}\|u{\x\{1,6}}\)\)'/ contains=rustEscape,rustEscapeUnicode,rustEscapeError,rustCharacterInvalid
|
||||||
|
|
||||||
|
syn region rustCommentLine start="//" end="$" contains=rustTodo,@Spell
|
||||||
|
syn region rustCommentLineDoc start="//\%(//\@!\|!\)" end="$" contains=rustTodo,@Spell
|
||||||
|
syn region rustCommentBlock matchgroup=rustCommentBlock start="/\*\%(!\|\*[*/]\@!\)\@!" end="\*/" contains=rustTodo,rustCommentBlockNest,@Spell
|
||||||
|
syn region rustCommentBlockDoc matchgroup=rustCommentBlockDoc start="/\*\%(!\|\*[*/]\@!\)" end="\*/" contains=rustTodo,rustCommentBlockDocNest,@Spell
|
||||||
|
syn region rustCommentBlockNest matchgroup=rustCommentBlock start="/\*" end="\*/" contains=rustTodo,rustCommentBlockNest,@Spell contained transparent
|
||||||
|
syn region rustCommentBlockDocNest matchgroup=rustCommentBlockDoc start="/\*" end="\*/" contains=rustTodo,rustCommentBlockDocNest,@Spell contained transparent
|
||||||
|
" FIXME: this is a really ugly and not fully correct implementation. Most
|
||||||
|
" importantly, a case like ``/* */*`` should have the final ``*`` not being in
|
||||||
|
" a comment, but in practice at present it leaves comments open two levels
|
||||||
|
" deep. But as long as you stay away from that particular case, I *believe*
|
||||||
|
" the highlighting is correct. Due to the way Vim's syntax engine works
|
||||||
|
" (greedy for start matches, unlike Rust's tokeniser which is searching for
|
||||||
|
" the earliest-starting match, start or end), I believe this cannot be solved.
|
||||||
|
" Oh you who would fix it, don't bother with things like duplicating the Block
|
||||||
|
" rules and putting ``\*\@<!`` at the start of them; it makes it worse, as
|
||||||
|
" then you must deal with cases like ``/*/**/*/``. And don't try making it
|
||||||
|
" worse with ``\%(/\@<!\*\)\@<!``, either...
|
||||||
|
|
||||||
|
syn keyword rustTodo contained TODO FIXME XXX NB NOTE
|
||||||
|
|
||||||
|
" Folding rules {{{2
|
||||||
|
" Trivial folding rules to begin with.
|
||||||
|
" FIXME: use the AST to make really good folding
|
||||||
|
syn region rustFoldBraces start="{" end="}" transparent fold
|
||||||
|
|
||||||
|
" Default highlighting {{{1
|
||||||
|
hi def link rustDecNumber rustNumber
|
||||||
|
hi def link rustHexNumber rustNumber
|
||||||
|
hi def link rustOctNumber rustNumber
|
||||||
|
hi def link rustBinNumber rustNumber
|
||||||
|
hi def link rustIdentifierPrime rustIdentifier
|
||||||
|
hi def link rustTrait rustType
|
||||||
|
|
||||||
|
hi def link rustMacroRepeatCount rustMacroRepeatDelimiters
|
||||||
|
hi def link rustMacroRepeatDelimiters Macro
|
||||||
|
hi def link rustMacroVariable Define
|
||||||
|
hi def link rustSigil StorageClass
|
||||||
|
hi def link rustEscape Special
|
||||||
|
hi def link rustEscapeUnicode rustEscape
|
||||||
|
hi def link rustEscapeError Error
|
||||||
|
hi def link rustStringContinuation Special
|
||||||
|
hi def link rustString String
|
||||||
|
hi def link rustCharacterInvalid Error
|
||||||
|
hi def link rustCharacterInvalidUnicode rustCharacterInvalid
|
||||||
|
hi def link rustCharacter Character
|
||||||
|
hi def link rustNumber Number
|
||||||
|
hi def link rustBoolean Boolean
|
||||||
|
hi def link rustEnum rustType
|
||||||
|
hi def link rustEnumVariant rustConstant
|
||||||
|
hi def link rustConstant Constant
|
||||||
|
hi def link rustSelf Constant
|
||||||
|
hi def link rustFloat Float
|
||||||
|
hi def link rustOperator Operator
|
||||||
|
hi def link rustKeyword Keyword
|
||||||
|
hi def link rustReservedKeyword Error
|
||||||
|
hi def link rustConditional Conditional
|
||||||
|
hi def link rustIdentifier Identifier
|
||||||
|
hi def link rustCapsIdent rustIdentifier
|
||||||
|
hi def link rustModPath Include
|
||||||
|
hi def link rustModPathSep Delimiter
|
||||||
|
hi def link rustFunction Function
|
||||||
|
hi def link rustFuncName Function
|
||||||
|
hi def link rustFuncCall Function
|
||||||
|
hi def link rustCommentLine Comment
|
||||||
|
hi def link rustCommentLineDoc SpecialComment
|
||||||
|
hi def link rustCommentBlock rustCommentLine
|
||||||
|
hi def link rustCommentBlockDoc rustCommentLineDoc
|
||||||
|
hi def link rustAssert PreCondit
|
||||||
|
hi def link rustPanic PreCondit
|
||||||
|
hi def link rustMacro Macro
|
||||||
|
hi def link rustType Type
|
||||||
|
hi def link rustTodo Todo
|
||||||
|
hi def link rustAttribute PreProc
|
||||||
|
hi def link rustDerive PreProc
|
||||||
|
hi def link rustStorage StorageClass
|
||||||
|
hi def link rustObsoleteStorage Error
|
||||||
|
hi def link rustLifetime Special
|
||||||
|
hi def link rustInvalidBareKeyword Error
|
||||||
|
hi def link rustExternCrate rustKeyword
|
||||||
|
hi def link rustObsoleteExternMod Error
|
||||||
|
hi def link rustBoxPlacementParens Delimiter
|
||||||
|
hi def link rustBoxPlacementExpr rustKeyword
|
||||||
|
|
||||||
|
" Other Suggestions:
|
||||||
|
" hi rustAttribute ctermfg=cyan
|
||||||
|
" hi rustDerive ctermfg=cyan
|
||||||
|
" hi rustAssert ctermfg=yellow
|
||||||
|
" hi rustPanic ctermfg=red
|
||||||
|
" hi rustMacro ctermfg=magenta
|
||||||
|
|
||||||
|
syn sync minlines=200
|
||||||
|
syn sync maxlines=500
|
||||||
|
|
||||||
|
let b:current_syntax = "rust"
|
35
sources_non_forked/rust.vim/syntax_checkers/rust/rustc.vim
Normal file
35
sources_non_forked/rust.vim/syntax_checkers/rust/rustc.vim
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
" Vim syntastic plugin
|
||||||
|
" Language: Rust
|
||||||
|
" Maintainer: Andrew Gallant <jamslam@gmail.com>
|
||||||
|
"
|
||||||
|
" See for details on how to add an external Syntastic checker:
|
||||||
|
" https://github.com/scrooloose/syntastic/wiki/Syntax-Checker-Guide#external
|
||||||
|
|
||||||
|
if exists("g:loaded_syntastic_rust_rustc_checker")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:loaded_syntastic_rust_rustc_checker = 1
|
||||||
|
|
||||||
|
let s:save_cpo = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
function! SyntaxCheckers_rust_rustc_GetLocList() dict
|
||||||
|
let makeprg = self.makeprgBuild({ 'args': '-Zparse-only' })
|
||||||
|
|
||||||
|
let errorformat =
|
||||||
|
\ '%E%f:%l:%c: %\d%#:%\d%# %.%\{-}error:%.%\{-} %m,' .
|
||||||
|
\ '%W%f:%l:%c: %\d%#:%\d%# %.%\{-}warning:%.%\{-} %m,' .
|
||||||
|
\ '%C%f:%l %m,' .
|
||||||
|
\ '%-Z%.%#'
|
||||||
|
|
||||||
|
return SyntasticMake({
|
||||||
|
\ 'makeprg': makeprg,
|
||||||
|
\ 'errorformat': errorformat })
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||||
|
\ 'filetype': 'rust',
|
||||||
|
\ 'name': 'rustc'})
|
||||||
|
|
||||||
|
let &cpo = s:save_cpo
|
||||||
|
unlet s:save_cpo
|
|
@ -11,11 +11,11 @@
|
||||||
## 1. Bug reports / GitHub issues
|
## 1. Bug reports / GitHub issues
|
||||||
|
|
||||||
Please note that the preferred channel for posting bug reports is the
|
Please note that the preferred channel for posting bug reports is the
|
||||||
[issue tracker at GitHub][0]. Reports posted elsewhere are less likely
|
[issue tracker at GitHub][0]. Reports posted elsewhere are less likely
|
||||||
to be seen by the core team.
|
to be seen by the core team.
|
||||||
|
|
||||||
When reporting a bug make sure you search the existing GitHub issues
|
When reporting a bug make sure you search the existing GitHub issues
|
||||||
for the same/similar issues. If you find one, feel free to add a `+1`
|
for the same/similar issues. If you find one, feel free to add a `+1`
|
||||||
comment with any additional information that may help us solve the
|
comment with any additional information that may help us solve the
|
||||||
issue.
|
issue.
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ When creating a new issue be sure to state the following:
|
||||||
* the version of syntastic you are using (see `:SyntasticInfo`).
|
* the version of syntastic you are using (see `:SyntasticInfo`).
|
||||||
|
|
||||||
For syntax checker bugs also state the version of the checker executable
|
For syntax checker bugs also state the version of the checker executable
|
||||||
that you are using. Adding debugging information is typically useful
|
that you are using. Adding debugging information is typically useful
|
||||||
too:
|
too:
|
||||||
|
|
||||||
* open a file handled by your checker;
|
* open a file handled by your checker;
|
||||||
|
@ -38,10 +38,10 @@ too:
|
||||||
|
|
||||||
## 2. Submitting a patch
|
## 2. Submitting a patch
|
||||||
|
|
||||||
Before you consider adding features to syntastic, _please_ spend a few
|
Before you consider adding features to syntastic, _please_ spend a few minutes
|
||||||
minutes (re-)reading the latest version of the [manual][1]. Syntastic
|
(re-)reading the latest version of the [manual][1]. Syntastic is changing
|
||||||
is changing rapidly at times, and it's quite possible that some features
|
rapidly at times, and it's possible that some features you want to add exist
|
||||||
you want to add exist already.
|
already.
|
||||||
|
|
||||||
To submit a patch:
|
To submit a patch:
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ Small, focused patches are preferred.
|
||||||
Large changes to the code should be discussed with the core team first.
|
Large changes to the code should be discussed with the core team first.
|
||||||
Create an issue and explain your plan and see what we say.
|
Create an issue and explain your plan and see what we say.
|
||||||
|
|
||||||
Also, make sure to update the manual whenever applicable. Nobody can use
|
Also, make sure to update the manual whenever applicable. Nobody can use
|
||||||
features that aren't documented.
|
features that aren't documented.
|
||||||
|
|
||||||
<a name="generalstyle"></a>
|
<a name="generalstyle"></a>
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
4.8. [How can I pass additional arguments to a checker?](#faqargs)
|
4.8. [How can I pass additional arguments to a checker?](#faqargs)
|
||||||
4.9. [Syntastic supports several checkers for my filetype - how do I tell which one(s) to use?](#faqcheckers)
|
4.9. [Syntastic supports several checkers for my filetype - how do I tell which one(s) to use?](#faqcheckers)
|
||||||
4.10. [What is the difference between syntax checkers and style checkers?](#faqstyle)
|
4.10. [What is the difference between syntax checkers and style checkers?](#faqstyle)
|
||||||
4.11. [I have enabled multiple checkers for the current filetype. How can I display all errors from all checkers together?](#faqaggregate)
|
4.11. [I have enabled multiple checkers for the current filetype. How can I display all errors from all checkers together?](#faqaggregate)
|
||||||
4.12. [How can I jump between the different errors without using the location list at the bottom of the window?](#faqlnext)
|
4.12. [How can I jump between the different errors without using the location list at the bottom of the window?](#faqlnext)
|
||||||
4.13. [The error window is closed automatically when I :quit the current buffer but not when I :bdelete it?](#faqbdelete)
|
4.13. [The error window is closed automatically when I :quit the current buffer but not when I :bdelete it?](#faqbdelete)
|
||||||
5. [Resources](#otherresources)
|
5. [Resources](#otherresources)
|
||||||
|
@ -54,17 +54,17 @@ compile their code or execute their script to find them.
|
||||||
|
|
||||||
At the time of this writing, syntastic has checking plugins for ActionScript,
|
At the time of this writing, syntastic has checking plugins for ActionScript,
|
||||||
Ada, Ansible configurations, API Blueprint, AppleScript, AsciiDoc, ASM,
|
Ada, Ansible configurations, API Blueprint, AppleScript, AsciiDoc, ASM,
|
||||||
BEMHTML, Bro, Bourne shell, C, C++, C#, Cabal, Chef, CoffeeScript, Coco, Coq,
|
BEMHTML, Bro, Bourne shell, C, C++, C#, Cabal, Chef, CoffeeScript, Coco,
|
||||||
CSS, Cucumber, CUDA, D, Dart, DocBook, Dockerfile, Dust, Elixir, Erlang,
|
Coq, CSS, Cucumber, CUDA, D, Dart, DocBook, Dockerfile, Dust, Elixir,
|
||||||
eRuby, Fortran, Gentoo metadata, GLSL, Go, Haml, Haskell, Haxe, Handlebars,
|
Erlang, eRuby, Fortran, Gentoo metadata, GLSL, Go, Haml, Haskell, Haxe,
|
||||||
HSS, HTML, Jade, Java, JavaScript, JSON, JSX, LESS, Lex, Limbo, LISP, LLVM
|
Handlebars, HSS, HTML, Java, JavaScript, JSON, JSX, LESS, Lex, Limbo, LISP,
|
||||||
intermediate language, Lua, Markdown, MATLAB, Mercury, NASM, Nix, Objective-C,
|
LLVM intermediate language, Lua, Markdown, MATLAB, Mercury, NASM, Nix,
|
||||||
Objective-C++, OCaml, Perl, Perl POD, PHP, gettext Portable Object, OS X and
|
Objective-C, Objective-C++, OCaml, Perl, Perl POD, PHP, gettext Portable
|
||||||
iOS property lists, Puppet, Python, QML, R, Racket, Relax NG, reStructuredText,
|
Object, OS X and iOS property lists, Pug (formerly Jade), Puppet, Python, QML,
|
||||||
RPM spec, Ruby, SASS/SCSS, Scala, Slim, SML, Sphinx, SQL, Stylus, Tcl, TeX,
|
R, Racket, Relax NG, reStructuredText, RPM spec, Ruby, SASS/SCSS, Scala, Slim,
|
||||||
Texinfo, Twig, TypeScript, Vala, Verilog, VHDL, VimL, xHtml, XML, XSLT, XQuery,
|
SML, Sphinx, SQL, Stylus, Tcl, TeX, Texinfo, Twig, TypeScript, Vala, Verilog,
|
||||||
YACC, YAML, z80, Zope page templates, and zsh. See the [wiki][3] for details
|
VHDL, VimL, xHtml, XML, XSLT, XQuery, YACC, YAML, z80, Zope page templates, and
|
||||||
about the corresponding supported checkers.
|
zsh. See the [wiki][3] for details about the corresponding supported checkers.
|
||||||
|
|
||||||
A number of third-party Vim plugins also provide checkers for syntastic,
|
A number of third-party Vim plugins also provide checkers for syntastic,
|
||||||
for example: [merlin][30], [omnisharp-vim][25], [rust.vim][12],
|
for example: [merlin][30], [omnisharp-vim][25], [rust.vim][12],
|
||||||
|
@ -72,7 +72,7 @@ for example: [merlin][30], [omnisharp-vim][25], [rust.vim][12],
|
||||||
[vim-eastwood][28], and [vim-swift][24].
|
[vim-eastwood][28], and [vim-swift][24].
|
||||||
|
|
||||||
Below is a screenshot showing the methods that Syntastic uses to display syntax
|
Below is a screenshot showing the methods that Syntastic uses to display syntax
|
||||||
errors. Note that, in practise, you will only have a subset of these methods
|
errors. Note that, in practise, you will only have a subset of these methods
|
||||||
enabled.
|
enabled.
|
||||||
|
|
||||||
![Screenshot 1][0]
|
![Screenshot 1][0]
|
||||||
|
@ -105,6 +105,12 @@ Syntastic should work with any modern plugin managers for Vim, such as
|
||||||
[Vundle][17]. Instructions for installing syntastic with [Pathogen][1] are
|
[Vundle][17]. Instructions for installing syntastic with [Pathogen][1] are
|
||||||
included below for completeness.
|
included below for completeness.
|
||||||
|
|
||||||
|
Starting with Vim version 7.4.1486 you can also load syntastic using the
|
||||||
|
standard mechanism of packages, without the help of third-party plugin managers
|
||||||
|
(see `:help packages` in Vim for details). Beware however that, while support
|
||||||
|
for packages has been added in Vim 7.4.1384, the functionality needed by
|
||||||
|
syntastic is present only in versions 7.4.1486 and later.
|
||||||
|
|
||||||
Last but not least: syntastic doesn't know how to do any syntax checks by
|
Last but not least: syntastic doesn't know how to do any syntax checks by
|
||||||
itself. In order to get meaningful results you need to install external
|
itself. In order to get meaningful results you need to install external
|
||||||
checkers corresponding to the types of files you use. Please consult the
|
checkers corresponding to the types of files you use. Please consult the
|
||||||
|
@ -122,7 +128,7 @@ If you already have [Pathogen][1] working then skip [Step 1](#step1) and go to
|
||||||
#### 2.2.1\. Step 1: Install pathogen.vim
|
#### 2.2.1\. Step 1: Install pathogen.vim
|
||||||
|
|
||||||
First I'll show you how to install Tim Pope's [Pathogen][1] so that it's easy to
|
First I'll show you how to install Tim Pope's [Pathogen][1] so that it's easy to
|
||||||
install syntastic. Do this in your terminal so that you get the `pathogen.vim`
|
install syntastic. Do this in your terminal so that you get the `pathogen.vim`
|
||||||
file and the directories it needs:
|
file and the directories it needs:
|
||||||
```sh
|
```sh
|
||||||
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
|
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
|
||||||
|
@ -148,7 +154,7 @@ Quit vim and start it back up to reload it, then type:
|
||||||
:Helptags
|
:Helptags
|
||||||
```
|
```
|
||||||
If you get an error when you do this, then you probably didn't install
|
If you get an error when you do this, then you probably didn't install
|
||||||
[Pathogen][1] right. Go back to [Step 1](#step1) and make sure you did the
|
[Pathogen][1] right. Go back to [Step 1](#step1) and make sure you did the
|
||||||
following:
|
following:
|
||||||
|
|
||||||
1. Created both the `~/.vim/autoload` and `~/.vim/bundle` directories.
|
1. Created both the `~/.vim/autoload` and `~/.vim/bundle` directories.
|
||||||
|
@ -161,7 +167,7 @@ following:
|
||||||
## 3\. Recommended settings
|
## 3\. Recommended settings
|
||||||
|
|
||||||
Syntastic has numerous options that can be configured, and the defaults
|
Syntastic has numerous options that can be configured, and the defaults
|
||||||
are not particularly well suitable for new users. It is recommended
|
are not particularly well suitable for new users. It is recommended
|
||||||
that you start by adding the following lines to your `vimrc` file, and
|
that you start by adding the following lines to your `vimrc` file, and
|
||||||
return to them after reading the manual (see `:help syntastic` in Vim):
|
return to them after reading the manual (see `:help syntastic` in Vim):
|
||||||
```vim
|
```vim
|
||||||
|
@ -231,8 +237,8 @@ let g:syntastic_python_python_exec = '/path/to/python3'
|
||||||
|
|
||||||
__4.3. Q. Are there any local checkers for HTML5 that I can use with syntastic?__
|
__4.3. Q. Are there any local checkers for HTML5 that I can use with syntastic?__
|
||||||
|
|
||||||
[HTML Tidy][18] has a fork named [HTML Tidy for HTML5][19]. It's a drop
|
[HTML Tidy][18] has a fork named [HTML Tidy for HTML5][19]. It's a drop
|
||||||
in replacement, and syntastic can use it without changes. Just install it
|
in replacement, and syntastic can use it without changes. Just install it
|
||||||
somewhere and point `g:syntastic_html_tidy_exec` to its executable:
|
somewhere and point `g:syntastic_html_tidy_exec` to its executable:
|
||||||
```vim
|
```vim
|
||||||
let g:syntastic_html_tidy_exec = 'tidy5'
|
let g:syntastic_html_tidy_exec = 'tidy5'
|
||||||
|
@ -253,12 +259,12 @@ __4.4. Q. The `perl` checker has stopped working...__
|
||||||
|
|
||||||
A. The `perl` checker runs `perl -c` against your file, which in turn
|
A. The `perl` checker runs `perl -c` against your file, which in turn
|
||||||
__executes__ any `BEGIN`, `UNITCHECK`, and `CHECK` blocks, and any `use`
|
__executes__ any `BEGIN`, `UNITCHECK`, and `CHECK` blocks, and any `use`
|
||||||
statements in your file (cf. [perlrun][10]). This is probably fine if you
|
statements in your file (cf. [perlrun][10]). This is probably fine if you
|
||||||
wrote the file yourself, but it's a security problem if you're checking third
|
wrote the file yourself, but it's a security problem if you're checking
|
||||||
party files. Since there is currently no way to disable this behaviour while
|
third-party files. Since there is currently no way to disable this behaviour
|
||||||
still producing useful results, the checker is now disabled by default. To
|
while still producing useful results, the checker is now disabled by default.
|
||||||
(re-)enable it, make sure the `g:syntastic_perl_checkers` list includes `perl`,
|
To (re-)enable it, make sure the `g:syntastic_perl_checkers` list includes
|
||||||
and set `g:syntastic_enable_perl_checker` to 1 in your `vimrc`:
|
`perl`, and set `g:syntastic_enable_perl_checker` to 1 in your `vimrc`:
|
||||||
```vim
|
```vim
|
||||||
let g:syntastic_enable_perl_checker = 1
|
let g:syntastic_enable_perl_checker = 1
|
||||||
```
|
```
|
||||||
|
@ -267,7 +273,7 @@ let g:syntastic_enable_perl_checker = 1
|
||||||
|
|
||||||
__4.5. Q. What happened to the `rustc` checker?__
|
__4.5. Q. What happened to the `rustc` checker?__
|
||||||
|
|
||||||
A. It is now part of the [rust.vim][12] plugin. If you install this plugin the
|
A. It is now part of the [rust.vim][12] plugin. If you install this plugin the
|
||||||
checker should be picked up automatically by syntastic.
|
checker should be picked up automatically by syntastic.
|
||||||
|
|
||||||
<a name="faqxcrun"></a>
|
<a name="faqxcrun"></a>
|
||||||
|
@ -275,7 +281,7 @@ checker should be picked up automatically by syntastic.
|
||||||
__4.6. Q. What happened to the `xcrun` checker?__
|
__4.6. Q. What happened to the `xcrun` checker?__
|
||||||
|
|
||||||
A. The `xcrun` checker used to have a security problem and it has been removed.
|
A. The `xcrun` checker used to have a security problem and it has been removed.
|
||||||
A better checker for __Swift__ is part of the [vim-swift][24] plugin. If you
|
A better checker for __Swift__ is part of the [vim-swift][24] plugin. If you
|
||||||
install this plugin the checker should be picked up automatically by syntastic.
|
install this plugin the checker should be picked up automatically by syntastic.
|
||||||
|
|
||||||
<a name="faqloclist"></a>
|
<a name="faqloclist"></a>
|
||||||
|
@ -284,7 +290,7 @@ __4.7. Q. I run a checker and the location list is not updated...__
|
||||||
__4.7. Q. I run`:lopen` or `:lwindow` and the error window is empty...__
|
__4.7. Q. I run`:lopen` or `:lwindow` and the error window is empty...__
|
||||||
|
|
||||||
A. By default the location list is changed only when you run the `:Errors`
|
A. By default the location list is changed only when you run the `:Errors`
|
||||||
command, in order to minimise conflicts with other plugins. If you want the
|
command, in order to minimise conflicts with other plugins. If you want the
|
||||||
location list to always be updated when you run the checkers, add this line to
|
location list to always be updated when you run the checkers, add this line to
|
||||||
your `vimrc`:
|
your `vimrc`:
|
||||||
```vim
|
```vim
|
||||||
|
@ -367,7 +373,7 @@ nature, produce both kinds of messages. Syntastic is not smart enough to be
|
||||||
able to sort out these things by itself.
|
able to sort out these things by itself.
|
||||||
|
|
||||||
In fact it's more useful to look at this from the perspective of filtering
|
In fact it's more useful to look at this from the perspective of filtering
|
||||||
unwanted messages, rather than as an indicator of severity levels. The
|
unwanted messages, rather than as an indicator of severity levels. The
|
||||||
distinction between syntax and style is orthogonal to the distinction between
|
distinction between syntax and style is orthogonal to the distinction between
|
||||||
errors and warnings, and thus you can turn off messages based on level, on
|
errors and warnings, and thus you can turn off messages based on level, on
|
||||||
type, or both.
|
type, or both.
|
||||||
|
@ -380,7 +386,7 @@ See `:help syntastic_quiet_messages` for details.
|
||||||
|
|
||||||
<a name="faqaggregate"></a>
|
<a name="faqaggregate"></a>
|
||||||
|
|
||||||
__4.11. Q. I have enabled multiple checkers for the current filetype. How can I
|
__4.11. Q. I have enabled multiple checkers for the current filetype. How can I
|
||||||
display all errors from all checkers together?__
|
display all errors from all checkers together?__
|
||||||
|
|
||||||
A. Set `g:syntastic_aggregate_errors` to 1 in your `vimrc`:
|
A. Set `g:syntastic_aggregate_errors` to 1 in your `vimrc`:
|
||||||
|
@ -426,8 +432,8 @@ There are also a dedicated [google group][5], and a
|
||||||
[syntastic tag at StackOverflow][6].
|
[syntastic tag at StackOverflow][6].
|
||||||
|
|
||||||
Syntastic aims to provide a common interface to syntax checkers for as many
|
Syntastic aims to provide a common interface to syntax checkers for as many
|
||||||
languages as possible. For particular languages, there are, of course, other
|
languages as possible. For particular languages, there are, of course, other
|
||||||
plugins that provide more functionality than syntastic. You might want to take
|
plugins that provide more functionality than syntastic. You might want to take
|
||||||
a look at [ghcmod-vim][31], [jedi-vim][7], [python-mode][8], [vim-go][32], or
|
a look at [ghcmod-vim][31], [jedi-vim][7], [python-mode][8], [vim-go][32], or
|
||||||
[YouCompleteMe][9].
|
[YouCompleteMe][9].
|
||||||
|
|
||||||
|
|
|
@ -173,10 +173,17 @@ endfunction " }}}2
|
||||||
|
|
||||||
" Utilities {{{1
|
" Utilities {{{1
|
||||||
|
|
||||||
function! s:_log_timestamp() abort " {{{2
|
function! s:_log_timestamp_smart() abort " {{{2
|
||||||
|
return printf('syntastic: %f: ', reltimefloat(reltime(g:_SYNTASTIC_START)))
|
||||||
|
endfunction " }}}2
|
||||||
|
|
||||||
|
function! s:_log_timestamp_dumb() abort " {{{2
|
||||||
return 'syntastic: ' . split(reltimestr(reltime(g:_SYNTASTIC_START)))[0] . ': '
|
return 'syntastic: ' . split(reltimestr(reltime(g:_SYNTASTIC_START)))[0] . ': '
|
||||||
endfunction " }}}2
|
endfunction " }}}2
|
||||||
|
|
||||||
|
let s:_log_timestamp = function(has('float') && exists('*reltimefloat') ? 's:_log_timestamp_smart' : 's:_log_timestamp_dumb')
|
||||||
|
lockvar s:_log_timestamp
|
||||||
|
|
||||||
function! s:_format_variable(name) abort " {{{2
|
function! s:_format_variable(name) abort " {{{2
|
||||||
let vals = []
|
let vals = []
|
||||||
if exists('g:syntastic_' . a:name)
|
if exists('g:syntastic_' . a:name)
|
||||||
|
|
|
@ -284,6 +284,42 @@ function! syntastic#preprocess#rparse(errors) abort " {{{2
|
||||||
return out
|
return out
|
||||||
endfunction " }}}2
|
endfunction " }}}2
|
||||||
|
|
||||||
|
function! syntastic#preprocess#scss_lint(errors) abort " {{{2
|
||||||
|
let errs = join(a:errors, '')
|
||||||
|
if errs ==# ''
|
||||||
|
return []
|
||||||
|
endif
|
||||||
|
|
||||||
|
let json = s:_decode_JSON(errs)
|
||||||
|
|
||||||
|
let out = []
|
||||||
|
if type(json) == type({})
|
||||||
|
for fname in keys(json)
|
||||||
|
if type(json[fname]) == type([])
|
||||||
|
for e in json[fname]
|
||||||
|
try
|
||||||
|
cal add(out, fname . ':' .
|
||||||
|
\ e['severity'][0] . ':' .
|
||||||
|
\ e['line'] . ':' .
|
||||||
|
\ e['column'] . ':' .
|
||||||
|
\ e['length'] . ':' .
|
||||||
|
\ ( has_key(e, 'linter') ? e['linter'] . ': ' : '' ) .
|
||||||
|
\ e['reason'])
|
||||||
|
catch /\m^Vim\%((\a\+)\)\=:E716/
|
||||||
|
call syntastic#log#warn('checker scss/scss_lint: unrecognized error item ' . string(e))
|
||||||
|
let out = []
|
||||||
|
endtry
|
||||||
|
endfor
|
||||||
|
else
|
||||||
|
call syntastic#log#warn('checker scss/scss_lint: unrecognized error format')
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
else
|
||||||
|
call syntastic#log#warn('checker scss/scss_lint: unrecognized error format')
|
||||||
|
endif
|
||||||
|
return out
|
||||||
|
endfunction " }}}2
|
||||||
|
|
||||||
function! syntastic#preprocess#stylelint(errors) abort " {{{2
|
function! syntastic#preprocess#stylelint(errors) abort " {{{2
|
||||||
let out = []
|
let out = []
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ endfunction " }}}2
|
||||||
function! syntastic#util#tmpdir() abort " {{{2
|
function! syntastic#util#tmpdir() abort " {{{2
|
||||||
let tempdir = ''
|
let tempdir = ''
|
||||||
|
|
||||||
if (has('unix') || has('mac')) && executable('mktemp')
|
if (has('unix') || has('mac')) && executable('mktemp') && !has('win32unix')
|
||||||
" TODO: option "-t" to mktemp(1) is not portable
|
" TODO: option "-t" to mktemp(1) is not portable
|
||||||
let tmp = $TMPDIR !=# '' ? $TMPDIR : $TMP !=# '' ? $TMP : '/tmp'
|
let tmp = $TMPDIR !=# '' ? $TMPDIR : $TMP !=# '' ? $TMP : '/tmp'
|
||||||
let out = split(syntastic#util#system('mktemp -q -d ' . tmp . '/vim-syntastic-' . getpid() . '-XXXXXXXX'), "\n")
|
let out = split(syntastic#util#system('mktemp -q -d ' . tmp . '/vim-syntastic-' . getpid() . '-XXXXXXXX'), "\n")
|
||||||
|
@ -90,18 +90,7 @@ function! syntastic#util#rmrf(what) abort " {{{2
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if getftype(a:what) ==# 'dir'
|
if getftype(a:what) ==# 'dir'
|
||||||
if !exists('s:rmrf')
|
call s:_delete(a:what, 'rf')
|
||||||
let s:rmrf =
|
|
||||||
\ has('unix') || has('mac') ? 'rm -rf' :
|
|
||||||
\ has('win32') || has('win64') ? 'rmdir /S /Q' :
|
|
||||||
\ has('win16') || has('win95') || has('dos16') || has('dos32') ? 'deltree /Y' : ''
|
|
||||||
endif
|
|
||||||
|
|
||||||
if s:rmrf !=# ''
|
|
||||||
silent! call syntastic#util#system(s:rmrf . ' ' . syntastic#util#shescape(a:what))
|
|
||||||
else
|
|
||||||
call s:_rmrf(a:what)
|
|
||||||
endif
|
|
||||||
else
|
else
|
||||||
silent! call delete(a:what)
|
silent! call delete(a:what)
|
||||||
endif
|
endif
|
||||||
|
@ -251,7 +240,12 @@ function! syntastic#util#findGlobInParent(what, where) abort " {{{2
|
||||||
|
|
||||||
let old = ''
|
let old = ''
|
||||||
while here !=# ''
|
while here !=# ''
|
||||||
let p = split(globpath(here, a:what, 1), '\n')
|
try
|
||||||
|
" Vim 7.4.279 and later
|
||||||
|
let p = globpath(here, a:what, 1, 1)
|
||||||
|
catch /\m^Vim\%((\a\+)\)\=:E118/
|
||||||
|
let p = split(globpath(here, a:what, 1), "\n")
|
||||||
|
endtry
|
||||||
|
|
||||||
if !empty(p)
|
if !empty(p)
|
||||||
return fnamemodify(p[0], ':p')
|
return fnamemodify(p[0], ':p')
|
||||||
|
@ -274,8 +268,9 @@ function! syntastic#util#unique(list) abort " {{{2
|
||||||
let seen = {}
|
let seen = {}
|
||||||
let uniques = []
|
let uniques = []
|
||||||
for e in a:list
|
for e in a:list
|
||||||
if !has_key(seen, e)
|
let k = string(e)
|
||||||
let seen[e] = 1
|
if !has_key(seen, k)
|
||||||
|
let seen[k] = 1
|
||||||
call add(uniques, e)
|
call add(uniques, e)
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
@ -478,6 +473,27 @@ function! s:_translateElement(key, term) abort " {{{2
|
||||||
return ret
|
return ret
|
||||||
endfunction " }}}2
|
endfunction " }}}2
|
||||||
|
|
||||||
|
" @vimlint(EVL103, 1, a:flags)
|
||||||
|
function! s:_delete_dumb(what, flags) abort " {{{2
|
||||||
|
if !exists('s:rmrf')
|
||||||
|
let s:rmrf =
|
||||||
|
\ has('unix') || has('mac') ? 'rm -rf' :
|
||||||
|
\ has('win32') || has('win64') ? 'rmdir /S /Q' :
|
||||||
|
\ has('win16') || has('win95') || has('dos16') || has('dos32') ? 'deltree /Y' : ''
|
||||||
|
endif
|
||||||
|
|
||||||
|
if s:rmrf !=# ''
|
||||||
|
silent! call syntastic#util#system(s:rmrf . ' ' . syntastic#util#shescape(a:what))
|
||||||
|
else
|
||||||
|
call s:_rmrf(a:what)
|
||||||
|
endif
|
||||||
|
endfunction " }}}2
|
||||||
|
" @vimlint(EVL103, 0, a:flags)
|
||||||
|
|
||||||
|
" delete(dir, 'rf') was added in Vim 7.4.1107, but it didn't become usable until 7.4.1128
|
||||||
|
let s:_delete = function(v:version > 704 || (v:version == 704 && has('patch1128')) ? 'delete' : 's:_delete_dumb')
|
||||||
|
lockvar s:_delete
|
||||||
|
|
||||||
function! s:_rmrf(what) abort " {{{2
|
function! s:_rmrf(what) abort " {{{2
|
||||||
if !exists('s:rmdir')
|
if !exists('s:rmdir')
|
||||||
let s:rmdir = syntastic#util#shescape(get(g:, 'netrw_localrmdir', 'rmdir'))
|
let s:rmdir = syntastic#util#shescape(get(g:, 'netrw_localrmdir', 'rmdir'))
|
||||||
|
@ -488,7 +504,13 @@ function! s:_rmrf(what) abort " {{{2
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
for f in split(globpath(a:what, '*', 1), "\n")
|
try
|
||||||
|
" Vim 7.4.279 and later
|
||||||
|
let entries = globpath(a:what, '*', 1, 1)
|
||||||
|
catch /\m^Vim\%((\a\+)\)\=:E118/
|
||||||
|
let entries = split(globpath(a:what, '*', 1), "\n")
|
||||||
|
endtry
|
||||||
|
for f in entries
|
||||||
call s:_rmrf(f)
|
call s:_rmrf(f)
|
||||||
endfor
|
endfor
|
||||||
silent! call syntastic#util#system(s:rmdir . ' ' . syntastic#util#shescape(a:what))
|
silent! call syntastic#util#system(s:rmdir . ' ' . syntastic#util#shescape(a:what))
|
||||||
|
|
|
@ -36,6 +36,7 @@ CONTENTS *syntastic-contents*
|
||||||
5.2.Choosing the executable................|syntastic-config-exec|
|
5.2.Choosing the executable................|syntastic-config-exec|
|
||||||
5.3.Configuring specific checkers..........|syntastic-config-makeprg|
|
5.3.Configuring specific checkers..........|syntastic-config-makeprg|
|
||||||
5.4.Sorting errors.........................|syntastic-config-sort|
|
5.4.Sorting errors.........................|syntastic-config-sort|
|
||||||
|
5.5.Debugging..............................|syntastic-config-debug|
|
||||||
6.Notes........................................|syntastic-notes|
|
6.Notes........................................|syntastic-notes|
|
||||||
6.1.Handling of composite filetypes........|syntastic-composite|
|
6.1.Handling of composite filetypes........|syntastic-composite|
|
||||||
6.2.Editing files over network.............|syntastic-netrw|
|
6.2.Editing files over network.............|syntastic-netrw|
|
||||||
|
@ -63,8 +64,8 @@ CONTENTS *syntastic-contents*
|
||||||
1. Intro *syntastic-intro*
|
1. Intro *syntastic-intro*
|
||||||
|
|
||||||
Syntastic is a syntax checking plugin that runs files through external syntax
|
Syntastic is a syntax checking plugin that runs files through external syntax
|
||||||
checkers. This can be done on demand, or automatically as files are saved and
|
checkers. This can be done on demand, or automatically as files are saved
|
||||||
opened. If syntax errors are detected, the user is notified and is happy
|
and opened. If syntax errors are detected, the user is notified and is happy
|
||||||
because they didn't have to compile their code or execute their script to find
|
because they didn't have to compile their code or execute their script to find
|
||||||
them.
|
them.
|
||||||
|
|
||||||
|
@ -102,8 +103,8 @@ list with |:SyntasticReset|, and you can use |:SyntasticToggleMode| to switch
|
||||||
between active (checking on writing the buffer) and passive (manual) checking.
|
between active (checking on writing the buffer) and passive (manual) checking.
|
||||||
|
|
||||||
You don't have to switch focus to the |location-list| window to jump to the
|
You don't have to switch focus to the |location-list| window to jump to the
|
||||||
different errors. Vim provides several built-in commands for this, for
|
different errors. Vim provides several built-in commands for this, for
|
||||||
example |:lnext| and |:lprevious|. You may want to add shortcut mappings for
|
example |:lnext| and |:lprevious|. You may want to add shortcut mappings for
|
||||||
these commands, or perhaps install a plugin such as Tim Pope's 'unimpaired'
|
these commands, or perhaps install a plugin such as Tim Pope's 'unimpaired'
|
||||||
(see https://github.com/tpope/vim-unimpaired) that provides such mappings.
|
(see https://github.com/tpope/vim-unimpaired) that provides such mappings.
|
||||||
|
|
||||||
|
@ -158,6 +159,11 @@ Something like this could be more useful: >
|
||||||
When syntax errors are detected a flag will be shown. The content of the flag
|
When syntax errors are detected a flag will be shown. The content of the flag
|
||||||
is derived from the |syntastic_stl_format| option.
|
is derived from the |syntastic_stl_format| option.
|
||||||
|
|
||||||
|
Please note that these settings might conflict with other Vim plugins that
|
||||||
|
change the way statusline works. Refer to these plugins' documentation for
|
||||||
|
possible solutions. See also |syntastic-powerline| below if you're using the
|
||||||
|
"powerline" Vim plugin (https://github.com/powerline/powerline).
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
2.2. Error signs *syntastic-error-signs*
|
2.2. Error signs *syntastic-error-signs*
|
||||||
|
|
||||||
|
@ -236,7 +242,7 @@ disable generation of these labels by turning off '|syntastic_id_checkers|'.
|
||||||
|
|
||||||
If |'syntastic_sort_aggregated_errors'| is set (which is the default), messages
|
If |'syntastic_sort_aggregated_errors'| is set (which is the default), messages
|
||||||
in the aggregated list are grouped by file, then sorted by line number, then
|
in the aggregated list are grouped by file, then sorted by line number, then
|
||||||
type, then column number. Otherwise messages produced by the same checker are
|
type, then column number. Otherwise messages produced by the same checker are
|
||||||
grouped together, and sorting within each group is decided by the variables
|
grouped together, and sorting within each group is decided by the variables
|
||||||
|'syntastic_<filetype>_<checker>_sort'|.
|
|'syntastic_<filetype>_<checker>_sort'|.
|
||||||
|
|
||||||
|
@ -268,17 +274,17 @@ for more info.
|
||||||
|
|
||||||
:SyntasticCheck *:SyntasticCheck*
|
:SyntasticCheck *:SyntasticCheck*
|
||||||
|
|
||||||
Manually cause a syntax check to be done. By default the checkers in the
|
Manually cause a syntax check to be done. By default the checkers in the
|
||||||
|'g:syntastic_<filetype>_checkers'| or |'b:syntastic_checkers'| lists are run,
|
|'g:syntastic_<filetype>_checkers'| or |'b:syntastic_checkers'| lists are run,
|
||||||
cf. |syntastic-filetype-checkers|. If |'syntastic_aggregate_errors'| is unset
|
cf. |syntastic-filetype-checkers|. If |'syntastic_aggregate_errors'| is unset
|
||||||
(which is the default), checking stops the first time a checker reports any
|
(which is the default), checking stops the first time a checker reports any
|
||||||
errors; if |'syntastic_aggregate_errors'| is set, all checkers that apply are
|
errors; if |'syntastic_aggregate_errors'| is set, all checkers that apply are
|
||||||
run in turn, and all errors found are aggregated in a single list.
|
run in turn, and all errors found are aggregated in a single list.
|
||||||
|
|
||||||
The command may be followed by a (space separated) list of checkers. In this
|
The command may be followed by a (space separated) list of checkers. In this
|
||||||
case |'g:syntastic_<filetype>_checkers'| and |'b:syntastic_checkers'| are
|
case |'g:syntastic_<filetype>_checkers'| and |'b:syntastic_checkers'| are
|
||||||
ignored, and the checkers named by the command's arguments are run instead, in
|
ignored, and the checkers named by the command's arguments are run instead, in
|
||||||
the order specified. The set by |'syntastic_aggregate_errors'| still apply.
|
the order specified. The set by |'syntastic_aggregate_errors'| still apply.
|
||||||
|
|
||||||
Example: >
|
Example: >
|
||||||
:SyntasticCheck flake8 pylint
|
:SyntasticCheck flake8 pylint
|
||||||
|
@ -313,7 +319,7 @@ when buffers are first loaded, as well as on saving: >
|
||||||
*'syntastic_check_on_wq'*
|
*'syntastic_check_on_wq'*
|
||||||
Default: 1
|
Default: 1
|
||||||
In active mode syntax checks are normally run whenever buffers are written to
|
In active mode syntax checks are normally run whenever buffers are written to
|
||||||
disk, even when the writes happen just before quitting Vim. If you want to
|
disk, even when the writes happen just before quitting Vim. If you want to
|
||||||
skip checks when you issue |:wq|, |:x|, and |:ZZ|, set this variable to 0: >
|
skip checks when you issue |:wq|, |:x|, and |:ZZ|, set this variable to 0: >
|
||||||
let g:syntastic_check_on_wq = 0
|
let g:syntastic_check_on_wq = 0
|
||||||
<
|
<
|
||||||
|
@ -341,7 +347,7 @@ By default, when results from multiple checkers are aggregated in a single
|
||||||
error list (that is either when |'syntastic_aggregate_errors'| is enabled,
|
error list (that is either when |'syntastic_aggregate_errors'| is enabled,
|
||||||
or when checking a file with a composite filetype), errors are grouped by
|
or when checking a file with a composite filetype), errors are grouped by
|
||||||
file, then sorted by line number, then grouped by type (namely errors take
|
file, then sorted by line number, then grouped by type (namely errors take
|
||||||
precedence over warnings), then they are sorted by column number. If you want
|
precedence over warnings), then they are sorted by column number. If you want
|
||||||
to leave messages grouped by checker output, set this variable to 0: >
|
to leave messages grouped by checker output, set this variable to 0: >
|
||||||
let g:syntastic_sort_aggregated_errors = 0
|
let g:syntastic_sort_aggregated_errors = 0
|
||||||
<
|
<
|
||||||
|
@ -407,7 +413,7 @@ option to tell syntastic to always stick any detected errors into the
|
||||||
<
|
<
|
||||||
Please note that if |'syntastic_auto_jump'| is set to a non-zero value the
|
Please note that if |'syntastic_auto_jump'| is set to a non-zero value the
|
||||||
location list is overwritten with Syntastic's own list when taking a jump,
|
location list is overwritten with Syntastic's own list when taking a jump,
|
||||||
regardless of the value of |'syntastic_always_populate_loc_list'|. The
|
regardless of the value of |'syntastic_always_populate_loc_list'|. The
|
||||||
location list is also overwritten when running the |:Errors| command.
|
location list is also overwritten when running the |:Errors| command.
|
||||||
|
|
||||||
*'syntastic_auto_jump'*
|
*'syntastic_auto_jump'*
|
||||||
|
@ -463,10 +469,10 @@ opens. >
|
||||||
<
|
<
|
||||||
*'syntastic_ignore_files'*
|
*'syntastic_ignore_files'*
|
||||||
Default: []
|
Default: []
|
||||||
Use this option to specify files that syntastic should never check. It's a
|
Use this option to specify files that syntastic should never check. It's a
|
||||||
list of |regular-expression| patterns. The full paths of files (see |::p|) are
|
list of |regular-expression| patterns. The full paths of files (see |::p|) are
|
||||||
matched against these patterns, and the matches are case-sensitive. Use |\c|
|
matched against these patterns, and the matches are case-sensitive. Use |\c|
|
||||||
to specify case-insensitive patterns. Example: >
|
to specify case-insensitive patterns. Example: >
|
||||||
let g:syntastic_ignore_files = ['\m^/usr/include/', '\m\c\.h$']
|
let g:syntastic_ignore_files = ['\m^/usr/include/', '\m\c\.h$']
|
||||||
<
|
<
|
||||||
*'syntastic_filetype_map'*
|
*'syntastic_filetype_map'*
|
||||||
|
@ -498,7 +504,7 @@ The option should be set to something like: >
|
||||||
<
|
<
|
||||||
"mode" can be mapped to one of two values - "active" or "passive". When set
|
"mode" can be mapped to one of two values - "active" or "passive". When set
|
||||||
to "active", syntastic does automatic checking whenever a buffer is saved or
|
to "active", syntastic does automatic checking whenever a buffer is saved or
|
||||||
initially opened. When set to "passive" syntastic only checks when the user
|
initially opened. When set to "passive" syntastic only checks when the user
|
||||||
calls |:SyntasticCheck|.
|
calls |:SyntasticCheck|.
|
||||||
|
|
||||||
The exceptions to these rules are defined with "active_filetypes" and
|
The exceptions to these rules are defined with "active_filetypes" and
|
||||||
|
@ -525,7 +531,7 @@ whether the corresponding buffer should be checked automatically.
|
||||||
|
|
||||||
*'syntastic_quiet_messages'*
|
*'syntastic_quiet_messages'*
|
||||||
Default: {}
|
Default: {}
|
||||||
Use this option to filter out some of the messages produced by checkers. The
|
Use this option to filter out some of the messages produced by checkers. The
|
||||||
option should be set to something like: >
|
option should be set to something like: >
|
||||||
let g:syntastic_quiet_messages = {
|
let g:syntastic_quiet_messages = {
|
||||||
\ "!level": "errors",
|
\ "!level": "errors",
|
||||||
|
@ -541,10 +547,10 @@ overriding filters, cf. |filter-overrides|).
|
||||||
|
|
||||||
"level" - takes one of two values, "warnings" or "errors"
|
"level" - takes one of two values, "warnings" or "errors"
|
||||||
"type" - can be either "syntax" or "style"
|
"type" - can be either "syntax" or "style"
|
||||||
"regex" - is matched against the messages' text as a case-insensitive
|
"regex" - each item in list is matched against the messages' text as a
|
||||||
|regular-expression|
|
case-insensitive |regular-expression|
|
||||||
"file" - is matched against the filenames the messages refer to, as a
|
"file" - each item in list is matched against the filenames the messages
|
||||||
case-sensitive |regular-expression|.
|
refer to, as a case-sensitive |regular-expression|.
|
||||||
|
|
||||||
If a key is prefixed by an exclamation mark "!", the corresponding filter is
|
If a key is prefixed by an exclamation mark "!", the corresponding filter is
|
||||||
negated (i.e. the above example silences all messages that are NOT errors).
|
negated (i.e. the above example silences all messages that are NOT errors).
|
||||||
|
@ -640,20 +646,20 @@ The above variable can be used to disable exit code checks in syntastic.
|
||||||
Default: Vim's 'shell'
|
Default: Vim's 'shell'
|
||||||
This is the (full path to) the shell syntastic will use to run the checkers.
|
This is the (full path to) the shell syntastic will use to run the checkers.
|
||||||
On UNIX and Mac OS-X this shell must accept Bourne-compatible syntax for
|
On UNIX and Mac OS-X this shell must accept Bourne-compatible syntax for
|
||||||
file "stdout" and "stderr" redirections ">file" and "2>file". Examples of
|
file "stdout" and "stderr" redirections ">file" and "2>file". Examples of
|
||||||
compatible shells are "zsh", "bash", "ksh", and of course the original Bourne
|
compatible shells are "zsh", "bash", "ksh", and of course the original Bourne
|
||||||
"sh".
|
"sh".
|
||||||
|
|
||||||
This shell is independent of Vim's 'shell', and it isn't used for interactive
|
This shell is independent of Vim's 'shell', and it isn't used for interactive
|
||||||
operations. It must take care to initialize all environment variables needed
|
operations. It must take care to initialize all environment variables needed
|
||||||
by the checkers you're using. Example: >
|
by the checkers you're using. Example: >
|
||||||
let g:syntastic_shell = "/bin/sh"
|
let g:syntastic_shell = "/bin/sh"
|
||||||
<
|
<
|
||||||
*'syntastic_nested_autocommands'*
|
*'syntastic_nested_autocommands'*
|
||||||
Default: 0
|
Default: 0
|
||||||
Controls whether syntastic's autocommands |BufReadPost| and |BufWritePost|
|
Controls whether syntastic's autocommands |BufReadPost| and |BufWritePost|
|
||||||
are called from other |BufReadPost| and |BufWritePost| autocommands (see
|
are called from other |BufReadPost| and |BufWritePost| autocommands (see
|
||||||
|autocmd-nested|). This is known to trigger interoperability problems with
|
|autocmd-nested|). This is known to trigger interoperability problems with
|
||||||
other plugins, so only enable it if you actually need that functionality.
|
other plugins, so only enable it if you actually need that functionality.
|
||||||
|
|
||||||
*'syntastic_debug'*
|
*'syntastic_debug'*
|
||||||
|
@ -682,7 +688,7 @@ addition to being added to Vim's |message-history|: >
|
||||||
<
|
<
|
||||||
*'syntastic_extra_filetypes'*
|
*'syntastic_extra_filetypes'*
|
||||||
Default: []
|
Default: []
|
||||||
List of filetypes handled by checkers external to syntastic. If you have a Vim
|
List of filetypes handled by checkers external to syntastic. If you have a Vim
|
||||||
plugin that adds a checker for syntastic, and if the said checker deals with a
|
plugin that adds a checker for syntastic, and if the said checker deals with a
|
||||||
filetype that is unknown to syntastic, you might consider adding that filetype
|
filetype that is unknown to syntastic, you might consider adding that filetype
|
||||||
to this list: >
|
to this list: >
|
||||||
|
@ -704,7 +710,7 @@ variable 'g:syntastic_<filetype>_checkers' to a list of checkers, e.g. >
|
||||||
<
|
<
|
||||||
*'b:syntastic_checkers'*
|
*'b:syntastic_checkers'*
|
||||||
There is also a per-buffer version of this setting, 'b:syntastic_checkers'.
|
There is also a per-buffer version of this setting, 'b:syntastic_checkers'.
|
||||||
When set, it takes precedence over |'g:syntastic_<filetype>_checkers'|. You can
|
When set, it takes precedence over |'g:syntastic_<filetype>_checkers'|. You can
|
||||||
use this in an autocmd to configure specific checkers for particular paths: >
|
use this in an autocmd to configure specific checkers for particular paths: >
|
||||||
autocmd FileType python if stridx(expand("%:p"), "/some/path/") == 0 |
|
autocmd FileType python if stridx(expand("%:p"), "/some/path/") == 0 |
|
||||||
\ let b:syntastic_checkers = ["pylint"] | endif
|
\ let b:syntastic_checkers = ["pylint"] | endif
|
||||||
|
@ -740,53 +746,81 @@ takes precedence over both 'b:syntastic_<filetype>_<checker>_exec' and
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
5.3 Configuring specific checkers *syntastic-config-makeprg*
|
5.3 Configuring specific checkers *syntastic-config-makeprg*
|
||||||
|
|
||||||
Most checkers use the 'makeprgBuild()' function and provide many options by
|
Checkers are run by constructing a command line and passing it to a shell.
|
||||||
default - in fact you can customise every part of the command that gets called.
|
In most cases this command line is built using an internal function named
|
||||||
|
'makeprgBuild()', which provides a number of options that allows you to
|
||||||
|
customise every part of the command that gets called.
|
||||||
|
|
||||||
*'syntastic_<filetype>_<checker>_<option>'*
|
*'syntastic_<filetype>_<checker>_<option>'*
|
||||||
Checkers that use 'makeprgBuild()' construct a 'makeprg' like this: >
|
Checkers that use 'makeprgBuild()' construct a command line like this: >
|
||||||
let makeprg = self.makeprgBuild({
|
let makeprg = self.makeprgBuild({
|
||||||
\ "exe": self.getExec(),
|
\ "exe": self.getExec(),
|
||||||
\ "args": "-a -b -c",
|
\ "args": "-a -b -c",
|
||||||
|
\ "fname: shellescape(expand('%', 1)),
|
||||||
\ "post_args": "--more --args",
|
\ "post_args": "--more --args",
|
||||||
\ "tail": "2>/dev/null" })
|
\ "tail": "2>/dev/null" })
|
||||||
<
|
<
|
||||||
The result is a 'makeprg' of the form: >
|
The result is a command line of the form: >
|
||||||
<exe> <args> <fname> <post_args> <tail>
|
<exe> <args> <fname> <post_args> <tail>
|
||||||
<
|
<
|
||||||
All arguments above are optional, and can be overridden by setting global
|
All arguments above are optional, and can be overridden by setting global
|
||||||
variables 'g:syntastic_<filetype>_<checker-name>_<option-name>' - even
|
variables 'g:syntastic_<filetype>_<checker-name>_<option-name>' - even
|
||||||
parameters not specified in the call to makeprgBuild(). These variables also
|
parameters not specified in the call to 'makeprgBuild()'. For example to
|
||||||
have local versions 'b:syntastic_<filetype>_<checker-name>_<option-name>',
|
override the args and the tail: >
|
||||||
which take precedence over the global ones in the corresponding buffers.
|
let g:syntastic_c_pc_lint_args = "-w5 -Iz:/usr/include/linux"
|
||||||
|
let g:syntastic_c_pc_lint_tail = "2>/dev/null"
|
||||||
If one of these variables has a non-empty default and you want it to be empty,
|
|
||||||
you can set it to an empty string, e.g.: >
|
|
||||||
let g:syntastic_javascript_jslint_args = ""
|
|
||||||
<
|
<
|
||||||
|
These variables also have local versions named
|
||||||
|
'b:syntastic_<filetype>_<checker-name>_<option-name>', which takes precedence
|
||||||
|
over the global ones in the corresponding buffers.
|
||||||
|
|
||||||
|
If any of the characters in the values of these variables have a special
|
||||||
|
meaning for the shell in use (see |'shell'| and |'syntastic_shell'|) you need
|
||||||
|
to escape them so that they can survive shell expansions. Vim function
|
||||||
|
|shellescape()| can help you with that: >
|
||||||
|
let g:syntastic_c_cppcheck_args =
|
||||||
|
\ '-DBUILD_BASENAME=my-module ' . shellescape('-DBUILD_STR(s)=#s')
|
||||||
|
<
|
||||||
|
Alternatively, you can tell syntastic to escape special characters by turning
|
||||||
|
the value into a list: >
|
||||||
|
let g:syntastic_c_cppcheck_args =
|
||||||
|
\ ['-DBUILD_BASENAME=my-module', '-DBUILD_STR(s)=#s']
|
||||||
|
<
|
||||||
|
Each element of the list will then be escaped as needed and turned into a
|
||||||
|
separate shell argument.
|
||||||
|
|
||||||
|
If one of the above variables has a non-empty default and you want it to be
|
||||||
|
empty, you can set it to an empty string, e.g.: >
|
||||||
|
let g:syntastic_javascript_jslint_args = ""
|
||||||
|
|
||||||
|
You can see the final outcome of setting these variables in the debug logs
|
||||||
|
(cf. |syntastic-config-debug|).
|
||||||
|
|
||||||
*'syntastic_<filetype>_<checker>_exe'*
|
*'syntastic_<filetype>_<checker>_exe'*
|
||||||
The 'exe' is normally the same as the 'exec' attribute described above, in
|
The 'exe' option is special. Normally it is the same as the 'exec' attribute
|
||||||
which case it may be omitted. However, you can use it to add environment
|
described above, but you can use it to add environment variables to the
|
||||||
variables, or to change the way the checker is run. For example this setup
|
command line, or to change the way the checker is run. For example this setup
|
||||||
allows you to run PC-Lint under Wine emulation on Linux: >
|
allows you to run PC-Lint under Wine emulation on Linux: >
|
||||||
let g:syntastic_c_pc_lint_exec = "wine"
|
let g:syntastic_c_pc_lint_exec = "wine"
|
||||||
let g:syntastic_c_pc_lint_exe = "wine c:/path/to/lint-nt.exe"
|
let g:syntastic_c_pc_lint_exe = "wine c:/path/to/lint-nt.exe"
|
||||||
<
|
<
|
||||||
To override the args and the tail: >
|
*'syntastic_<filetype>_<checker>_fname'*
|
||||||
let g:syntastic_c_pc_lint_args = "-w5 -Iz:/usr/include/linux"
|
|
||||||
let g:syntastic_c_pc_lint_tail = "2>/dev/null"
|
The 'fname' option is also special. Normally it is automatically set by
|
||||||
<
|
syntastic to the name of the current file, but you can change that as needed.
|
||||||
The general form of the override options is: >
|
For example you can tell the SML/NJ compiler to use Compilation Manager by
|
||||||
syntastic_<filetype>_<checker>_<option-name>
|
omitting the filename from the command line: >
|
||||||
|
let g:syntastic_sml_smlnj_fname = ""
|
||||||
<
|
<
|
||||||
|
*syntastic-config-no-makeprgbuild*
|
||||||
For checkers that do not use the 'makeprgBuild()' function you will have to
|
For checkers that do not use the 'makeprgBuild()' function you will have to
|
||||||
look at the source code of the checker in question. If there are specific
|
look at the source code of the checker in question. If there are specific
|
||||||
options that can be set, these are usually documented in the wiki:
|
options that can be set, they are normally documented in the wiki:
|
||||||
|
|
||||||
https://github.com/scrooloose/syntastic/wiki/Syntax-Checkers
|
https://github.com/scrooloose/syntastic/wiki/Syntax-Checkers
|
||||||
|
|
||||||
*'syntastic_<filetype>_<checker>_quiet_messages'*
|
*'syntastic_<filetype>_<checker>_quiet_messages'*
|
||||||
In the same vein, 'g:syntastic_<filetype>_<checker-name>_quiet_messages' can
|
Last but not least, 'g:syntastic_<filetype>_<checker-name>_quiet_messages' can
|
||||||
be used to restrict message filters to messages produced by specific checkers.
|
be used to restrict message filters to messages produced by specific checkers.
|
||||||
Example: >
|
Example: >
|
||||||
let g:syntastic_python_pylama_quiet_messages = {
|
let g:syntastic_python_pylama_quiet_messages = {
|
||||||
|
@ -814,6 +848,25 @@ defined.
|
||||||
For aggregated lists (see |syntastic-aggregating-errors|) these variables are
|
For aggregated lists (see |syntastic-aggregating-errors|) these variables are
|
||||||
ignored if |'syntastic_sort_aggregated_errors'| is set (which is the default).
|
ignored if |'syntastic_sort_aggregated_errors'| is set (which is the default).
|
||||||
|
|
||||||
|
------------------------------------------------------------------------------
|
||||||
|
5.5 Debugging *syntastic-config-debug*
|
||||||
|
|
||||||
|
Syntastic can log a trace of its working to Vim's |message-history|. To verify
|
||||||
|
the command line constructed by syntastic to run a checker, set the variable
|
||||||
|
|'syntastic_debug'| to a non-zero value, run the checker, then run |:mes| to
|
||||||
|
display the messages, and look for "makeprg" in the output.
|
||||||
|
|
||||||
|
From a user's perspective, the useful values for |'syntastic_debug'| are 1, 3,
|
||||||
|
and 33:
|
||||||
|
|
||||||
|
1 - logs syntastic's workflow
|
||||||
|
3 - logs workflow, checker's output, and |location-list| manipulations
|
||||||
|
33 - logs workflow and checker-specific details (such as version checks).
|
||||||
|
|
||||||
|
Debug logs can be saved to a file; see |'syntastic_debug_file'| for details.
|
||||||
|
|
||||||
|
Setting |'syntastic_debug'| to 0 turns off logging.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
6. Notes *syntastic-notes*
|
6. Notes *syntastic-notes*
|
||||||
|
|
||||||
|
@ -831,19 +884,19 @@ composite filetypes to simple ones using |'syntastic_filetype_map'|, e.g.: >
|
||||||
6.2 Editing files over network *syntastic-netrw*
|
6.2 Editing files over network *syntastic-netrw*
|
||||||
|
|
||||||
The standard plugin |netrw| allows Vim to transparently edit files over
|
The standard plugin |netrw| allows Vim to transparently edit files over
|
||||||
network and inside archives. Currently syntastic doesn't support this mode
|
network and inside archives. Currently syntastic doesn't support this mode
|
||||||
of operation. It can only check files that can be accessed directly by local
|
of operation. It can only check files that can be accessed directly by local
|
||||||
checkers, without any translation or conversion.
|
checkers, without any translation or conversion.
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
6.3 The 'shellslash' option *syntastic-shellslash*
|
6.3 The 'shellslash' option *syntastic-shellslash*
|
||||||
|
|
||||||
The 'shellslash' option is relevant only on Windows systems. This option
|
The 'shellslash' option is relevant only on Windows systems. This option
|
||||||
determines (among other things) the rules for quoting command lines, and there
|
determines (among other things) the rules for quoting command lines, and there
|
||||||
is no easy way for syntastic to make sure its state is appropriate for your
|
is no easy way for syntastic to make sure its state is appropriate for your
|
||||||
shell. It should be turned off if your 'shell' (or |'syntastic_shell'|) is
|
shell. It should be turned off if your 'shell' (or |'syntastic_shell'|) is
|
||||||
"cmd.exe", and on for shells that expect an UNIX-like syntax, such as Cygwin's
|
"cmd.exe", and on for shells that expect an UNIX-like syntax, such as Cygwin's
|
||||||
"sh". Most checkers will stop working if 'shellslash' is set to the wrong
|
"sh". Most checkers will stop working if 'shellslash' is set to the wrong
|
||||||
value.
|
value.
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
|
@ -862,8 +915,8 @@ quickfix windows.
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
7.1 The csh and tcsh shells *syntastic-csh*
|
7.1 The csh and tcsh shells *syntastic-csh*
|
||||||
|
|
||||||
The "csh" and "tcsh" shells are mostly compatible with syntastic. However,
|
The "csh" and "tcsh" shells are mostly compatible with syntastic. However,
|
||||||
some checkers assume Bourne shell syntax for redirecting "stderr". For this
|
some checkers assume Bourne shell syntax for redirecting "stderr". For this
|
||||||
reason, you should point |'syntastic_shell'| to a Bourne-compatible shell,
|
reason, you should point |'syntastic_shell'| to a Bourne-compatible shell,
|
||||||
such as "zsh", "bash", "ksh", or even the original Bourne "sh": >
|
such as "zsh", "bash", "ksh", or even the original Bourne "sh": >
|
||||||
let g:syntastic_shell = "/bin/sh"
|
let g:syntastic_shell = "/bin/sh"
|
||||||
|
@ -936,7 +989,7 @@ packaged with a syntastic segment. To customize this segment create a file
|
||||||
|
|
||||||
At the time of this writing, syntastic is not compatible with using "Windows
|
At the time of this writing, syntastic is not compatible with using "Windows
|
||||||
PowerShell" (http://technet.microsoft.com/en-us/library/bb978526.aspx) as Vim's
|
PowerShell" (http://technet.microsoft.com/en-us/library/bb978526.aspx) as Vim's
|
||||||
'shell'. You may still run Vim from 'PowerShell', but you do have to point
|
'shell'. You may still run Vim from 'PowerShell', but you do have to point
|
||||||
Vim's 'shell' to a more traditional program, such as "cmd.exe": >
|
Vim's 'shell' to a more traditional program, such as "cmd.exe": >
|
||||||
set shell=cmd.exe
|
set shell=cmd.exe
|
||||||
<
|
<
|
||||||
|
@ -955,18 +1008,18 @@ for python in syntastic (see |'syntastic_mode_map'|), or disable lint checks in
|
||||||
7.9. vim-auto-save *syntastic-vim-auto-save*
|
7.9. vim-auto-save *syntastic-vim-auto-save*
|
||||||
|
|
||||||
Syntastic can be used together with the "vim-auto-save" Vim plugin (see
|
Syntastic can be used together with the "vim-auto-save" Vim plugin (see
|
||||||
https://github.com/907th/vim-auto-save). However, syntastic checks in active
|
https://github.com/907th/vim-auto-save). However, syntastic checks in active
|
||||||
mode only work with "vim-auto-save" version 0.1.7 or later.
|
mode only work with "vim-auto-save" version 0.1.7 or later.
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
7.10. vim-go *syntastic-vim-go*
|
7.10. vim-go *syntastic-vim-go*
|
||||||
|
|
||||||
Syntastic can be used along with the "vim-go" Vim plugin (see
|
Syntastic can be used along with the "vim-go" Vim plugin (see
|
||||||
https://github.com/fatih/vim-go). However, both "vim-go" and syntastic run
|
https://github.com/fatih/vim-go). However, both "vim-go" and syntastic run
|
||||||
syntax checks by default when you save buffers to disk. To avoid conflicts,
|
syntax checks by default when you save buffers to disk. To avoid conflicts,
|
||||||
you have to either set passive mode in syntastic for the go filetype (see
|
you have to either set passive mode in syntastic for the go filetype (see
|
||||||
|syntastic_mode_map|), or prevent "vim-go" from showing a quickfix window when
|
|syntastic_mode_map|), or prevent "vim-go" from showing a quickfix window when
|
||||||
|g:go_fmt_command| fails, by setting |g:go_fmt_fail_silently| to 1. E.g.: >
|
|g:go_fmt_command| fails, by setting |g:go_fmt_fail_silently| to 1. E.g.: >
|
||||||
let g:go_fmt_fail_silently = 1
|
let g:go_fmt_fail_silently = 1
|
||||||
<
|
<
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
|
@ -974,16 +1027,16 @@ you have to either set passive mode in syntastic for the go filetype (see
|
||||||
|
|
||||||
At the time of this writing, syntastic can't run checkers installed
|
At the time of this writing, syntastic can't run checkers installed
|
||||||
in Python virtual environments activated by "vim-virtualenv" (see
|
in Python virtual environments activated by "vim-virtualenv" (see
|
||||||
https://github.com/jmcantrell/vim-virtualenv). This is a limitation of
|
https://github.com/jmcantrell/vim-virtualenv). This is a limitation of
|
||||||
"vim-virtualenv".
|
"vim-virtualenv".
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
7.12 YouCompleteMe *syntastic-ycm*
|
7.12 YouCompleteMe *syntastic-ycm*
|
||||||
|
|
||||||
Syntastic can be used together with the "YouCompleteMe" Vim plugin (see
|
Syntastic can be used together with the "YouCompleteMe" Vim plugin (see
|
||||||
http://valloric.github.io/YouCompleteMe/). However, by default "YouCompleteMe"
|
http://valloric.github.io/YouCompleteMe/). However, by default "YouCompleteMe"
|
||||||
disables syntastic's checkers for the "c", "cpp", "objc", and "objcpp"
|
disables syntastic's checkers for the "c", "cpp", "objc", and "objcpp"
|
||||||
filetypes, in order to allow its own checkers to run. If you want to use YCM's
|
filetypes, in order to allow its own checkers to run. If you want to use YCM's
|
||||||
identifier completer but still run syntastic's checkers for those filetypes you
|
identifier completer but still run syntastic's checkers for those filetypes you
|
||||||
have to set |g:ycm_show_diagnostics_ui| to 0. E.g.: >
|
have to set |g:ycm_show_diagnostics_ui| to 0. E.g.: >
|
||||||
let g:ycm_show_diagnostics_ui = 0
|
let g:ycm_show_diagnostics_ui = 0
|
||||||
|
@ -993,9 +1046,9 @@ have to set |g:ycm_show_diagnostics_ui| to 0. E.g.: >
|
||||||
|
|
||||||
If you're running MacVim together with the "zsh" shell (http://www.zsh.org/)
|
If you're running MacVim together with the "zsh" shell (http://www.zsh.org/)
|
||||||
you need to be aware that MacVim does not source your .zshrc file, but will
|
you need to be aware that MacVim does not source your .zshrc file, but will
|
||||||
source a .zshenv file. Consequently you have to move any setup steps relevant
|
source a .zshenv file. Consequently you have to move any setup steps relevant
|
||||||
to the checkers you're using from .zshrc to .zshenv, otherwise your checkers
|
to the checkers you're using from .zshrc to .zshenv, otherwise your checkers
|
||||||
will misbehave when run by syntastic. This is particularly important for
|
will misbehave when run by syntastic. This is particularly important for
|
||||||
programs such as "rvm" (https://rvm.io/) or "rbenv" (http://rbenv.org/), that
|
programs such as "rvm" (https://rvm.io/) or "rbenv" (http://rbenv.org/), that
|
||||||
rely on setting environment variables.
|
rely on setting environment variables.
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ if has('reltime')
|
||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.7.0-69'
|
let g:_SYNTASTIC_VERSION = '3.7.0-101'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
|
|
@ -40,7 +40,7 @@ let s:_DEFAULT_CHECKERS = {
|
||||||
\ 'go': ['go'],
|
\ 'go': ['go'],
|
||||||
\ 'haml': ['haml'],
|
\ 'haml': ['haml'],
|
||||||
\ 'handlebars': ['handlebars'],
|
\ 'handlebars': ['handlebars'],
|
||||||
\ 'haskell': ['ghc_mod', 'hdevtools', 'hlint'],
|
\ 'haskell': ['hdevtools', 'hlint'],
|
||||||
\ 'haxe': ['haxe'],
|
\ 'haxe': ['haxe'],
|
||||||
\ 'hss': ['hss'],
|
\ 'hss': ['hss'],
|
||||||
\ 'html': ['tidy'],
|
\ 'html': ['tidy'],
|
||||||
|
@ -68,6 +68,7 @@ let s:_DEFAULT_CHECKERS = {
|
||||||
\ 'po': ['msgfmt'],
|
\ 'po': ['msgfmt'],
|
||||||
\ 'pod': ['podchecker'],
|
\ 'pod': ['podchecker'],
|
||||||
\ 'puppet': ['puppet', 'puppetlint'],
|
\ 'puppet': ['puppet', 'puppetlint'],
|
||||||
|
\ 'pug': ['pug_lint'],
|
||||||
\ 'python': ['python', 'flake8', 'pylint'],
|
\ 'python': ['python', 'flake8', 'pylint'],
|
||||||
\ 'qml': ['qmllint'],
|
\ 'qml': ['qmllint'],
|
||||||
\ 'r': [],
|
\ 'r': [],
|
||||||
|
@ -163,7 +164,7 @@ function! g:SyntasticRegistry.CreateAndRegisterChecker(args) abort " {{{2
|
||||||
|
|
||||||
if has_key(a:args, 'redirect')
|
if has_key(a:args, 'redirect')
|
||||||
let [ft, name] = split(a:args['redirect'], '/')
|
let [ft, name] = split(a:args['redirect'], '/')
|
||||||
call registry._loadCheckersFor(ft)
|
call registry._loadCheckersFor(ft, 1)
|
||||||
|
|
||||||
let clone = get(registry._checkerMap[ft], name, {})
|
let clone = get(registry._checkerMap[ft], name, {})
|
||||||
if empty(clone)
|
if empty(clone)
|
||||||
|
@ -183,7 +184,7 @@ endfunction " }}}2
|
||||||
" not run).
|
" not run).
|
||||||
function! g:SyntasticRegistry.getCheckers(ftalias, hints_list) abort " {{{2
|
function! g:SyntasticRegistry.getCheckers(ftalias, hints_list) abort " {{{2
|
||||||
let ft = s:_normalise_filetype(a:ftalias)
|
let ft = s:_normalise_filetype(a:ftalias)
|
||||||
call self._loadCheckersFor(ft)
|
call self._loadCheckersFor(ft, 0)
|
||||||
|
|
||||||
let checkers_map = self._checkerMap[ft]
|
let checkers_map = self._checkerMap[ft]
|
||||||
if empty(checkers_map)
|
if empty(checkers_map)
|
||||||
|
@ -232,7 +233,7 @@ endfunction " }}}2
|
||||||
|
|
||||||
function! g:SyntasticRegistry.getNamesOfAvailableCheckers(ftalias) abort " {{{2
|
function! g:SyntasticRegistry.getNamesOfAvailableCheckers(ftalias) abort " {{{2
|
||||||
let ft = s:_normalise_filetype(a:ftalias)
|
let ft = s:_normalise_filetype(a:ftalias)
|
||||||
call self._loadCheckersFor(ft)
|
call self._loadCheckersFor(ft, 0)
|
||||||
return keys(filter( copy(self._checkerMap[ft]), 'v:val.isAvailable()' ))
|
return keys(filter( copy(self._checkerMap[ft]), 'v:val.isAvailable()' ))
|
||||||
endfunction " }}}2
|
endfunction " }}}2
|
||||||
|
|
||||||
|
@ -319,8 +320,8 @@ function! g:SyntasticRegistry._filterCheckersByName(checkers_map, list) abort "
|
||||||
return filter( map(copy(a:list), 'get(a:checkers_map, v:val, {})'), '!empty(v:val)' )
|
return filter( map(copy(a:list), 'get(a:checkers_map, v:val, {})'), '!empty(v:val)' )
|
||||||
endfunction " }}}2
|
endfunction " }}}2
|
||||||
|
|
||||||
function! g:SyntasticRegistry._loadCheckersFor(filetype) abort " {{{2
|
function! g:SyntasticRegistry._loadCheckersFor(filetype, force) abort " {{{2
|
||||||
if has_key(self._checkerMap, a:filetype)
|
if !a:force && has_key(self._checkerMap, a:filetype)
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -21,13 +21,6 @@ let s:setup_done = 0
|
||||||
|
|
||||||
function! g:SyntasticSignsNotifier.New() abort " {{{2
|
function! g:SyntasticSignsNotifier.New() abort " {{{2
|
||||||
let newObj = copy(self)
|
let newObj = copy(self)
|
||||||
|
|
||||||
if !s:setup_done
|
|
||||||
call self._setup()
|
|
||||||
let s:setup_done = 1
|
|
||||||
lockvar s:setup_done
|
|
||||||
endif
|
|
||||||
|
|
||||||
return newObj
|
return newObj
|
||||||
endfunction " }}}2
|
endfunction " }}}2
|
||||||
|
|
||||||
|
@ -37,8 +30,15 @@ endfunction " }}}2
|
||||||
|
|
||||||
function! g:SyntasticSignsNotifier.refresh(loclist) abort " {{{2
|
function! g:SyntasticSignsNotifier.refresh(loclist) abort " {{{2
|
||||||
call syntastic#log#debug(g:_SYNTASTIC_DEBUG_NOTIFICATIONS, 'signs: refresh')
|
call syntastic#log#debug(g:_SYNTASTIC_DEBUG_NOTIFICATIONS, 'signs: refresh')
|
||||||
|
|
||||||
let old_signs = copy(self._bufSignIds())
|
let old_signs = copy(self._bufSignIds())
|
||||||
if self.enabled()
|
if self.enabled()
|
||||||
|
if !s:setup_done
|
||||||
|
call self._setup()
|
||||||
|
let s:setup_done = 1
|
||||||
|
lockvar s:setup_done
|
||||||
|
endif
|
||||||
|
|
||||||
call self._signErrors(a:loclist)
|
call self._signErrors(a:loclist)
|
||||||
endif
|
endif
|
||||||
call self._removeSigns(old_signs)
|
call self._removeSigns(old_signs)
|
||||||
|
|
|
@ -22,14 +22,14 @@ function! SyntaxCheckers_asciidoc_asciidoc_GetLocList() dict
|
||||||
let makeprg = self.makeprgBuild({ 'args_after': syntastic#c#NullOutput() })
|
let makeprg = self.makeprgBuild({ 'args_after': syntastic#c#NullOutput() })
|
||||||
|
|
||||||
let errorformat =
|
let errorformat =
|
||||||
\ '%Easciidoc: %tRROR: %f: line %l: %m,' .
|
\ '%E%\w%\+: %tRROR: %f: line %l: %m,' .
|
||||||
\ '%Easciidoc: %tRROR: %f: %m,' .
|
\ '%E%\w%\+: %tRROR: %f: %m,' .
|
||||||
\ '%Easciidoc: FAILED: %f: line %l: %m,' .
|
\ '%E%\w%\+: FAILED: %f: line %l: %m,' .
|
||||||
\ '%Easciidoc: FAILED: %f: %m,' .
|
\ '%E%\w%\+: FAILED: %f: %m,' .
|
||||||
\ '%Wasciidoc: %tARNING: %f: line %l: %m,' .
|
\ '%W%\w%\+: %tARNING: %f: line %l: %m,' .
|
||||||
\ '%Wasciidoc: %tARNING: %f: %m,' .
|
\ '%W%\w%\+: %tARNING: %f: %m,' .
|
||||||
\ '%Wasciidoc: DEPRECATED: %f: line %l: %m,' .
|
\ '%W%\w%\+: DEPRECATED: %f: line %l: %m,' .
|
||||||
\ '%Wasciidoc: DEPRECATED: %f: %m'
|
\ '%W%\w%\+: DEPRECATED: %f: %m'
|
||||||
|
|
||||||
return SyntasticMake({
|
return SyntasticMake({
|
||||||
\ 'makeprg': makeprg,
|
\ 'makeprg': makeprg,
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
"============================================================================
|
"============================================================================
|
||||||
|
|
||||||
if exists('g:loaded_syntastic_c_clang_check_checker')
|
if exists('g:loaded_syntastic_c_clang_check_checker')
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_syntastic_c_clang_check_checker = 1
|
let g:loaded_syntastic_c_clang_check_checker = 1
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
"============================================================================
|
"============================================================================
|
||||||
|
|
||||||
if exists('g:loaded_syntastic_c_clang_tidy_checker')
|
if exists('g:loaded_syntastic_c_clang_tidy_checker')
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_syntastic_c_clang_tidy_checker = 1
|
let g:loaded_syntastic_c_clang_tidy_checker = 1
|
||||||
|
|
||||||
|
|
|
@ -30,8 +30,8 @@ function! SyntaxCheckers_chef_foodcritic_GetLocList() dict
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||||
\ 'filetype': 'chef',
|
\ 'filetype': 'chef',
|
||||||
\ 'name': 'foodcritic'})
|
\ 'name': 'foodcritic'})
|
||||||
|
|
||||||
let &cpo = s:save_cpo
|
let &cpo = s:save_cpo
|
||||||
unlet s:save_cpo
|
unlet s:save_cpo
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
"============================================================================
|
"============================================================================
|
||||||
|
|
||||||
if exists('g:loaded_syntastic_cpp_clang_check_checker')
|
if exists('g:loaded_syntastic_cpp_clang_check_checker')
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_syntastic_cpp_clang_check_checker = 1
|
let g:loaded_syntastic_cpp_clang_check_checker = 1
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
"============================================================================
|
"============================================================================
|
||||||
|
|
||||||
if exists('g:loaded_syntastic_cpp_clang_tidy_checker')
|
if exists('g:loaded_syntastic_cpp_clang_tidy_checker')
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_syntastic_cpp_clang_tidy_checker = 1
|
let g:loaded_syntastic_cpp_clang_tidy_checker = 1
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,12 @@ let g:loaded_syntastic_css_stylelint_checker = 1
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
|
let s:args_after = {
|
||||||
|
\ 'css': '-f json',
|
||||||
|
\ 'scss': '-f json -s scss' }
|
||||||
|
|
||||||
function! SyntaxCheckers_css_stylelint_GetLocList() dict
|
function! SyntaxCheckers_css_stylelint_GetLocList() dict
|
||||||
let makeprg = self.makeprgBuild({ 'args_after': '-f json' })
|
let makeprg = self.makeprgBuild({ 'args_after': get(s:args_after, self.getFiletype(), '') })
|
||||||
|
|
||||||
let errorformat = '%t:%f:%l:%c:%m'
|
let errorformat = '%t:%f:%l:%c:%m'
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@ function! SyntaxCheckers_haskell_hlint_GetLocList() dict
|
||||||
\ '%E%f:%l:%v: Error while reading hint file\, %m,' .
|
\ '%E%f:%l:%v: Error while reading hint file\, %m,' .
|
||||||
\ '%E%f:%l:%v: Error: %m,' .
|
\ '%E%f:%l:%v: Error: %m,' .
|
||||||
\ '%W%f:%l:%v: Warning: %m,' .
|
\ '%W%f:%l:%v: Warning: %m,' .
|
||||||
|
\ '%W%f:%l:%v: Suggestion: %m,' .
|
||||||
\ '%C%m'
|
\ '%C%m'
|
||||||
|
|
||||||
return SyntasticMake({
|
return SyntasticMake({
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
"============================================================================
|
"============================================================================
|
||||||
"File: jade_lint.vim
|
"File: jade_lint.vim
|
||||||
"Description: Syntax checking plugin for syntastic.vim
|
"Description: Syntax checking plugin for syntastic
|
||||||
"Maintainer: Ben Parnell <benjaminparnell.94@gmail.com>
|
"Maintainer: LCD 47 <lcd047 at gmail dot com>
|
||||||
"License: This program is free software. It comes without any warranty,
|
"License: This program is free software. It comes without any warranty,
|
||||||
" to the extent permitted by applicable law. You can redistribute
|
" to the extent permitted by applicable law. You can redistribute
|
||||||
" it and/or modify it under the terms of the Do What The Fuck You
|
" it and/or modify it under the terms of the Do What The Fuck You
|
||||||
|
@ -15,26 +15,10 @@ if exists('g:loaded_syntastic_jade_jade_lint_checker')
|
||||||
endif
|
endif
|
||||||
let g:loaded_syntastic_jade_jade_lint_checker = 1
|
let g:loaded_syntastic_jade_jade_lint_checker = 1
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
|
||||||
set cpo&vim
|
|
||||||
|
|
||||||
function! SyntaxCheckers_jade_jade_lint_GetLocList() dict
|
|
||||||
let makeprg = self.makeprgBuild({ 'args_after': '-r inline' })
|
|
||||||
|
|
||||||
let errorformat = '%f:%l:%c %m'
|
|
||||||
|
|
||||||
return SyntasticMake({
|
|
||||||
\ 'makeprg': makeprg,
|
|
||||||
\ 'errorformat': errorformat,
|
|
||||||
\ 'returns': [0, 2] })
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||||
\ 'filetype': 'jade',
|
\ 'filetype': 'jade',
|
||||||
\ 'name': 'jade_lint',
|
\ 'name': 'jade_lint',
|
||||||
\ 'exec': 'jade-lint' })
|
\ 'exec': 'jade-lint',
|
||||||
|
\ 'redirect': 'pug/pug_lint'})
|
||||||
let &cpo = s:save_cpo
|
|
||||||
unlet s:save_cpo
|
|
||||||
|
|
||||||
" vim: set sw=4 sts=4 et fdm=marker:
|
" vim: set sw=4 sts=4 et fdm=marker:
|
||||||
|
|
|
@ -34,7 +34,7 @@ function! SyntaxCheckers_javascript_flow_GetLocList() dict
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let makeprg = self.makeprgBuild({
|
let makeprg = self.makeprgBuild({
|
||||||
\ 'exe': self.getExecEscaped() . ' status',
|
\ 'exe': self.getExecEscaped() . ' check',
|
||||||
\ 'args_after': '--show-all-errors --json' })
|
\ 'args_after': '--show-all-errors --json' })
|
||||||
|
|
||||||
let errorformat =
|
let errorformat =
|
||||||
|
|
|
@ -29,7 +29,8 @@ function! SyntaxCheckers_javascript_jscs_IsAvailable() dict
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! SyntaxCheckers_javascript_jscs_GetLocList() dict
|
function! SyntaxCheckers_javascript_jscs_GetLocList() dict
|
||||||
let makeprg = self.makeprgBuild({ 'args_after': '--no-colors --reporter json' })
|
let makeprg = self.makeprgBuild({
|
||||||
|
\ 'args_after': '--no-colors --max-errors -1 --reporter json' })
|
||||||
|
|
||||||
let errorformat = '%f:%l:%c:%m'
|
let errorformat = '%f:%l:%c:%m'
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ function! SyntaxCheckers_markdown_mdl_GetLocList() dict
|
||||||
let makeprg = self.makeprgBuild({ 'args': '--warnings' })
|
let makeprg = self.makeprgBuild({ 'args': '--warnings' })
|
||||||
|
|
||||||
let errorformat =
|
let errorformat =
|
||||||
\ '%E%f:%l: %m,'.
|
\ '%E%f:%\s%\=%l: %m,'.
|
||||||
\ '%W%f: Kramdown Warning: %m found on line %l'
|
\ '%W%f: Kramdown Warning: %m found on line %l'
|
||||||
|
|
||||||
return SyntasticMake({
|
return SyntasticMake({
|
||||||
|
|
|
@ -0,0 +1,40 @@
|
||||||
|
"============================================================================
|
||||||
|
"File: pug_lint.vim
|
||||||
|
"Description: Syntax checking plugin for syntastic.vim
|
||||||
|
"Maintainer: Ben Parnell <benjaminparnell.94@gmail.com>
|
||||||
|
"License: This program is free software. It comes without any warranty,
|
||||||
|
" to the extent permitted by applicable law. You can redistribute
|
||||||
|
" it and/or modify it under the terms of the Do What The Fuck You
|
||||||
|
" Want To Public License, Version 2, as published by Sam Hocevar.
|
||||||
|
" See http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||||
|
"
|
||||||
|
"============================================================================
|
||||||
|
|
||||||
|
if exists('g:loaded_syntastic_pug_pug_lint_checker')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:loaded_syntastic_pug_pug_lint_checker = 1
|
||||||
|
|
||||||
|
let s:save_cpo = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
function! SyntaxCheckers_pug_pug_lint_GetLocList() dict
|
||||||
|
let makeprg = self.makeprgBuild({ 'args_after': '-r inline' })
|
||||||
|
|
||||||
|
let errorformat = '%f:%l:%c %m'
|
||||||
|
|
||||||
|
return SyntasticMake({
|
||||||
|
\ 'makeprg': makeprg,
|
||||||
|
\ 'errorformat': errorformat,
|
||||||
|
\ 'returns': [0, 2] })
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||||
|
\ 'filetype': 'pug',
|
||||||
|
\ 'name': 'pug_lint',
|
||||||
|
\ 'exec': 'pug-lint' })
|
||||||
|
|
||||||
|
let &cpo = s:save_cpo
|
||||||
|
unlet s:save_cpo
|
||||||
|
|
||||||
|
" vim: set sw=4 sts=4 et fdm=marker:
|
|
@ -1,6 +1,13 @@
|
||||||
"============================================================================
|
"============================================================================
|
||||||
"File: pep257.vim
|
"File: pep257.vim
|
||||||
"Description: Docstring style checking plugin for syntastic.vim
|
"Description: Syntax checking plugin for syntastic
|
||||||
|
"Maintainer: LCD 47 <lcd047 at gmail dot com>
|
||||||
|
"License: This program is free software. It comes without any warranty,
|
||||||
|
" to the extent permitted by applicable law. You can redistribute
|
||||||
|
" it and/or modify it under the terms of the Do What The Fuck You
|
||||||
|
" Want To Public License, Version 2, as published by Sam Hocevar.
|
||||||
|
" See http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||||
|
"
|
||||||
"============================================================================
|
"============================================================================
|
||||||
|
|
||||||
if exists('g:loaded_syntastic_python_pep257_checker')
|
if exists('g:loaded_syntastic_python_pep257_checker')
|
||||||
|
@ -8,52 +15,9 @@ if exists('g:loaded_syntastic_python_pep257_checker')
|
||||||
endif
|
endif
|
||||||
let g:loaded_syntastic_python_pep257_checker = 1
|
let g:loaded_syntastic_python_pep257_checker = 1
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
|
||||||
set cpo&vim
|
|
||||||
|
|
||||||
function! SyntaxCheckers_python_pep257_GetLocList() dict
|
|
||||||
if !exists('s:pep257_new')
|
|
||||||
let s:pep257_new = syntastic#util#versionIsAtLeast(self.getVersion(), [0, 3])
|
|
||||||
endif
|
|
||||||
|
|
||||||
let makeprg = self.makeprgBuild({})
|
|
||||||
|
|
||||||
if s:pep257_new
|
|
||||||
let errorformat =
|
|
||||||
\ '%E%f:%l %.%#:,' .
|
|
||||||
\ '%+C %m'
|
|
||||||
else
|
|
||||||
let errorformat =
|
|
||||||
\ '%E%f:%l:%c%\%.%\%.%\d%\+:%\d%\+: %m,' .
|
|
||||||
\ '%E%f:%l:%c: %m,' .
|
|
||||||
\ '%+C %m'
|
|
||||||
endif
|
|
||||||
|
|
||||||
let env = syntastic#util#isRunningWindows() ? {} : { 'TERM': 'dumb' }
|
|
||||||
|
|
||||||
let loclist = SyntasticMake({
|
|
||||||
\ 'makeprg': makeprg,
|
|
||||||
\ 'errorformat': errorformat,
|
|
||||||
\ 'env': env,
|
|
||||||
\ 'subtype': 'Style',
|
|
||||||
\ 'preprocess': 'killEmpty',
|
|
||||||
\ 'postprocess': ['compressWhitespace'] })
|
|
||||||
|
|
||||||
if s:pep257_new == 0
|
|
||||||
" byte offsets rather than column numbers
|
|
||||||
for e in loclist
|
|
||||||
let e['col'] = get(e, 'col', 0) + 1
|
|
||||||
endfor
|
|
||||||
endif
|
|
||||||
|
|
||||||
return loclist
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||||
\ 'filetype': 'python',
|
\ 'filetype': 'python',
|
||||||
\ 'name': 'pep257'})
|
\ 'name': 'pep257',
|
||||||
|
\ 'redirect': 'python/pydocstyle'})
|
||||||
let &cpo = s:save_cpo
|
|
||||||
unlet s:save_cpo
|
|
||||||
|
|
||||||
" vim: set sw=4 sts=4 et fdm=marker:
|
" vim: set sw=4 sts=4 et fdm=marker:
|
||||||
|
|
|
@ -0,0 +1,66 @@
|
||||||
|
"============================================================================
|
||||||
|
"File: pydocstyle.vim
|
||||||
|
"Description: Syntax checking plugin for syntastic
|
||||||
|
"Maintainer: LCD 47 <lcd047 at gmail dot com>
|
||||||
|
"License: This program is free software. It comes without any warranty,
|
||||||
|
" to the extent permitted by applicable law. You can redistribute
|
||||||
|
" it and/or modify it under the terms of the Do What The Fuck You
|
||||||
|
" Want To Public License, Version 2, as published by Sam Hocevar.
|
||||||
|
" See http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||||
|
"
|
||||||
|
"============================================================================
|
||||||
|
|
||||||
|
if exists('g:loaded_syntastic_python_pydocstyle_checker')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:loaded_syntastic_python_pydocstyle_checker = 1
|
||||||
|
|
||||||
|
let s:save_cpo = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
function! SyntaxCheckers_python_pydocstyle_GetLocList() dict
|
||||||
|
if !exists('s:pydocstyle_new')
|
||||||
|
let s:pydocstyle_new = syntastic#util#versionIsAtLeast(self.getVersion(), [0, 3])
|
||||||
|
endif
|
||||||
|
|
||||||
|
let makeprg = self.makeprgBuild({})
|
||||||
|
|
||||||
|
if s:pydocstyle_new
|
||||||
|
let errorformat =
|
||||||
|
\ '%E%f:%l %.%#:,' .
|
||||||
|
\ '%+C %m'
|
||||||
|
else
|
||||||
|
let errorformat =
|
||||||
|
\ '%E%f:%l:%c%\%.%\%.%\d%\+:%\d%\+: %m,' .
|
||||||
|
\ '%E%f:%l:%c: %m,' .
|
||||||
|
\ '%+C %m'
|
||||||
|
endif
|
||||||
|
|
||||||
|
let env = syntastic#util#isRunningWindows() ? {} : { 'TERM': 'dumb' }
|
||||||
|
|
||||||
|
let loclist = SyntasticMake({
|
||||||
|
\ 'makeprg': makeprg,
|
||||||
|
\ 'errorformat': errorformat,
|
||||||
|
\ 'env': env,
|
||||||
|
\ 'subtype': 'Style',
|
||||||
|
\ 'preprocess': 'killEmpty',
|
||||||
|
\ 'postprocess': ['compressWhitespace'] })
|
||||||
|
|
||||||
|
if s:pydocstyle_new == 0
|
||||||
|
" byte offsets rather than column numbers
|
||||||
|
for e in loclist
|
||||||
|
let e['col'] = get(e, 'col', 0) + 1
|
||||||
|
endfor
|
||||||
|
endif
|
||||||
|
|
||||||
|
return loclist
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||||
|
\ 'filetype': 'python',
|
||||||
|
\ 'name': 'pydocstyle'})
|
||||||
|
|
||||||
|
let &cpo = s:save_cpo
|
||||||
|
unlet s:save_cpo
|
||||||
|
|
||||||
|
" vim: set sw=4 sts=4 et fdm=marker:
|
|
@ -29,10 +29,8 @@ function! SyntaxCheckers_rst_rst2pseudoxml_GetLocList() dict
|
||||||
\ 'tail': syntastic#util#DevNull() })
|
\ 'tail': syntastic#util#DevNull() })
|
||||||
|
|
||||||
let errorformat =
|
let errorformat =
|
||||||
\ '%f:%l: (%tNFO/1) %m,'.
|
\ '%f:%l: (%t%\w%\+/%\d%\+) %m,'.
|
||||||
\ '%f:%l: (%tARNING/2) %m,'.
|
\ '%f:: (%t%\w%\+/%\d%\+) %m,'.
|
||||||
\ '%f:%l: (%tRROR/3) %m,'.
|
|
||||||
\ '%f:%l: (%tEVERE/4) %m,'.
|
|
||||||
\ '%-G%.%#'
|
\ '%-G%.%#'
|
||||||
|
|
||||||
let loclist = SyntasticMake({
|
let loclist = SyntasticMake({
|
||||||
|
@ -40,11 +38,11 @@ function! SyntaxCheckers_rst_rst2pseudoxml_GetLocList() dict
|
||||||
\ 'errorformat': errorformat })
|
\ 'errorformat': errorformat })
|
||||||
|
|
||||||
for e in loclist
|
for e in loclist
|
||||||
if e['type'] ==? 'S'
|
if e['type'] ==? 'I'
|
||||||
let e['type'] = 'E'
|
|
||||||
elseif e['type'] ==? 'I'
|
|
||||||
let e['type'] = 'W'
|
let e['type'] = 'W'
|
||||||
let e['subtype'] = 'Style'
|
let e['subtype'] = 'Style'
|
||||||
|
else
|
||||||
|
let e['type'] = 'E'
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
|
|
|
@ -21,21 +21,28 @@ function! SyntaxCheckers_scss_scss_lint_IsAvailable() dict
|
||||||
if !executable(self.getExec())
|
if !executable(self.getExec())
|
||||||
return 0
|
return 0
|
||||||
endif
|
endif
|
||||||
return syntastic#util#versionIsAtLeast(self.getVersion(), [0, 12])
|
return syntastic#util#versionIsAtLeast(self.getVersion(), [0, 29])
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! SyntaxCheckers_scss_scss_lint_GetLocList() dict
|
function! SyntaxCheckers_scss_scss_lint_GetLocList() dict
|
||||||
let makeprg = self.makeprgBuild({})
|
let makeprg = self.makeprgBuild({ 'args_after': '-f JSON' })
|
||||||
|
|
||||||
let errorformat = '%f:%l [%t] %m'
|
let errorformat = '%f:%t:%l:%c:%n:%m'
|
||||||
|
|
||||||
let loclist = SyntasticMake({
|
let loclist = SyntasticMake({
|
||||||
\ 'makeprg': makeprg,
|
\ 'makeprg': makeprg,
|
||||||
\ 'errorformat': errorformat,
|
\ 'errorformat': errorformat,
|
||||||
|
\ 'preprocess': 'scss_lint',
|
||||||
|
\ 'postprocess': ['guards'],
|
||||||
\ 'returns': [0, 1, 2, 65, 66] })
|
\ 'returns': [0, 1, 2, 65, 66] })
|
||||||
|
|
||||||
let cutoff = strlen('Syntax Error: ')
|
let cutoff = strlen('Syntax Error: ')
|
||||||
for e in loclist
|
for e in loclist
|
||||||
|
if e['nr'] > 1
|
||||||
|
let e['hl'] = '\%>' . (e['col'] - 1) . 'c\%<' . (e['col'] + e['nr']) . 'c'
|
||||||
|
endif
|
||||||
|
let e['nr'] = 0
|
||||||
|
|
||||||
if e['text'][: cutoff-1] ==# 'Syntax Error: '
|
if e['text'][: cutoff-1] ==# 'Syntax Error: '
|
||||||
let e['text'] = e['text'][cutoff :]
|
let e['text'] = e['text'][cutoff :]
|
||||||
else
|
else
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
"============================================================================
|
||||||
|
"File: stylelint.vim
|
||||||
|
"Description: Syntax checking plugin for syntastic.vim
|
||||||
|
"Maintainer: LCD 47 <lcd047 at gmail dot com>
|
||||||
|
"License: This program is free software. It comes without any warranty,
|
||||||
|
" to the extent permitted by applicable law. You can redistribute
|
||||||
|
" it and/or modify it under the terms of the Do What The Fuck You
|
||||||
|
" Want To Public License, Version 2, as published by Sam Hocevar.
|
||||||
|
" See http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||||
|
"
|
||||||
|
"============================================================================
|
||||||
|
|
||||||
|
if exists('g:loaded_syntastic_scss_stylelint_checker')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:loaded_syntastic_scss_stylelint_checker = 1
|
||||||
|
|
||||||
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||||
|
\ 'filetype': 'scss',
|
||||||
|
\ 'name': 'stylelint',
|
||||||
|
\ 'redirect': 'css/stylelint'})
|
||||||
|
|
||||||
|
" vim: set sw=4 sts=4 et fdm=marker:
|
|
@ -0,0 +1,52 @@
|
||||||
|
"============================================================================
|
||||||
|
"File: yamllint.vim
|
||||||
|
"Description: YAML files linting for syntastic.vim
|
||||||
|
"Maintainer: Adrien Vergé
|
||||||
|
"License: This program is free software. It comes without any warranty,
|
||||||
|
" to the extent permitted by applicable law. You can redistribute
|
||||||
|
" it and/or modify it under the terms of the Do What The Fuck You
|
||||||
|
" Want To Public License, Version 2, as published by Sam Hocevar.
|
||||||
|
" See http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||||
|
"
|
||||||
|
"============================================================================
|
||||||
|
|
||||||
|
if exists('g:loaded_syntastic_yaml_yamllint_checker')
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:loaded_syntastic_yaml_yamllint_checker = 1
|
||||||
|
|
||||||
|
let s:save_cpo = &cpo
|
||||||
|
set cpo&vim
|
||||||
|
|
||||||
|
function! SyntaxCheckers_yaml_yamllint_GetLocList() dict
|
||||||
|
let makeprg = self.makeprgBuild({ 'args_after': '-f parsable' })
|
||||||
|
|
||||||
|
let errorformat =
|
||||||
|
\ '%f:%l:%c: [%trror] %m,' .
|
||||||
|
\ '%f:%l:%c: [%tarning] %m'
|
||||||
|
|
||||||
|
let env = syntastic#util#isRunningWindows() ? {} : { 'TERM': 'dumb' }
|
||||||
|
|
||||||
|
let loclist = SyntasticMake({
|
||||||
|
\ 'makeprg': makeprg,
|
||||||
|
\ 'errorformat': errorformat,
|
||||||
|
\ 'env': env,
|
||||||
|
\ 'returns': [0, 1] })
|
||||||
|
|
||||||
|
for e in loclist
|
||||||
|
if e['type'] ==? 'W'
|
||||||
|
let e['subtype'] = 'Style'
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
|
||||||
|
return loclist
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||||
|
\ 'filetype': 'yaml',
|
||||||
|
\ 'name': 'yamllint' })
|
||||||
|
|
||||||
|
let &cpo = s:save_cpo
|
||||||
|
unlet s:save_cpo
|
||||||
|
|
||||||
|
" vim: set sw=4 sts=4 et fdm=marker:
|
21
sources_non_forked/vim-airline-themes/LICENSE
Normal file
21
sources_non_forked/vim-airline-themes/LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (C) 2013-2016 Bailey Ling & Contributors.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the "Software"),
|
||||||
|
to deal in the Software without restriction, including without limitation
|
||||||
|
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included
|
||||||
|
in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||||
|
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||||||
|
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
|
||||||
|
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
51
sources_non_forked/vim-airline-themes/README.md
Normal file
51
sources_non_forked/vim-airline-themes/README.md
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
# vim-airline-themes
|
||||||
|
|
||||||
|
This is the official theme repository for [vim-airline](https://github.com/vim-airline/vim-airline).
|
||||||
|
|
||||||
|
# Installation
|
||||||
|
|
||||||
|
This plugin follows the standard runtime path structure, and as such it can be installed with a variety of plugin managers:
|
||||||
|
|
||||||
|
* [Pathogen][4]
|
||||||
|
* `git clone https://github.com/vim-airline/vim-airline-themes ~/.vim/bundle/vim-airline-themes`
|
||||||
|
* Remember to run `:Helptags` to generate help tags
|
||||||
|
* [NeoBundle][5]
|
||||||
|
* `NeoBundle 'vim-airline/vim-airline-themes'`
|
||||||
|
* [Vundle][6]
|
||||||
|
* `Plugin 'vim-airline/vim-airline-themes'`
|
||||||
|
* [Plug][7]
|
||||||
|
* `Plug 'vim-airline/vim-airline-themes'`
|
||||||
|
* manual
|
||||||
|
* copy all of the files into your `~/.vim` directory
|
||||||
|
|
||||||
|
|
||||||
|
# Contribution Guidelines
|
||||||
|
|
||||||
|
## New themes
|
||||||
|
|
||||||
|
* Pull requests for new themes are welcome. Please be sure to include a screenshot. You can paste an image into issue [#1](https://github.com/vim-airline/vim-airline-themes/issues/1), and then editing the post to reveal the uploaded image URL.
|
||||||
|
|
||||||
|
## Modifications to existing themes
|
||||||
|
|
||||||
|
* Themes are subjective, so if you are going to make modifications to an existing theme, please expose a configurable variable to allow users to choose how the theme will react.
|
||||||
|
|
||||||
|
# Screenshots
|
||||||
|
|
||||||
|
Screenshots are in the process of being migrated here. In the meantime you can find screenshots in the existing repository's [Wiki](https://github.com/vim-airline/vim-airline/wiki/Screenshots).
|
||||||
|
|
||||||
|
# Maintenance
|
||||||
|
|
||||||
|
If you are interested in becoming the official maintainer of this project, please contact [**@bling**][1], [**@chrisbra**][2], or [**@mhartington**][3].
|
||||||
|
|
||||||
|
# License
|
||||||
|
|
||||||
|
MIT License. Copyright (c) 2013-2016 Bailey Ling & Contributors.
|
||||||
|
|
||||||
|
|
||||||
|
[1]: https://github.com/bling
|
||||||
|
[2]: https://github.com/chrisbra
|
||||||
|
[3]: https://github.com/mhartington
|
||||||
|
[4]: https://github.com/tpope/vim-pathogen
|
||||||
|
[5]: https://github.com/Shougo/neobundle.vim
|
||||||
|
[6]: https://github.com/gmarik/vundle
|
||||||
|
[7]: https://github.com/junegunn/vim-plug
|
|
@ -96,11 +96,14 @@ else
|
||||||
let g:airline#themes#base16#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
let g:airline#themes#base16#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
let g:airline#themes#base16#palette.visual_modified = g:airline#themes#base16#palette.normal_modified
|
let g:airline#themes#base16#palette.visual_modified = g:airline#themes#base16#palette.normal_modified
|
||||||
|
|
||||||
let s:IA = airline#themes#get_highlight2(['NonText', 'fg'], ['CursorLine', 'bg'])
|
" Use VertSplit's bg and default fg (reversed) for inactive statusline.
|
||||||
let g:airline#themes#base16#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
|
let s:VS = airline#themes#get_highlight('VertSplit')
|
||||||
let g:airline#themes#base16#palette.inactive_modified = {
|
let s:IA = [ s:VS[1], 'NONE', s:VS[2], 'NONE', 'reverse']
|
||||||
\ 'airline_c': [ group[0], '', group[2], '', '' ]
|
let g:airline#themes#base16#palette.inactive =
|
||||||
\ }
|
\ airline#themes#generate_color_map(s:IA, s:IA, s:IA, s:IA, s:IA, s:IA)
|
||||||
|
let s:IM = [ s:VS[1], 'NONE', s:VS[2], 'NONE', 'reverse,italic']
|
||||||
|
let g:airline#themes#base16#palette.inactive_modified =
|
||||||
|
\ airline#themes#generate_color_map(s:IM, s:IM, s:IM, s:IM, s:IM, s:IM)
|
||||||
|
|
||||||
" Warnings
|
" Warnings
|
||||||
let s:WI = airline#themes#get_highlight2(['WarningMsg', 'bg'], ['WarningMsg', 'fg'], 'bold')
|
let s:WI = airline#themes#get_highlight2(['WarningMsg', 'bg'], ['WarningMsg', 'fg'], 'bold')
|
||||||
|
@ -111,7 +114,6 @@ else
|
||||||
let g:airline#themes#base16#palette.normal_modified.airline_warning =
|
let g:airline#themes#base16#palette.normal_modified.airline_warning =
|
||||||
\ g:airline#themes#base16#palette.normal.airline_warning
|
\ g:airline#themes#base16#palette.normal.airline_warning
|
||||||
|
|
||||||
|
|
||||||
let g:airline#themes#base16#palette.insert.airline_warning =
|
let g:airline#themes#base16#palette.insert.airline_warning =
|
||||||
\ g:airline#themes#base16#palette.normal.airline_warning
|
\ g:airline#themes#base16#palette.normal.airline_warning
|
||||||
|
|
||||||
|
@ -130,7 +132,33 @@ else
|
||||||
let g:airline#themes#base16#palette.replace_modified.airline_warning =
|
let g:airline#themes#base16#palette.replace_modified.airline_warning =
|
||||||
\ g:airline#themes#base16#palette.normal.airline_warning
|
\ g:airline#themes#base16#palette.normal.airline_warning
|
||||||
|
|
||||||
|
" Errors
|
||||||
|
let s:ER = airline#themes#get_highlight2(['ErrorMsg', 'bg'], ['ErrorMsg', 'fg'], 'bold')
|
||||||
|
let g:airline#themes#base16#palette.normal.airline_error = [
|
||||||
|
\ s:ER[0], s:ER[1], s:ER[2], s:ER[3]
|
||||||
|
\ ]
|
||||||
|
|
||||||
|
let g:airline#themes#base16#palette.normal_modified.airline_error =
|
||||||
|
\ g:airline#themes#base16#palette.normal.airline_error
|
||||||
|
|
||||||
|
let g:airline#themes#base16#palette.insert.airline_error =
|
||||||
|
\ g:airline#themes#base16#palette.normal.airline_error
|
||||||
|
|
||||||
|
let g:airline#themes#base16#palette.insert_modified.airline_error =
|
||||||
|
\ g:airline#themes#base16#palette.normal.airline_error
|
||||||
|
|
||||||
|
let g:airline#themes#base16#palette.visual.airline_error =
|
||||||
|
\ g:airline#themes#base16#palette.normal.airline_error
|
||||||
|
|
||||||
|
let g:airline#themes#base16#palette.visual_modified.airline_error =
|
||||||
|
\ g:airline#themes#base16#palette.normal.airline_error
|
||||||
|
|
||||||
|
let g:airline#themes#base16#palette.replace.airline_error =
|
||||||
|
\ g:airline#themes#base16#palette.normal.airline_error
|
||||||
|
|
||||||
|
let g:airline#themes#base16#palette.replace_modified.airline_error =
|
||||||
|
\ g:airline#themes#base16#palette.normal.airline_error
|
||||||
|
|
||||||
endfunction
|
endfunction
|
||||||
call airline#themes#base16#refresh()
|
call airline#themes#base16#refresh()
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 3024 Scheme by Jan T. Sott (http://github.com/idleberg)
|
||||||
|
let g:airline#themes#base16_3024#palette = {}
|
||||||
|
let s:gui00 = "#090300"
|
||||||
|
let s:gui01 = "#3a3432"
|
||||||
|
let s:gui02 = "#4a4543"
|
||||||
|
let s:gui03 = "#5c5855"
|
||||||
|
let s:gui04 = "#807d7c"
|
||||||
|
let s:gui05 = "#a5a2a2"
|
||||||
|
let s:gui06 = "#d6d5d4"
|
||||||
|
let s:gui07 = "#f7f7f7"
|
||||||
|
let s:gui08 = "#db2d20"
|
||||||
|
let s:gui09 = "#e8bbd0"
|
||||||
|
let s:gui0A = "#fded02"
|
||||||
|
let s:gui0B = "#01a252"
|
||||||
|
let s:gui0C = "#b5e4f4"
|
||||||
|
let s:gui0D = "#01a0e4"
|
||||||
|
let s:gui0E = "#a16a94"
|
||||||
|
let s:gui0F = "#cdab53"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 59
|
||||||
|
let s:cterm02 = 59
|
||||||
|
let s:cterm03 = 59
|
||||||
|
let s:cterm04 = 102
|
||||||
|
let s:cterm05 = 145
|
||||||
|
let s:cterm06 = 188
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 1
|
||||||
|
let s:cterm09 = 182
|
||||||
|
let s:cterm0A = 11
|
||||||
|
let s:cterm0B = 35
|
||||||
|
let s:cterm0C = 153
|
||||||
|
let s:cterm0D = 38
|
||||||
|
let s:cterm0E = 132
|
||||||
|
let s:cterm0F = 179
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_3024#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_3024#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_3024#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_3024#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_3024#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_3024#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Apathy Scheme by Jannik Siebert (https://github.com/janniks)
|
||||||
|
let g:airline#themes#base16_apathy#palette = {}
|
||||||
|
let s:gui00 = "#031A16"
|
||||||
|
let s:gui01 = "#0B342D"
|
||||||
|
let s:gui02 = "#184E45"
|
||||||
|
let s:gui03 = "#2B685E"
|
||||||
|
let s:gui04 = "#5F9C92"
|
||||||
|
let s:gui05 = "#81B5AC"
|
||||||
|
let s:gui06 = "#A7CEC8"
|
||||||
|
let s:gui07 = "#D2E7E4"
|
||||||
|
let s:gui08 = "#3E9688"
|
||||||
|
let s:gui09 = "#3E7996"
|
||||||
|
let s:gui0A = "#3E4C96"
|
||||||
|
let s:gui0B = "#883E96"
|
||||||
|
let s:gui0C = "#963E4C"
|
||||||
|
let s:gui0D = "#96883E"
|
||||||
|
let s:gui0E = "#4C963E"
|
||||||
|
let s:gui0F = "#3E965B"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 22
|
||||||
|
let s:cterm02 = 23
|
||||||
|
let s:cterm03 = 23
|
||||||
|
let s:cterm04 = 72
|
||||||
|
let s:cterm05 = 109
|
||||||
|
let s:cterm06 = 152
|
||||||
|
let s:cterm07 = 188
|
||||||
|
let s:cterm08 = 66
|
||||||
|
let s:cterm09 = 66
|
||||||
|
let s:cterm0A = 60
|
||||||
|
let s:cterm0B = 96
|
||||||
|
let s:cterm0C = 95
|
||||||
|
let s:cterm0D = 101
|
||||||
|
let s:cterm0E = 65
|
||||||
|
let s:cterm0F = 65
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_apathy#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_apathy#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_apathy#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_apathy#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_apathy#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_apathy#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Ashes Scheme by Jannik Siebert (https://github.com/janniks)
|
||||||
|
let g:airline#themes#base16_ashes#palette = {}
|
||||||
|
let s:gui00 = "#1C2023"
|
||||||
|
let s:gui01 = "#393F45"
|
||||||
|
let s:gui02 = "#565E65"
|
||||||
|
let s:gui03 = "#747C84"
|
||||||
|
let s:gui04 = "#ADB3BA"
|
||||||
|
let s:gui05 = "#C7CCD1"
|
||||||
|
let s:gui06 = "#DFE2E5"
|
||||||
|
let s:gui07 = "#F3F4F5"
|
||||||
|
let s:gui08 = "#C7AE95"
|
||||||
|
let s:gui09 = "#C7C795"
|
||||||
|
let s:gui0A = "#AEC795"
|
||||||
|
let s:gui0B = "#95C7AE"
|
||||||
|
let s:gui0C = "#95AEC7"
|
||||||
|
let s:gui0D = "#AE95C7"
|
||||||
|
let s:gui0E = "#C795AE"
|
||||||
|
let s:gui0F = "#C79595"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 59
|
||||||
|
let s:cterm02 = 59
|
||||||
|
let s:cterm03 = 102
|
||||||
|
let s:cterm04 = 145
|
||||||
|
let s:cterm05 = 188
|
||||||
|
let s:cterm06 = 188
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 180
|
||||||
|
let s:cterm09 = 186
|
||||||
|
let s:cterm0A = 150
|
||||||
|
let s:cterm0B = 115
|
||||||
|
let s:cterm0C = 110
|
||||||
|
let s:cterm0D = 140
|
||||||
|
let s:cterm0E = 175
|
||||||
|
let s:cterm0F = 174
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_ashes#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_ashes#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_ashes#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_ashes#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_ashes#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_ashes#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Atelier Dune Scheme by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)
|
||||||
|
let g:airline#themes#base16_atelierdune#palette = {}
|
||||||
|
let s:gui00 = "#20201d"
|
||||||
|
let s:gui01 = "#292824"
|
||||||
|
let s:gui02 = "#6e6b5e"
|
||||||
|
let s:gui03 = "#7d7a68"
|
||||||
|
let s:gui04 = "#999580"
|
||||||
|
let s:gui05 = "#a6a28c"
|
||||||
|
let s:gui06 = "#e8e4cf"
|
||||||
|
let s:gui07 = "#fefbec"
|
||||||
|
let s:gui08 = "#d73737"
|
||||||
|
let s:gui09 = "#b65611"
|
||||||
|
let s:gui0A = "#cfb017"
|
||||||
|
let s:gui0B = "#60ac39"
|
||||||
|
let s:gui0C = "#1fad83"
|
||||||
|
let s:gui0D = "#6684e1"
|
||||||
|
let s:gui0E = "#b854d4"
|
||||||
|
let s:gui0F = "#d43552"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 0
|
||||||
|
let s:cterm02 = 59
|
||||||
|
let s:cterm03 = 101
|
||||||
|
let s:cterm04 = 102
|
||||||
|
let s:cterm05 = 144
|
||||||
|
let s:cterm06 = 188
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 167
|
||||||
|
let s:cterm09 = 130
|
||||||
|
let s:cterm0A = 178
|
||||||
|
let s:cterm0B = 71
|
||||||
|
let s:cterm0C = 36
|
||||||
|
let s:cterm0D = 68
|
||||||
|
let s:cterm0E = 134
|
||||||
|
let s:cterm0F = 167
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierdune#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierdune#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierdune#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierdune#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierdune#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_atelierdune#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Atelier Forest Scheme by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)
|
||||||
|
let g:airline#themes#base16_atelierforest#palette = {}
|
||||||
|
let s:gui00 = "#1b1918"
|
||||||
|
let s:gui01 = "#2c2421"
|
||||||
|
let s:gui02 = "#68615e"
|
||||||
|
let s:gui03 = "#766e6b"
|
||||||
|
let s:gui04 = "#9c9491"
|
||||||
|
let s:gui05 = "#a8a19f"
|
||||||
|
let s:gui06 = "#e6e2e0"
|
||||||
|
let s:gui07 = "#f1efee"
|
||||||
|
let s:gui08 = "#f22c40"
|
||||||
|
let s:gui09 = "#df5320"
|
||||||
|
let s:gui0A = "#d5911a"
|
||||||
|
let s:gui0B = "#5ab738"
|
||||||
|
let s:gui0C = "#00ad9c"
|
||||||
|
let s:gui0D = "#407ee7"
|
||||||
|
let s:gui0E = "#6666ea"
|
||||||
|
let s:gui0F = "#c33ff3"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 0
|
||||||
|
let s:cterm02 = 59
|
||||||
|
let s:cterm03 = 95
|
||||||
|
let s:cterm04 = 138
|
||||||
|
let s:cterm05 = 145
|
||||||
|
let s:cterm06 = 188
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 197
|
||||||
|
let s:cterm09 = 166
|
||||||
|
let s:cterm0A = 172
|
||||||
|
let s:cterm0B = 71
|
||||||
|
let s:cterm0C = 37
|
||||||
|
let s:cterm0D = 68
|
||||||
|
let s:cterm0E = 62
|
||||||
|
let s:cterm0F = 135
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierforest#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierforest#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierforest#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierforest#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierforest#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_atelierforest#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Atelier Heath Scheme by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)
|
||||||
|
let g:airline#themes#base16_atelierheath#palette = {}
|
||||||
|
let s:gui00 = "#1b181b"
|
||||||
|
let s:gui01 = "#292329"
|
||||||
|
let s:gui02 = "#695d69"
|
||||||
|
let s:gui03 = "#776977"
|
||||||
|
let s:gui04 = "#9e8f9e"
|
||||||
|
let s:gui05 = "#ab9bab"
|
||||||
|
let s:gui06 = "#d8cad8"
|
||||||
|
let s:gui07 = "#f7f3f7"
|
||||||
|
let s:gui08 = "#ca402b"
|
||||||
|
let s:gui09 = "#a65926"
|
||||||
|
let s:gui0A = "#bb8a35"
|
||||||
|
let s:gui0B = "#379a37"
|
||||||
|
let s:gui0C = "#159393"
|
||||||
|
let s:gui0D = "#516aec"
|
||||||
|
let s:gui0E = "#7b59c0"
|
||||||
|
let s:gui0F = "#cc33cc"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 0
|
||||||
|
let s:cterm02 = 59
|
||||||
|
let s:cterm03 = 96
|
||||||
|
let s:cterm04 = 139
|
||||||
|
let s:cterm05 = 139
|
||||||
|
let s:cterm06 = 188
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 166
|
||||||
|
let s:cterm09 = 130
|
||||||
|
let s:cterm0A = 137
|
||||||
|
let s:cterm0B = 65
|
||||||
|
let s:cterm0C = 30
|
||||||
|
let s:cterm0D = 12
|
||||||
|
let s:cterm0E = 97
|
||||||
|
let s:cterm0F = 170
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierheath#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierheath#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierheath#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierheath#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierheath#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_atelierheath#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Atelier Lakeside Scheme by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)
|
||||||
|
let g:airline#themes#base16_atelierlakeside#palette = {}
|
||||||
|
let s:gui00 = "#161b1d"
|
||||||
|
let s:gui01 = "#1f292e"
|
||||||
|
let s:gui02 = "#516d7b"
|
||||||
|
let s:gui03 = "#5a7b8c"
|
||||||
|
let s:gui04 = "#7195a8"
|
||||||
|
let s:gui05 = "#7ea2b4"
|
||||||
|
let s:gui06 = "#c1e4f6"
|
||||||
|
let s:gui07 = "#ebf8ff"
|
||||||
|
let s:gui08 = "#d22d72"
|
||||||
|
let s:gui09 = "#935c25"
|
||||||
|
let s:gui0A = "#8a8a0f"
|
||||||
|
let s:gui0B = "#568c3b"
|
||||||
|
let s:gui0C = "#2d8f6f"
|
||||||
|
let s:gui0D = "#257fad"
|
||||||
|
let s:gui0E = "#5d5db1"
|
||||||
|
let s:gui0F = "#b72dd2"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 0
|
||||||
|
let s:cterm02 = 60
|
||||||
|
let s:cterm03 = 66
|
||||||
|
let s:cterm04 = 67
|
||||||
|
let s:cterm05 = 109
|
||||||
|
let s:cterm06 = 153
|
||||||
|
let s:cterm07 = 195
|
||||||
|
let s:cterm08 = 161
|
||||||
|
let s:cterm09 = 94
|
||||||
|
let s:cterm0A = 100
|
||||||
|
let s:cterm0B = 65
|
||||||
|
let s:cterm0C = 29
|
||||||
|
let s:cterm0D = 31
|
||||||
|
let s:cterm0E = 61
|
||||||
|
let s:cterm0F = 5
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierlakeside#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierlakeside#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierlakeside#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierlakeside#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierlakeside#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_atelierlakeside#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Atelier Seaside Scheme by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)
|
||||||
|
let g:airline#themes#base16_atelierseaside#palette = {}
|
||||||
|
let s:gui00 = "#131513"
|
||||||
|
let s:gui01 = "#242924"
|
||||||
|
let s:gui02 = "#5e6e5e"
|
||||||
|
let s:gui03 = "#687d68"
|
||||||
|
let s:gui04 = "#809980"
|
||||||
|
let s:gui05 = "#8ca68c"
|
||||||
|
let s:gui06 = "#cfe8cf"
|
||||||
|
let s:gui07 = "#f0fff0"
|
||||||
|
let s:gui08 = "#e6193c"
|
||||||
|
let s:gui09 = "#87711d"
|
||||||
|
let s:gui0A = "#c3c322"
|
||||||
|
let s:gui0B = "#29a329"
|
||||||
|
let s:gui0C = "#1999b3"
|
||||||
|
let s:gui0D = "#3d62f5"
|
||||||
|
let s:gui0E = "#ad2bee"
|
||||||
|
let s:gui0F = "#e619c3"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 0
|
||||||
|
let s:cterm02 = 59
|
||||||
|
let s:cterm03 = 65
|
||||||
|
let s:cterm04 = 102
|
||||||
|
let s:cterm05 = 108
|
||||||
|
let s:cterm06 = 188
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 161
|
||||||
|
let s:cterm09 = 94
|
||||||
|
let s:cterm0A = 3
|
||||||
|
let s:cterm0B = 2
|
||||||
|
let s:cterm0C = 31
|
||||||
|
let s:cterm0D = 12
|
||||||
|
let s:cterm0E = 129
|
||||||
|
let s:cterm0F = 5
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierseaside#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierseaside#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierseaside#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierseaside#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_atelierseaside#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_atelierseaside#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Bespin Scheme by Jan T. Sott
|
||||||
|
let g:airline#themes#base16_bespin#palette = {}
|
||||||
|
let s:gui00 = "#28211c"
|
||||||
|
let s:gui01 = "#36312e"
|
||||||
|
let s:gui02 = "#5e5d5c"
|
||||||
|
let s:gui03 = "#666666"
|
||||||
|
let s:gui04 = "#797977"
|
||||||
|
let s:gui05 = "#8a8986"
|
||||||
|
let s:gui06 = "#9d9b97"
|
||||||
|
let s:gui07 = "#baae9e"
|
||||||
|
let s:gui08 = "#cf6a4c"
|
||||||
|
let s:gui09 = "#cf7d34"
|
||||||
|
let s:gui0A = "#f9ee98"
|
||||||
|
let s:gui0B = "#54be0d"
|
||||||
|
let s:gui0C = "#afc4db"
|
||||||
|
let s:gui0D = "#5ea6ea"
|
||||||
|
let s:gui0E = "#9b859d"
|
||||||
|
let s:gui0F = "#937121"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 58
|
||||||
|
let s:cterm02 = 59
|
||||||
|
let s:cterm03 = 241
|
||||||
|
let s:cterm04 = 102
|
||||||
|
let s:cterm05 = 102
|
||||||
|
let s:cterm06 = 138
|
||||||
|
let s:cterm07 = 145
|
||||||
|
let s:cterm08 = 167
|
||||||
|
let s:cterm09 = 173
|
||||||
|
let s:cterm0A = 228
|
||||||
|
let s:cterm0B = 70
|
||||||
|
let s:cterm0C = 152
|
||||||
|
let s:cterm0D = 74
|
||||||
|
let s:cterm0E = 103
|
||||||
|
let s:cterm0F = 94
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_bespin#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_bespin#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_bespin#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_bespin#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_bespin#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_bespin#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Brewer Scheme by Timothée Poisot (http://github.com/tpoisot)
|
||||||
|
let g:airline#themes#base16_brewer#palette = {}
|
||||||
|
let s:gui00 = "#0c0d0e"
|
||||||
|
let s:gui01 = "#2e2f30"
|
||||||
|
let s:gui02 = "#515253"
|
||||||
|
let s:gui03 = "#737475"
|
||||||
|
let s:gui04 = "#959697"
|
||||||
|
let s:gui05 = "#b7b8b9"
|
||||||
|
let s:gui06 = "#dadbdc"
|
||||||
|
let s:gui07 = "#fcfdfe"
|
||||||
|
let s:gui08 = "#e31a1c"
|
||||||
|
let s:gui09 = "#e6550d"
|
||||||
|
let s:gui0A = "#dca060"
|
||||||
|
let s:gui0B = "#31a354"
|
||||||
|
let s:gui0C = "#80b1d3"
|
||||||
|
let s:gui0D = "#3182bd"
|
||||||
|
let s:gui0E = "#756bb1"
|
||||||
|
let s:gui0F = "#b15928"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 17
|
||||||
|
let s:cterm02 = 59
|
||||||
|
let s:cterm03 = 66
|
||||||
|
let s:cterm04 = 102
|
||||||
|
let s:cterm05 = 145
|
||||||
|
let s:cterm06 = 188
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 1
|
||||||
|
let s:cterm09 = 166
|
||||||
|
let s:cterm0A = 179
|
||||||
|
let s:cterm0B = 71
|
||||||
|
let s:cterm0C = 110
|
||||||
|
let s:cterm0D = 67
|
||||||
|
let s:cterm0E = 97
|
||||||
|
let s:cterm0F = 130
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_brewer#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_brewer#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_brewer#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_brewer#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_brewer#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_brewer#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Bright Scheme by Chris Kempson (http://chriskempson.com)
|
||||||
|
let g:airline#themes#base16_bright#palette = {}
|
||||||
|
let s:gui00 = "#000000"
|
||||||
|
let s:gui01 = "#303030"
|
||||||
|
let s:gui02 = "#505050"
|
||||||
|
let s:gui03 = "#b0b0b0"
|
||||||
|
let s:gui04 = "#d0d0d0"
|
||||||
|
let s:gui05 = "#e0e0e0"
|
||||||
|
let s:gui06 = "#f5f5f5"
|
||||||
|
let s:gui07 = "#ffffff"
|
||||||
|
let s:gui08 = "#fb0120"
|
||||||
|
let s:gui09 = "#fc6d24"
|
||||||
|
let s:gui0A = "#fda331"
|
||||||
|
let s:gui0B = "#a1c659"
|
||||||
|
let s:gui0C = "#76c7b7"
|
||||||
|
let s:gui0D = "#6fb3d2"
|
||||||
|
let s:gui0E = "#d381c3"
|
||||||
|
let s:gui0F = "#be643c"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 236
|
||||||
|
let s:cterm02 = 239
|
||||||
|
let s:cterm03 = 249
|
||||||
|
let s:cterm04 = 252
|
||||||
|
let s:cterm05 = 253
|
||||||
|
let s:cterm06 = 15
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 9
|
||||||
|
let s:cterm09 = 202
|
||||||
|
let s:cterm0A = 215
|
||||||
|
let s:cterm0B = 149
|
||||||
|
let s:cterm0C = 115
|
||||||
|
let s:cterm0D = 74
|
||||||
|
let s:cterm0E = 175
|
||||||
|
let s:cterm0F = 131
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_bright#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_bright#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_bright#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_bright#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_bright#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_bright#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Chalk Scheme by Chris Kempson (http://chriskempson.com)
|
||||||
|
let g:airline#themes#base16_chalk#palette = {}
|
||||||
|
let s:gui00 = "#151515"
|
||||||
|
let s:gui01 = "#202020"
|
||||||
|
let s:gui02 = "#303030"
|
||||||
|
let s:gui03 = "#505050"
|
||||||
|
let s:gui04 = "#b0b0b0"
|
||||||
|
let s:gui05 = "#d0d0d0"
|
||||||
|
let s:gui06 = "#e0e0e0"
|
||||||
|
let s:gui07 = "#f5f5f5"
|
||||||
|
let s:gui08 = "#fb9fb1"
|
||||||
|
let s:gui09 = "#eda987"
|
||||||
|
let s:gui0A = "#ddb26f"
|
||||||
|
let s:gui0B = "#acc267"
|
||||||
|
let s:gui0C = "#12cfc0"
|
||||||
|
let s:gui0D = "#6fc2ef"
|
||||||
|
let s:gui0E = "#e1a3ee"
|
||||||
|
let s:gui0F = "#deaf8f"
|
||||||
|
|
||||||
|
let s:cterm00 = 233
|
||||||
|
let s:cterm01 = 234
|
||||||
|
let s:cterm02 = 236
|
||||||
|
let s:cterm03 = 239
|
||||||
|
let s:cterm04 = 249
|
||||||
|
let s:cterm05 = 252
|
||||||
|
let s:cterm06 = 253
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 217
|
||||||
|
let s:cterm09 = 216
|
||||||
|
let s:cterm0A = 179
|
||||||
|
let s:cterm0B = 143
|
||||||
|
let s:cterm0C = 6
|
||||||
|
let s:cterm0D = 75
|
||||||
|
let s:cterm0E = 183
|
||||||
|
let s:cterm0F = 180
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_chalk#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_chalk#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_chalk#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_chalk#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_chalk#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_chalk#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Codeschool Scheme by brettof86
|
||||||
|
let g:airline#themes#base16_codeschool#palette = {}
|
||||||
|
let s:gui00 = "#232c31"
|
||||||
|
let s:gui01 = "#1c3657"
|
||||||
|
let s:gui02 = "#2a343a"
|
||||||
|
let s:gui03 = "#3f4944"
|
||||||
|
let s:gui04 = "#84898c"
|
||||||
|
let s:gui05 = "#9ea7a6"
|
||||||
|
let s:gui06 = "#a7cfa3"
|
||||||
|
let s:gui07 = "#b5d8f6"
|
||||||
|
let s:gui08 = "#2a5491"
|
||||||
|
let s:gui09 = "#43820d"
|
||||||
|
let s:gui0A = "#a03b1e"
|
||||||
|
let s:gui0B = "#237986"
|
||||||
|
let s:gui0C = "#b02f30"
|
||||||
|
let s:gui0D = "#484d79"
|
||||||
|
let s:gui0E = "#c59820"
|
||||||
|
let s:gui0F = "#c98344"
|
||||||
|
|
||||||
|
let s:cterm00 = 17
|
||||||
|
let s:cterm01 = 23
|
||||||
|
let s:cterm02 = 23
|
||||||
|
let s:cterm03 = 59
|
||||||
|
let s:cterm04 = 102
|
||||||
|
let s:cterm05 = 145
|
||||||
|
let s:cterm06 = 151
|
||||||
|
let s:cterm07 = 153
|
||||||
|
let s:cterm08 = 24
|
||||||
|
let s:cterm09 = 64
|
||||||
|
let s:cterm0A = 130
|
||||||
|
let s:cterm0B = 30
|
||||||
|
let s:cterm0C = 125
|
||||||
|
let s:cterm0D = 60
|
||||||
|
let s:cterm0E = 172
|
||||||
|
let s:cterm0F = 173
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_codeschool#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_codeschool#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_codeschool#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_codeschool#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_codeschool#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_codeschool#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Colors Scheme by mrmrs (http://clrs.cc)
|
||||||
|
let g:airline#themes#base16_colors#palette = {}
|
||||||
|
let s:gui00 = "#111111"
|
||||||
|
let s:gui01 = "#333333"
|
||||||
|
let s:gui02 = "#555555"
|
||||||
|
let s:gui03 = "#777777"
|
||||||
|
let s:gui04 = "#999999"
|
||||||
|
let s:gui05 = "#bbbbbb"
|
||||||
|
let s:gui06 = "#dddddd"
|
||||||
|
let s:gui07 = "#ffffff"
|
||||||
|
let s:gui08 = "#ff4136"
|
||||||
|
let s:gui09 = "#ff851b"
|
||||||
|
let s:gui0A = "#ffdc00"
|
||||||
|
let s:gui0B = "#2ecc40"
|
||||||
|
let s:gui0C = "#7fdbff"
|
||||||
|
let s:gui0D = "#0074d9"
|
||||||
|
let s:gui0E = "#b10dc9"
|
||||||
|
let s:gui0F = "#85144b"
|
||||||
|
|
||||||
|
let s:cterm00 = 233
|
||||||
|
let s:cterm01 = 236
|
||||||
|
let s:cterm02 = 240
|
||||||
|
let s:cterm03 = 243
|
||||||
|
let s:cterm04 = 246
|
||||||
|
let s:cterm05 = 250
|
||||||
|
let s:cterm06 = 253
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 203
|
||||||
|
let s:cterm09 = 208
|
||||||
|
let s:cterm0A = 220
|
||||||
|
let s:cterm0B = 41
|
||||||
|
let s:cterm0C = 117
|
||||||
|
let s:cterm0D = 32
|
||||||
|
let s:cterm0E = 128
|
||||||
|
let s:cterm0F = 89
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_colors#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_colors#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_colors#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_colors#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_colors#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_colors#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Default Scheme by Chris Kempson (http://chriskempson.com)
|
||||||
|
let g:airline#themes#base16_default#palette = {}
|
||||||
|
let s:gui00 = "#181818"
|
||||||
|
let s:gui01 = "#282828"
|
||||||
|
let s:gui02 = "#383838"
|
||||||
|
let s:gui03 = "#585858"
|
||||||
|
let s:gui04 = "#b8b8b8"
|
||||||
|
let s:gui05 = "#d8d8d8"
|
||||||
|
let s:gui06 = "#e8e8e8"
|
||||||
|
let s:gui07 = "#f8f8f8"
|
||||||
|
let s:gui08 = "#ab4642"
|
||||||
|
let s:gui09 = "#dc9656"
|
||||||
|
let s:gui0A = "#f7ca88"
|
||||||
|
let s:gui0B = "#a1b56c"
|
||||||
|
let s:gui0C = "#86c1b9"
|
||||||
|
let s:gui0D = "#7cafc2"
|
||||||
|
let s:gui0E = "#ba8baf"
|
||||||
|
let s:gui0F = "#a16946"
|
||||||
|
|
||||||
|
let s:cterm00 = 233
|
||||||
|
let s:cterm01 = 235
|
||||||
|
let s:cterm02 = 237
|
||||||
|
let s:cterm03 = 240
|
||||||
|
let s:cterm04 = 249
|
||||||
|
let s:cterm05 = 253
|
||||||
|
let s:cterm06 = 254
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 131
|
||||||
|
let s:cterm09 = 173
|
||||||
|
let s:cterm0A = 222
|
||||||
|
let s:cterm0B = 143
|
||||||
|
let s:cterm0C = 109
|
||||||
|
let s:cterm0D = 109
|
||||||
|
let s:cterm0E = 139
|
||||||
|
let s:cterm0F = 131
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_default#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_default#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_default#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_default#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_default#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_default#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Eighties Scheme by Chris Kempson (http://chriskempson.com)
|
||||||
|
let g:airline#themes#base16_eighties#palette = {}
|
||||||
|
let s:gui00 = "#2d2d2d"
|
||||||
|
let s:gui01 = "#393939"
|
||||||
|
let s:gui02 = "#515151"
|
||||||
|
let s:gui03 = "#747369"
|
||||||
|
let s:gui04 = "#a09f93"
|
||||||
|
let s:gui05 = "#d3d0c8"
|
||||||
|
let s:gui06 = "#e8e6df"
|
||||||
|
let s:gui07 = "#f2f0ec"
|
||||||
|
let s:gui08 = "#f2777a"
|
||||||
|
let s:gui09 = "#f99157"
|
||||||
|
let s:gui0A = "#ffcc66"
|
||||||
|
let s:gui0B = "#99cc99"
|
||||||
|
let s:gui0C = "#66cccc"
|
||||||
|
let s:gui0D = "#6699cc"
|
||||||
|
let s:gui0E = "#cc99cc"
|
||||||
|
let s:gui0F = "#d27b53"
|
||||||
|
|
||||||
|
let s:cterm00 = 236
|
||||||
|
let s:cterm01 = 237
|
||||||
|
let s:cterm02 = 239
|
||||||
|
let s:cterm03 = 95
|
||||||
|
let s:cterm04 = 144
|
||||||
|
let s:cterm05 = 188
|
||||||
|
let s:cterm06 = 188
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 210
|
||||||
|
let s:cterm09 = 209
|
||||||
|
let s:cterm0A = 221
|
||||||
|
let s:cterm0B = 114
|
||||||
|
let s:cterm0C = 80
|
||||||
|
let s:cterm0D = 68
|
||||||
|
let s:cterm0E = 176
|
||||||
|
let s:cterm0F = 173
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_eighties#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_eighties#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_eighties#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_eighties#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_eighties#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_eighties#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Embers Scheme by Jannik Siebert (https://github.com/janniks)
|
||||||
|
let g:airline#themes#base16_embers#palette = {}
|
||||||
|
let s:gui00 = "#16130F"
|
||||||
|
let s:gui01 = "#2C2620"
|
||||||
|
let s:gui02 = "#433B32"
|
||||||
|
let s:gui03 = "#5A5047"
|
||||||
|
let s:gui04 = "#8A8075"
|
||||||
|
let s:gui05 = "#A39A90"
|
||||||
|
let s:gui06 = "#BEB6AE"
|
||||||
|
let s:gui07 = "#DBD6D1"
|
||||||
|
let s:gui08 = "#826D57"
|
||||||
|
let s:gui09 = "#828257"
|
||||||
|
let s:gui0A = "#6D8257"
|
||||||
|
let s:gui0B = "#57826D"
|
||||||
|
let s:gui0C = "#576D82"
|
||||||
|
let s:gui0D = "#6D5782"
|
||||||
|
let s:gui0E = "#82576D"
|
||||||
|
let s:gui0F = "#825757"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 0
|
||||||
|
let s:cterm02 = 59
|
||||||
|
let s:cterm03 = 59
|
||||||
|
let s:cterm04 = 102
|
||||||
|
let s:cterm05 = 138
|
||||||
|
let s:cterm06 = 145
|
||||||
|
let s:cterm07 = 188
|
||||||
|
let s:cterm08 = 95
|
||||||
|
let s:cterm09 = 101
|
||||||
|
let s:cterm0A = 65
|
||||||
|
let s:cterm0B = 65
|
||||||
|
let s:cterm0C = 60
|
||||||
|
let s:cterm0D = 60
|
||||||
|
let s:cterm0E = 95
|
||||||
|
let s:cterm0F = 95
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_embers#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_embers#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_embers#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_embers#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_embers#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_embers#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Flat Scheme by Chris Kempson (http://chriskempson.com)
|
||||||
|
let g:airline#themes#base16_flat#palette = {}
|
||||||
|
let s:gui00 = "#2C3E50"
|
||||||
|
let s:gui01 = "#34495E"
|
||||||
|
let s:gui02 = "#7F8C8D"
|
||||||
|
let s:gui03 = "#95A5A6"
|
||||||
|
let s:gui04 = "#BDC3C7"
|
||||||
|
let s:gui05 = "#e0e0e0"
|
||||||
|
let s:gui06 = "#f5f5f5"
|
||||||
|
let s:gui07 = "#ECF0F1"
|
||||||
|
let s:gui08 = "#E74C3C"
|
||||||
|
let s:gui09 = "#E67E22"
|
||||||
|
let s:gui0A = "#F1C40F"
|
||||||
|
let s:gui0B = "#2ECC71"
|
||||||
|
let s:gui0C = "#1ABC9C"
|
||||||
|
let s:gui0D = "#3498DB"
|
||||||
|
let s:gui0E = "#9B59B6"
|
||||||
|
let s:gui0F = "#be643c"
|
||||||
|
|
||||||
|
let s:cterm00 = 23
|
||||||
|
let s:cterm01 = 59
|
||||||
|
let s:cterm02 = 102
|
||||||
|
let s:cterm03 = 109
|
||||||
|
let s:cterm04 = 146
|
||||||
|
let s:cterm05 = 253
|
||||||
|
let s:cterm06 = 15
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 167
|
||||||
|
let s:cterm09 = 172
|
||||||
|
let s:cterm0A = 220
|
||||||
|
let s:cterm0B = 41
|
||||||
|
let s:cterm0C = 37
|
||||||
|
let s:cterm0D = 68
|
||||||
|
let s:cterm0E = 97
|
||||||
|
let s:cterm0F = 131
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_flat#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_flat#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_flat#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_flat#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_flat#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_flat#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Google Scheme by Seth Wright (http://sethawright.com)
|
||||||
|
let g:airline#themes#base16_google#palette = {}
|
||||||
|
let s:gui00 = "#1d1f21"
|
||||||
|
let s:gui01 = "#282a2e"
|
||||||
|
let s:gui02 = "#373b41"
|
||||||
|
let s:gui03 = "#969896"
|
||||||
|
let s:gui04 = "#b4b7b4"
|
||||||
|
let s:gui05 = "#c5c8c6"
|
||||||
|
let s:gui06 = "#e0e0e0"
|
||||||
|
let s:gui07 = "#ffffff"
|
||||||
|
let s:gui08 = "#CC342B"
|
||||||
|
let s:gui09 = "#F96A38"
|
||||||
|
let s:gui0A = "#FBA922"
|
||||||
|
let s:gui0B = "#198844"
|
||||||
|
let s:gui0C = "#3971ED"
|
||||||
|
let s:gui0D = "#3971ED"
|
||||||
|
let s:gui0E = "#A36AC7"
|
||||||
|
let s:gui0F = "#3971ED"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 0
|
||||||
|
let s:cterm02 = 59
|
||||||
|
let s:cterm03 = 102
|
||||||
|
let s:cterm04 = 145
|
||||||
|
let s:cterm05 = 188
|
||||||
|
let s:cterm06 = 253
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 166
|
||||||
|
let s:cterm09 = 203
|
||||||
|
let s:cterm0A = 214
|
||||||
|
let s:cterm0B = 29
|
||||||
|
let s:cterm0C = 12
|
||||||
|
let s:cterm0D = 12
|
||||||
|
let s:cterm0E = 134
|
||||||
|
let s:cterm0F = 12
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_google#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_google#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_google#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_google#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_google#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_google#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Grayscale Scheme by Alexandre Gavioli (https://github.com/Alexx2/)
|
||||||
|
let g:airline#themes#base16_grayscale#palette = {}
|
||||||
|
let s:gui00 = "#101010"
|
||||||
|
let s:gui01 = "#252525"
|
||||||
|
let s:gui02 = "#464646"
|
||||||
|
let s:gui03 = "#525252"
|
||||||
|
let s:gui04 = "#ababab"
|
||||||
|
let s:gui05 = "#b9b9b9"
|
||||||
|
let s:gui06 = "#e3e3e3"
|
||||||
|
let s:gui07 = "#f7f7f7"
|
||||||
|
let s:gui08 = "#7c7c7c"
|
||||||
|
let s:gui09 = "#999999"
|
||||||
|
let s:gui0A = "#a0a0a0"
|
||||||
|
let s:gui0B = "#8e8e8e"
|
||||||
|
let s:gui0C = "#868686"
|
||||||
|
let s:gui0D = "#686868"
|
||||||
|
let s:gui0E = "#747474"
|
||||||
|
let s:gui0F = "#5e5e5e"
|
||||||
|
|
||||||
|
let s:cterm00 = 233
|
||||||
|
let s:cterm01 = 235
|
||||||
|
let s:cterm02 = 238
|
||||||
|
let s:cterm03 = 239
|
||||||
|
let s:cterm04 = 248
|
||||||
|
let s:cterm05 = 250
|
||||||
|
let s:cterm06 = 254
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 243
|
||||||
|
let s:cterm09 = 246
|
||||||
|
let s:cterm0A = 247
|
||||||
|
let s:cterm0B = 245
|
||||||
|
let s:cterm0C = 244
|
||||||
|
let s:cterm0D = 241
|
||||||
|
let s:cterm0E = 243
|
||||||
|
let s:cterm0F = 240
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_grayscale#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_grayscale#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_grayscale#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_grayscale#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_grayscale#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_grayscale#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Green Screen Scheme by Chris Kempson (http://chriskempson.com)
|
||||||
|
let g:airline#themes#base16_greenscreen#palette = {}
|
||||||
|
let s:gui00 = "#001100"
|
||||||
|
let s:gui01 = "#003300"
|
||||||
|
let s:gui02 = "#005500"
|
||||||
|
let s:gui03 = "#007700"
|
||||||
|
let s:gui04 = "#009900"
|
||||||
|
let s:gui05 = "#00bb00"
|
||||||
|
let s:gui06 = "#00dd00"
|
||||||
|
let s:gui07 = "#00ff00"
|
||||||
|
let s:gui08 = "#007700"
|
||||||
|
let s:gui09 = "#009900"
|
||||||
|
let s:gui0A = "#007700"
|
||||||
|
let s:gui0B = "#00bb00"
|
||||||
|
let s:gui0C = "#005500"
|
||||||
|
let s:gui0D = "#009900"
|
||||||
|
let s:gui0E = "#00bb00"
|
||||||
|
let s:gui0F = "#005500"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 22
|
||||||
|
let s:cterm02 = 22
|
||||||
|
let s:cterm03 = 28
|
||||||
|
let s:cterm04 = 28
|
||||||
|
let s:cterm05 = 34
|
||||||
|
let s:cterm06 = 40
|
||||||
|
let s:cterm07 = 10
|
||||||
|
let s:cterm08 = 28
|
||||||
|
let s:cterm09 = 28
|
||||||
|
let s:cterm0A = 28
|
||||||
|
let s:cterm0B = 34
|
||||||
|
let s:cterm0C = 22
|
||||||
|
let s:cterm0D = 28
|
||||||
|
let s:cterm0E = 34
|
||||||
|
let s:cterm0F = 22
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_greenscreen#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_greenscreen#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_greenscreen#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_greenscreen#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_greenscreen#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_greenscreen#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 harmonic16 Scheme by Jannik Siebert (https://github.com/janniks)
|
||||||
|
let g:airline#themes#base16_harmonic16#palette = {}
|
||||||
|
let s:gui00 = "#0b1c2c"
|
||||||
|
let s:gui01 = "#223b54"
|
||||||
|
let s:gui02 = "#405c79"
|
||||||
|
let s:gui03 = "#627e99"
|
||||||
|
let s:gui04 = "#aabcce"
|
||||||
|
let s:gui05 = "#cbd6e2"
|
||||||
|
let s:gui06 = "#e5ebf1"
|
||||||
|
let s:gui07 = "#f7f9fb"
|
||||||
|
let s:gui08 = "#bf8b56"
|
||||||
|
let s:gui09 = "#bfbf56"
|
||||||
|
let s:gui0A = "#8bbf56"
|
||||||
|
let s:gui0B = "#56bf8b"
|
||||||
|
let s:gui0C = "#568bbf"
|
||||||
|
let s:gui0D = "#8b56bf"
|
||||||
|
let s:gui0E = "#bf568b"
|
||||||
|
let s:gui0F = "#bf5656"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 23
|
||||||
|
let s:cterm02 = 60
|
||||||
|
let s:cterm03 = 66
|
||||||
|
let s:cterm04 = 146
|
||||||
|
let s:cterm05 = 188
|
||||||
|
let s:cterm06 = 189
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 137
|
||||||
|
let s:cterm09 = 143
|
||||||
|
let s:cterm0A = 107
|
||||||
|
let s:cterm0B = 72
|
||||||
|
let s:cterm0C = 67
|
||||||
|
let s:cterm0D = 97
|
||||||
|
let s:cterm0E = 132
|
||||||
|
let s:cterm0F = 131
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_harmonic16#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_harmonic16#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_harmonic16#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_harmonic16#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_harmonic16#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_harmonic16#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Hopscotch Scheme by Jan T. Sott
|
||||||
|
let g:airline#themes#base16_hopscotch#palette = {}
|
||||||
|
let s:gui00 = "#322931"
|
||||||
|
let s:gui01 = "#433b42"
|
||||||
|
let s:gui02 = "#5c545b"
|
||||||
|
let s:gui03 = "#797379"
|
||||||
|
let s:gui04 = "#989498"
|
||||||
|
let s:gui05 = "#b9b5b8"
|
||||||
|
let s:gui06 = "#d5d3d5"
|
||||||
|
let s:gui07 = "#ffffff"
|
||||||
|
let s:gui08 = "#dd464c"
|
||||||
|
let s:gui09 = "#fd8b19"
|
||||||
|
let s:gui0A = "#fdcc59"
|
||||||
|
let s:gui0B = "#8fc13e"
|
||||||
|
let s:gui0C = "#149b93"
|
||||||
|
let s:gui0D = "#1290bf"
|
||||||
|
let s:gui0E = "#c85e7c"
|
||||||
|
let s:gui0F = "#b33508"
|
||||||
|
|
||||||
|
let s:cterm00 = 53
|
||||||
|
let s:cterm01 = 59
|
||||||
|
let s:cterm02 = 59
|
||||||
|
let s:cterm03 = 96
|
||||||
|
let s:cterm04 = 102
|
||||||
|
let s:cterm05 = 145
|
||||||
|
let s:cterm06 = 188
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 167
|
||||||
|
let s:cterm09 = 208
|
||||||
|
let s:cterm0A = 221
|
||||||
|
let s:cterm0B = 107
|
||||||
|
let s:cterm0C = 30
|
||||||
|
let s:cterm0D = 31
|
||||||
|
let s:cterm0E = 168
|
||||||
|
let s:cterm0F = 130
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_hopscotch#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_hopscotch#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_hopscotch#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_hopscotch#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_hopscotch#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_hopscotch#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Isotope Scheme by Jan T. Sott
|
||||||
|
let g:airline#themes#base16_isotope#palette = {}
|
||||||
|
let s:gui00 = "#000000"
|
||||||
|
let s:gui01 = "#404040"
|
||||||
|
let s:gui02 = "#606060"
|
||||||
|
let s:gui03 = "#808080"
|
||||||
|
let s:gui04 = "#c0c0c0"
|
||||||
|
let s:gui05 = "#d0d0d0"
|
||||||
|
let s:gui06 = "#e0e0e0"
|
||||||
|
let s:gui07 = "#ffffff"
|
||||||
|
let s:gui08 = "#ff0000"
|
||||||
|
let s:gui09 = "#ff9900"
|
||||||
|
let s:gui0A = "#ff0099"
|
||||||
|
let s:gui0B = "#33ff00"
|
||||||
|
let s:gui0C = "#00ffff"
|
||||||
|
let s:gui0D = "#0066ff"
|
||||||
|
let s:gui0E = "#cc00ff"
|
||||||
|
let s:gui0F = "#3300ff"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 237
|
||||||
|
let s:cterm02 = 241
|
||||||
|
let s:cterm03 = 244
|
||||||
|
let s:cterm04 = 250
|
||||||
|
let s:cterm05 = 252
|
||||||
|
let s:cterm06 = 253
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 9
|
||||||
|
let s:cterm09 = 208
|
||||||
|
let s:cterm0A = 198
|
||||||
|
let s:cterm0B = 82
|
||||||
|
let s:cterm0C = 14
|
||||||
|
let s:cterm0D = 27
|
||||||
|
let s:cterm0E = 165
|
||||||
|
let s:cterm0F = 57
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_isotope#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_isotope#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_isotope#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_isotope#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_isotope#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_isotope#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 London Tube Scheme by Jan T. Sott
|
||||||
|
let g:airline#themes#base16_londontube#palette = {}
|
||||||
|
let s:gui00 = "#231f20"
|
||||||
|
let s:gui01 = "#1c3f95"
|
||||||
|
let s:gui02 = "#5a5758"
|
||||||
|
let s:gui03 = "#737171"
|
||||||
|
let s:gui04 = "#959ca1"
|
||||||
|
let s:gui05 = "#d9d8d8"
|
||||||
|
let s:gui06 = "#e7e7e8"
|
||||||
|
let s:gui07 = "#ffffff"
|
||||||
|
let s:gui08 = "#ee2e24"
|
||||||
|
let s:gui09 = "#f386a1"
|
||||||
|
let s:gui0A = "#ffd204"
|
||||||
|
let s:gui0B = "#00853e"
|
||||||
|
let s:gui0C = "#85cebc"
|
||||||
|
let s:gui0D = "#009ddc"
|
||||||
|
let s:gui0E = "#98005d"
|
||||||
|
let s:gui0F = "#b06110"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 24
|
||||||
|
let s:cterm02 = 59
|
||||||
|
let s:cterm03 = 59
|
||||||
|
let s:cterm04 = 109
|
||||||
|
let s:cterm05 = 188
|
||||||
|
let s:cterm06 = 188
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 1
|
||||||
|
let s:cterm09 = 211
|
||||||
|
let s:cterm0A = 220
|
||||||
|
let s:cterm0B = 29
|
||||||
|
let s:cterm0C = 115
|
||||||
|
let s:cterm0D = 38
|
||||||
|
let s:cterm0E = 89
|
||||||
|
let s:cterm0F = 130
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_londontube#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_londontube#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_londontube#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_londontube#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_londontube#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_londontube#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Marrakesh Scheme by Alexandre Gavioli (http://github.com/Alexx2/)
|
||||||
|
let g:airline#themes#base16_marrakesh#palette = {}
|
||||||
|
let s:gui00 = "#201602"
|
||||||
|
let s:gui01 = "#302e00"
|
||||||
|
let s:gui02 = "#5f5b17"
|
||||||
|
let s:gui03 = "#6c6823"
|
||||||
|
let s:gui04 = "#86813b"
|
||||||
|
let s:gui05 = "#948e48"
|
||||||
|
let s:gui06 = "#ccc37a"
|
||||||
|
let s:gui07 = "#faf0a5"
|
||||||
|
let s:gui08 = "#c35359"
|
||||||
|
let s:gui09 = "#b36144"
|
||||||
|
let s:gui0A = "#a88339"
|
||||||
|
let s:gui0B = "#18974e"
|
||||||
|
let s:gui0C = "#75a738"
|
||||||
|
let s:gui0D = "#477ca1"
|
||||||
|
let s:gui0E = "#8868b3"
|
||||||
|
let s:gui0F = "#b3588e"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 52
|
||||||
|
let s:cterm02 = 58
|
||||||
|
let s:cterm03 = 58
|
||||||
|
let s:cterm04 = 101
|
||||||
|
let s:cterm05 = 101
|
||||||
|
let s:cterm06 = 180
|
||||||
|
let s:cterm07 = 229
|
||||||
|
let s:cterm08 = 131
|
||||||
|
let s:cterm09 = 131
|
||||||
|
let s:cterm0A = 137
|
||||||
|
let s:cterm0B = 29
|
||||||
|
let s:cterm0C = 107
|
||||||
|
let s:cterm0D = 67
|
||||||
|
let s:cterm0E = 97
|
||||||
|
let s:cterm0F = 132
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_marrakesh#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_marrakesh#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_marrakesh#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_marrakesh#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_marrakesh#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_marrakesh#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Mocha Scheme by Chris Kempson (http://chriskempson.com)
|
||||||
|
let g:airline#themes#base16_mocha#palette = {}
|
||||||
|
let s:gui00 = "#3B3228"
|
||||||
|
let s:gui01 = "#534636"
|
||||||
|
let s:gui02 = "#645240"
|
||||||
|
let s:gui03 = "#7e705a"
|
||||||
|
let s:gui04 = "#b8afad"
|
||||||
|
let s:gui05 = "#d0c8c6"
|
||||||
|
let s:gui06 = "#e9e1dd"
|
||||||
|
let s:gui07 = "#f5eeeb"
|
||||||
|
let s:gui08 = "#cb6077"
|
||||||
|
let s:gui09 = "#d28b71"
|
||||||
|
let s:gui0A = "#f4bc87"
|
||||||
|
let s:gui0B = "#beb55b"
|
||||||
|
let s:gui0C = "#7bbda4"
|
||||||
|
let s:gui0D = "#8ab3b5"
|
||||||
|
let s:gui0E = "#a89bb9"
|
||||||
|
let s:gui0F = "#bb9584"
|
||||||
|
|
||||||
|
let s:cterm00 = 58
|
||||||
|
let s:cterm01 = 59
|
||||||
|
let s:cterm02 = 59
|
||||||
|
let s:cterm03 = 95
|
||||||
|
let s:cterm04 = 145
|
||||||
|
let s:cterm05 = 188
|
||||||
|
let s:cterm06 = 188
|
||||||
|
let s:cterm07 = 230
|
||||||
|
let s:cterm08 = 168
|
||||||
|
let s:cterm09 = 173
|
||||||
|
let s:cterm0A = 216
|
||||||
|
let s:cterm0B = 143
|
||||||
|
let s:cterm0C = 109
|
||||||
|
let s:cterm0D = 109
|
||||||
|
let s:cterm0E = 139
|
||||||
|
let s:cterm0F = 138
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_mocha#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_mocha#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_mocha#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_mocha#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_mocha#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_mocha#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Monokai Scheme by Wimer Hazenberg (http://www.monokai.nl)
|
||||||
|
let g:airline#themes#base16_monokai#palette = {}
|
||||||
|
let s:gui00 = "#272822"
|
||||||
|
let s:gui01 = "#383830"
|
||||||
|
let s:gui02 = "#49483e"
|
||||||
|
let s:gui03 = "#75715e"
|
||||||
|
let s:gui04 = "#a59f85"
|
||||||
|
let s:gui05 = "#f8f8f2"
|
||||||
|
let s:gui06 = "#f5f4f1"
|
||||||
|
let s:gui07 = "#f9f8f5"
|
||||||
|
let s:gui08 = "#f92672"
|
||||||
|
let s:gui09 = "#fd971f"
|
||||||
|
let s:gui0A = "#f4bf75"
|
||||||
|
let s:gui0B = "#a6e22e"
|
||||||
|
let s:gui0C = "#a1efe4"
|
||||||
|
let s:gui0D = "#66d9ef"
|
||||||
|
let s:gui0E = "#ae81ff"
|
||||||
|
let s:gui0F = "#cc6633"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 59
|
||||||
|
let s:cterm02 = 59
|
||||||
|
let s:cterm03 = 95
|
||||||
|
let s:cterm04 = 144
|
||||||
|
let s:cterm05 = 15
|
||||||
|
let s:cterm06 = 15
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 197
|
||||||
|
let s:cterm09 = 208
|
||||||
|
let s:cterm0A = 216
|
||||||
|
let s:cterm0B = 3
|
||||||
|
let s:cterm0C = 158
|
||||||
|
let s:cterm0D = 81
|
||||||
|
let s:cterm0E = 141
|
||||||
|
let s:cterm0F = 167
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_monokai#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_monokai#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_monokai#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_monokai#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_monokai#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_monokai#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Ocean Scheme by Chris Kempson (http://chriskempson.com)
|
||||||
|
let g:airline#themes#base16_ocean#palette = {}
|
||||||
|
let s:gui00 = "#2b303b"
|
||||||
|
let s:gui01 = "#343d46"
|
||||||
|
let s:gui02 = "#4f5b66"
|
||||||
|
let s:gui03 = "#65737e"
|
||||||
|
let s:gui04 = "#a7adba"
|
||||||
|
let s:gui05 = "#c0c5ce"
|
||||||
|
let s:gui06 = "#dfe1e8"
|
||||||
|
let s:gui07 = "#eff1f5"
|
||||||
|
let s:gui08 = "#bf616a"
|
||||||
|
let s:gui09 = "#d08770"
|
||||||
|
let s:gui0A = "#ebcb8b"
|
||||||
|
let s:gui0B = "#a3be8c"
|
||||||
|
let s:gui0C = "#96b5b4"
|
||||||
|
let s:gui0D = "#8fa1b3"
|
||||||
|
let s:gui0E = "#b48ead"
|
||||||
|
let s:gui0F = "#ab7967"
|
||||||
|
|
||||||
|
let s:cterm00 = 23
|
||||||
|
let s:cterm01 = 59
|
||||||
|
let s:cterm02 = 59
|
||||||
|
let s:cterm03 = 60
|
||||||
|
let s:cterm04 = 145
|
||||||
|
let s:cterm05 = 152
|
||||||
|
let s:cterm06 = 188
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 131
|
||||||
|
let s:cterm09 = 173
|
||||||
|
let s:cterm0A = 186
|
||||||
|
let s:cterm0B = 144
|
||||||
|
let s:cterm0C = 109
|
||||||
|
let s:cterm0D = 109
|
||||||
|
let s:cterm0E = 139
|
||||||
|
let s:cterm0F = 137
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_ocean#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_ocean#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_ocean#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_ocean#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_ocean#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_ocean#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Paraiso Scheme by Jan T. Sott
|
||||||
|
let g:airline#themes#base16_paraiso#palette = {}
|
||||||
|
let s:gui00 = "#2f1e2e"
|
||||||
|
let s:gui01 = "#41323f"
|
||||||
|
let s:gui02 = "#4f424c"
|
||||||
|
let s:gui03 = "#776e71"
|
||||||
|
let s:gui04 = "#8d8687"
|
||||||
|
let s:gui05 = "#a39e9b"
|
||||||
|
let s:gui06 = "#b9b6b0"
|
||||||
|
let s:gui07 = "#e7e9db"
|
||||||
|
let s:gui08 = "#ef6155"
|
||||||
|
let s:gui09 = "#f99b15"
|
||||||
|
let s:gui0A = "#fec418"
|
||||||
|
let s:gui0B = "#48b685"
|
||||||
|
let s:gui0C = "#5bc4bf"
|
||||||
|
let s:gui0D = "#06b6ef"
|
||||||
|
let s:gui0E = "#815ba4"
|
||||||
|
let s:gui0F = "#e96ba8"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 59
|
||||||
|
let s:cterm02 = 59
|
||||||
|
let s:cterm03 = 95
|
||||||
|
let s:cterm04 = 102
|
||||||
|
let s:cterm05 = 144
|
||||||
|
let s:cterm06 = 145
|
||||||
|
let s:cterm07 = 188
|
||||||
|
let s:cterm08 = 203
|
||||||
|
let s:cterm09 = 208
|
||||||
|
let s:cterm0A = 220
|
||||||
|
let s:cterm0B = 72
|
||||||
|
let s:cterm0C = 79
|
||||||
|
let s:cterm0D = 39
|
||||||
|
let s:cterm0E = 97
|
||||||
|
let s:cterm0F = 169
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_paraiso#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_paraiso#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_paraiso#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_paraiso#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_paraiso#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_paraiso#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Pop Scheme by Chris Kempson (http://chriskempson.com)
|
||||||
|
let g:airline#themes#base16_pop#palette = {}
|
||||||
|
let s:gui00 = "#000000"
|
||||||
|
let s:gui01 = "#202020"
|
||||||
|
let s:gui02 = "#303030"
|
||||||
|
let s:gui03 = "#505050"
|
||||||
|
let s:gui04 = "#b0b0b0"
|
||||||
|
let s:gui05 = "#d0d0d0"
|
||||||
|
let s:gui06 = "#e0e0e0"
|
||||||
|
let s:gui07 = "#ffffff"
|
||||||
|
let s:gui08 = "#eb008a"
|
||||||
|
let s:gui09 = "#f29333"
|
||||||
|
let s:gui0A = "#f8ca12"
|
||||||
|
let s:gui0B = "#37b349"
|
||||||
|
let s:gui0C = "#00aabb"
|
||||||
|
let s:gui0D = "#0e5a94"
|
||||||
|
let s:gui0E = "#b31e8d"
|
||||||
|
let s:gui0F = "#7a2d00"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 234
|
||||||
|
let s:cterm02 = 236
|
||||||
|
let s:cterm03 = 239
|
||||||
|
let s:cterm04 = 249
|
||||||
|
let s:cterm05 = 252
|
||||||
|
let s:cterm06 = 253
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 162
|
||||||
|
let s:cterm09 = 209
|
||||||
|
let s:cterm0A = 220
|
||||||
|
let s:cterm0B = 71
|
||||||
|
let s:cterm0C = 37
|
||||||
|
let s:cterm0D = 24
|
||||||
|
let s:cterm0E = 126
|
||||||
|
let s:cterm0F = 88
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_pop#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_pop#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_pop#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_pop#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_pop#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_pop#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Railscasts Scheme by Ryan Bates (http://railscasts.com)
|
||||||
|
let g:airline#themes#base16_railscasts#palette = {}
|
||||||
|
let s:gui00 = "#2b2b2b"
|
||||||
|
let s:gui01 = "#272935"
|
||||||
|
let s:gui02 = "#3a4055"
|
||||||
|
let s:gui03 = "#5a647e"
|
||||||
|
let s:gui04 = "#d4cfc9"
|
||||||
|
let s:gui05 = "#e6e1dc"
|
||||||
|
let s:gui06 = "#f4f1ed"
|
||||||
|
let s:gui07 = "#f9f7f3"
|
||||||
|
let s:gui08 = "#da4939"
|
||||||
|
let s:gui09 = "#cc7833"
|
||||||
|
let s:gui0A = "#ffc66d"
|
||||||
|
let s:gui0B = "#a5c261"
|
||||||
|
let s:gui0C = "#519f50"
|
||||||
|
let s:gui0D = "#6d9cbe"
|
||||||
|
let s:gui0E = "#b6b3eb"
|
||||||
|
let s:gui0F = "#bc9458"
|
||||||
|
|
||||||
|
let s:cterm00 = 235
|
||||||
|
let s:cterm01 = 17
|
||||||
|
let s:cterm02 = 59
|
||||||
|
let s:cterm03 = 60
|
||||||
|
let s:cterm04 = 188
|
||||||
|
let s:cterm05 = 188
|
||||||
|
let s:cterm06 = 15
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 167
|
||||||
|
let s:cterm09 = 173
|
||||||
|
let s:cterm0A = 221
|
||||||
|
let s:cterm0B = 143
|
||||||
|
let s:cterm0C = 71
|
||||||
|
let s:cterm0D = 73
|
||||||
|
let s:cterm0E = 146
|
||||||
|
let s:cterm0F = 137
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_railscasts#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_railscasts#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_railscasts#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_railscasts#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_railscasts#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_railscasts#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 shapeshifter Scheme by Tyler Benziger (http://tybenz.com)
|
||||||
|
let g:airline#themes#base16_shapeshifter#palette = {}
|
||||||
|
let s:gui00 = "#000000"
|
||||||
|
let s:gui01 = "#040404"
|
||||||
|
let s:gui02 = "#102015"
|
||||||
|
let s:gui03 = "#343434"
|
||||||
|
let s:gui04 = "#555555"
|
||||||
|
let s:gui05 = "#ababab"
|
||||||
|
let s:gui06 = "#e0e0e0"
|
||||||
|
let s:gui07 = "#f9f9f9"
|
||||||
|
let s:gui08 = "#e92f2f"
|
||||||
|
let s:gui09 = "#e09448"
|
||||||
|
let s:gui0A = "#dddd13"
|
||||||
|
let s:gui0B = "#0ed839"
|
||||||
|
let s:gui0C = "#23edda"
|
||||||
|
let s:gui0D = "#3b48e3"
|
||||||
|
let s:gui0E = "#f996e2"
|
||||||
|
let s:gui0F = "#69542d"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 0
|
||||||
|
let s:cterm02 = 0
|
||||||
|
let s:cterm03 = 236
|
||||||
|
let s:cterm04 = 240
|
||||||
|
let s:cterm05 = 248
|
||||||
|
let s:cterm06 = 253
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 1
|
||||||
|
let s:cterm09 = 173
|
||||||
|
let s:cterm0A = 3
|
||||||
|
let s:cterm0B = 41
|
||||||
|
let s:cterm0C = 50
|
||||||
|
let s:cterm0D = 12
|
||||||
|
let s:cterm0E = 212
|
||||||
|
let s:cterm0F = 58
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_shapeshifter#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_shapeshifter#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_shapeshifter#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_shapeshifter#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_shapeshifter#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_shapeshifter#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Solarized Scheme by Ethan Schoonover (http://ethanschoonover.com/solarized)
|
||||||
|
let g:airline#themes#base16_solarized#palette = {}
|
||||||
|
let s:gui00 = "#002b36"
|
||||||
|
let s:gui01 = "#073642"
|
||||||
|
let s:gui02 = "#586e75"
|
||||||
|
let s:gui03 = "#657b83"
|
||||||
|
let s:gui04 = "#839496"
|
||||||
|
let s:gui05 = "#93a1a1"
|
||||||
|
let s:gui06 = "#eee8d5"
|
||||||
|
let s:gui07 = "#fdf6e3"
|
||||||
|
let s:gui08 = "#dc322f"
|
||||||
|
let s:gui09 = "#cb4b16"
|
||||||
|
let s:gui0A = "#b58900"
|
||||||
|
let s:gui0B = "#859900"
|
||||||
|
let s:gui0C = "#2aa198"
|
||||||
|
let s:gui0D = "#268bd2"
|
||||||
|
let s:gui0E = "#6c71c4"
|
||||||
|
let s:gui0F = "#d33682"
|
||||||
|
|
||||||
|
let s:cterm00 = 17
|
||||||
|
let s:cterm01 = 23
|
||||||
|
let s:cterm02 = 60
|
||||||
|
let s:cterm03 = 66
|
||||||
|
let s:cterm04 = 102
|
||||||
|
let s:cterm05 = 109
|
||||||
|
let s:cterm06 = 224
|
||||||
|
let s:cterm07 = 230
|
||||||
|
let s:cterm08 = 166
|
||||||
|
let s:cterm09 = 166
|
||||||
|
let s:cterm0A = 136
|
||||||
|
let s:cterm0B = 100
|
||||||
|
let s:cterm0C = 36
|
||||||
|
let s:cterm0D = 32
|
||||||
|
let s:cterm0E = 12
|
||||||
|
let s:cterm0F = 168
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_solarized#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_solarized#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_solarized#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_solarized#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_solarized#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_solarized#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Summerfruit Scheme by Christopher Corley (http://cscorley.github.io/)
|
||||||
|
let g:airline#themes#base16_summerfruit#palette = {}
|
||||||
|
let s:gui00 = "#151515"
|
||||||
|
let s:gui01 = "#202020"
|
||||||
|
let s:gui02 = "#303030"
|
||||||
|
let s:gui03 = "#505050"
|
||||||
|
let s:gui04 = "#B0B0B0"
|
||||||
|
let s:gui05 = "#D0D0D0"
|
||||||
|
let s:gui06 = "#E0E0E0"
|
||||||
|
let s:gui07 = "#FFFFFF"
|
||||||
|
let s:gui08 = "#FF0086"
|
||||||
|
let s:gui09 = "#FD8900"
|
||||||
|
let s:gui0A = "#ABA800"
|
||||||
|
let s:gui0B = "#00C918"
|
||||||
|
let s:gui0C = "#1faaaa"
|
||||||
|
let s:gui0D = "#3777E6"
|
||||||
|
let s:gui0E = "#AD00A1"
|
||||||
|
let s:gui0F = "#cc6633"
|
||||||
|
|
||||||
|
let s:cterm00 = 233
|
||||||
|
let s:cterm01 = 234
|
||||||
|
let s:cterm02 = 236
|
||||||
|
let s:cterm03 = 239
|
||||||
|
let s:cterm04 = 249
|
||||||
|
let s:cterm05 = 252
|
||||||
|
let s:cterm06 = 253
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 198
|
||||||
|
let s:cterm09 = 208
|
||||||
|
let s:cterm0A = 142
|
||||||
|
let s:cterm0B = 2
|
||||||
|
let s:cterm0C = 37
|
||||||
|
let s:cterm0D = 68
|
||||||
|
let s:cterm0E = 127
|
||||||
|
let s:cterm0F = 167
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_summerfruit#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_summerfruit#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_summerfruit#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_summerfruit#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_summerfruit#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_summerfruit#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Tomorrow Scheme by Chris Kempson (http://chriskempson.com)
|
||||||
|
let g:airline#themes#base16_tomorrow#palette = {}
|
||||||
|
let s:gui00 = "#1d1f21"
|
||||||
|
let s:gui01 = "#282a2e"
|
||||||
|
let s:gui02 = "#373b41"
|
||||||
|
let s:gui03 = "#969896"
|
||||||
|
let s:gui04 = "#b4b7b4"
|
||||||
|
let s:gui05 = "#c5c8c6"
|
||||||
|
let s:gui06 = "#e0e0e0"
|
||||||
|
let s:gui07 = "#ffffff"
|
||||||
|
let s:gui08 = "#cc6666"
|
||||||
|
let s:gui09 = "#de935f"
|
||||||
|
let s:gui0A = "#f0c674"
|
||||||
|
let s:gui0B = "#b5bd68"
|
||||||
|
let s:gui0C = "#8abeb7"
|
||||||
|
let s:gui0D = "#81a2be"
|
||||||
|
let s:gui0E = "#b294bb"
|
||||||
|
let s:gui0F = "#a3685a"
|
||||||
|
|
||||||
|
let s:cterm00 = 0
|
||||||
|
let s:cterm01 = 0
|
||||||
|
let s:cterm02 = 59
|
||||||
|
let s:cterm03 = 102
|
||||||
|
let s:cterm04 = 145
|
||||||
|
let s:cterm05 = 188
|
||||||
|
let s:cterm06 = 253
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 167
|
||||||
|
let s:cterm09 = 173
|
||||||
|
let s:cterm0A = 222
|
||||||
|
let s:cterm0B = 143
|
||||||
|
let s:cterm0C = 109
|
||||||
|
let s:cterm0D = 109
|
||||||
|
let s:cterm0E = 139
|
||||||
|
let s:cterm0F = 131
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_tomorrow#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_tomorrow#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_tomorrow#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_tomorrow#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_tomorrow#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_tomorrow#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,73 @@
|
||||||
|
" vim-airline template by chartoin (http://github.com/chartoin)
|
||||||
|
" Base 16 Twilight Scheme by David Hart (http://hart-dev.com)
|
||||||
|
let g:airline#themes#base16_twilight#palette = {}
|
||||||
|
let s:gui00 = "#1e1e1e"
|
||||||
|
let s:gui01 = "#323537"
|
||||||
|
let s:gui02 = "#464b50"
|
||||||
|
let s:gui03 = "#5f5a60"
|
||||||
|
let s:gui04 = "#838184"
|
||||||
|
let s:gui05 = "#a7a7a7"
|
||||||
|
let s:gui06 = "#c3c3c3"
|
||||||
|
let s:gui07 = "#ffffff"
|
||||||
|
let s:gui08 = "#cf6a4c"
|
||||||
|
let s:gui09 = "#cda869"
|
||||||
|
let s:gui0A = "#f9ee98"
|
||||||
|
let s:gui0B = "#8f9d6a"
|
||||||
|
let s:gui0C = "#afc4db"
|
||||||
|
let s:gui0D = "#7587a6"
|
||||||
|
let s:gui0E = "#9b859d"
|
||||||
|
let s:gui0F = "#9b703f"
|
||||||
|
|
||||||
|
let s:cterm00 = 234
|
||||||
|
let s:cterm01 = 59
|
||||||
|
let s:cterm02 = 59
|
||||||
|
let s:cterm03 = 59
|
||||||
|
let s:cterm04 = 102
|
||||||
|
let s:cterm05 = 248
|
||||||
|
let s:cterm06 = 251
|
||||||
|
let s:cterm07 = 15
|
||||||
|
let s:cterm08 = 167
|
||||||
|
let s:cterm09 = 179
|
||||||
|
let s:cterm0A = 228
|
||||||
|
let s:cterm0B = 107
|
||||||
|
let s:cterm0C = 152
|
||||||
|
let s:cterm0D = 103
|
||||||
|
let s:cterm0E = 103
|
||||||
|
let s:cterm0F = 95
|
||||||
|
|
||||||
|
let s:N1 = [ s:gui01, s:gui0B, s:cterm01, s:cterm0B ]
|
||||||
|
let s:N2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:N3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_twilight#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
|
||||||
|
let s:I1 = [ s:gui01, s:gui0D, s:cterm01, s:cterm0D ]
|
||||||
|
let s:I2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:I3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_twilight#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
|
||||||
|
let s:R1 = [ s:gui01, s:gui08, s:cterm01, s:cterm08 ]
|
||||||
|
let s:R2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:R3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_twilight#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
|
||||||
|
let s:V1 = [ s:gui01, s:gui0E, s:cterm01, s:cterm0E ]
|
||||||
|
let s:V2 = [ s:gui06, s:gui02, s:cterm06, s:cterm02 ]
|
||||||
|
let s:V3 = [ s:gui09, s:gui01, s:cterm09, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_twilight#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
|
||||||
|
let s:IA1 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA2 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let s:IA3 = [ s:gui05, s:gui01, s:cterm05, s:cterm01 ]
|
||||||
|
let g:airline#themes#base16_twilight#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
|
||||||
|
" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp
|
||||||
|
" variable so that related functionality is loaded iff the user is using
|
||||||
|
" ctrlp. Note that this is optional, and if you do not define ctrlp colors
|
||||||
|
" they will be chosen automatically from the existing palette.
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#base16_twilight#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ s:gui07, s:gui02, s:cterm07, s:cterm02, '' ],
|
||||||
|
\ [ s:gui07, s:gui04, s:cterm07, s:cterm04, '' ],
|
||||||
|
\ [ s:gui05, s:gui01, s:cterm05, s:cterm01, 'bold' ])
|
|
@ -0,0 +1,77 @@
|
||||||
|
" Normal mode
|
||||||
|
" [ guifg, guibg, ctermfg, ctermbg, opts ]
|
||||||
|
let s:N1 = [ '#141413' , '#CAE682' , 232 , 'green' ] " mode
|
||||||
|
let s:N2 = [ '#CAE682' , '#32322F' , 'green' , 235 ] " info
|
||||||
|
let s:N3 = [ '#CAE682' , '#242424' , 'green' , 234 ] " statusline
|
||||||
|
let s:N4 = [ '#86CD74' , 'DarkGreen' ] " mode modified
|
||||||
|
|
||||||
|
" Insert mode
|
||||||
|
let s:I1 = [ '#141413' , '#FDE76E' , 232 , 'yellow' ]
|
||||||
|
let s:I2 = [ '#FDE76E' , '#32322F' , 'yellow' , 235 ]
|
||||||
|
let s:I3 = [ '#FDE76E' , '#242424' , 'yellow' , 234 ]
|
||||||
|
let s:I4 = [ '#FADE3E' , 'yellow' ]
|
||||||
|
|
||||||
|
" Visual mode
|
||||||
|
let s:V1 = [ '#141413' , '#B5D3F3' , 232 , 'blue' ]
|
||||||
|
let s:V2 = [ '#B5D3F3' , '#32322F' , 'blue' , 235 ]
|
||||||
|
let s:V3 = [ '#B5D3F3' , '#242424' , 'blue' , 234 ]
|
||||||
|
let s:V4 = [ '#7CB0E6' , 'blue' ]
|
||||||
|
|
||||||
|
" Replace mode
|
||||||
|
let s:R1 = [ '#141413' , '#E5786D' , 232 , 'red' ]
|
||||||
|
let s:R2 = [ '#E5786D' , '#32322F' , 'red' , 235 ]
|
||||||
|
let s:R3 = [ '#E5786D' , '#242424' , 'red' , 234 ]
|
||||||
|
let s:R4 = [ '#E55345' , 'red' ]
|
||||||
|
|
||||||
|
" Paste mode
|
||||||
|
let s:PA = [ '#94E42C' , 005 ]
|
||||||
|
|
||||||
|
" Info modified
|
||||||
|
let s:IM = [ '#40403C' , 236 ]
|
||||||
|
|
||||||
|
" Inactive mode
|
||||||
|
let s:IA = [ '#767676' , s:N3[1] , 243 , s:N3[3] , '' ]
|
||||||
|
|
||||||
|
let g:airline#themes#base16color#palette = {}
|
||||||
|
|
||||||
|
let g:airline#themes#base16color#palette.accents = {
|
||||||
|
\ 'red': [ '#E5786D' , '' , 203 , '' , '' ],
|
||||||
|
\ }
|
||||||
|
|
||||||
|
let g:airline#themes#base16color#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
let g:airline#themes#base16color#palette.normal_modified = {
|
||||||
|
\ 'airline_a': [ s:N1[0] , s:N4[0] , s:N1[2] , s:N4[1] , '' ] ,
|
||||||
|
\ 'airline_b': [ s:N4[0] , s:IM[0] , s:N4[1] , s:IM[1] , '' ] ,
|
||||||
|
\ 'airline_c': [ s:N4[0] , s:N3[1] , s:N4[1] , s:N3[3] , '' ] }
|
||||||
|
|
||||||
|
|
||||||
|
let g:airline#themes#base16color#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
let g:airline#themes#base16color#palette.insert_modified = {
|
||||||
|
\ 'airline_a': [ s:I1[0] , s:I4[0] , s:I1[2] , s:I4[1] , '' ] ,
|
||||||
|
\ 'airline_b': [ s:I4[0] , s:IM[0] , s:I4[1] , s:IM[1] , '' ] ,
|
||||||
|
\ 'airline_c': [ s:I4[0] , s:N3[1] , s:I4[1] , s:N3[3] , '' ] }
|
||||||
|
|
||||||
|
|
||||||
|
let g:airline#themes#base16color#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
let g:airline#themes#base16color#palette.visual_modified = {
|
||||||
|
\ 'airline_a': [ s:V1[0] , s:V4[0] , s:V1[2] , s:V4[1] , '' ] ,
|
||||||
|
\ 'airline_b': [ s:V4[0] , s:IM[0] , s:V4[1] , s:IM[1] , '' ] ,
|
||||||
|
\ 'airline_c': [ s:V4[0] , s:N3[1] , s:V4[1] , s:N3[3] , '' ] }
|
||||||
|
|
||||||
|
|
||||||
|
let g:airline#themes#base16color#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
let g:airline#themes#base16color#palette.replace_modified = {
|
||||||
|
\ 'airline_a': [ s:R1[0] , s:R4[0] , s:R1[2] , s:R4[1] , '' ] ,
|
||||||
|
\ 'airline_b': [ s:R4[0] , s:IM[0] , s:R4[1] , s:IM[1] , '' ] ,
|
||||||
|
\ 'airline_c': [ s:R4[0] , s:N3[1] , s:R4[1] , s:N3[3] , '' ] }
|
||||||
|
|
||||||
|
|
||||||
|
let g:airline#themes#base16color#palette.insert_paste = {
|
||||||
|
\ 'airline_a': [ s:I1[0] , s:PA[0] , s:I1[2] , s:PA[1] , '' ] ,
|
||||||
|
\ 'airline_b': [ s:PA[0] , s:IM[0] , s:PA[1] , s:IM[1] , '' ] ,
|
||||||
|
\ 'airline_c': [ s:PA[0] , s:N3[1] , s:PA[1] , s:N3[3] , '' ] }
|
||||||
|
|
||||||
|
|
||||||
|
let g:airline#themes#base16color#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
|
||||||
|
let g:airline#themes#base16color#palette.inactive_modified = {
|
||||||
|
\ 'airline_c': [ s:N4[0] , '' , s:N4[1] , '' , '' ] }
|
|
@ -0,0 +1,63 @@
|
||||||
|
let g:airline#themes#cool#palette = {}
|
||||||
|
|
||||||
|
" NORMAL
|
||||||
|
let s:N1 = [ '#585858' , '#E4E4E4' , 17 , 190 ]
|
||||||
|
let s:N2 = [ '#E4E4E4' , '#0087AF' , 255 , 238 ]
|
||||||
|
let s:N3 = [ '#EEEEEE' , '#005F87' , 85 , 234 ]
|
||||||
|
let g:airline#themes#cool#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
"let g:airline#themes#cool#palette.normal_modified = {
|
||||||
|
"\ 'airline_c': [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] ,
|
||||||
|
"\ }
|
||||||
|
|
||||||
|
" INSERT
|
||||||
|
let s:I1 = [ '#585858' , '#E4E4E4' , 17 , 45 ]
|
||||||
|
let s:I2 = [ '#E4E4E4' , '#47AF00' , 255 , 27 ]
|
||||||
|
let s:I3 = [ '#EEEEEE' , '#2E8700' , 15 , 17 ]
|
||||||
|
let g:airline#themes#cool#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
"let g:airline#themes#cool#palette.insert_modified = {
|
||||||
|
"\ 'airline_c': [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] ,
|
||||||
|
"\ }
|
||||||
|
"let g:airline#themes#cool#palette.insert_paste = {
|
||||||
|
"\ 'airline_a': [ s:I1[0] , '#d78700' , s:I1[2] , 172 , '' ] ,
|
||||||
|
"\ }
|
||||||
|
|
||||||
|
" REPLACE
|
||||||
|
let s:R1 = [ '#585858' , '#E4E4E4' , 17 , 45 ]
|
||||||
|
let s:R2 = [ '#E4E4E4' , '#AF5F00' , 255 , 27 ]
|
||||||
|
let s:R3 = [ '#EEEEEE' , '#875300' , 15 , 17 ]
|
||||||
|
let g:airline#themes#cool#palette.replace = airline#themes#generate_color_map(s:R1, s:R2, s:R3)
|
||||||
|
"let g:airline#themes#cool#palette.replace.airline_a = [ s:I2[0] , '#af0000' , s:I2[2] , 124 , '' ]
|
||||||
|
"let g:airline#themes#cool#palette.replace_modified = g:airline#themes#cool#palette.insert_modified
|
||||||
|
|
||||||
|
" VISUAL
|
||||||
|
let s:V1 = [ '#585858' , '#E4E4E4' , 232 , 214 ]
|
||||||
|
let s:V2 = [ '#E4E4E4' , '#AF2800' , 232 , 202 ]
|
||||||
|
let s:V3 = [ '#EEEEEE' , '#872800' , 15 , 52 ]
|
||||||
|
let g:airline#themes#cool#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
"let g:airline#themes#cool#palette.visual_modified = {
|
||||||
|
"\ 'airline_c': [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] ,
|
||||||
|
"\ }
|
||||||
|
|
||||||
|
" INACTIVE
|
||||||
|
let s:IA1 = [ '#585858' , '#E4E4E4' , 239 , 234 , '' ]
|
||||||
|
let s:IA2 = [ '#E4E4E4' , '#466D79' , 239 , 235 , '' ]
|
||||||
|
let s:IA3 = [ '#EEEEEE' , '#324E59' , 239 , 236 , '' ]
|
||||||
|
let g:airline#themes#cool#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
|
||||||
|
"let g:airline#themes#cool#palette.inactive_modified = {
|
||||||
|
"\ 'airline_c': [ '#875faf' , '' , 97 , '' , '' ] ,
|
||||||
|
"\ }
|
||||||
|
|
||||||
|
|
||||||
|
let g:airline#themes#cool#palette.accents = {
|
||||||
|
\ 'red': [ '#ff0000' , '' , 160 , '' ]
|
||||||
|
\ }
|
||||||
|
|
||||||
|
" CTRLP
|
||||||
|
if !get(g:, 'loaded_ctrlp', 0)
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let g:airline#themes#cool#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
|
||||||
|
\ [ '#E4E4E4' , '#00AFA2' , 231 , 98 , '' ],
|
||||||
|
\ [ '#EEEEEE' , '#008787' , 55 , 231 , '' ],
|
||||||
|
\ [ '#585858' , '#E4E4E4' , 189 , 55 , '' ])
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue