|Adam Stankiewicz 6a086b0c79||17 hours ago|
|.github||2 weeks ago|
|after||4 days ago|
|autoload||17 hours ago|
|compiler||3 weeks ago|
|ctags||7 months ago|
|doc||3 days ago|
|extras||1 year ago|
|ftdetect||17 hours ago|
|ftplugin||18 hours ago|
|indent||18 hours ago|
|scripts||17 hours ago|
|syntax||18 hours ago|
|tests||17 hours ago|
|.gitignore||1 month ago|
|Makefile||19 hours ago|
|README.md||18 hours ago|
|heuristics.yaml||3 days ago|
|packages.yaml||17 hours ago|
|polyglot.vim||1 day ago|
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.
*To be completely honest, optimized
ftdetect script takes around
20ms to load.
For example when using Plug:
Optionally download one of the releases and unpack it directly under
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 individual language packs are available. We strip them from functionality slowing vim startup (for example we ignore
plugins folder that is loaded regardless of file type, instead we prefer
ftplugin which is loaded lazily).
If you need full functionality of any plugin, please use it directly with your plugin manager.
You can either wait for new patch release with updates or run
make by yourself.
Please make sure you have
syntax on in your
.vimrc (or use something like sheerun/vimrc)
Individual language packs can be disabled by setting
g:polyglot_disabled as follows:
let g:polyglot_disabled = ['markdown']
The list of available languages to disable is shown above.
Please declare this variable before polyglot is loaded (at the top of .vimrc)
If you wish to use filetype detection by Vim Polyglot but you’d like to use your own syntax-highlighting plugin, you can append
.plugin to disabled entry, like below. Disabling Vim Polyglot filetype plugin won’t disable native Vim filetype plugin.
let g:polyglot_disabled = ['markdown.plugin']
Please note that disabling a language won’t make in your vim startup any faster / slower (only for specific this specific filetype). All plugins are lazily loaded only when they are really needed.
Vim Polyglot tries to automatically detect indentation settings (just like vim-sleuth). If this feature is not working for you for some reason, please file an issue and disable it temporarily with:
let g:polyglot_disabled = ['autoindent']
Language packs are periodically updated using automated
Feel free to add your language to
heuristics.yaml, and send pull-request. You can run
make test to run rough tests. And
make dev for easy development.
See linked repositories for detailed license information. This repository is MIT-licensed.