2016-05-03 13:19:31 +02:00
# vim-polyglot [![Build Status][travis-img-url]][travis-url] [![Maintenance](https://img.shields.io/maintenance/yes/2016.svg?maxAge=2592000)]()
2013-09-14 20:30:57 +02:00
2016-04-24 17:08:29 +02:00
[travis-img-url]: https://travis-ci.org/sheerun/vim-polyglot.svg
2013-09-14 20:43:34 +02:00
[travis-url]: https://travis-ci.org/sheerun/vim-polyglot
2013-09-13 14:06:28 +02:00
2013-09-13 14:08:50 +02:00
A collection of language packs for Vim.
2013-09-13 14:06:28 +02:00
2014-05-14 12:06:27 +02:00
> One to rule them all, one to find them, one to bring them all and in the darkness bind them.
2013-09-13 15:01:21 +02:00
2015-06-11 17:02:51 +02:00
- It **won't affect your startup time** , as scripts are loaded only on demand\*.
2015-12-06 15:35:27 +01:00
- It **installs and updates 70+ times faster** than 70+ packages it consist of.
2014-04-15 01:33:45 +02:00
- 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` ).
2014-04-15 02:16:31 +02:00
- Each build is tested by automated vimrunner script on CI. See `spec` directory.
2013-09-13 14:06:28 +02:00
2013-09-16 17:02:09 +02:00
\*To be completely honest, concatenated `ftdetect` script takes around `3ms` to load.
2013-09-13 14:06:28 +02:00
## Installation
2015-11-24 12:08:46 -02:00
1. Install [Pathogen ](https://github.com/tpope/vim-pathogen ), [Vundle ](https://github.com/VundleVim/Vundle.vim ), [NeoBundle ](https://github.com/Shougo/neobundle.vim ), or [Plug ](https://github.com/junegunn/vim-plug ) package manager for Vim.
2013-09-13 14:06:28 +02:00
2. Use this repository as submodule or package.
2013-09-13 14:24:18 +02:00
Optionally download one of the [releases ](https://github.com/sheerun/vim-polyglot/releases ) and unpack it directly under `~/.vim` directory.
2013-09-13 14:06:28 +02:00
## Language packs
2015-12-17 10:48:07 +01:00
- [ansible ](https://github.com/pearofducks/ansible-vim ) (syntax, indent, ftplugin, ftdetect)
2014-03-16 14:52:12 +01:00
- [arduino ](https://github.com/sudar/vim-arduino-syntax ) (syntax, indent, ftdetect)
2016-01-22 09:08:00 +01:00
- [blade ](https://github.com/jwalton512/vim-blade ) (syntax, indent, ftplugin, ftdetect)
2013-09-13 22:12:52 +02:00
- [c++11 ](https://github.com/octol/vim-cpp-enhanced-highlight ) (syntax)
2015-12-06 11:31:38 +01:00
- [c/c++ ](https://github.com/vim-jp/vim-cpp ) (syntax)
2015-10-24 13:06:19 +03:00
- [cjsx ](https://github.com/mtscout6/vim-cjsx ) (ftdetect, syntax, ftplugin)
2013-09-13 22:12:52 +02:00
- [clojure ](https://github.com/guns/vim-clojure-static ) (syntax, indent, autoload, ftplugin, ftdetect)
- [coffee-script ](https://github.com/kchmck/vim-coffee-script ) (syntax, indent, compiler, autoload, ftplugin, ftdetect)
2016-05-02 10:44:59 +02:00
- [cryptol ](https://github.com/victoredwardocallaghan/cryptol.vim ) (syntax, compiler, ftplugin, ftdetect)
2016-05-02 10:49:45 +02:00
- [crystal ](https://github.com/rhysd/vim-crystal ) (syntax, indent, autoload, ftplugin, ftdetect)
2015-12-28 14:58:35 +01:00
- [cql ](https://github.com/elubow/cql-vim ) (syntax, ftdetect)
2014-08-13 01:07:14 +02:00
- [css ](https://github.com/JulesWang/css.vim ) (syntax)
2013-09-13 22:12:52 +02:00
- [cucumber ](https://github.com/tpope/vim-cucumber ) (syntax, indent, compiler, ftplugin, ftdetect)
2015-12-17 10:44:58 +01:00
- [dart ](https://github.com/dart-lang/dart-vim-plugin ) (syntax, indent, autoload, ftplugin, ftdetect)
2013-09-26 12:48:01 +02:00
- [dockerfile ](https://github.com/honza/dockerfile.vim ) (syntax, ftdetect)
2013-09-13 22:12:52 +02:00
- [elixir ](https://github.com/elixir-lang/vim-elixir ) (syntax, indent, compiler, ftplugin, ftdetect)
2015-12-31 18:27:37 +01:00
- [elm ](https://github.com/lambdatoast/elm.vim ) (syntax, indent, autoload, ftplugin, ftdetect)
2016-07-05 03:28:08 -05:00
- [emberscript ](https://github.com/yalesov/vim-ember-script ) (syntax, indent, ftplugin, ftdetect)
2016-07-05 02:55:06 -05:00
- [emblem ](https://github.com/yalesov/vim-emblem ) (syntax, indent, ftplugin, ftdetect)
2015-10-18 16:13:43 +02:00
- [erlang ](https://github.com/vim-erlang/vim-erlang-runtime ) (syntax, indent, ftdetect)
2016-05-02 10:46:45 +02:00
- [fish ](https://github.com/dag/vim-fish ) (syntax, indent, compiler, autoload, ftplugin, ftdetect)
2013-09-13 22:12:52 +02:00
- [git ](https://github.com/tpope/vim-git ) (syntax, indent, ftplugin, ftdetect)
2015-10-10 17:15:29 +02:00
- [glsl ](https://github.com/tikhomirov/vim-glsl ) (syntax, indent, ftdetect)
2015-12-06 11:51:45 +01:00
- [go ](https://github.com/fatih/vim-go ) (syntax, compiler, indent, ftdetect)
2015-10-10 17:17:57 +02:00
- [groovy ](https://github.com/vim-scripts/groovy.vim ) (syntax)
2013-09-13 22:12:52 +02:00
- [haml ](https://github.com/tpope/vim-haml ) (syntax, indent, compiler, ftplugin, ftdetect)
2015-12-06 11:31:38 +01:00
- [handlebars ](https://github.com/mustache/vim-mustache-handlebars ) (syntax, indent, ftplugin, ftdetect)
2015-10-18 16:08:51 +02:00
- [haskell ](https://github.com/neovimhaskell/haskell-vim ) (syntax, indent, ftplugin, ftdetect)
2014-06-08 13:22:29 +02:00
- [haxe ](https://github.com/yaymukund/vim-haxe ) (syntax, ftdetect)
- [html5 ](https://github.com/othree/html5.vim ) (syntax, indent, autoload, ftplugin)
2014-04-15 01:33:45 +02:00
- [jasmine ](https://github.com/glanotte/vim-jasmine ) (syntax, ftdetect)
2016-05-03 12:56:11 +02:00
- [javascript ](https://github.com/pangloss/vim-javascript ) (syntax, indent, ftplugin, ftdetect)
2016-07-26 13:50:28 +02:00
- [json ](https://github.com/elzr/vim-json ) (syntax, indent, ftplugin, ftdetect)
2013-09-13 22:12:52 +02:00
- [jst ](https://github.com/briancollins/vim-jst ) (syntax, indent, ftdetect)
2015-12-06 11:31:38 +01:00
- [jsx ](https://github.com/mxw/vim-jsx ) (ftdetect, after)
2015-10-24 13:06:19 +03:00
- [julia ](https://github.com/dcjones/julia-minimalist-vim ) (syntax, indent, ftdetect)
2015-10-10 17:15:29 +02:00
- [kotlin ](https://github.com/udalov/kotlin-vim ) (syntax, indent, ftdetect)
2013-09-17 01:43:28 +02:00
- [latex ](https://github.com/LaTeX-Box-Team/LaTeX-Box ) (syntax, indent, ftplugin)
2013-09-13 22:12:52 +02:00
- [less ](https://github.com/groenewege/vim-less ) (syntax, indent, ftplugin, ftdetect)
2014-06-08 19:38:42 +02:00
- [liquid ](https://github.com/tpope/vim-liquid ) (syntax, indent, ftplugin, ftdetect)
2016-05-13 15:56:51 +02:00
- [mako ](https://github.com/sophacles/vim-bundle-mako ) (syntax, indent, ftplugin, ftdetect)
2016-06-26 18:13:30 +02:00
- [markdown ](https://github.com/plasticboy/vim-markdown ) (syntax, ftdetect)
2016-05-13 15:59:28 +02:00
- [nginx ](https://github.com/othree/nginx-contrib-vim ) (syntax, indent, ftdetect)
2016-01-22 09:12:18 +01:00
- [nim ](https://github.com/zah/nim.vim ) (syntax, compiler, indent, ftdetect)
2015-12-17 10:47:00 +01:00
- [nix ](https://github.com/spwhitt/vim-nix ) (syntax, ftplugin, ftdetect)
2015-12-06 11:58:09 +01:00
- [objc ](https://github.com/b4winckler/vim-objc ) (ftplugin, syntax, indent)
2013-09-13 22:12:52 +02:00
- [ocaml ](https://github.com/jrk/vim-ocaml ) (syntax, indent, ftplugin)
- [octave ](https://github.com/vim-scripts/octave.vim-- ) (syntax)
2014-03-16 14:52:12 +01:00
- [opencl ](https://github.com/petRUShka/vim-opencl ) (syntax, indent, ftplugin, ftdetect)
- [perl ](https://github.com/vim-perl/vim-perl ) (syntax, indent, ftplugin, ftdetect)
2016-05-02 10:52:01 +02:00
- [pgsql ](https://github.com/exu/pgsql.vim ) (syntax, ftdetect)
2013-09-14 18:21:47 +02:00
- [php ](https://github.com/StanAngeloff/php.vim ) (syntax)
2016-05-02 10:50:59 +02:00
- [plantuml ](https://github.com/aklt/plantuml-syntax ) (syntax, ftplugin, ftdetect)
2014-12-11 23:16:49 +01:00
- [powershell ](https://github.com/Persistent13/vim-ps1 ) (syntax, indent, ftplugin, ftdetect)
2016-06-26 18:03:28 +02:00
- [protobuf ](https://github.com/uarun/vim-protobuf ) (syntax, indent, ftdetect)
2016-05-02 11:52:54 +02:00
- [pug ](https://github.com/digitaltoad/vim-pug ) (syntax, indent, ftplugin, ftdetect)
2016-05-02 10:48:28 +02:00
- [puppet ](https://github.com/voxpupuli/vim-puppet ) (syntax, indent, ftplugin, ftdetect)
2016-05-02 11:35:06 +02:00
- [purescript ](https://github.com/raichoo/purescript-vim ) (syntax, indent, ftdetect)
2014-04-15 01:33:45 +02:00
- [python ](https://github.com/mitsuhiko/vim-python-combined ) (syntax, indent)
2015-10-10 17:25:38 +02:00
- [qml ](https://github.com/peterhoeg/vim-qml ) (syntax, indent, ftplugin, ftdetect)
2015-10-24 13:06:19 +03:00
- [r-lang ](https://github.com/vim-scripts/R.vim ) (syntax, ftplugin)
2015-12-31 18:27:37 +01:00
- [ragel ](https://github.com/jneen/ragel.vim ) (syntax)
2013-09-26 12:45:26 +02:00
- [rspec ](https://github.com/sheerun/rspec.vim ) (syntax, ftdetect)
2013-09-13 22:12:52 +02:00
- [ruby ](https://github.com/vim-ruby/vim-ruby ) (syntax, indent, compiler, autoload, ftplugin, ftdetect)
2015-11-20 15:47:50 +01:00
- [rust ](https://github.com/rust-lang/rust.vim ) (syntax, indent, compiler, autoload, ftplugin, ftdetect)
2013-09-13 22:12:52 +02:00
- [sbt ](https://github.com/derekwyatt/vim-sbt ) (syntax, ftdetect)
2015-06-11 17:02:51 +02:00
- [scala ](https://github.com/derekwyatt/vim-scala ) (syntax, indent, compiler, ftplugin, ftdetect)
2016-05-31 01:53:12 +02:00
- [slim ](https://github.com/slim-template/vim-slim ) (syntax, indent, ftplugin, ftdetect)
2015-07-18 23:00:08 +02:00
- [solidity ](https://github.com/ethereum/vim-solidity ) (syntax, indent, ftdetect)
2013-09-13 22:12:52 +02:00
- [stylus ](https://github.com/wavded/vim-stylus ) (syntax, indent, ftplugin, ftdetect)
2015-12-05 21:05:04 -04:00
- [swift ](https://github.com/keith/swift.vim ) (syntax, indent, ftplugin, ftdetect)
2015-10-24 13:06:19 +03:00
- [systemd ](https://github.com/kurayama/systemd-vim-syntax ) (syntax, ftdetect)
2013-09-13 22:12:52 +02:00
- [textile ](https://github.com/timcharper/textile.vim ) (syntax, ftplugin, ftdetect)
2015-10-24 13:06:19 +03:00
- [thrift ](https://github.com/solarnz/thrift.vim ) (syntax, ftdetect)
2016-06-26 18:03:28 +02:00
- [tmux ](https://github.com/keith/tmux.vim ) (syntax, ftplugin, ftdetect)
2015-12-06 11:31:38 +01:00
- [tomdoc ](https://github.com/wellbredgrapefruit/tomdoc.vim ) (syntax)
2014-12-22 22:01:38 +01:00
- [toml ](https://github.com/cespare/vim-toml ) (syntax, ftplugin, ftdetect)
2016-01-28 18:14:32 +01:00
- [twig ](https://github.com/evidens/vim-twig ) (syntax, ftplugin)
2015-10-24 13:06:19 +03:00
- [typescript ](https://github.com/leafgarland/typescript-vim ) (syntax, indent, compiler, ftplugin, ftdetect)
2014-12-22 22:01:38 +01:00
- [vala ](https://github.com/tkztmk/vim-vala ) (syntax, indent, ftdetect)
2015-10-24 13:06:19 +03:00
- [vbnet ](https://github.com/vim-scripts/vbnet.vim ) (syntax)
2015-12-06 11:34:19 +01:00
- [vcl ](https://github.com/smerrill/vcl-vim-plugin ) (syntax, ftdetect)
2014-12-22 22:01:38 +01:00
- [vm ](https://github.com/lepture/vim-velocity ) (syntax, indent, ftdetect)
2015-10-24 13:06:19 +03:00
- [xls ](https://github.com/vim-scripts/XSLT-syntax ) (syntax)
2015-12-31 18:34:53 +01:00
- [yaml ](https://github.com/stephpy/vim-yaml ) (syntax, ftplugin)
2015-10-24 13:06:19 +03:00
- [yard ](https://github.com/sheerun/vim-yardoc ) (syntax)
2013-09-13 14:06:28 +02:00
2016-06-28 16:05:24 +02:00
## 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.
2015-07-10 08:19:38 -05:00
2016-06-28 16:05:24 +02:00
Individual language packs can be disabled by setting `g:polyglot_disabled` as follows:
2015-07-10 08:19:38 -05:00
```viml
" ~/.vimrc
2015-07-18 23:27:31 +02:00
let g:polyglot_disabled = ['css']
2015-07-10 08:19:38 -05:00
```
2015-07-18 23:27:31 +02:00
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.
2013-09-13 14:06:28 +02:00
## 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.