Skip to content

RRethy/nvim-align

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nvim-align

Usage

" In visual mode
:'<,'>Align regex_pattern.*

Note: If used in normal mode, the previous visual selection will be used.

Note: See help docs for more information.

Example

Start text:

var x = 1
var xx = 2
var xxx = 3
var xxxx = 4
var xxxxx = 5
var xxxxxx = 6

Command:

:'<,'>Align =

Resulting text:

var x      = 1
var xx     = 2
var xxx    = 3
var xxxx   = 4
var xxxxx  = 5
var xxxxxx = 6

You can then operate on the same text again without highlighting it. For example:

:Align x\s*=

Resulting in:

var      x      = 1
var x    x     = 2
var xx   x    = 3
var xxx  x   = 4
var xxxx x  = 5
var xxxxxx = 6

About

Neovim plugin for aligning text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published