0

I used to use s for replacing one char with another. e.g.

  • source: "bla". command: ss. result: "sla"
  • source: "bla". command: 3ss. result: "s"

Neovim (using LazyVim) seems to override this option, and I can't figure out how to restore it or what to use instead (c is fine, but replaces a full word, which complicates my workflow)

5
  • 2
    Does 3rs work?
    – Friedrich
    Jun 15 at 10:14
  • 1
    Please complain at LazyVims issue tracker, that they are overriding a system comand Jun 15 at 10:53
  • 1
    @Friedrich it does. Thank you Jun 15 at 11:13
  • You're welcome. FWIW, on Vim 9 or 8.2 I cannot get 3ss to behave as described in the question.
    – Friedrich
    Jun 15 at 11:56
  • 1
    @Friedrich you are right, my bad - 3ss would substitute 3 chars with one s. Updating the question Jun 15 at 13:28

1 Answer 1

2

I would do use r instead

rs

Or

3rs

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.