mirror of https://github.com/amix/vimrc.git
parent
5f6aa8fe09
commit
f343b66088
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,23 @@ |
||||
"============================================================================ |
||||
"File: gjslint.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_html_gjslint_checker') |
||||
finish |
||||
endif |
||||
let g:loaded_syntastic_html_gjslint_checker = 1 |
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({ |
||||
\ 'filetype': 'html', |
||||
\ 'name': 'gjslint', |
||||
\ 'redirect': 'javascript/gjslint'}) |
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker: |
@ -0,0 +1,23 @@ |
||||
"============================================================================ |
||||
"File: rapper.vim |
||||
"Description: Syntax checking plugin for syntastic |
||||
"Maintainer: Sebastian Tramp <mail@sebastian.tramp.name> |
||||
"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_trig_rapper_checker') |
||||
finish |
||||
endif |
||||
let g:loaded_syntastic_trig_rapper_checker = 1 |
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({ |
||||
\ 'filetype': 'trig', |
||||
\ 'name': 'rapper', |
||||
\ 'redirect': 'turtle/rapper'}) |
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker: |
@ -0,0 +1,46 @@ |
||||
"============================================================================ |
||||
"File: rapper.vim |
||||
"Description: Syntax checking plugin for syntastic |
||||
"Maintainer: Sebastian Tramp <mail@sebastian.tramp.name> |
||||
"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_turtle_rapper_checker') |
||||
finish |
||||
endif |
||||
let g:loaded_syntastic_turtle_rapper_checker = 1 |
||||
|
||||
let s:save_cpo = &cpo |
||||
set cpo&vim |
||||
|
||||
function! SyntaxCheckers_turtle_rapper_GetHighlightRegex(item) |
||||
let term = matchstr(a:item['text'], '\mFailed to convert qname \zs\S\+\ze to URI') |
||||
return term !=# '' ? '\V\<' . escape(term, '\') . '\>' : '' |
||||
endfunction |
||||
|
||||
function! SyntaxCheckers_turtle_rapper_GetLocList() dict |
||||
let makeprg = self.makeprgBuild({ 'args': '-i guess -q --count' }) |
||||
|
||||
let errorformat = |
||||
\ 'rapper: %trror - URI file://%f:%l - %m,' . |
||||
\ 'rapper: %tarning - URI file://%f:%l - %m' |
||||
|
||||
return SyntasticMake({ |
||||
\ 'makeprg': makeprg, |
||||
\ 'errorformat': errorformat, |
||||
\ 'returns': [0, 1] }) |
||||
endfunction |
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({ |
||||
\ 'filetype': 'turtle', |
||||
\ 'name': 'rapper'}) |
||||
|
||||
let &cpo = s:save_cpo |
||||
unlet s:save_cpo |
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker: |
@ -0,0 +1,43 @@ |
||||
"============================================================================ |
||||
"File: ttl.vim |
||||
"Description: turtle syntax checker - using ttl from turtle-validator (npm) |
||||
"Maintainer: Antoine Reilles (tonio@NetBSD.org) |
||||
"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_turtle_ttl_checker') |
||||
finish |
||||
endif |
||||
let g:loaded_syntastic_turtle_ttl_checker = 1 |
||||
|
||||
let s:save_cpo = &cpo |
||||
set cpo&vim |
||||
|
||||
function! SyntaxCheckers_turtle_ttl_GetHighlightRegex(item) |
||||
let term = matchstr(a:item['text'], '\m"\zs[^"]\+\ze"') |
||||
return term !=# '' ? '\V\<' . escape(term, '\') . '\>' : '' |
||||
endfunction |
||||
|
||||
function! SyntaxCheckers_turtle_ttl_GetLocList() dict |
||||
let makeprg = self.makeprgBuild({}) |
||||
|
||||
let errorformat = '%\m[Error: %m %\%%(at%\|on%\) line %l%\%.]' |
||||
|
||||
return SyntasticMake({ |
||||
\ 'makeprg': makeprg, |
||||
\ 'errorformat': errorformat, |
||||
\ 'defaults': {'bufnr': bufnr('')} }) |
||||
endfunction |
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({ |
||||
\ 'filetype': 'turtle', |
||||
\ 'name': 'ttl'}) |
||||
|
||||
let &cpo = s:save_cpo |
||||
unlet s:save_cpo |
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker: |
@ -0,0 +1,46 @@ |
||||
"============================================================================ |
||||
"File: pyang.vim |
||||
"Description: Syntax checking plugin for syntastic.vim |
||||
"Authors: joshua.downer@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_yang_pyang_checker') |
||||
finish |
||||
endif |
||||
let g:loaded_syntastic_yang_pyang_checker = 1 |
||||
|
||||
let s:save_cpo = &cpo |
||||
set cpo&vim |
||||
|
||||
function! SyntaxCheckers_yang_pyang_GetHighlightRegex(item) |
||||
let term = matchstr(a:item['text'], '\m"\zs[^"]\+\ze"') |
||||
return term != '' ? '\V\<' . escape(term, '\') . '\>' : '' |
||||
endfunction |
||||
|
||||
function! SyntaxCheckers_yang_pyang_GetLocList() dict |
||||
let makeprg = self.makeprgBuild({}) |
||||
|
||||
let errorformat = |
||||
\ '%f:%l: %trror: %m,' . |
||||
\ '%f:%l: %tarning: %m' |
||||
|
||||
return SyntasticMake({ |
||||
\ 'makeprg': makeprg, |
||||
\ 'errorformat': errorformat, |
||||
\ 'postprocess': ['filterForeignErrors'] }) |
||||
endfunction |
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({ |
||||
\ 'filetype': 'yang', |
||||
\ 'name': 'pyang'}) |
||||
|
||||
let &cpo = s:save_cpo |
||||
unlet s:save_cpo |
||||
|
||||
" vim: set sw=4 sts=4 et fdm=marker: |
@ -0,0 +1 @@ |
||||
doc/tags |
@ -1,102 +0,0 @@ |
||||
" Each theme is contained in its own file and declares variables scoped to the |
||||
" file. These variables represent the possible "modes" that airline can |
||||
" detect. The mode is the return value of mode(), which gets converted to a |
||||
" readable string. The following is a list currently supported modes: normal, |
||||
" insert, replace, visual, and inactive. |
||||
" |
||||
" Each mode can also have overrides. These are small changes to the mode that |
||||
" don't require a completely different look. "modified" and "paste" are two |
||||
" such supported overrides. These are simply suffixed to the major mode, |
||||
" separated by an underscore. For example, "normal_modified" would be normal |
||||
" mode where the current buffer is modified. |
||||
" |
||||
" The theming algorithm is a 2-pass system where the mode will draw over all |
||||
" parts of the statusline, and then the override is applied after. This means |
||||
" it is possible to specify a subset of the theme in overrides, as it will |
||||
" simply overwrite the previous colors. If you want simultaneous overrides, |
||||
" then they will need to change different parts of the statusline so they do |
||||
" not conflict with each other. |
||||
" |
||||
" First, let's define an empty dictionary and assign it to the "palette" |
||||
" variable. The # is a separator that maps with the directory structure. If |
||||
" you get this wrong, Vim will complain loudly. |
||||
let g:airline#themes#dark#palette = {} |
||||
|
||||
" First let's define some arrays. The s: is just a VimL thing for scoping the |
||||
" variables to the current script. Without this, these variables would be |
||||
" declared globally. Now let's declare some colors for normal mode and add it |
||||
" to the dictionary. The array is in the format: |
||||
" [ guifg, guibg, ctermfg, ctermbg, opts ]. See "help attr-list" for valid |
||||
" values for the "opt" value. |
||||
let s:N1 = [ '#00005f' , '#dfff00' , 17 , 190 ] |
||||
let s:N2 = [ '#ffffff' , '#444444' , 255 , 238 ] |
||||
let s:N3 = [ '#9cffd3' , '#202020' , 85 , 234 ] |
||||
let g:airline#themes#dark#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) |
||||
|
||||
" Here we define overrides for when the buffer is modified. This will be |
||||
" applied after g:airline#themes#dark#palette.normal, hence why only certain keys are |
||||
" declared. |
||||
let g:airline#themes#dark#palette.normal_modified = { |
||||
\ 'airline_c': [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] , |
||||
\ } |
||||
|
||||
|
||||
let s:I1 = [ '#00005f' , '#00dfff' , 17 , 45 ] |
||||
let s:I2 = [ '#ffffff' , '#005fff' , 255 , 27 ] |
||||
let s:I3 = [ '#ffffff' , '#000080' , 15 , 17 ] |
||||
let g:airline#themes#dark#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) |
||||
let g:airline#themes#dark#palette.insert_modified = { |
||||
\ 'airline_c': [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] , |
||||
\ } |
||||
let g:airline#themes#dark#palette.insert_paste = { |
||||
\ 'airline_a': [ s:I1[0] , '#d78700' , s:I1[2] , 172 , '' ] , |
||||
\ } |
||||
|
||||
|
||||
let g:airline#themes#dark#palette.replace = copy(g:airline#themes#dark#palette.insert) |
||||
let g:airline#themes#dark#palette.replace.airline_a = [ s:I2[0] , '#af0000' , s:I2[2] , 124 , '' ] |
||||
let g:airline#themes#dark#palette.replace_modified = g:airline#themes#dark#palette.insert_modified |
||||
|
||||
|
||||
let s:V1 = [ '#000000' , '#ffaf00' , 232 , 214 ] |
||||
let s:V2 = [ '#000000' , '#ff5f00' , 232 , 202 ] |
||||
let s:V3 = [ '#ffffff' , '#5f0000' , 15 , 52 ] |
||||
let g:airline#themes#dark#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) |
||||
let g:airline#themes#dark#palette.visual_modified = { |
||||
\ 'airline_c': [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] , |
||||
\ } |
||||
|
||||
|
||||
let s:IA1 = [ '#4e4e4e' , '#1c1c1c' , 239 , 234 , '' ] |
||||
let s:IA2 = [ '#4e4e4e' , '#262626' , 239 , 235 , '' ] |
||||
let s:IA3 = [ '#4e4e4e' , '#303030' , 239 , 236 , '' ] |
||||
let g:airline#themes#dark#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3) |
||||
let g:airline#themes#dark#palette.inactive_modified = { |
||||
\ 'airline_c': [ '#875faf' , '' , 97 , '' , '' ] , |
||||
\ } |
||||
|
||||
|
||||
" Accents are used to give parts within a section a slightly different look or |
||||
" color. Here we are defining a "red" accent, which is used by the 'readonly' |
||||
" part by default. Only the foreground colors are specified, so the background |
||||
" colors are automatically extracted from the underlying section colors. What |
||||
" this means is that regardless of which section the part is defined in, it |
||||
" will be red instead of the section's foreground color. You can also have |
||||
" multiple parts with accents within a section. |
||||
let g:airline#themes#dark#palette.accents = { |
||||
\ 'red': [ '#ff0000' , '' , 160 , '' ] |
||||
\ } |
||||
|
||||
|
||||
" 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#dark#palette.ctrlp = airline#extensions#ctrlp#generate_color_map( |
||||
\ [ '#d7d7ff' , '#5f00af' , 189 , 55 , '' ], |
||||
\ [ '#ffffff' , '#875fd7' , 231 , 98 , '' ], |
||||
\ [ '#5f00af' , '#ffffff' , 55 , 231 , 'bold' ]) |
||||
|