From 4f3df59be709bf0d5c5c67dc804fde49abdc2700 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 12 Sep 2019 14:33:21 +0200 Subject: Improve guard so it works for no eof new line --- ftplugin/Dockerfile.vim | 2 ++ ftplugin/ansible.vim | 2 ++ ftplugin/ansible_hosts.vim | 2 ++ ftplugin/blade.vim | 2 ++ ftplugin/caddyfile.vim | 2 ++ ftplugin/clojure.vim | 2 ++ ftplugin/coffee.vim | 2 ++ ftplugin/cryptol/folding.vim | 2 ++ ftplugin/crystal.vim | 2 ++ ftplugin/csv.vim | 2 ++ ftplugin/cucumber.vim | 2 ++ ftplugin/dart.vim | 2 ++ ftplugin/dhall.vim | 2 ++ ftplugin/docker-compose.vim | 2 ++ ftplugin/eelixir.vim | 2 ++ ftplugin/elixir.vim | 2 ++ ftplugin/elm.vim | 2 ++ ftplugin/elm/tagbar.vim | 2 ++ ftplugin/ember-script.vim | 2 ++ ftplugin/emblem.vim | 2 ++ ftplugin/eruby.vim | 2 ++ ftplugin/fish.vim | 2 ++ ftplugin/git.vim | 2 ++ ftplugin/gitcommit.vim | 2 ++ ftplugin/gitconfig.vim | 2 ++ ftplugin/gitrebase.vim | 2 ++ ftplugin/gitsendemail.vim | 2 ++ ftplugin/graphql.vim | 2 ++ ftplugin/haml.vim | 2 ++ ftplugin/hcl.vim | 2 ++ ftplugin/hive.vim | 2 ++ ftplugin/html.vim | 2 ++ ftplugin/i3config.vim | 2 ++ ftplugin/idris.vim | 2 ++ ftplugin/ion.vim | 2 ++ ftplugin/jbuild.vim | 2 ++ ftplugin/json.vim | 2 ++ ftplugin/julia.vim | 2 ++ ftplugin/juliadoc.vim | 2 ++ ftplugin/kotlin.vim | 2 ++ ftplugin/latex-box/common.vim | 2 ++ ftplugin/latex-box/complete.vim | 2 ++ ftplugin/latex-box/findmain.vim | 2 ++ ftplugin/latex-box/folding.vim | 2 ++ ftplugin/latex-box/latexmk.vim | 2 ++ ftplugin/latex-box/mappings.vim | 2 ++ ftplugin/latex-box/motion.vim | 2 ++ ftplugin/latextoc.vim | 2 ++ ftplugin/less.vim | 2 ++ ftplugin/lilypond.vim | 2 ++ ftplugin/litcoffee.vim | 2 ++ ftplugin/llvm.vim | 2 ++ ftplugin/ls.vim | 2 ++ ftplugin/mail_vifm.vim | 2 ++ ftplugin/mako.vim | 2 ++ ftplugin/meson.vim | 2 ++ ftplugin/mma.vim | 2 ++ ftplugin/moon.vim | 2 ++ ftplugin/mustache.vim | 2 ++ ftplugin/nginx.vim | 2 ++ ftplugin/nix.vim | 2 ++ ftplugin/oasis.vim | 2 ++ ftplugin/objc.vim | 2 ++ ftplugin/ocaml.vim | 2 ++ ftplugin/ocamlbuild_tags.vim | 2 ++ ftplugin/omake.vim | 2 ++ ftplugin/opencl.vim | 2 ++ ftplugin/perl.vim | 2 ++ ftplugin/plantuml.vim | 2 ++ ftplugin/pony.vim | 2 ++ ftplugin/ps1.vim | 2 ++ ftplugin/ps1xml.vim | 2 ++ ftplugin/pug.vim | 2 ++ ftplugin/puppet.vim | 2 ++ ftplugin/puppet_tagbar.vim | 2 ++ ftplugin/purescript.vim | 2 ++ ftplugin/qml.vim | 2 ++ ftplugin/racket.vim | 2 ++ ftplugin/raml.vim | 2 ++ ftplugin/rst.vim | 2 ++ ftplugin/ruby.vim | 2 ++ ftplugin/rust.vim | 2 ++ ftplugin/rust/tagbar.vim | 2 ++ ftplugin/scala.vim | 2 ++ ftplugin/scala.xpt.vim | 2 ++ ftplugin/scala/tagbar.vim | 2 ++ ftplugin/scss.vim | 2 ++ ftplugin/sexplib.vim | 2 ++ ftplugin/slim.vim | 2 ++ ftplugin/smt2.vim | 2 ++ ftplugin/solidity.vim | 2 ++ ftplugin/stylus.vim | 2 ++ ftplugin/swift.vim | 2 ++ ftplugin/tablegen.vim | 2 ++ ftplugin/terraform.vim | 2 ++ ftplugin/tex_LatexBox.vim | 2 ++ ftplugin/textile.vim | 2 ++ ftplugin/tmux.vim | 2 ++ ftplugin/toml.vim | 2 ++ ftplugin/tsx.vim | 2 ++ ftplugin/tt2html.vim | 2 ++ ftplugin/twig.vim | 2 ++ ftplugin/typescript.vim | 2 ++ ftplugin/vifm-cmdedit.vim | 2 ++ ftplugin/vifm-edit.vim | 2 ++ ftplugin/vifm-rename.vim | 2 ++ ftplugin/vifm.vim | 2 ++ ftplugin/vue.vim | 2 ++ ftplugin/xs.vim | 2 ++ ftplugin/zig.vim | 2 ++ 110 files changed, 220 insertions(+) (limited to 'ftplugin') 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 workdir =DockerfileReplaceInstruction("workdir" inoreabbr arg =DockerfileReplaceInstruction("arg", "ARG") inoreabbr onbuild =DockerfileReplaceInstruction("onbuild", "ONBUILD") inoreabbr stopsignal =DockerfileReplaceInstruction("stopsignal", "STOPSIGNAL") + 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') && ('®expengine' == 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 @@ -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 @@ -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 @@ -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 " URL: http://github.com/kchmck/vim-coffee-script @@ -404,4 +405,5 @@ command! -buffer -range=% -bar -nargs=* CoffeeRun \ call s:CoffeeRun(, , ) command! -buffer -range=% -bang -bar -nargs=* CoffeeLint \ call s:CoffeeLint(, , , ) + 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 " 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 @@ -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 [] ':silent keeppatterns ?'.b:block_end .'> " 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 " 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 @@ -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 @@ -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 @@ -65,4 +66,5 @@ function! s:gitdiffcached(bang,gitdir,...) nnoremap q :q 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 @@ -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 @@ -44,4 +45,5 @@ endif nnoremap K col('.') < 7 && expand('cword>') =~ '\X' && getline('.') =~ '^\w\+\s\+\x\+\>' ? 'wK' : 'K' let b:undo_ftplugin = b:undo_ftplugin . "|nunmap 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 " 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 @@ -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 @@ -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 " 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 " 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= + 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 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 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 @@ -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 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 [[ :call LatexBoxNextSection(0,1,1) " }}} " 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 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 @@ -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 @@ -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(, , ) " Run some LiveScript. command! -range=% -bar LiveScriptRun ,: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 " Last Change: January 02, 2018 @@ -63,4 +64,5 @@ endfunction nnoremap a :call AddMailAttachments() " 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 @@ -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 @@ -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 @@ -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 " Based On: CoffeeScript by Mick Koch @@ -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 @@ -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 " Mike Leary @@ -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 @@ -88,4 +89,5 @@ let b:match_words = '\:\:\' " 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 @@ -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 @@ -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 " URL: http://github.com/wlangstroth/vim-racket @@ -58,4 +59,5 @@ nnoremap :!racket -t % "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 @@ -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 @@ -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 @@ -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