wolloda / vim-polyglot

A solid language pack for Vim.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 consists of.
  • Solid syntax and indentation support (other features skipped). 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 up to 17ms to load.

Installation

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

For example when using Plug:

Plug 'sheerun/vim-polyglot'

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

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.

About

A solid language pack for Vim.


Languages

Language:Vim Script 99.7%Language:Shell 0.2%Language:Ruby 0.1%