diff --git a/after/ftdetect/javascript.vim b/after/ftdetect/javascript.vim index 900fce1..a0de1b1 100644 --- a/after/ftdetect/javascript.vim +++ b/after/ftdetect/javascript.vim @@ -1,3 +1,5 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jsx') == -1 + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim ftdetect file " @@ -18,3 +20,5 @@ autocmd BufNewFile,BufRead *.jsx let b:jsx_ext_found = 1 autocmd BufNewFile,BufRead *.jsx set filetype=javascript.jsx autocmd BufNewFile,BufRead *.js \ if EnableJSX() | set filetype=javascript.jsx | endif + +endif diff --git a/after/ftdetect/rspec.vim b/after/ftdetect/rspec.vim index ce43f58..d4a0a5c 100644 --- a/after/ftdetect/rspec.vim +++ b/after/ftdetect/rspec.vim @@ -1,2 +1,6 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rspec') == -1 + autocmd BufReadPost,BufNewFile *_spec.rb set syntax=rspec autocmd BufReadPost,BufNewFile *_spec.rb setlocal commentstring=#\ %s + +endif diff --git a/after/ftplugin/coffee.vim b/after/ftplugin/coffee.vim index 104948d..9c8f584 100644 --- a/after/ftplugin/coffee.vim +++ b/after/ftplugin/coffee.vim @@ -1,5 +1,9 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cjsx') == -1 + if exists("loaded_matchit") let b:match_ignorecase = 0 let b:match_words = '(:),\[:\],{:},<:>,' . \ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>' endif + +endif diff --git a/after/ftplugin/haskell.vim b/after/ftplugin/haskell.vim index 536e84b..4b31545 100644 --- a/after/ftplugin/haskell.vim +++ b/after/ftplugin/haskell.vim @@ -1,3 +1,5 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haskell') == -1 + " Vim ftplugin file " Language: Haskell " Maintainer: Tristan Ravitch @@ -7,3 +9,5 @@ " hate the leading '-'s it puts in on each line). Disable it here. setlocal comments& setlocal comments=:-- + +endif diff --git a/after/ftplugin/jsx.vim b/after/ftplugin/jsx.vim index ee64209..76b0a32 100644 --- a/after/ftplugin/jsx.vim +++ b/after/ftplugin/jsx.vim @@ -1,3 +1,5 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jsx') == -1 + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim ftplugin file " @@ -15,3 +17,5 @@ if exists("loaded_matchit") endif setlocal suffixesadd+=.jsx + +endif diff --git a/after/ftplugin/puppet.vim b/after/ftplugin/puppet.vim index f976a45..574fee2 100644 --- a/after/ftplugin/puppet.vim +++ b/after/ftplugin/puppet.vim @@ -1,3 +1,5 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 + if !exists('g:puppet_align_hashes') let g:puppet_align_hashes = 1 endif @@ -14,3 +16,5 @@ if g:puppet_align_hashes && exists(':Tabularize') call search(repeat('\([^=]\|=[^>]\)*=>',column).'\s\{-\}'.repeat('.',position),'ce',line('.')) endfunction endif + +endif diff --git a/after/indent/html.vim b/after/indent/html.vim index 2fa8637..a711351 100644 --- a/after/indent/html.vim +++ b/after/indent/html.vim @@ -1,3 +1,5 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1 + " Language: CoffeeScript " Maintainer: Mick Koch " URL: http://github.com/kchmck/vim-coffee-script @@ -31,3 +33,5 @@ function! GetCoffeeHtmlIndent(curlinenum) " Otherwise use html indenting. exec 'return ' s:htmlIndentExpr endfunction + +endif diff --git a/after/indent/jsx.vim b/after/indent/jsx.vim index d0b4d4e..d33c13d 100644 --- a/after/indent/jsx.vim +++ b/after/indent/jsx.vim @@ -1,3 +1,5 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jsx') == -1 + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim indent file " @@ -96,3 +98,5 @@ fu! GetJsxIndent() return ind endfu + +endif diff --git a/after/jsx-config.vim b/after/jsx-config.vim index a1d4cbe..0303fb0 100644 --- a/after/jsx-config.vim +++ b/after/jsx-config.vim @@ -1,3 +1,5 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jsx') == -1 + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vimscript file " @@ -31,3 +33,5 @@ if !g:jsx_pragma_required | finish | endif " anything else in the file (except whitespace). let s:jsx_pragma_pattern = '\%^\_s*\/\*\*\%(\_.\%(\*\/\)\@!\)*@jsx\_.\{-}\*\/' let b:jsx_pragma_found = search(s:jsx_pragma_pattern, 'npw') + +endif diff --git a/after/syntax/c.vim b/after/syntax/c.vim index 0805d66..aa4a31e 100644 --- a/after/syntax/c.vim +++ b/after/syntax/c.vim @@ -1,3 +1,5 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c++11') == -1 + " Vim syntax file " Language: C Additions " Maintainer: Jon Haggblad @@ -290,3 +292,5 @@ hi def link cBoolean Boolean "hi def link cDelimiter Delimiter " foldmethod=syntax fix, courtesy of Ivan Freitas "hi def link cBraces Delimiter + +endif diff --git a/after/syntax/coffee.vim b/after/syntax/coffee.vim index 64e0dc4..b77c12b 100644 --- a/after/syntax/coffee.vim +++ b/after/syntax/coffee.vim @@ -1,3 +1,5 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cjsx') == -1 + if exists('b:current_syntax') let s:current_syntax=b:current_syntax unlet b:current_syntax @@ -25,3 +27,5 @@ hi def link cjsxTagName Function hi def link cjsxEntity Statement hi def link cjsxEntityPunct Type hi def link cjsxAttribProperty Type + +endif diff --git a/after/syntax/cpp.vim b/after/syntax/cpp.vim index 5a0c218..6eb3cfa 100644 --- a/after/syntax/cpp.vim +++ b/after/syntax/cpp.vim @@ -1,3 +1,5 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'c++11') == -1 + " Vim syntax file " Language: C++ Additions " Maintainer: Jon Haggblad @@ -1364,3 +1366,5 @@ if version >= 508 || !exists("did_cpp_syntax_inits") HiLink cppRawDelimiter Delimiter delcommand HiLink endif + +endif diff --git a/after/syntax/css.vim b/after/syntax/css.vim index ffb3e43..afe9da6 100644 --- a/after/syntax/css.vim +++ b/after/syntax/css.vim @@ -1,6 +1,10 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'css-color') == -1 + " Language: Colorful CSS Color Preview " Author: Aristotle Pagaltzis if !( has('gui_running') || &t_Co==256 ) | finish | endif call css_color#init('css', 'extended', 'cssMediaBlock,cssFunction,cssDefinition,cssAttrRegion,cssComment') + +endif diff --git a/after/syntax/haml.vim b/after/syntax/haml.vim index 4c517eb..5333de6 100644 --- a/after/syntax/haml.vim +++ b/after/syntax/haml.vim @@ -1,3 +1,5 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1 + " Language: CoffeeScript " Maintainer: Sven Felix Oberquelle " URL: http://github.com/kchmck/vim-coffee-script @@ -11,3 +13,5 @@ syn region hamlCoffeescriptFilter matchgroup=hamlFilter \ end="^\%(\z1 \| *$\)\@!" \ contains=@hamlCoffeeScript,hamlInterpolation \ keepend + +endif diff --git a/after/syntax/help.vim b/after/syntax/help.vim index e323212..58b7994 100644 --- a/after/syntax/help.vim +++ b/after/syntax/help.vim @@ -1,3 +1,5 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1 + " Extends standard help syntax with highlighting of Scala code. " " Place code between !sc! and !/sc! delimiters. These will be hidden if Vim is @@ -12,3 +14,5 @@ if has('conceal') else syntax region rgnScala matchgroup=Ignore start='!sc!' end='!/sc!' contains=@ScalaCode endif + +endif diff --git a/after/syntax/html.vim b/after/syntax/html.vim index b9dc9f9..7ea622c 100644 --- a/after/syntax/html.vim +++ b/after/syntax/html.vim @@ -1,3 +1,5 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1 + " Language: CoffeeScript " Maintainer: Mick Koch " URL: http://github.com/kchmck/vim-coffee-script @@ -9,6 +11,10 @@ syn region coffeeScript start=##me=s-1 keepend \ contains=@htmlCoffeeScript,htmlScriptTag,@htmlPreproc \ containedin=htmlHead + +endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'less') == -1 + if !exists("g:less_html_style_tags") let g:less_html_style_tags = 1 endif @@ -35,6 +41,10 @@ syn region lessStyle start=+