/projects/nvim-sort.md


nvim-sort

nvim-sort is a pair of Lua functions for sorting and removing duplicate lines in Neovim selections.

I built it because what I wanted to do dozens of times a day was exactly that: mark a block of lines, sort, drop duplicates, close. Neovim already has :sort and :sort u, but I wanted something mapped to a single key, with no :, no confirmation, no thinking.

Not a formal plugin and not aiming to become one. It’s a Lua file, you load it from your init.lua, and move on.

Project articles

NameLast modifiedSizeDescription
nvim-sort.md2026-08-28 14:052.0KLua functions for sorting and removing duplicate lines in Neovim.

crg.eti.br · © 2026 Cesar Gimenes · CC BY 4.0 · github · pt