dotvim/lua/util.lua
2022-10-22 09:53:29 -07:00

7 lines
180 B
Lua

-- UnAlign
vim.api.nvim_create_user_command(
'UnAlign',
function(ctx) vim.cmd(ctx.line1 .. ',' .. ctx.line2 .. 's/\\(\\S\\+\\)\\s\\{2,\\}/\\1 /g') end,
{range = '%'}
)