vim-easy-align is a Vim/Neovim plugin that makes it simple to align text by a pattern, character, or regular expression across a selection or motion. Instead of hand-inserting spaces and fiddling with tabs, you select lines and invoke an interactive prompt that previews the alignment as you type the rule. It supports multiple delimiters—commas, colons, equals signs, pipes—and can align on the nth occurrence or on complex regex groups. The plugin is designed to be composable with normal Vim workflows, working in visual mode or with motions, and honoring your indentation and tab settings. It also offers left, right, and center alignment, plus padding and justification control, so tables, hashes, assignment lists, and Markdown fragments look neat. Because it’s fast and keyboard-centric, it’s ideal for refactoring code as well as tidying prose and documentation inside Vim.
Features
- Interactive alignment by character or regex with live preview
- Works in visual mode or via motions for precise ranges
- Left, right, and center alignment with controllable padding
- Support for multi-delimiter and nth-occurrence alignment rules
- Honors existing indentation, tabs, and formatting settings
- Handy for code assignments, tables, Markdown, and lists