Giter Site home page Giter Site logo

Comments (5)

justinmk avatar justinmk commented on May 21, 2024

Thanks for the report! Glad you like it. I wasn't able to reproduce from those steps, but I have a hunch about what you are experiencing.

Vim-sneak no longer works

Do you mean s doesn't work, or do you mean repeat motion (; or , or \ or whatever you mapped) doesn't work? After you invoke f or t, sneak intentionally disables repeat-motion so that ; and , work for f, or t. If you don't want this behavior, you can set the following:

g:sneak#f_reset = 0
g:sneak#t_reset = 0

Then ; and , (or whatever you mapped) will always work for sneak.

If this wasn't your issue, it would be useful if you could post the output of this command:

call sneak#debugreport()

Also just a note, :help sneak actually has detailed information if you want to know about any other options in the future.

from vim-sneak.

JarrodCTaylor avatar JarrodCTaylor commented on May 21, 2024

Thanks for the quick response that was not quite my issue. I will see if I can further explain the behavior that I am experiencing.

I have sneak mapped to the f key with the following.

nmap f <Plug>SneakForward
nmap F <Plug>SneakBackward

I captured the following gif that I hope helps demonstrate what is happening.
sneak_example

I seem to be unable to evoke the debug function
E117: Unknown function: sneak#debugreport

from vim-sneak.

justinmk avatar justinmk commented on May 21, 2024

Best bug report ever :)

Sorry I made a typo, it is

sneak#debug#report()

It might be a bug with sneak when mapped to f. Should be an easy fix.

Thanks!

from vim-sneak.

JarrodCTaylor avatar JarrodCTaylor commented on May 21, 2024

You are putting a lot of effort into this plugin the least I can do is provide a solid bug report haha.

Here is the debug report when initially opening vim

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 12 2013 21:20:01)
MacOS X (unix) version
Included patches: 1-52
Compiled by Homebrew

has("autocmd")=1
&magic=1
&buftype=
&virtualedit=
&ignorecase=1
&smartcase=1
&background=light
g:mapleader=9

defined:     sneak#to
defined:     sneak#rpt
not defined: sneak#search#new
not defined: sneak#hl#removehl

n  f             <Plug>SneakForward
    Last set from ~/.vimrc

n  F             <Plug>SneakBackward

No mapping found

No mapping found

   ss            :setlocal spell!<CR>

x  S             <Plug>VSurround

o  z           * :<C-U>call sneak#to(v:operator, <SNR>72_getnchars(2, v:operator), <SNR>72_cnt(), 0, 0, [0,0], 0)<CR>

x  Z             <Plug>VSneakBackward
o  Z           * :<C-U>call sneak#to(v:operator, <SNR>72_getnchars(2, v:operator), <SNR>72_cnt(), 0, 1, [0,0], 0)<CR>

x  ;             <Plug>VSneakNext
n  ;             <Plug>SneakNext

And here is the report after preforming the above actions

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 12 2013 21:20:01)
MacOS X (unix) version
Included patches: 1-52
Compiled by Homebrew

has("autocmd")=1
&magic=1
&buftype=
&virtualedit=
&ignorecase=1
&smartcase=1
&background=light
g:mapleader=9

defined:     sneak#to
defined:     sneak#rpt
defined:     sneak#search#new
defined:     sneak#hl#removehl

No mapping found

No mapping found

No mapping found

No mapping found

   ss            :setlocal spell!<CR>

x  S             <Plug>VSurround

o  z           * :<C-U>call sneak#to(v:operator, <SNR>72_getnchars(2, v:operator), <SNR>72_cnt(), 0, 0, [0,0], 0)<CR>

x  Z             <Plug>VSneakBackward
o  Z           * :<C-U>call sneak#to(v:operator, <SNR>72_getnchars(2, v:operator), <SNR>72_cnt(), 0, 1, [0,0], 0)<CR>

x  ;             <Plug>VSneakNext
n  ;             <Plug>SneakNext

from vim-sneak.

justinmk avatar justinmk commented on May 21, 2024

yep, it was a bug I introduced a couple weeks ago. I added a test to prevent at least this case... let me know if you find anything else. Thanks again.

from vim-sneak.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.