summaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-09-12 14:33:21 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2019-09-12 15:08:44 +0200
commit4f3df59be709bf0d5c5c67dc804fde49abdc2700 (patch)
tree71b86b1d2c678dd2bb8411c61f83fd1cd3ec691d /ftplugin
parent26790941f6d4ceedbf6324eb3712949eb614908f (diff)
downloadvim-polyglot-4.0.3.tar.gz
vim-polyglot-4.0.3.zip
Improve guard so it works for no eof new linev4.0.3
Diffstat (limited to '')
-rw-r--r--ftplugin/Dockerfile.vim2
-rw-r--r--ftplugin/ansible.vim2
-rw-r--r--ftplugin/ansible_hosts.vim2
-rw-r--r--ftplugin/blade.vim2
-rw-r--r--ftplugin/caddyfile.vim2
-rw-r--r--ftplugin/clojure.vim2
-rw-r--r--ftplugin/coffee.vim2
-rw-r--r--ftplugin/cryptol/folding.vim2
-rw-r--r--ftplugin/crystal.vim2
-rw-r--r--ftplugin/csv.vim2
-rw-r--r--ftplugin/cucumber.vim2
-rw-r--r--ftplugin/dart.vim2
-rw-r--r--ftplugin/dhall.vim2
-rw-r--r--ftplugin/docker-compose.vim2
-rw-r--r--ftplugin/eelixir.vim2
-rw-r--r--ftplugin/elixir.vim2
-rw-r--r--ftplugin/elm.vim2
-rw-r--r--ftplugin/elm/tagbar.vim2
-rw-r--r--ftplugin/ember-script.vim2
-rw-r--r--ftplugin/emblem.vim2
-rw-r--r--ftplugin/eruby.vim2
-rw-r--r--ftplugin/fish.vim2
-rw-r--r--ftplugin/git.vim2
-rw-r--r--ftplugin/gitcommit.vim2
-rw-r--r--ftplugin/gitconfig.vim2
-rw-r--r--ftplugin/gitrebase.vim2
-rw-r--r--ftplugin/gitsendemail.vim2
-rw-r--r--ftplugin/graphql.vim2
-rw-r--r--ftplugin/haml.vim2
-rw-r--r--ftplugin/hcl.vim2
-rw-r--r--ftplugin/hive.vim2
-rw-r--r--ftplugin/html.vim2
-rw-r--r--ftplugin/i3config.vim2
-rw-r--r--ftplugin/idris.vim2
-rw-r--r--ftplugin/ion.vim2
-rw-r--r--ftplugin/jbuild.vim2
-rw-r--r--ftplugin/json.vim2
-rw-r--r--ftplugin/julia.vim2
-rw-r--r--ftplugin/juliadoc.vim2
-rw-r--r--ftplugin/kotlin.vim2
-rw-r--r--ftplugin/latex-box/common.vim2
-rw-r--r--ftplugin/latex-box/complete.vim2
-rw-r--r--ftplugin/latex-box/findmain.vim2
-rw-r--r--ftplugin/latex-box/folding.vim2
-rw-r--r--ftplugin/latex-box/latexmk.vim2
-rw-r--r--ftplugin/latex-box/mappings.vim2
-rw-r--r--ftplugin/latex-box/motion.vim2
-rw-r--r--ftplugin/latextoc.vim2
-rw-r--r--ftplugin/less.vim2
-rw-r--r--ftplugin/lilypond.vim2
-rw-r--r--ftplugin/litcoffee.vim2
-rw-r--r--ftplugin/llvm.vim2
-rw-r--r--ftplugin/ls.vim2
-rw-r--r--ftplugin/mail_vifm.vim2
-rw-r--r--ftplugin/mako.vim2
-rw-r--r--ftplugin/meson.vim2
-rw-r--r--ftplugin/mma.vim2
-rw-r--r--ftplugin/moon.vim2
-rw-r--r--ftplugin/mustache.vim2
-rw-r--r--ftplugin/nginx.vim2
-rw-r--r--ftplugin/nix.vim2
-rw-r--r--ftplugin/oasis.vim2
-rw-r--r--ftplugin/objc.vim2
-rw-r--r--ftplugin/ocaml.vim2
-rw-r--r--ftplugin/ocamlbuild_tags.vim2
-rw-r--r--ftplugin/omake.vim2
-rw-r--r--ftplugin/opencl.vim2
-rw-r--r--ftplugin/perl.vim2
-rw-r--r--ftplugin/plantuml.vim2
-rw-r--r--ftplugin/pony.vim2
-rw-r--r--ftplugin/ps1.vim2
-rw-r--r--ftplugin/ps1xml.vim2
-rw-r--r--ftplugin/pug.vim2
-rw-r--r--ftplugin/puppet.vim2
-rw-r--r--ftplugin/puppet_tagbar.vim2
-rw-r--r--ftplugin/purescript.vim2
-rw-r--r--ftplugin/qml.vim2
-rw-r--r--ftplugin/racket.vim2
-rw-r--r--ftplugin/raml.vim2
-rw-r--r--ftplugin/rst.vim2
-rw-r--r--ftplugin/ruby.vim2
-rw-r--r--ftplugin/rust.vim2
-rw-r--r--ftplugin/rust/tagbar.vim2
-rw-r--r--ftplugin/scala.vim2
-rw-r--r--ftplugin/scala.xpt.vim2
-rw-r--r--ftplugin/scala/tagbar.vim2
-rw-r--r--ftplugin/scss.vim2
-rw-r--r--ftplugin/sexplib.vim2
-rw-r--r--ftplugin/slim.vim2
-rw-r--r--ftplugin/smt2.vim2
-rw-r--r--ftplugin/solidity.vim2
-rw-r--r--ftplugin/stylus.vim2
-rw-r--r--ftplugin/swift.vim2
-rw-r--r--ftplugin/tablegen.vim2
-rw-r--r--ftplugin/terraform.vim2
-rw-r--r--ftplugin/tex_LatexBox.vim2
-rw-r--r--ftplugin/textile.vim2
-rw-r--r--ftplugin/tmux.vim2
-rw-r--r--ftplugin/toml.vim2
-rw-r--r--ftplugin/tsx.vim2
-rw-r--r--ftplugin/tt2html.vim2
-rw-r--r--ftplugin/twig.vim2
-rw-r--r--ftplugin/typescript.vim2
-rw-r--r--ftplugin/vifm-cmdedit.vim2
-rw-r--r--ftplugin/vifm-edit.vim2
-rw-r--r--ftplugin/vifm-rename.vim2
-rw-r--r--ftplugin/vifm.vim2
-rw-r--r--ftplugin/vue.vim2
-rw-r--r--ftplugin/xs.vim2
-rw-r--r--ftplugin/zig.vim2
110 files changed, 220 insertions, 0 deletions
diff --git a/ftplugin/Dockerfile.vim b/ftplugin/Dockerfile.vim
index f1335d79..85fb1ee5 100644
--- a/ftplugin/Dockerfile.vim
+++ b/ftplugin/Dockerfile.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1
+
" Define comment string
setlocal commentstring=#\ %s
@@ -32,4 +33,5 @@ inoreabbr <silent> <buffer> workdir <C-R>=DockerfileReplaceInstruction("workdir"
inoreabbr <silent> <buffer> arg <C-R>=DockerfileReplaceInstruction("arg", "ARG")<CR>
inoreabbr <silent> <buffer> onbuild <C-R>=DockerfileReplaceInstruction("onbuild", "ONBUILD")<CR>
inoreabbr <silent> <buffer> stopsignal <C-R>=DockerfileReplaceInstruction("stopsignal", "STOPSIGNAL")<CR>
+
endif
diff --git a/ftplugin/ansible.vim b/ftplugin/ansible.vim
index 7ee5166a..7e94ba9d 100644
--- a/ftplugin/ansible.vim
+++ b/ftplugin/ansible.vim
@@ -1,8 +1,10 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ansible') == -1
+
" Slow yaml highlighting workaround
if exists('+regexpengine') && ('&regexpengine' == 0)
setlocal regexpengine=1
endif
set isfname+=@-@
set path+=./../templates,./../files,templates,files
+
endif
diff --git a/ftplugin/ansible_hosts.vim b/ftplugin/ansible_hosts.vim
index e2ecc4b3..d93acc7c 100644
--- a/ftplugin/ansible_hosts.vim
+++ b/ftplugin/ansible_hosts.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ansible') == -1
+
if exists("b:did_ftplugin")
finish
else
@@ -8,4 +9,5 @@ endif
setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions-=c
let b:undo_ftplugin = "setl comments< commentstring< formatoptions<"
+
endif
diff --git a/ftplugin/blade.vim b/ftplugin/blade.vim
index a5f98824..e5a5af91 100644
--- a/ftplugin/blade.vim
+++ b/ftplugin/blade.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'blade') == -1
+
" Vim filetype plugin
" Language: Blade (Laravel)
" Maintainer: Jason Walton <jwalton512@gmail.com>
@@ -32,4 +33,5 @@ if exists('loaded_matchit') && exists('b:match_words')
let b:match_skip = 'synIDattr(synID(line("."), col("."), 0), "name") !=# "bladeKeyword"'
let b:match_ignorecase = 0
endif
+
endif
diff --git a/ftplugin/caddyfile.vim b/ftplugin/caddyfile.vim
index a90e010d..8e4bb985 100644
--- a/ftplugin/caddyfile.vim
+++ b/ftplugin/caddyfile.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'caddyfile') == -1
+
" Language: Caddyfile
" Author: Josh Glendenning <josh@isobit.io>
@@ -23,4 +24,5 @@ else
let g:NERDCustomDelimiters = {'caddyfile': s:delimiters}
endif
unlet s:delimiters
+
endif
diff --git a/ftplugin/clojure.vim b/ftplugin/clojure.vim
index 0563e066..10278114 100644
--- a/ftplugin/clojure.vim
+++ b/ftplugin/clojure.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'clojure') == -1
+
" Vim filetype plugin file
" Language: Clojure
" Author: Meikel Brandmeyer <mb@kotka.de>
@@ -94,4 +95,5 @@ let &cpo = s:cpo_save
unlet! s:cpo_save s:setting s:dir
" vim:sts=8:sw=8:ts=8:noet
+
endif
diff --git a/ftplugin/coffee.vim b/ftplugin/coffee.vim
index 2ccafc1f..64daa290 100644
--- a/ftplugin/coffee.vim
+++ b/ftplugin/coffee.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
+
" Language: CoffeeScript
" Maintainer: Mick Koch <mick@kochm.co>
" URL: http://github.com/kchmck/vim-coffee-script
@@ -404,4 +405,5 @@ command! -buffer -range=% -bar -nargs=* CoffeeRun
\ call s:CoffeeRun(<line1>, <line2>, <q-args>)
command! -buffer -range=% -bang -bar -nargs=* CoffeeLint
\ call s:CoffeeLint(<line1>, <line2>, <q-bang>, <q-args>)
+
endif
diff --git a/ftplugin/cryptol/folding.vim b/ftplugin/cryptol/folding.vim
index 8c70c104..210d0573 100644
--- a/ftplugin/cryptol/folding.vim
+++ b/ftplugin/cryptol/folding.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cryptol') == -1
+
" Copyright © 2013 Edward O'Callaghan. All Rights Reserved.
"setlocal foldmethod=indent
@@ -45,4 +46,5 @@ function! GetPotionFold(lnum)
return '>' . next_indent
endif
endfunction
+
endif
diff --git a/ftplugin/crystal.vim b/ftplugin/crystal.vim
index b6e10338..c82c3b74 100644
--- a/ftplugin/crystal.vim
+++ b/ftplugin/crystal.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
+
if exists('b:did_ftplugin')
finish
endif
@@ -79,4 +80,5 @@ let &cpo = s:save_cpo
unlet s:save_cpo
" vim: nowrap sw=2 sts=2 ts=8:
+
endif
diff --git a/ftplugin/csv.vim b/ftplugin/csv.vim
index ad4c0bec..b5d48dd0 100644
--- a/ftplugin/csv.vim
+++ b/ftplugin/csv.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'csv') == -1
+
" Filetype plugin for editing CSV files. "{{{1
" Author: Christian Brabandt <cb@256bit.org>
" Version: 0.31
@@ -33,4 +34,5 @@ unlet s:cpo_save
" Vim Modeline " {{{2
" vim: set foldmethod=marker et sw=0 sts=-1 ts=4:
+
endif
diff --git a/ftplugin/cucumber.vim b/ftplugin/cucumber.vim
index cf4c7b78..296fd752 100644
--- a/ftplugin/cucumber.vim
+++ b/ftplugin/cucumber.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1
+
" Vim filetype plugin
" Language: Cucumber
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -149,4 +150,5 @@ let &cpo = s:keepcpo
unlet s:keepcpo
" vim:set sts=2 sw=2:
+
endif
diff --git a/ftplugin/dart.vim b/ftplugin/dart.vim
index 23b709c0..99dd9a8c 100644
--- a/ftplugin/dart.vim
+++ b/ftplugin/dart.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dart') == -1
+
if exists('b:did_ftplugin')
finish
endif
@@ -28,4 +29,5 @@ setlocal includeexpr=dart#resolveUri(v:fname)
setlocal isfname+=:
let b:undo_ftplugin = 'setl et< fo< sw< sts< com< cms< inex< isf<'
+
endif
diff --git a/ftplugin/dhall.vim b/ftplugin/dhall.vim
index 7ce258c5..3e7c2d0a 100644
--- a/ftplugin/dhall.vim
+++ b/ftplugin/dhall.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dhall') == -1
+
if exists('b:dhall_ftplugin')
finish
endif
@@ -34,4 +35,5 @@ endif
augroup dhall
au BufNewFile,BufRead *.dhall setl shiftwidth=2
augroup END
+
endif
diff --git a/ftplugin/docker-compose.vim b/ftplugin/docker-compose.vim
index 44361375..82896b05 100644
--- a/ftplugin/docker-compose.vim
+++ b/ftplugin/docker-compose.vim
@@ -1,7 +1,9 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1
+
" Define comment string
setlocal commentstring=#\ %s
" Enable automatic comment insertion
setlocal formatoptions+=cro
+
endif
diff --git a/ftplugin/eelixir.vim b/ftplugin/eelixir.vim
index 4575f568..ab8174a9 100644
--- a/ftplugin/eelixir.vim
+++ b/ftplugin/eelixir.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
+
if exists("b:did_ftplugin")
finish
endif
@@ -106,4 +107,5 @@ let b:undo_ftplugin = "setl cms< " .
\ " | unlet! b:browsefilter b:match_words | " . s:undo_ftplugin
let &cpo = s:save_cpo
+
endif
diff --git a/ftplugin/elixir.vim b/ftplugin/elixir.vim
index 57f5a6f7..e6e0cafa 100644
--- a/ftplugin/elixir.vim
+++ b/ftplugin/elixir.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elixir') == -1
+
if exists('b:did_ftplugin')
finish
endif
@@ -50,4 +51,5 @@ onoremap <buffer> <silent> <expr> [] ':silent keeppatterns ?'.b:block_end .'<CR
let b:undo_ftplugin = 'setlocal sw< sts< et< isk< com< cms< path< inex< sua< def< fo<'.
\ '| unlet! b:match_ignorecase b:match_words b:block_begin b:block_end'
+
endif
diff --git a/ftplugin/elm.vim b/ftplugin/elm.vim
index 9c923b5a..e364d55f 100644
--- a/ftplugin/elm.vim
+++ b/ftplugin/elm.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elm') == -1
+
" plugin for Elm (http://elm-lang.org/)
if exists('b:did_ftplugin')
@@ -108,4 +109,5 @@ let &l:path =
setlocal includeexpr=GetElmFilename(v:fname)
setlocal include=^\\s*import\\s\\+
setlocal suffixesadd=.elm
+
endif
diff --git a/ftplugin/elm/tagbar.vim b/ftplugin/elm/tagbar.vim
index 4ae5b10c..4c0e3731 100644
--- a/ftplugin/elm/tagbar.vim
+++ b/ftplugin/elm/tagbar.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'elm') == -1
+
if !executable('ctags')
finish
elseif globpath(&runtimepath, 'plugin/tagbar.vim') ==? ''
@@ -19,4 +20,5 @@ function! s:SetTagbar()
endfunction
call s:SetTagbar()
+
endif
diff --git a/ftplugin/ember-script.vim b/ftplugin/ember-script.vim
index 2846bd12..18a0481b 100644
--- a/ftplugin/ember-script.vim
+++ b/ftplugin/ember-script.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emberscript') == -1
+
" Language: ember-script
" Maintainer: Yulij Andreevich Lesov <yalesov@gmail.com>>
" URL: http://github.com/yalesov/vim-ember-script
@@ -20,4 +21,5 @@ else
endif
setlocal comments=:#
setlocal commentstring=#\ %s
+
endif
diff --git a/ftplugin/emblem.vim b/ftplugin/emblem.vim
index eec84036..54bdc07e 100644
--- a/ftplugin/emblem.vim
+++ b/ftplugin/emblem.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emblem') == -1
+
" Language: emblem
" Maintainer: Yulij Andreevich Lesov <yalesov@gmail.com>
" URL: http://github.com/yalesov/vim-emblem
@@ -16,4 +17,5 @@ setlocal smartindent
setlocal formatoptions=q
setlocal comments=:/
setlocal commentstring=/\ %s
+
endif
diff --git a/ftplugin/eruby.vim b/ftplugin/eruby.vim
index ba813b9e..2add9e90 100644
--- a/ftplugin/eruby.vim
+++ b/ftplugin/eruby.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
+
" Vim filetype plugin
" Language: eRuby
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -130,4 +131,5 @@ function! ErubyAtCursor() abort
endfunction
" vim: nowrap sw=2 sts=2 ts=8:
+
endif
diff --git a/ftplugin/fish.vim b/ftplugin/fish.vim
index 6097e2ab..7ba9c927 100644
--- a/ftplugin/fish.vim
+++ b/ftplugin/fish.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1
+
setlocal comments=:#
setlocal commentstring=#%s
setlocal define=\\v^\\s*function>
@@ -38,4 +39,5 @@ let b:match_words =
let b:endwise_addition = 'end'
let b:endwise_words = 'begin,function,if,switch,while,for'
let b:endwise_syngroups = 'fishKeyword,fishConditional,fishRepeat'
+
endif
diff --git a/ftplugin/git.vim b/ftplugin/git.vim
index 6bd9098d..f26c62cf 100644
--- a/ftplugin/git.vim
+++ b/ftplugin/git.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim filetype plugin
" Language: generic git output
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -40,4 +41,5 @@ endif
setlocal includeexpr=substitute(v:fname,'^[^/]\\+/','','')
let b:undo_ftplugin = "setl keywordprg< path< includeexpr<"
+
endif
diff --git a/ftplugin/gitcommit.vim b/ftplugin/gitcommit.vim
index 723b2915..ca849a2c 100644
--- a/ftplugin/gitcommit.vim
+++ b/ftplugin/gitcommit.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim filetype plugin
" Language: git commit file
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -65,4 +66,5 @@ function! s:gitdiffcached(bang,gitdir,...)
nnoremap <buffer> <silent> q :q<CR>
setlocal buftype=nowrite nobuflisted noswapfile nomodifiable filetype=git
endfunction
+
endif
diff --git a/ftplugin/gitconfig.vim b/ftplugin/gitconfig.vim
index 0f0d705b..2cb8d97f 100644
--- a/ftplugin/gitconfig.vim
+++ b/ftplugin/gitconfig.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim filetype plugin
" Language: git config file
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -14,4 +15,5 @@ setlocal formatoptions-=t formatoptions+=croql
setlocal comments=:#,:; commentstring=;\ %s
let b:undo_ftplugin = "setl fo< com< cms<"
+
endif
diff --git a/ftplugin/gitrebase.vim b/ftplugin/gitrebase.vim
index 202f676e..1395c8ab 100644
--- a/ftplugin/gitrebase.vim
+++ b/ftplugin/gitrebase.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim filetype plugin
" Language: git rebase --interactive
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -44,4 +45,5 @@ endif
nnoremap <buffer> <expr> K col('.') < 7 && expand('<Lt>cword>') =~ '\X' && getline('.') =~ '^\w\+\s\+\x\+\>' ? 'wK' : 'K'
let b:undo_ftplugin = b:undo_ftplugin . "|nunmap <buffer> K"
+
endif
diff --git a/ftplugin/gitsendemail.vim b/ftplugin/gitsendemail.vim
index 30aed3f6..e13b3ca9 100644
--- a/ftplugin/gitsendemail.vim
+++ b/ftplugin/gitsendemail.vim
@@ -1,8 +1,10 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
+
" Vim filetype plugin
" Language: git send-email message
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
" Last Change: 2009 Dec 24
runtime! ftplugin/mail.vim
+
endif
diff --git a/ftplugin/graphql.vim b/ftplugin/graphql.vim
index 492fe107..e6c59d92 100644
--- a/ftplugin/graphql.vim
+++ b/ftplugin/graphql.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1
+
" Vim filetype plugin
" Language: GraphQL
" Maintainer: Jon Parise <jon@indelible.org>
@@ -17,4 +18,5 @@ setlocal shiftwidth=2
setlocal expandtab
let b:undo_ftplugin = 'setlocal com< cms< fo< isk< sts< sw< et<'
+
endif
diff --git a/ftplugin/haml.vim b/ftplugin/haml.vim
index 7fa8efa4..ca5655ec 100644
--- a/ftplugin/haml.vim
+++ b/ftplugin/haml.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
+
" Vim filetype plugin
" Language: Haml
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -70,4 +71,5 @@ let &cpo = s:save_cpo
unlet s:save_cpo
" vim:set sw=2:
+
endif
diff --git a/ftplugin/hcl.vim b/ftplugin/hcl.vim
index a48f406b..c4b44e24 100644
--- a/ftplugin/hcl.vim
+++ b/ftplugin/hcl.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'hcl') == -1
+
" File: ftplugin/hcl.vim
" Author: BABAROT <b4b4r07@gmail.com>
" Description: FileType Plugin for HCL
@@ -36,4 +37,5 @@ let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sw=4 ts=4:
+
endif
diff --git a/ftplugin/hive.vim b/ftplugin/hive.vim
index c7ceb774..dc950624 100644
--- a/ftplugin/hive.vim
+++ b/ftplugin/hive.vim
@@ -1,4 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'hive') == -1
+
setlocal comments=:--
setlocal commentstring=--\ %s
+
endif
diff --git a/ftplugin/html.vim b/ftplugin/html.vim
index 7b856136..50cdb2ae 100644
--- a/ftplugin/html.vim
+++ b/ftplugin/html.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
+
" Maintainer: othree <othree@gmail.com>
" URL: http://github.com/othree/html5.vim
" Last Change: 2014-05-02
@@ -8,4 +9,5 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'html5') == -1
" setlocal iskeyword+=-
setlocal commentstring=<!--%s-->
+
endif
diff --git a/ftplugin/i3config.vim b/ftplugin/i3config.vim
index f5451e80..dbb95e33 100644
--- a/ftplugin/i3config.vim
+++ b/ftplugin/i3config.vim
@@ -1,3 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'i3') == -1
+
setlocal commentstring=#\ %s
+
endif
diff --git a/ftplugin/idris.vim b/ftplugin/idris.vim
index 777b6cfd..ae46bedd 100644
--- a/ftplugin/idris.vim
+++ b/ftplugin/idris.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'idris') == -1
+
if bufname('%') == "idris-response"
finish
endif
@@ -341,4 +342,5 @@ menu Idris.Proof\ Search\ with\ hints <LocalLeader>p
au BufHidden idris-response call IdrisHideResponseWin()
au BufEnter idris-response call IdrisShowResponseWin()
+
endif
diff --git a/ftplugin/ion.vim b/ftplugin/ion.vim
index 1a056112..88bb5238 100644
--- a/ftplugin/ion.vim
+++ b/ftplugin/ion.vim
@@ -1,7 +1,9 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ion') == -1
+
if exists("b:did_ftplugin") | finish | endif
let b:did_ftplugin = 1
setlocal commentstring=#%s
+
endif
diff --git a/ftplugin/jbuild.vim b/ftplugin/jbuild.vim
index 628620ad..2ed1b9cc 100644
--- a/ftplugin/jbuild.vim
+++ b/ftplugin/jbuild.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
+
if exists("b:did_ftplugin")
finish
endif
@@ -11,4 +12,5 @@ setl commentstring=;\ %s
setl comments=:;
setl iskeyword+=#,?,.,/
+
endif
diff --git a/ftplugin/json.vim b/ftplugin/json.vim
index f8185ca5..2d51fbd7 100644
--- a/ftplugin/json.vim
+++ b/ftplugin/json.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'json') == -1
+
" Vim syntax file
" Language: JSON
" Maintainer: Eli Parra <eli@elzr.com> https://github.com/elzr/vim-json
@@ -37,4 +38,5 @@ if has('conceal')
"maybe g:vim_json_syntax_conceal could be settable to 0,1,2 to map
"directly to vim's conceallevels? unsure if anyone cares
endif
+
endif
diff --git a/ftplugin/julia.vim b/ftplugin/julia.vim
index 27930727..c03ac30b 100644
--- a/ftplugin/julia.vim
+++ b/ftplugin/julia.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
+
" Vim filetype plugin file
" Language: Julia
" Maintainer: Carlo Baldassi <carlobaldassi@gmail.com>
@@ -106,4 +107,5 @@ let b:undo_ftplugin .= " | delcommand JuliaDoc | delcommand JuliaDocKeywordprg"
let &cpo = s:save_cpo
unlet s:save_cpo
+
endif
diff --git a/ftplugin/juliadoc.vim b/ftplugin/juliadoc.vim
index aa21646e..2d9e2168 100644
--- a/ftplugin/juliadoc.vim
+++ b/ftplugin/juliadoc.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'julia') == -1
+
" Vim filetype plugin file
" Language: Julia document
@@ -29,4 +30,5 @@ let b:undo_ftplugin .= " | delcommand JuliaDoc | delcommand JuliaDocKeywordprg"
let &cpo = s:save_cpo
unlet s:save_cpo
+
endif
diff --git a/ftplugin/kotlin.vim b/ftplugin/kotlin.vim
index aefa76c9..f9cc4303 100644
--- a/ftplugin/kotlin.vim
+++ b/ftplugin/kotlin.vim
@@ -1,7 +1,9 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'kotlin') == -1
+
if exists('b:did_ftplugin') | finish | endif
let b:did_ftplugin = 1
setlocal comments=://
setlocal commentstring=//\ %s
+
endif
diff --git a/ftplugin/latex-box/common.vim b/ftplugin/latex-box/common.vim
index 938d97b2..1a972c9b 100644
--- a/ftplugin/latex-box/common.vim
+++ b/ftplugin/latex-box/common.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
" LaTeX Box common functions
" Error Format {{{
@@ -412,4 +413,5 @@ endfunction
" }}}
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
+
endif
diff --git a/ftplugin/latex-box/complete.vim b/ftplugin/latex-box/complete.vim
index 74f98696..56e7516e 100644
--- a/ftplugin/latex-box/complete.vim
+++ b/ftplugin/latex-box/complete.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
" LaTeX Box completion
setlocal omnifunc=LatexBox_Complete
@@ -931,4 +932,5 @@ command! LatexLabels call <SID>PromptLabelList()
" }}}
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
+
endif
diff --git a/ftplugin/latex-box/findmain.vim b/ftplugin/latex-box/findmain.vim
index a06358b5..6d1a9928 100644
--- a/ftplugin/latex-box/findmain.vim
+++ b/ftplugin/latex-box/findmain.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
" LatexBox_GetMainFileName: gets the name of the main file being compiled. {{{
" Description: returns the full path name of the main file.
" This function checks for the existence of a .latexmain file
@@ -61,4 +62,5 @@ function! LatexBox_GetMainFileName(...)
" certain platforms.
return lheadfile
endfunction
+
endif
diff --git a/ftplugin/latex-box/folding.vim b/ftplugin/latex-box/folding.vim
index 1dac48d5..e24e036d 100644
--- a/ftplugin/latex-box/folding.vim
+++ b/ftplugin/latex-box/folding.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
" Folding support for LaTeX
"
@@ -377,4 +378,5 @@ endfunction
" {{{1 Footer
" vim:fdm=marker:ff=unix:ts=4:sw=4
+
endif
diff --git a/ftplugin/latex-box/latexmk.vim b/ftplugin/latex-box/latexmk.vim
index c1b917b7..ef9ef024 100644
--- a/ftplugin/latex-box/latexmk.vim
+++ b/ftplugin/latex-box/latexmk.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
" LaTeX Box latexmk functions
" Options and variables {{{
@@ -553,4 +554,5 @@ endif
" }}}
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
+
endif
diff --git a/ftplugin/latex-box/mappings.vim b/ftplugin/latex-box/mappings.vim
index 7d2e0633..b64a88df 100644
--- a/ftplugin/latex-box/mappings.vim
+++ b/ftplugin/latex-box/mappings.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
" LaTeX Box mappings
if exists("g:LatexBox_no_mappings")
@@ -105,4 +106,5 @@ vnoremap <buffer> <silent> [[ :<c-u>call <SID>LatexBoxNextSection(0,1,1)<CR>
" }}}
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
+
endif
diff --git a/ftplugin/latex-box/motion.vim b/ftplugin/latex-box/motion.vim
index 9caa0ed5..7982d04b 100644
--- a/ftplugin/latex-box/motion.vim
+++ b/ftplugin/latex-box/motion.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
" LaTeX Box motion functions
" Motion options {{{
@@ -543,4 +544,5 @@ command! LatexTOCToggle call LatexBox_TOC(1)
" }}}
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
+
endif
diff --git a/ftplugin/latextoc.vim b/ftplugin/latextoc.vim
index 1c4c4953..5e709f67 100644
--- a/ftplugin/latextoc.vim
+++ b/ftplugin/latextoc.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
" {{{1 Settings
setlocal buftype=nofile
setlocal bufhidden=wipe
@@ -201,4 +202,5 @@ nnoremap <buffer> <silent> <Esc>OD h
" }}}1
" vim:fdm=marker:ff=unix:et:ts=4:sw=4
+
endif
diff --git a/ftplugin/less.vim b/ftplugin/less.vim
index 5fb1f5f3..ecb060b9 100644
--- a/ftplugin/less.vim
+++ b/ftplugin/less.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'less') == -1
+
" Vim filetype plugin
" Language: LessCSS
" Author: Tim Pope <vimNOSPAM@tpope.org>
@@ -25,4 +26,5 @@ setlocal fo=croql
let &l:include = '^\s*@import\s\+\%(url(\)\=["'']\='
" vim:set sw=2:
+
endif
diff --git a/ftplugin/lilypond.vim b/ftplugin/lilypond.vim
index a0e1a137..9debb532 100644
--- a/ftplugin/lilypond.vim
+++ b/ftplugin/lilypond.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'lilypond') == -1
+
" LilyPond filetype plugin
" Language: LilyPond (ft=ly)
" Maintainer: Heikki Junes <hjunes@cc.hut.fi>
@@ -56,4 +57,5 @@ setlocal dictionary-=$VIM/syntax/lilypond-words dictionary+=$VIM/syntax/lilypond
setlocal complete-=k complete+=k
"
setlocal showmatch
+
endif
diff --git a/ftplugin/litcoffee.vim b/ftplugin/litcoffee.vim
index 6dfb197c..31284a8d 100644
--- a/ftplugin/litcoffee.vim
+++ b/ftplugin/litcoffee.vim
@@ -1,3 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'coffee-script') == -1
+
runtime ftplugin/coffee.vim
+
endif
diff --git a/ftplugin/llvm.vim b/ftplugin/llvm.vim
index b2c65f4e..a7b93e7b 100644
--- a/ftplugin/llvm.vim
+++ b/ftplugin/llvm.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1
+
" Vim filetype plugin file
" Language: LLVM Assembly
" Maintainer: The LLVM team, http://llvm.org/
@@ -11,4 +12,5 @@ let b:did_ftplugin = 1
setlocal softtabstop=2 shiftwidth=2
setlocal expandtab
setlocal comments+=:;
+
endif
diff --git a/ftplugin/ls.vim b/ftplugin/ls.vim
index b40ca5ea..5f9af33d 100644
--- a/ftplugin/ls.vim
+++ b/ftplugin/ls.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'livescript') == -1
+
" Language: LiveScript
" Maintainer: George Zahariev
" URL: http://github.com/gkz/vim-ls
@@ -203,4 +204,5 @@ command! -range=% -bar -nargs=* -complete=customlist,s:LiveScriptCompileComplete
\ LiveScriptCompile call s:LiveScriptCompile(<line1>, <line2>, <q-args>)
" Run some LiveScript.
command! -range=% -bar LiveScriptRun <line1>,<line2>:w !lsc -sp
+
endif
diff --git a/ftplugin/mail_vifm.vim b/ftplugin/mail_vifm.vim
index 9dc2cbb5..33e62683 100644
--- a/ftplugin/mail_vifm.vim
+++ b/ftplugin/mail_vifm.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vifm') == -1
+
" Mail file type extension to pick files for attachments via vifm
" Maintainer: xaizek <xaizek@posteo.net>
" Last Change: January 02, 2018
@@ -63,4 +64,5 @@ endfunction
nnoremap <buffer> <silent> <localleader>a :call <sid>AddMailAttachments()<cr>
" vim: set tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab cinoptions-=(0 :
+
endif
diff --git a/ftplugin/mako.vim b/ftplugin/mako.vim
index b20b9593..81943b68 100644
--- a/ftplugin/mako.vim
+++ b/ftplugin/mako.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mako') == -1
+
" Vim filetype plugin file
" Language: Mako
" Maintainer: Randy Stauner <randy@magnificent-tears.com>
@@ -10,4 +11,5 @@ let b:did_ftplugin = 1
setlocal comments=:##
setlocal commentstring=##%s
+
endif
diff --git a/ftplugin/meson.vim b/ftplugin/meson.vim
index 8949b6ee..2f4abd9b 100644
--- a/ftplugin/meson.vim
+++ b/ftplugin/meson.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'meson') == -1
+
" Vim filetype plugin file
" Language: meson
" Original Author: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
@@ -14,4 +15,5 @@ setlocal softtabstop=2
let &cpo = s:keepcpo
unlet s:keepcpo
+
endif
diff --git a/ftplugin/mma.vim b/ftplugin/mma.vim
index 237f1da8..4a2581eb 100644
--- a/ftplugin/mma.vim
+++ b/ftplugin/mma.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mathematica') == -1
+
"Vim filetype plugin
" Language: Mathematica
" Maintainer: R. Menon <rsmenon@icloud.com>
@@ -58,4 +59,5 @@ unlet s:cpo_save
"}
" vim: set foldmarker={,} foldlevel=0 foldmethod=marker:
+
endif
diff --git a/ftplugin/moon.vim b/ftplugin/moon.vim
index e99de496..a4eca9a5 100644
--- a/ftplugin/moon.vim
+++ b/ftplugin/moon.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'moonscript') == -1
+
" Language: MoonScript
" Maintainer: leafo <leafot@gmail.com>
" Based On: CoffeeScript by Mick Koch <kchmck@gmail.com>
@@ -15,4 +16,5 @@ setlocal comments=:--
setlocal commentstring=--\ %s
let b:undo_ftplugin = "setlocal commentstring< comments< formatoptions<"
+
endif
diff --git a/ftplugin/mustache.vim b/ftplugin/mustache.vim
index 03889841..649984aa 100644
--- a/ftplugin/mustache.vim
+++ b/ftplugin/mustache.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'handlebars') == -1
+
if exists('b:loaded_mustache_handlebars')
finish
endif
@@ -122,4 +123,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nofoldenable
+
endif
diff --git a/ftplugin/nginx.vim b/ftplugin/nginx.vim
index 08f9b340..1ae40849 100644
--- a/ftplugin/nginx.vim
+++ b/ftplugin/nginx.vim
@@ -1,3 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nginx') == -1
+
setlocal commentstring=#\ %s
+
endif
diff --git a/ftplugin/nix.vim b/ftplugin/nix.vim
index 40444150..c3e745a9 100644
--- a/ftplugin/nix.vim
+++ b/ftplugin/nix.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nix') == -1
+
" Vim filetype plugin
" Language: Nix
" Maintainer: Daiderd Jordan <daiderd@gmail.com>
@@ -20,4 +21,5 @@ if get(g:, 'nix_recommended_style', 1)
\ softtabstop=2
\ expandtab
endif
+
endif
diff --git a/ftplugin/oasis.vim b/ftplugin/oasis.vim
index 51442403..850889eb 100644
--- a/ftplugin/oasis.vim
+++ b/ftplugin/oasis.vim
@@ -1,5 +1,7 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
+
setlocal comments=:#
setlocal commentstring=#\ %s
+
endif
diff --git a/ftplugin/objc.vim b/ftplugin/objc.vim
index 5378f43b..ed76e4bd 100644
--- a/ftplugin/objc.vim
+++ b/ftplugin/objc.vim
@@ -1,8 +1,10 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'objc') == -1
+
" Use C++ style comment strings with commentary.vim
setl commentstring=//%s
" Search for include files inside frameworks (used for gf etc.)
setl includeexpr=substitute(v:fname,'\\([^/]\\+\\)/\\(.\\+\\)','/System/Library/Frameworks/\\1.framework/Headers/\\2','')
+
endif
diff --git a/ftplugin/ocaml.vim b/ftplugin/ocaml.vim
index 9c8f7908..7e84445c 100644
--- a/ftplugin/ocaml.vim
+++ b/ftplugin/ocaml.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
+
" Language: OCaml
" Maintainer: David Baelde <firstname.name@ens-lyon.org>
" Mike Leary <leary@nwlink.com>
@@ -639,4 +640,5 @@ let &cpoptions=s:cposet
unlet s:cposet
" vim:sw=2 fdm=indent
+
endif
diff --git a/ftplugin/ocamlbuild_tags.vim b/ftplugin/ocamlbuild_tags.vim
index 51442403..850889eb 100644
--- a/ftplugin/ocamlbuild_tags.vim
+++ b/ftplugin/ocamlbuild_tags.vim
@@ -1,5 +1,7 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
+
setlocal comments=:#
setlocal commentstring=#\ %s
+
endif
diff --git a/ftplugin/omake.vim b/ftplugin/omake.vim
index c38328a0..656cc6a9 100644
--- a/ftplugin/omake.vim
+++ b/ftplugin/omake.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
+
" Vim filetype plugin file
" Language: OMake
@@ -23,4 +24,5 @@ setlocal expandtab
" Including files.
let &l:include = '^\s*include'
+
endif
diff --git a/ftplugin/opencl.vim b/ftplugin/opencl.vim
index d3daecac..c9fa5673 100644
--- a/ftplugin/opencl.vim
+++ b/ftplugin/opencl.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'opencl') == -1
+
if exists("b:did_ftplugin") | finish | endif
if version > 600
@@ -14,4 +15,5 @@ setlocal smarttab
setlocal smartindent
let b:did_ftplugin = 1
+
endif
diff --git a/ftplugin/perl.vim b/ftplugin/perl.vim
index cb1172e7..b0eaf1ba 100644
--- a/ftplugin/perl.vim
+++ b/ftplugin/perl.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Vim filetype plugin file
" Language: Perl
" Maintainer: vim-perl <vim-perl@googlegroups.com>
@@ -88,4 +89,5 @@ let b:match_words = '\<if\>:\<elsif\>:\<else\>'
" Restore the saved compatibility options.
let &cpo = s:save_cpo
unlet s:save_cpo
+
endif
diff --git a/ftplugin/plantuml.vim b/ftplugin/plantuml.vim
index ab6d331b..b17f88ba 100644
--- a/ftplugin/plantuml.vim
+++ b/ftplugin/plantuml.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'plantuml') == -1
+
scriptencoding utf-8
" Vim filetype plugin file
" Language: PlantUML
@@ -43,4 +44,5 @@ let b:endwise_syngroups = 'plantumlKeyword'
let &cpoptions = s:cpo_save
unlet s:cpo_save
+
endif
diff --git a/ftplugin/pony.vim b/ftplugin/pony.vim
index 7168d6be..df726643 100644
--- a/ftplugin/pony.vim
+++ b/ftplugin/pony.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pony') == -1
+
" Vim filetype plugin file
" Language: Pony
" Maintainer: Jak Wings
@@ -39,4 +40,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
let b:did_ftplugin = 1
+
endif
diff --git a/ftplugin/ps1.vim b/ftplugin/ps1.vim
index c7a19fc4..4baa4665 100644
--- a/ftplugin/ps1.vim
+++ b/ftplugin/ps1.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1
+
" Vim filetype plugin file
" Language: Windows PowerShell
" Maintainer: Peter Provost <peter@provost.org>
@@ -33,4 +34,5 @@ endif
let b:undo_ftplugin = "setlocal tw< cms< fo<" .
\ " | unlet! b:browsefilter"
+
endif
diff --git a/ftplugin/ps1xml.vim b/ftplugin/ps1xml.vim
index 4b1b3485..a0233fd8 100644
--- a/ftplugin/ps1xml.vim
+++ b/ftplugin/ps1xml.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1
+
" Vim filetype plugin file
" Language: Windows PowerShell
" Maintainer: Peter Provost <peter@provost.org>
@@ -30,4 +31,5 @@ endif
let b:undo_ftplugin = "setlocal tw< cms< fo<" .
\ " | unlet! b:browsefilter"
+
endif
diff --git a/ftplugin/pug.vim b/ftplugin/pug.vim
index 32b8f76e..1bd08b39 100644
--- a/ftplugin/pug.vim
+++ b/ftplugin/pug.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'pug') == -1
+
" Vim filetype plugin
" Language: Pug
" Maintainer: Joshua Borton
@@ -56,4 +57,5 @@ let b:undo_ftplugin = "setl cms< com< "
let &cpo = s:save_cpo
" vim:set sw=2:
+
endif
diff --git a/ftplugin/puppet.vim b/ftplugin/puppet.vim
index 876b4748..3c843314 100644
--- a/ftplugin/puppet.vim
+++ b/ftplugin/puppet.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
+
setl ts=2
setl sts=2
setl sw=2
@@ -6,4 +7,5 @@ setl et
setl keywordprg=puppet\ describe\ --providers
setl iskeyword=-,:,@,48-57,_,192-255
setl cms=#\ %s
+
endif
diff --git a/ftplugin/puppet_tagbar.vim b/ftplugin/puppet_tagbar.vim
index 9fdf69c7..36772da7 100644
--- a/ftplugin/puppet_tagbar.vim
+++ b/ftplugin/puppet_tagbar.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1
+
" Puppet set up for Tagbar plugin
" (https://github.com/majutsushi/tagbar).
@@ -43,4 +44,5 @@ endif
let g:tagbar_type_puppet.deffile = puppet#ctags#OptionFile()
+
endif
diff --git a/ftplugin/purescript.vim b/ftplugin/purescript.vim
index b637d347..c2c85535 100644
--- a/ftplugin/purescript.vim
+++ b/ftplugin/purescript.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'purescript') == -1
+
setlocal comments=s1fl:{-,mb:\ \ ,ex:-},:--\ \|,:--
setlocal include=^import
setlocal includeexpr=printf('%s.purs',substitute(v:fname,'\\.','/','g'))
@@ -37,4 +38,5 @@ fun! InitPureScript()
call add(s:PS, [dir, &l:path])
endfun
call InitPureScript()
+
endif
diff --git a/ftplugin/qml.vim b/ftplugin/qml.vim
index b4043b32..f4a96fa6 100644
--- a/ftplugin/qml.vim
+++ b/ftplugin/qml.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'qml') == -1
+
" Vim filetype plugin file
" Language: qml
" Last change: 2014 Feb 8
@@ -36,4 +37,5 @@ setlocal formatoptions+=croql
let &cpoptions = s:cpoptions_save
unlet s:cpoptions_save
+
endif
diff --git a/ftplugin/racket.vim b/ftplugin/racket.vim
index 3f76c298..ccdcdef4 100644
--- a/ftplugin/racket.vim
+++ b/ftplugin/racket.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'racket') == -1
+
" Language: Racket
" Maintainer: Will Langstroth <will@langstroth.com>
" URL: http://github.com/wlangstroth/vim-racket
@@ -58,4 +59,5 @@ nnoremap <buffer> <f9> :!racket -t %<cr>
"setl commentstring=;;%s
setl commentstring=#\|\ %s\ \|#
+
endif
diff --git a/ftplugin/raml.vim b/ftplugin/raml.vim
index 21af8307..b7cef80e 100644
--- a/ftplugin/raml.vim
+++ b/ftplugin/raml.vim
@@ -1,3 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'raml') == -1
+
set ts=2 sts=2 sw=2 et
+
endif
diff --git a/ftplugin/rst.vim b/ftplugin/rst.vim
index 5fc87d21..14983362 100644
--- a/ftplugin/rst.vim
+++ b/ftplugin/rst.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rst') == -1
+
" reStructuredText filetype plugin file
" Language: reStructuredText documentation format
" Maintainer: Marshall Ward <marshall.ward@gmail.com>
@@ -46,4 +47,5 @@ endif
let &cpo = s:cpo_save
unlet s:cpo_save
+
endif
diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim
index 81d9ad99..9abce9f9 100644
--- a/ftplugin/ruby.vim
+++ b/ftplugin/ruby.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
+
" Vim filetype plugin
" Language: Ruby
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
@@ -433,4 +434,5 @@ endfunction
"
" vim: nowrap sw=2 sts=2 ts=8:
+
endif
diff --git a/ftplugin/rust.vim b/ftplugin/rust.vim
index 3f8d9170..d8de0f1a 100644
--- a/ftplugin/rust.vim
+++ b/ftplugin/rust.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
+
" Language: Rust
" Description: Vim ftplugin for Rust
" Maintainer: Chris Morgan <me@chrismorgan.info>
@@ -200,4 +201,5 @@ unlet s:save_cpo
" vint: +ProhibitAbbreviationOption
" vim: set et sw=4 sts=4 ts=8:
+
endif
diff --git a/ftplugin/rust/tagbar.vim b/ftplugin/rust/tagbar.vim
index af01a818..9533a682 100644
--- a/ftplugin/rust/tagbar.vim
+++ b/ftplugin/rust/tagbar.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
+
"
" Support for Tagbar -- https://github.com/majutsushi/tagbar
"
@@ -39,4 +40,5 @@ unlet s:save_cpo
" vim: set et sw=4 sts=4 ts=8:
+
endif
diff --git a/ftplugin/scala.vim b/ftplugin/scala.vim
index 199aed94..dafda59f 100644
--- a/ftplugin/scala.vim
+++ b/ftplugin/scala.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
+
" Vim filetype plugin
" Language: Scala
" Maintainer: Derek Wyatt
@@ -175,4 +176,5 @@ noremap <script> <buffer> <silent> ]] :call <SID>NextSection(0)<cr>
noremap <script> <buffer> <silent> [[ :call <SID>NextSection(1)<cr>
" vim:set sw=2 sts=2 ts=8 et:
+
endif
diff --git a/ftplugin/scala.xpt.vim b/ftplugin/scala.xpt.vim
index 2660d4c6..1bab04f0 100644
--- a/ftplugin/scala.xpt.vim
+++ b/ftplugin/scala.xpt.vim
@@ -1,5 +1,6 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
+
XPTemplate priority=lang
XPTvar $BRif ' '
@@ -28,4 +29,5 @@ trait `derived^`trait^Component extends `trait^Component {
`body2^
}
}
+
endif
diff --git a/ftplugin/scala/tagbar.vim b/ftplugin/scala/tagbar.vim
index 5728e98a..e2f416d9 100644
--- a/ftplugin/scala/tagbar.vim
+++ b/ftplugin/scala/tagbar.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scala') == -1
+
"
" Support for Tagbar -- https://github.com/majutsushi/tagbar
"
@@ -30,4 +31,5 @@ let g:tagbar_type_scala = {
if get(g:, 'scala_use_builtin_tagbar_defs', 1)
let g:tagbar_type_scala.deffile = expand('<sfile>:p:h:h:h') . '/ctags/scala.ctags'
endif
+
endif
diff --git a/ftplugin/scss.vim b/ftplugin/scss.vim
index ebc6889a..e134f298 100644
--- a/ftplugin/scss.vim
+++ b/ftplugin/scss.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'scss') == -1
+
if exists('b:did_indent') && b:did_indent
" be kind. allow users to override this. Does it work?
finish
@@ -12,4 +13,5 @@ setlocal formatoptions+=ro
" SCSS comments are either /* */ or //
setlocal comments=s1:/*,mb:*,ex:*/,://
+
endif
diff --git a/ftplugin/sexplib.vim b/ftplugin/sexplib.vim
index 23b689db..5726deee 100644
--- a/ftplugin/sexplib.vim
+++ b/ftplugin/sexplib.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
+
" Language: Sexplib
" Maintainer: Markus Mottl <markus.mottl@gmail.com>
" URL: http://www.ocaml.info/vim/ftplugin/sexplib.vim
@@ -13,4 +14,5 @@ let b:did_ftplugin=1
" Comment string
setl commentstring=;\ %s
setl comments=:;
+
endif
diff --git a/ftplugin/slim.vim b/ftplugin/slim.vim
index ff430c50..9051e454 100644
--- a/ftplugin/slim.vim
+++ b/ftplugin/slim.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'slim') == -1
+
if exists("b:did_ftplugin")
finish
endif
@@ -24,4 +25,5 @@ let b:undo_ftplugin = "setl isk<" . " | " . s:undo_ftplugin
setlocal iskeyword+=-
setlocal commentstring=/%s
+
endif
diff --git a/ftplugin/smt2.vim b/ftplugin/smt2.vim
index 9d4a81c0..b9d01baf 100644
--- a/ftplugin/smt2.vim
+++ b/ftplugin/smt2.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'smt2') == -1
+
setlocal iskeyword+=-,:,#,',$
" If no command for invoking a solver is specified in ~/.vimrc, test if either
@@ -24,4 +25,5 @@ nnoremap <silent> <buffer> <localleader>v :call smt2#PrintSolverVersion()<cr>
" Comment String
setlocal commentstring=;%s
+
endif
diff --git a/ftplugin/solidity.vim b/ftplugin/solidity.vim
index 8bbbcd2c..decf041d 100644
--- a/ftplugin/solidity.vim
+++ b/ftplugin/solidity.vim
@@ -1,3 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'solidity') == -1
+
setlocal commentstring=//\ %s
+
endif
diff --git a/ftplugin/stylus.vim b/ftplugin/stylus.vim
index 0cc4d194..66ed8c6a 100644
--- a/ftplugin/stylus.vim
+++ b/ftplugin/stylus.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'stylus') == -1
+
" Vim filetype plugin
" Language: Stylus
" Maintainer: Marc Harter
@@ -62,4 +63,5 @@ let &cpo = s:save_cpo
command! Stylus !clear; cat % | stylus
" vim:set sw=2:
+
endif
diff --git a/ftplugin/swift.vim b/ftplugin/swift.vim
index 6e731d39..78394bc5 100644
--- a/ftplugin/swift.vim
+++ b/ftplugin/swift.vim
@@ -1,6 +1,8 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'swift') == -1
+
setlocal commentstring=//\ %s
" @-@ adds the literal @ to iskeyword for @IBAction and similar
setlocal iskeyword+=@-@,#
setlocal completefunc=syntaxcomplete#Complete
+
endif
diff --git a/ftplugin/tablegen.vim b/ftplugin/tablegen.vim
index b5c9f471..9e895afc 100644
--- a/ftplugin/tablegen.vim
+++ b/ftplugin/tablegen.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1
+
" Vim filetype plugin file
" Language: LLVM TableGen
" Maintainer: The LLVM team, http://llvm.org/
@@ -11,4 +12,5 @@ let b:did_ftplugin = 1
setlocal matchpairs+=<:>
setlocal softtabstop=2 shiftwidth=2
setlocal expandtab
+
endif
diff --git a/ftplugin/terraform.vim b/ftplugin/terraform.vim
index 83591f04..4426a890 100644
--- a/ftplugin/terraform.vim
+++ b/ftplugin/terraform.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'terraform') == -1
+
" terraform.vim - basic vim/terraform integration
" Maintainer: HashiVim <https://github.com/hashivim>
@@ -60,4 +61,5 @@ endif
let &cpoptions = s:cpo_save
unlet s:cpo_save
+
endif
diff --git a/ftplugin/tex_LatexBox.vim b/ftplugin/tex_LatexBox.vim
index 14df8f94..f2a2ea6e 100644
--- a/ftplugin/tex_LatexBox.vim
+++ b/ftplugin/tex_LatexBox.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
+
" LaTeX Box plugin for Vim
" Maintainer: David Munger
" Email: mungerd@gmail.com
@@ -32,4 +33,5 @@ if !exists('b:LatexBox_loaded')
endif
" vim:fdm=marker:ff=unix:noet:ts=4:sw=4
+
endif
diff --git a/ftplugin/textile.vim b/ftplugin/textile.vim
index 681c04db..829e80d0 100644
--- a/ftplugin/textile.vim
+++ b/ftplugin/textile.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'textile') == -1
+
" textile.vim
"
" Tim Harper (tim.theenchanter.com)
@@ -58,4 +59,5 @@ function! TextileRenderBufferToTab()
set syntax=html
endfunction
+
endif
diff --git a/ftplugin/tmux.vim b/ftplugin/tmux.vim
index b25ab68f..b9cbc253 100644
--- a/ftplugin/tmux.vim
+++ b/ftplugin/tmux.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'tmux') == -1
+
" Vim filetype plugin file
" Language: tmux(1) configuration file
" URL: https://github.com/ericpruitt/tmux.vim/
@@ -11,4 +12,5 @@ endif
let b:did_ftplugin = 1
setlocal commentstring=#\ %s
+
endif
diff --git a/ftplugin/toml.vim b/ftplugin/toml.vim
index 77a02d05..ad884308 100644
--- a/ftplugin/toml.vim
+++ b/ftplugin/toml.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'toml') == -1
+
" File: ftplugin/toml.vim
" Author: Kevin Ballard <kevin@sb.org>
" Description: FileType Plugin for Toml
@@ -20,4 +21,5 @@ let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sw=4 ts=4:
+
endif
diff --git a/ftplugin/tsx.vim b/ftplugin/tsx.vim
index b6a6e6a9..8a6bb9b5 100644
--- a/ftplugin/tsx.vim
+++ b/ftplugin/tsx.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
+
" modified from mxw/vim-jsx from html.vim
if exists("loaded_matchit") && !exists('b:tsx_match_words')
let b:match_ignorecase = 0
@@ -10,4 +11,5 @@ if exists("loaded_matchit") && !exists('b:tsx_match_words')
endif
set suffixesadd+=.tsx
+
endif
diff --git a/ftplugin/tt2html.vim b/ftplugin/tt2html.vim
index bd79624b..858dc13b 100644
--- a/ftplugin/tt2html.vim
+++ b/ftplugin/tt2html.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Language: TT2 embedded with HTML
" Maintainer: vim-perl <vim-perl@googlegroups.com>
" Homepage: http://github.com/vim-perl/vim-perl
@@ -12,4 +13,5 @@ endif
" Just use the HTML plugin for now.
runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim
+
endif
diff --git a/ftplugin/twig.vim b/ftplugin/twig.vim
index 20f31ec2..9284189f 100644
--- a/ftplugin/twig.vim
+++ b/ftplugin/twig.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'twig') == -1
+
" Vim filetype plugin
" Language: Twig
" Maintainer: F. Gabriel Gosselin <gabrielNOSPAM@evidens.ca>
@@ -39,4 +40,5 @@ else
endif
" vim:set sw=2:
+
endif
diff --git a/ftplugin/typescript.vim b/ftplugin/typescript.vim
index 065ebe18..60992bee 100644
--- a/ftplugin/typescript.vim
+++ b/ftplugin/typescript.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'typescript') == -1
+
" set Vi-incompatible, compiler and commentstring
if exists("b:did_ftplugin")
@@ -81,4 +82,5 @@ let g:tagbar_type_typescript = {
if get(g:, 'typescript_use_builtin_tagbar_defs', 1)
let g:tagbar_type_typescript.deffile = expand('<sfile>:p:h:h') . '/ctags/typescript.ctags'
endif
+
endif
diff --git a/ftplugin/vifm-cmdedit.vim b/ftplugin/vifm-cmdedit.vim
index 2b3c926b..42487b34 100644
--- a/ftplugin/vifm-cmdedit.vim
+++ b/ftplugin/vifm-cmdedit.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vifm') == -1
+
" vifm command-line editing buffer filetype plugin
" Maintainer: xaizek <xaizek@posteo.net>
" Last Change: August 18, 2013
@@ -18,4 +19,5 @@ set syntax=vifm
call vifm#edit#Init()
" vim: set tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab cinoptions-=(0 :
+
endif
diff --git a/ftplugin/vifm-edit.vim b/ftplugin/vifm-edit.vim
index 450cfc0d..e9362bf7 100644
--- a/ftplugin/vifm-edit.vim
+++ b/ftplugin/vifm-edit.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vifm') == -1
+
" vifm command-line editing buffer filetype plugin
" Maintainer: xaizek <xaizek@posteo.net>
" Last Change: August 18, 2013
@@ -12,4 +13,5 @@ let b:did_ftplugin = 1
call vifm#edit#Init()
" vim: set tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab cinoptions-=(0 :
+
endif
diff --git a/ftplugin/vifm-rename.vim b/ftplugin/vifm-rename.vim
index e806e212..02f6b3c5 100644
--- a/ftplugin/vifm-rename.vim
+++ b/ftplugin/vifm-rename.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vifm') == -1
+
" Filetype plugin for vifm rename buffer
" Maintainer: xaizek <xaizek@posteo.net>
" Last Change: October 05, 2014
@@ -57,4 +58,5 @@ setlocal cursorbind
setlocal scrollbind
" vim: set tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab cinoptions-=(0 :
+
endif
diff --git a/ftplugin/vifm.vim b/ftplugin/vifm.vim
index 251d19fa..abae28b3 100644
--- a/ftplugin/vifm.vim
+++ b/ftplugin/vifm.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vifm') == -1
+
" vifmrc filetype plugin
" Maintainer: xaizek <xaizek@posteo.net>
" Last Change: July 08, 2016
@@ -45,4 +46,5 @@ let &cpo = s:cpo_save
unlet s:cpo_save
" vim: set tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab cinoptions-=(0 :
+
endif
diff --git a/ftplugin/vue.vim b/ftplugin/vue.vim
index f7727131..fb8739c7 100644
--- a/ftplugin/vue.vim
+++ b/ftplugin/vue.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vue') == -1
+
" Vim filetype plugin
" Language: Vue.js
" Maintainer: Eduardo San Martin Morote
@@ -18,4 +19,5 @@ if !exists('g:no_plugin_maps') && !exists('g:no_vue_maps')
nnoremap <silent> <buffer> [] :call search('^</\(template\<Bar>script\<Bar>style\)', 'bW')<CR>
nnoremap <silent> <buffer> ][ :call search('^</\(template\<Bar>script\<Bar>style\)', 'W')<CR>
endif
+
endif
diff --git a/ftplugin/xs.vim b/ftplugin/xs.vim
index a13cb85d..07256651 100644
--- a/ftplugin/xs.vim
+++ b/ftplugin/xs.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'perl') == -1
+
" Vim filetype plugin file
" Language: XS (Perl extension interface language)
" Maintainer: vim-perl <vim-perl@googlegroups.com>
@@ -13,4 +14,5 @@ endif
" Just use the C plugin for now.
runtime! ftplugin/c.vim ftplugin/c_*.vim ftplugin/c/*.vim
+
endif
diff --git a/ftplugin/zig.vim b/ftplugin/zig.vim
index e7b0712d..72983ceb 100644
--- a/ftplugin/zig.vim
+++ b/ftplugin/zig.vim
@@ -1,4 +1,5 @@
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'zig') == -1
+
" Only do this when not done yet for this buffer
if (exists("b:did_ftplugin"))
finish
@@ -13,4 +14,5 @@ set shiftwidth=4
setlocal suffixesadd=.zig
setlocal commentstring=//\ %s
setlocal makeprg=zig\ build
+
endif