diff options
Diffstat (limited to 'autoload')
40 files changed, 160 insertions, 160 deletions
diff --git a/autoload/LaTeXtoUnicode.vim b/autoload/LaTeXtoUnicode.vim index 75fa4f82..dfaa66fe 100644 --- a/autoload/LaTeXtoUnicode.vim +++ b/autoload/LaTeXtoUnicode.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1 + finish +endif + """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Support for LaTex-to-Unicode conversion as in the Julia REPL " """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -650,5 +652,3 @@ function! LaTeXtoUnicode#Toggle() endif return endfunction - -endif diff --git a/autoload/RstFold.vim b/autoload/RstFold.vim index 2d802842..1f53d67f 100644 --- a/autoload/RstFold.vim +++ b/autoload/RstFold.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rst') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rst') != -1 + finish +endif + " Author: Antony Lee <anntzer.lee@gmail.com> " Description: Helper functions for reStructuredText syntax folding " Last Modified: 2018-12-29 @@ -62,5 +64,3 @@ function RstFold#GetRstFoldText() let text = thisline =~ '^\([=`:.''"~^_*+#-]\)\1\+$' ? getline(v:foldstart + 1) : thisline return indent . text endfunction - -endif diff --git a/autoload/cargo.vim b/autoload/cargo.vim index 18b6a158..fe28ef3a 100644 --- a/autoload/cargo.vim +++ b/autoload/cargo.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 + finish +endif + function! cargo#Load() " Utility call to get this script loaded, for debugging endfunction @@ -115,5 +117,3 @@ function! cargo#runtarget(args) endfunction " vim: set et sw=4 sts=4 ts=8: - -endif diff --git a/autoload/cargo/quickfix.vim b/autoload/cargo/quickfix.vim index 9eb204fc..ac66d298 100644 --- a/autoload/cargo/quickfix.vim +++ b/autoload/cargo/quickfix.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 + finish +endif + function! cargo#quickfix#CmdPre() abort if &filetype ==# 'rust' && get(b:, 'current_compiler', '') ==# 'cargo' " Preserve the current directory, and 'lcd' to the nearest Cargo file. @@ -26,5 +28,3 @@ function! cargo#quickfix#CmdPost() abort endfunction " vim: set et sw=4 sts=4 ts=8: - -endif diff --git a/autoload/clojurecomplete.vim b/autoload/clojurecomplete.vim index aa2644c4..b8dc71c9 100644 --- a/autoload/clojurecomplete.vim +++ b/autoload/clojurecomplete.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'clojure') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'clojure') != -1 + finish +endif + " Vim completion script " Language: Clojure " Maintainer: Sung Pae <self@sungpae.com> @@ -22,5 +24,3 @@ function! clojurecomplete#Complete(findstart, base) endfunction " vim:sts=8:sw=8:ts=8:noet - -endif diff --git a/autoload/coffee.vim b/autoload/coffee.vim index ba5e7ff8..beeed729 100644 --- a/autoload/coffee.vim +++ b/autoload/coffee.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'coffee-script') != -1 + finish +endif + " Language: CoffeeScript " Maintainer: Mick Koch <mick@kochm.co> " URL: http://github.com/kchmck/vim-coffee-script @@ -54,5 +56,3 @@ function! coffee#CoffeeSetUpErrorFormat() \%f:%l:%c:\ error:\ %m, \%-G%.%# endfunction - -endif diff --git a/autoload/crystal_lang.vim b/autoload/crystal_lang.vim index bffa721f..fb344d5e 100644 --- a/autoload/crystal_lang.vim +++ b/autoload/crystal_lang.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1 + finish +endif + let s:save_cpo = &cpo set cpo&vim @@ -316,5 +318,3 @@ endfunction let &cpo = s:save_cpo unlet s:save_cpo - -endif diff --git a/autoload/dart.vim b/autoload/dart.vim index 0e8fb525..f524e09d 100644 --- a/autoload/dart.vim +++ b/autoload/dart.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dart') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'dart') != -1 + finish +endif + function! s:error(text) abort echohl Error @@ -170,5 +172,3 @@ function! dart#setModifiable() abort setlocal nomodifiable endif endfunction - -endif diff --git a/autoload/elixir/indent.vim b/autoload/elixir/indent.vim index 4b5906e8..38f4e8d6 100644 --- a/autoload/elixir/indent.vim +++ b/autoload/elixir/indent.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elixir') != -1 + finish +endif + if !exists("g:elixir_indent_max_lookbehind") let g:elixir_indent_max_lookbehind = 30 endif @@ -343,5 +345,3 @@ function! elixir#indent#handle_inside_generic_block(context) return -1 endif endfunction - -endif diff --git a/autoload/elixir/util.vim b/autoload/elixir/util.vim index 46db20e0..f02e1b87 100644 --- a/autoload/elixir/util.vim +++ b/autoload/elixir/util.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elixir') != -1 + finish +endif + function! elixir#util#get_filename(word) abort let word = a:word @@ -24,5 +26,3 @@ function! elixir#util#get_filename(word) abort return word endfunction - -endif diff --git a/autoload/elm.vim b/autoload/elm.vim index 00b15947..d58ddaab 100644 --- a/autoload/elm.vim +++ b/autoload/elm.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elm') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elm') != -1 + finish +endif + let s:errors = [] function! s:elmOracle(...) abort @@ -381,5 +383,3 @@ function! s:ExecuteInRoot(cmd) abort return l:out endfunction - -endif diff --git a/autoload/elm/util.vim b/autoload/elm/util.vim index b276394c..aee823c5 100644 --- a/autoload/elm/util.vim +++ b/autoload/elm/util.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elm') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'elm') != -1 + finish +endif + " IsWin returns 1 if current OS is Windows or 0 otherwise fun! elm#util#IsWin() abort let l:win = ['win16', 'win32', 'win32unix', 'win64', 'win95'] @@ -174,5 +176,3 @@ function! s:error(msg) echohl NONE let v:errmsg = a:msg endfunction - -endif diff --git a/autoload/fish.vim b/autoload/fish.vim index d4e63cdc..eb826bb8 100644 --- a/autoload/fish.vim +++ b/autoload/fish.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'fish') != -1 + finish +endif + function! fish#Indent() let l:shiftwidth = shiftwidth() let l:prevlnum = prevnonblank(v:lnum - 1) @@ -67,5 +69,3 @@ endfunction function! fish#errorformat() return '%Afish: %m,%-G%*\\ ^,%-Z%f (line %l):%s' endfunction - -endif diff --git a/autoload/go/config.vim b/autoload/go/config.vim index 3020ee7e..7cb7f05e 100644 --- a/autoload/go/config.vim +++ b/autoload/go/config.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'go') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'go') != -1 + finish +endif + " don't spam the user when Vim is started in Vi compatibility mode let s:cpo_save = &cpo set cpo&vim @@ -458,5 +460,3 @@ let &cpo = s:cpo_save unlet s:cpo_save " vim: sw=2 ts=2 et - -endif diff --git a/autoload/htmlcomplete.vim b/autoload/htmlcomplete.vim index fc9a4b5a..ef32c64d 100644 --- a/autoload/htmlcomplete.vim +++ b/autoload/htmlcomplete.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'html5') != -1 + finish +endif + " Vim completion script " Language: HTML and XHTML " Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl ) @@ -841,5 +843,3 @@ function! htmlcomplete#CheckDoctype() " {{{ endfunction " }}} " vim:set foldmethod=marker: - -endif diff --git a/autoload/julia.vim b/autoload/julia.vim index 695a6b78..c3c949ac 100644 --- a/autoload/julia.vim +++ b/autoload/julia.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1 + finish +endif + function! julia#set_syntax_version(jvers) if &filetype != "julia" echo "Not a Julia file" @@ -184,5 +186,3 @@ function! julia#gotodefinition() endfunction endif - -endif diff --git a/autoload/julia/doc.vim b/autoload/julia/doc.vim index 8a9cab52..c2660143 100644 --- a/autoload/julia/doc.vim +++ b/autoload/julia/doc.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1 + finish +endif + " path to the julia binary to communicate with if has('win32') || has('win64') if exists('g:julia#doc#juliapath') @@ -242,5 +244,3 @@ function! s:likely(str) abort let output = systemlist(cmd) return split(matchstr(output[0], '\C^search: \zs.*')) endfunction - -endif diff --git a/autoload/julia_blocks.vim b/autoload/julia_blocks.vim index 0362c8dc..0f4d2bb0 100644 --- a/autoload/julia_blocks.vim +++ b/autoload/julia_blocks.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1 + finish +endif + " Facilities for moving around Julia blocks (e.g. if/end, function/end etc.) " (AKA a collection of horrible hacks) @@ -794,5 +796,3 @@ function! s:cursor_moved(...) let b:jlblk_did_select = b:jlblk_doing_select let b:jlblk_doing_select = 0 endfunction - -endif diff --git a/autoload/julia_latex_symbols.vim b/autoload/julia_latex_symbols.vim index 69f857e6..29bf031f 100644 --- a/autoload/julia_latex_symbols.vim +++ b/autoload/julia_latex_symbols.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1 + finish +endif + " This file is autogenerated from the script 'generate_latex_symbols_table.jl' " The symbols are based on Julia version 1.1.0-DEV.695 @@ -3329,5 +3331,3 @@ function! julia_latex_symbols#get_dict() \ '\:baggage_claim:': '🛄', \ '\:left_luggage:': '🛅'} endfunction - -endif diff --git a/autoload/pony.vim b/autoload/pony.vim index 51568aa4..fd14136e 100644 --- a/autoload/pony.vim +++ b/autoload/pony.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pony') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'pony') != -1 + finish +endif + " Vim plugin file " Language: Pony " Maintainer: Jak Wings @@ -532,5 +534,3 @@ endfunction let &cpo = s:cpo_save unlet s:cpo_save - -endif diff --git a/autoload/python/utils.vim b/autoload/python/utils.vim index 51ba9ef1..2ae781ae 100644 --- a/autoload/python/utils.vim +++ b/autoload/python/utils.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'python-compiler') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'python-compiler') != -1 + finish +endif + " Sometimes Python issues debugging messages " which don't belong to a call stack context " this function filters these messages @@ -17,5 +19,3 @@ function! python#utils#fix_qflist() " {{{ call setqflist(l:traceback) endif endfunction " }}} - -endif diff --git a/autoload/racket.vim b/autoload/racket.vim index 9f14ed39..08e0d31f 100644 --- a/autoload/racket.vim +++ b/autoload/racket.vim @@ -1,7 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'racket') == -1 - -if !exists("g:raco_command") - let g:raco_command = system("which raco") +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'racket') != -1 + finish endif +if !exists("g:raco_command") + let g:raco_command = system("which raco") endif diff --git a/autoload/rubycomplete.vim b/autoload/rubycomplete.vim index a7f3fc19..3f9a01f9 100644 --- a/autoload/rubycomplete.vim +++ b/autoload/rubycomplete.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ruby') != -1 + finish +endif + " Vim completion script " Language: Ruby " Maintainer: Mark Guzman <segfault@hasno.info> @@ -876,5 +878,3 @@ call s:DefRuby() "}}} ruby-side code " vim:tw=78:sw=4:ts=8:et:fdm=marker:ft=vim:norl: - -endif diff --git a/autoload/rust.vim b/autoload/rust.vim index d5a2e29f..c513f03f 100644 --- a/autoload/rust.vim +++ b/autoload/rust.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 + finish +endif + " Author: Kevin Ballard " Description: Helper functions for Rust commands/mappings " Last Modified: May 27, 2014 @@ -546,5 +548,3 @@ endfunction " }}}1 " vim: set et sw=4 sts=4 ts=8: - -endif diff --git a/autoload/rust/debugging.vim b/autoload/rust/debugging.vim index ba91c3bd..caeef712 100644 --- a/autoload/rust/debugging.vim +++ b/autoload/rust/debugging.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 + finish +endif + " For debugging, inspired by https://github.com/w0rp/rust/blob/master/autoload/rust/debugging.vim let s:global_variable_list = [ @@ -101,5 +103,3 @@ function! rust#debugging#InfoToFile(filename) abort endfunction " vim: set et sw=4 sts=4 ts=8: - -endif diff --git a/autoload/rust/delimitmate.vim b/autoload/rust/delimitmate.vim index e99cc87d..5e599f6a 100644 --- a/autoload/rust/delimitmate.vim +++ b/autoload/rust/delimitmate.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 + finish +endif + let s:delimitMate_extra_excluded_regions = ',rustLifetimeCandidate,rustGenericLifetimeCandidate' " For this buffer, when delimitMate issues the `User delimitMate_map` @@ -44,5 +46,3 @@ endfunction " vim: set et sw=4 sts=4 ts=8: - -endif diff --git a/autoload/rustfmt.vim b/autoload/rustfmt.vim index 7b8fdd91..59ab3d3b 100644 --- a/autoload/rustfmt.vim +++ b/autoload/rustfmt.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'rust') != -1 + finish +endif + " Author: Stephen Sugden <stephen@stephensugden.com> " " Adapted from https://github.com/fatih/vim-go @@ -248,5 +250,3 @@ endfunction " vim: set et sw=4 sts=4 ts=8: - -endif diff --git a/autoload/scss_indent.vim b/autoload/scss_indent.vim index cc9fc033..27caa780 100644 --- a/autoload/scss_indent.vim +++ b/autoload/scss_indent.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scss') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'scss') != -1 + finish +endif + " usage: " set indentexpr=scss_indent#GetIndent(v:lnum) fun! scss_indent#GetIndent(lnum) @@ -37,5 +39,3 @@ fun! scss_indent#GetIndent(lnum) return 0 endif endfun - -endif diff --git a/autoload/vifm/edit.vim b/autoload/vifm/edit.vim index 6e00979a..c92baeeb 100644 --- a/autoload/vifm/edit.vim +++ b/autoload/vifm/edit.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vifm') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'vifm') != -1 + finish +endif + " common functions for vifm command-line editing buffer filetype plugins " Maintainer: xaizek <xaizek@posteo.net> " Last Change: August 18, 2013 @@ -14,5 +16,3 @@ function! vifm#edit#Init() " Start buffer editing in insert mode startinsert endfunction - -endif diff --git a/autoload/vifm/globals.vim b/autoload/vifm/globals.vim index 4c4c9924..74b49a04 100644 --- a/autoload/vifm/globals.vim +++ b/autoload/vifm/globals.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vifm') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'vifm') != -1 + finish +endif + " common functions for vifm plugin related to globals " Maintainer: xaizek <xaizek@posteo.net> " Last Change: November 03, 2018 @@ -31,5 +33,3 @@ function! vifm#globals#Init() let g:vifm_embed_term = has('gui_running') endif endfunction - -endif diff --git a/autoload/vital/_crystal.vim b/autoload/vital/_crystal.vim index 55eea487..d2c1b560 100644 --- a/autoload/vital/_crystal.vim +++ b/autoload/vital/_crystal.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1 + finish +endif + let s:_plugin_name = expand('<sfile>:t:r') function! vital#{s:_plugin_name}#new() abort @@ -9,5 +11,3 @@ endfunction function! vital#{s:_plugin_name}#function(funcname) abort silent! return function(a:funcname) endfunction - -endif diff --git a/autoload/vital/_crystal/ColorEcho.vim b/autoload/vital/_crystal/ColorEcho.vim index 8358cc66..54c7927b 100644 --- a/autoload/vital/_crystal/ColorEcho.vim +++ b/autoload/vital/_crystal/ColorEcho.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1 + finish +endif + " ___vital___ " NOTE: lines between '" ___vital___' is generated by :Vitalize. " Do not mofidify the code nor insert new lines before '" ___vital___' @@ -187,5 +189,3 @@ endfunction let &cpo = s:save_cpo unlet s:save_cpo - -endif diff --git a/autoload/vital/_crystal/Data/List.vim b/autoload/vital/_crystal/Data/List.vim index 1aac999f..7c83136b 100644 --- a/autoload/vital/_crystal/Data/List.vim +++ b/autoload/vital/_crystal/Data/List.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1 + finish +endif + " ___vital___ " NOTE: lines between '" ___vital___' is generated by :Vitalize. " Do not mofidify the code nor insert new lines before '" ___vital___' @@ -464,5 +466,3 @@ let &cpo = s:save_cpo unlet s:save_cpo " vim:set et ts=2 sts=2 sw=2 tw=0: - -endif diff --git a/autoload/vital/_crystal/Data/String.vim b/autoload/vital/_crystal/Data/String.vim index 7d3ef2c3..2f822225 100644 --- a/autoload/vital/_crystal/Data/String.vim +++ b/autoload/vital/_crystal/Data/String.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1 + finish +endif + " ___vital___ " NOTE: lines between '" ___vital___' is generated by :Vitalize. " Do not mofidify the code nor insert new lines before '" ___vital___' @@ -627,5 +629,3 @@ endfunction let &cpo = s:save_cpo unlet s:save_cpo " vim:set et ts=2 sts=2 sw=2 tw=0: - -endif diff --git a/autoload/vital/_crystal/Process.vim b/autoload/vital/_crystal/Process.vim index 1f7b001c..2ea6d584 100644 --- a/autoload/vital/_crystal/Process.vim +++ b/autoload/vital/_crystal/Process.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1 + finish +endif + " ___vital___ " NOTE: lines between '" ___vital___' is generated by :Vitalize. " Do not mofidify the code nor insert new lines before '" ___vital___' @@ -173,5 +175,3 @@ let &cpo = s:save_cpo unlet s:save_cpo " vim:set et ts=2 sts=2 sw=2 tw=0: - -endif diff --git a/autoload/vital/_crystal/Web/JSON.vim b/autoload/vital/_crystal/Web/JSON.vim index e99fa733..39bfd724 100644 --- a/autoload/vital/_crystal/Web/JSON.vim +++ b/autoload/vital/_crystal/Web/JSON.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1 + finish +endif + " ___vital___ " NOTE: lines between '" ___vital___' is generated by :Vitalize. " Do not mofidify the code nor insert new lines before '" ___vital___' @@ -178,5 +180,3 @@ let &cpo = s:save_cpo unlet s:save_cpo " vim:set et ts=2 sts=2 sw=2 tw=0: - -endif diff --git a/autoload/vital/crystal.vim b/autoload/vital/crystal.vim index 2dca145b..15e7487b 100644 --- a/autoload/vital/crystal.vim +++ b/autoload/vital/crystal.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1 + finish +endif + let s:plugin_name = expand('<sfile>:t:r') let s:vital_base_dir = expand('<sfile>:h') let s:project_root = expand('<sfile>:h:h:h') @@ -328,5 +330,3 @@ else return a:list endfunction endif - -endif diff --git a/autoload/vital/crystal.vital b/autoload/vital/crystal.vital index 72fc7273..3deaa053 100644 --- a/autoload/vital/crystal.vital +++ b/autoload/vital/crystal.vital @@ -1,10 +1,10 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'crystal') != -1 + finish +endif + crystal bee84ae23effb0510137ad177e98c94d8b3657a6 Process Web.JSON ColorEcho - -endif diff --git a/autoload/xml/aria.vim b/autoload/xml/aria.vim index 5e642e1d..40fbfc69 100644 --- a/autoload/xml/aria.vim +++ b/autoload/xml/aria.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'html5') != -1 + finish +endif + " Vim completion for WAI-ARIA data file " Language: HTML + WAI-ARIA " Maintainer: othree <othree@gmail.com> @@ -457,5 +459,3 @@ let g:xmldata_aria = { \ 'default_role': default_role, \ 'vimariaattrinfo': aria_attributes_value \ } - -endif diff --git a/autoload/xml/html5.vim b/autoload/xml/html5.vim index 11be7308..60ce2460 100644 --- a/autoload/xml/html5.vim +++ b/autoload/xml/html5.vim @@ -1,5 +1,7 @@ -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1 - +if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'html5') != -1 + finish +endif + " Vim completion for HTML5 data file " Language: HTML (version 5.1 Draft 2016 Jan 13) " Maintainer: Kao, Wei-Ko(othree) ( othree AT gmail DOT com ) @@ -870,5 +872,3 @@ let g:xmldata_html5 = { \ 'wbr': ['/>', ''], \ }, \ } - -endif |