0

I can use fd to jump to the next d character. How can I jump to the next semicolun? f; doesn't seem to work. Also, for other special symbols.

Thanks

5
  • 2
    It should work. Do you have a mapping overriding it? Check :map f and :map f;. If there's nothing there start vim with vim -u NONE <file> and try again. If that works than you have something in your configuration, probably a plugin, interfering with the default behavior.
    – B Layer
    Apr 2, 2018 at 12:16
  • There is something, not sure what it means. s f <SNR>92_yank_with_key("f")
    – aclowkay
    Apr 2, 2018 at 12:58
  • That's a Select mode mapping. Are you seeing the problem in Normal mode or Select mode? If the former, what does :nmap f show? Regardless, I see a plugin called vim-yankstack that has a similar looking mapping that is applied dynamically: smap <expr>' key '<SID>yank_with_key("' . key . '"). There is also a Normal mode mapping along the same lines. If you are using this plugin it seems like a good place to dig further.
    – B Layer
    Apr 2, 2018 at 13:17
  • Try :echo g:yankstack_yank_keys. If there's a result and it contains "f" (the default does not) then that's a probable cause.
    – B Layer
    Apr 2, 2018 at 13:23
  • the echo command answers with '[y','d']
    – aclowkay
    Apr 2, 2018 at 15:53

1 Answer 1

2

I had a similar problem a while back. As a temporary solution you can use /;, and then use n.

This will search for ; and jump to that position

0

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.