Skip to content

Sneak_f + s_next ("clever s") breaks :normal #264

@mattboehm

Description

@mattboehm

I recently updated my vimrc to use sneak's versions of f/t:

let g:sneak#s_next = 1
map f <Plug>Sneak_f
map F <Plug>Sneak_F
map t <Plug>Sneak_t
map T <Plug>Sneak_T

However, if I try to run a command like :%normal f(D, I often get unexpected results. For instance on this file:

a(b)
c(d)

I end up with:

<blank line>
c(d)

(<blank line> is a literal blank line)

If I unmap f, I get the expected result:

a
c

Do you know if there's a fix/workaround for this? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions