finds.dev

junegunn/vim-easy-align

A Vim alignment plugin

View on GitHub

★ 4,239Vim Scriptupdated Jul 2024

// the take

vim-easy-align is a Vim plugin for aligning text around delimiters — equals signs, colons, pipes, commas, or arbitrary regexes. It works in visual mode, with motions, or via command-line. Aimed at any Vim user who manually spaces out assignments or table columns and is tired of doing it by hand.

The interactive mode is genuinely well-designed: you can preview alignment in real time, cycle through left/right/center, and adjust margins with single keystrokes before committing. Syntax-aware delimiter detection is a real differentiator — it skips delimiters inside strings and comments by default, which means aligning a Ruby hash or YAML file doesn't mangle your comment colons. The N-th occurrence targeting (`2=`, `-=`, `**=`) covers edge cases that most alignment tools ignore, like alternating left-right alignment across multiple delimiters. From junegunn, same author as fzf — the code is clean Vim script with a real test suite using vader.vim.

Vim Script only — no Neovim Lua port, so you're stuck with the legacy plugin ecosystem if your config is Lua-first. The test suite runs via a shell script that assumes a Unix environment; Windows users are on their own. Last meaningful activity was 2024 but the previous few years were sparse — it's effectively in maintenance mode. The option system has three overlapping ways to express the same thing (dictionary, shorthand, interactive keys), which is clever but creates a learning cliff for anything beyond the basic `gaip=` case.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
4,239
Forks
121
Language
Vim Script
Last commit
23 Jul 2024

// nearby

If vim-easy-align isn't quite it.

All repos →