26
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 26 Apr 2024
26 points (96.4% liked)
Neovim
2746 readers
1 users here now
founded 2 years ago
MODERATORS
That awesome!
There are always many ways to deal with workflow annoyances you run into. Most people go looking for plugins or write a plugin or remap some keybindings, but many forget to read the manual to look for builtin solutions. In the case of using
d, you can assign the deleted text to a register other than the default register for yank/delete commands.ddwill delete a line and send it to register""xddwill delete a line and send it to registerxpwill put the text from register"after the cursor"xpwill put the text from registerxafter the cursorUse any lowercase letter for a register. There's always more beneath the surface of simple vim features.
Relevant sections of the User Manual: