this post was submitted on 26 Apr 2024
26 points (96.4% liked)

Neovim

2155 readers
3 users here now

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 4 months ago (1 children)

Quick Update: Your Guide was a great start and i'm using wezterm, tmux and Neovim (kickstart-modular with my adjustments) in production. My biggest pain point currently is 'd' overrides my last yank. My favorite command is 'cinq'

[โ€“] ericjmorey 3 points 4 months ago* (last edited 3 months ago) (1 children)

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.

dd will delete a line and send it to the unnamed register (this is the default register)

"xdd will delete a line and send it to register x

p will put the text from the unnamed register after the cursor

"xp will put the text from register x after the cursor

Use any lowercase letter for a register.

There's always more beneath the surface of simple vim features.

Relevant sections of the User Manual: