Vim cc
equivalent (replace line content)
#4507
Replies: 3 comments 13 replies
-
There's some prior discussion in the discussions tab: You can emulate it by creating a binding for |
Beta Was this translation helpful? Give feedback.
-
I think this would work:
|
Beta Was this translation helpful? Give feedback.
-
If we confirm there's currently no way to actually do the same as In any case, I will implement this on my own fork and start using it. Maybe I should just open the PR regardless? Not sure if unsolicited PRs are considered too annoying here though. |
Beta Was this translation helpful? Give feedback.
-
I tried searching but couldn't find anything relevant. Basically what I'm looking for is the same thing as
cc
andS
in Vim:This is useful when I want to rewrite the whole line. The closest alternative in Helix that I'm aware of is
X_c
, which selects the line (including EOL), shrinks the selection to trim whitespaces, and replace. However this has drawbacks:cc
or evenS
(solvable thru remapping, but not user friendly)Beta Was this translation helpful? Give feedback.
All reactions