7.1 KiB
vim-polyglot
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 50+ times faster than 50+ 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
- Install pathogen, Vundle or NeoBundle package manager.
- Use this repository as submodule or package.
Optionally download one of the releases and unpack it directly under ~/.vim
directory.
Language packs
- arduino (syntax, indent, ftdetect)
- blade (syntax, indent, ftdetect)
- c++11 (syntax)
- c/c++ (syntax)
- clojure (syntax, indent, autoload, ftplugin, ftdetect)
- coffee-script (syntax, indent, compiler, autoload, ftplugin, ftdetect)
- cjsx (ftdetect, syntax, ftplugin)
- css (syntax)
- cucumber (syntax, indent, compiler, ftplugin, ftdetect)
- dockerfile (syntax, ftdetect)
- elixir (syntax, indent, compiler, ftplugin, ftdetect)
- emberscript (syntax, indent, ftplugin, ftdetect)
- emblem (syntax, indent, ftplugin, ftdetect)
- erlang (syntax, indent)
- git (syntax, indent, ftplugin, ftdetect)
- glsl (syntax, indent, ftdetect)
- go (syntax, indent, ftdetect)
- groovy (syntax)
- haml (syntax, indent, compiler, ftplugin, ftdetect)
- handlebars (syntax, ftplugin, ftdetect)
- haskell ()
- haxe (syntax, ftdetect)
- html5 (syntax, indent, autoload, ftplugin)
- jade (syntax, indent, ftplugin, ftdetect)
- jasmine (syntax, ftdetect)
- javascript (syntax, indent)
- julia (syntax, indent, ftdetect)
- json (syntax, indent, ftdetect)
- jst (syntax, indent, ftdetect)
- jsx (after)
- kotlin (syntax, indent, ftdetect)
- latex (syntax, indent, ftplugin)
- less (syntax, indent, ftplugin, ftdetect)
- liquid (syntax, indent, ftplugin, ftdetect)
- markdown (syntax, ftplugin, ftdetect)
- nginx (syntax, ftdetect)
- ocaml (syntax, indent, ftplugin)
- octave (syntax)
- opencl (syntax, indent, ftplugin, ftdetect)
- perl (syntax, indent, ftplugin, ftdetect)
- php (syntax)
- puppet (syntax, indent, ftplugin, ftdetect)
- powershell (syntax, indent, ftplugin, ftdetect)
- protobuf (syntax, ftdetect)
- python (syntax, indent)
- qml (syntax, indent, ftplugin, ftdetect)
- r-lang (syntax, ftplugin)
- ragel (syntax)
- rspec (syntax, ftdetect)
- ruby (syntax, indent, compiler, autoload, ftplugin, ftdetect)
- rust (syntax, indent, compiler, autoload, ftplugin, ftdetect)
- sbt (syntax, ftdetect)
- scala (syntax, indent, compiler, ftplugin, ftdetect)
- slim (syntax, indent, ftdetect)
- solidity (syntax, indent, ftdetect)
- stylus (syntax, indent, ftplugin, ftdetect)
- systemd (syntax, ftdetect)
- swift (syntax, indent, ftdetect)
- textile (syntax, ftplugin, ftdetect)
- tmux (syntax, ftdetect)
- tomdoc (syntax)
- typescript (syntax, indent, compiler, ftplugin, ftdetect)
- vbnet (syntax)
- thrift (syntax, ftdetect)
- toml (syntax, ftplugin, ftdetect)
- twig (syntax, ftplugin, ftdetect)
- xls (syntax)
- yard (syntax)
- vala (syntax, indent, ftdetect)
- vm (syntax, indent, ftdetect)
Disabling a language pack
Individual language packs can be disabled by setting g:polyglot_disabled
.
" ~/.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.
Updating
You can either wait for new patch release with updates or run the ./build
script by yourself.
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.