[nvim] Improve ABC alignment macro

This commit is contained in:
Midgard 2024-07-03 15:27:36 +02:00
parent 7b077eb1b0
commit 1dc9da0a2c
Signed by untrusted user who does not match committer: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -66,7 +66,7 @@ iab HEITHG HEIGHT
nnoremap Q <Nop>
" ABC macro to align system
nmap <silent> <leader>A mb?%<cr>jV/%<cr>k;a*<C-x>[^:.]\zs\|\ze<cr>`b
nmap <silent> <leader>A mb?^%<cr>jV/^%<cr>k:s/\|\|/$$/ge<cr>gv;a*<C-x>[^:.]\zs\(\|\\|\$\$\)\ze<cr>gv:s/\$\$/\|\|/ge<cr>`b
nmap <silent> <leader>q v3j
nmap <silent> <leader>Q v3jA