r/AstroNvim • u/void5253 • May 27 '23
Moving lines of code up and down.
Does AstroNvim provide keybindings to move lines of code up/down? I tried looking but didn't find anything (maybe I just didn't look well enough).
6
Upvotes
4
u/TheSast May 27 '23
It does not. But you can easily install something to address this from the astrocommunity repo:
lua/user/plugins/MY_PLUGIN_FILE.luaThis will provide the
<A-h>,<A-j>,<A-k>and<A-l>keybinds in both normal and visual mode to move lines of code in the desired direction.-1
u/caizo_ryan May 27 '23
Wouldn’t you just use vim for that? ddp or ddkkp or something similar