vim-polyglot /vim-polyglot

A solid language pack for Vim.

★ 5,707⑂ 305👁 44⑃ 287● 595▤ 58
Vim ScriptCreated 2013-09-12
Download: v4.17.0vim-polyglot-4.17.0 ↓4.17.02020-12-30
+0
Daily
5,707
stars
305
forks
44
watchers
287
prs
595
issues
58
releases

README

!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 and updates 120+ times faster than the 598 packages it consists of.
- It is also more secure (scripts loaded for every filetype are generated by vim-polyglot)
- Best syntax and indentation support (no other features). Hand-selected language packs.
- Automatically detects indentation (includes performance-optimized version of vim-sleuth, can be disabled)

\To be completely honest, optimized ftdetect script takes around 10ms 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 (which I recommend):

vim
set nocompatible

call plugbegin()

Plug 'sheerun/vim-polyglot'

call plugend()


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

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


git clone --depth 1 https://github.com/sheerun/vim-polyglot ~/.vim/pack/plugins/start/vim-polyglot


 Language packs

On top of all language packs from vim repository, vim-polyglot includes:


- acpiasl (Syntax highlighting for asl and dsl files)
- ansible
- apiblueprint (API Blueprint syntax highlighting for apib files)
- applescript (AppleScript syntax highlighting for applescript and scpt files)
- arduino (Processing syntax highlighting for pde and ino files)
- asciidoc (AsciiDoc syntax highlighting for asciidoc, adoc and asc files)
- autohotkey (AutoHotkey syntax highlighting for ahk and ahkl files)
- bicep (Syntax highlighting for bicep files)
- blade (Blade syntax highlighting for blade and blade.php files)
- brewfile
- c/c++ (C++ and C syntax highlighting for cpp, c++, cc, cp, cxx and 18 more files)
- caddyfile
- carp (Syntax highlighting for carp files)
- cjsx
- clojure (Clojure syntax highlighting for clj, bb, boot, cl2, cljc and 6 more files)
- cmake (CMake syntax highlighting for cmake and cmake.in files)
- coffee-script (CoffeeScript and Literate CoffeeScript syntax highlighting for coffee, cake, cjsx, iced, coffeekup, cson, litcoffee and coffee.md files)
- cpp-modern
- cql (Syntax highlighting for cql files)
- cryptol (Syntax highlighting for cry, cyl, lcry and lcyl files)
- crystal (Crystal and HTML+ECR syntax highlighting for cr and ecr files)
- csv (CSV syntax highlighting for csv, tsv and tab files)
- cucumber (Gherkin syntax highlighting for feature and story files)
- cue (Syntax highlighting for cue files)
- dart (Dart syntax highlighting for dart and drt files)
- dhall (Dhall syntax highlighting for dhall files)
- dlang (D syntax highlighting for d, di, lst, dd, ddoc and sdl files)
- docker-compose
- elixir (Elixir and HTML+EEX syntax highlighting for ex, exs, eex, html.heex, html.leex and leex files)
- elm (Elm syntax highlighting for elm files)
- emberscri

Top issues

Latest release

v4.17.0 v4.17.0 2020-12-30
c5625ff Set shiftwidth to tabstop if greather, fixes 648
45f2f94 Add mint-language, closes 653
73c5187 Removes set incsearch which was copied from vim-sensible (640)
da18fe6 Fix neovim :Tutor filetype detection (631)
ff35c02 Restore cpoptions before recursive ftdetect read, fixes 619 (621)
32f5e90 Do not use [0:-1] syntax, fixes 616
d96f11b Rename cpo_save variable to prevent conflicts, fixes 619
05e21a9 Add support for PEG syntax (615)
740a608 Use nroff filetype for man pages, closes 611
ba3fe9e Fix loading when vim8 packages are used
45a7512 Preserve loading order of plugins, fixes

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON