dotvim/lua/util.lua

7 lines
182 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,
{ range = '%' }
)