Go to file
2017-06-12 14:20:41 +02:00
after Update 2017-05-17 11:07:28 +02:00
autoload Add racket support, #159 2017-05-17 11:46:19 +02:00
compiler Update 2017-05-17 11:07:28 +02:00
extras Update 2017-02-02 21:16:29 +01:00
ftdetect Replace instances of "joshglendenning" with "isobit" following GitHub username change (#216) 2017-06-12 14:20:41 +02:00
ftplugin Add racket support, #159 2017-05-17 11:46:19 +02:00
indent Add racket support, #159 2017-05-17 11:46:19 +02:00
spec Allow for reusing vim server locally (testing) 2013-12-27 16:44:34 +01:00
syntax Add racket support, #159 2017-05-17 11:46:19 +02:00
.gitattributes Do not ignore build script (can be useful for auto-updating) 2015-07-18 21:30:45 +02:00
.gitignore Add first version of build script 2013-09-12 15:50:45 +02:00
.travis.yml Try sudo-less build on travis 2015-12-06 12:12:02 +01:00
build Replace instances of "joshglendenning" with "isobit" following GitHub username change (#216) 2017-06-12 14:20:41 +02:00
config.vim Fix elixir not opening with :Explore, closes #172 2017-02-02 22:11:43 +01:00
Gemfile Move specs location one level down 2013-09-14 20:20:59 +02:00
Gemfile.lock Move specs location one level down 2013-09-14 20:20:59 +02:00
plugin_guard.vim.template Allow disabling individual language packs 2015-07-18 23:04:34 +02:00
README.md Replace instances of "joshglendenning" with "isobit" following GitHub username change (#216) 2017-06-12 14:20:41 +02:00

vim-polyglot Build Status Maintenance

A collection of language packs for Vim.

One to rule them all, one to find them, one to bring them all and in the darkness bind them.

  • It won't affect your startup time, as scripts are loaded only on demand*.
  • It installs and updates 100+ times faster than 100+ packages it consist of.
  • Solid syntax and indentation support. Only the best language packs.
  • All unnecessary files are ignored (like enormous documentation from php support).
  • No support for esoteric languages, only most popular ones (modern too, like slim).
  • Each build is tested by automated vimrunner script on CI. See spec directory.

*To be completely honest, concatenated ftdetect script takes around 3ms to load.

Installation

  1. Install Pathogen, Vundle, NeoBundle, or Plug package manager for Vim.
  2. Use this repository as submodule or package.

Optionally download one of the releases and unpack it directly under ~/.vim directory.

You can also use Vim 8 built-in package manager:

mkdir -p ~/.vim/pack/default/start
git clone https://github.com/sheerun/vim-polyglot ~/.vim/pack/default/start/vim-polyglot

NOTE: Not all features of listed language packs are available. We strip them from functionality slowing vim startup in general (for example we ignore plugins folder that is loaded regardless of file type, use ftplugin instead).

If you need full functionality of any plugin, please use it directly with your plugin manager.

Language packs

  • ansible (syntax, indent, ftplugin)
  • apiblueprint (syntax)
  • applescript (syntax)
  • arduino (syntax, indent)
  • asciidoc (syntax)
  • blade (syntax, indent, ftplugin)
  • c++11 (syntax)
  • c/c++ (syntax)
  • caddyfile (syntax, indent, ftplugin)
  • cjsx (syntax, ftplugin)
  • clojure (syntax, indent, autoload, ftplugin)
  • coffee-script (syntax, indent, compiler, autoload, ftplugin)
  • cql (syntax)
  • cryptol (syntax, compiler, ftplugin)
  • crystal (syntax, indent, autoload, ftplugin)
  • css (syntax)
  • cucumber (syntax, indent, compiler, ftplugin)
  • dart (syntax, indent, autoload, ftplugin)
  • dockerfile (syntax)
  • elixir (syntax, indent, compiler, autoload, ftplugin)
  • elm (syntax, indent, autoload, ftplugin)
  • emberscript (syntax, indent, ftplugin)
  • emblem (syntax, indent, ftplugin)
  • erlang (syntax, indent)
  • fish (syntax, indent, compiler, autoload, ftplugin)
  • git (syntax, indent, ftplugin)
  • glsl (syntax, indent)
  • gnuplot (syntax)
  • go (syntax, compiler, indent)
  • graphql (syntax, ftplugin)
  • groovy (syntax)
  • haml (syntax, indent, compiler, ftplugin)
  • handlebars (syntax, indent, ftplugin)
  • haskell (syntax, indent, ftplugin)
  • haxe (syntax)
  • html5 (syntax, indent, autoload, ftplugin)
  • i3 (syntax, ftplugin)
  • jasmine (syntax)
  • javascript (syntax, indent, compiler, ftplugin, extras)
  • json (syntax, indent, ftplugin)
  • jst (syntax, indent)
  • jsx (after)
  • julia (syntax, indent)
  • kotlin (syntax, indent)
  • latex (syntax, indent, ftplugin)
  • less (syntax, indent, ftplugin)
  • liquid (syntax, indent, ftplugin)
  • livescript (syntax, indent, compiler, ftplugin)
  • lua (syntax, indent)
  • mako (syntax, indent, ftplugin)
  • markdown (syntax)
  • mathematica (syntax, ftplugin)
  • nginx (syntax, indent, ftplugin)
  • nim (syntax, compiler, indent)
  • nix (syntax, ftplugin)
  • objc (ftplugin, syntax, indent)
  • ocaml (syntax, indent, ftplugin)
  • octave (syntax)
  • opencl (syntax, indent, ftplugin)
  • perl (syntax, indent, ftplugin)
  • pgsql (syntax)
  • php (syntax)
  • plantuml (syntax, indent, ftplugin)
  • powershell (syntax, indent, ftplugin)
  • protobuf (syntax, indent)
  • pug (syntax, indent, ftplugin)
  • puppet (syntax, indent, ftplugin)
  • purescript (syntax, indent, ftplugin)
  • python-compiler (compiler, autoload)
  • python (syntax, indent)
  • qml (syntax, indent, ftplugin)
  • r-lang (syntax, ftplugin)
  • racket (syntax, indent, autoload, ftplugin)
  • ragel (syntax)
  • raml (syntax, ftplugin)
  • rspec (syntax)
  • ruby (syntax, indent, compiler, autoload, ftplugin)
  • rust (syntax, indent, compiler, autoload, ftplugin)
  • sbt (syntax)
  • scala (syntax, indent, compiler, ftplugin)
  • scss (syntax, autoload, ftplugin)
  • slim (syntax, indent, ftplugin)
  • solidity (syntax, indent)
  • stylus (syntax, indent, ftplugin)
  • swift (syntax, indent, ftplugin)
  • sxhkd (syntax)
  • systemd (syntax)
  • terraform (syntax, indent, ftplugin)
  • textile (syntax, ftplugin)
  • thrift (syntax)
  • tmux (syntax, ftplugin)
  • tomdoc (syntax)
  • toml (syntax, ftplugin)
  • twig (syntax, indent, ftplugin)
  • typescript (syntax, indent, compiler, ftplugin)
  • vala (syntax, indent)
  • vbnet (syntax)
  • vcl (syntax)
  • vm (syntax, indent)
  • vue (syntax, indent, ftplugin)
  • xls (syntax)
  • yaml (syntax, ftplugin)
  • yard (syntax)

Updating

You can either wait for new patch release with updates or run the ./build script by yourself.

Troubleshooting

Please make sure you have syntax on in your .vimrc, otherwise syntax files are not loaded at all.

Individual language packs can be disabled by setting g:polyglot_disabled as follows:

" ~/.vimrc
let g:polyglot_disabled = ['css']

Note that disabiling languages won't make in general your vim startup any faster / slower (only for specific file type). Vim-polyglot is selection of language plugins that are loaded only on demand.

Contributing

Language packs are periodically updated using automated build script.

Feel free to add your language, and send pull-request.

License

See linked repositories for detailed license information.