dotvim/lua/util.lua

7 lines
180 B
Lua
Raw Normal View History

2022-10-22 05:45:38 +00:00
-- UnAlign
vim.api.nvim_create_user_command(
'UnAlign',
function(ctx) vim.cmd(ctx.line1 .. ',' .. ctx.line2 .. 's/\\(\\S\\+\\)\\s\\{2,\\}/\\1 /g') end,
2022-10-22 16:53:29 +00:00
{range = '%'}
2022-10-22 05:45:38 +00:00
)