Comments (5)
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.
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.
I seem to be unable to evoke the debug function
E117: Unknown function: sneak#debugreport
from vim-sneak.
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.
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.
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)
- fall-through keypress reduces labels to normal highlighted matches
- [Bug Report] No label when too many occurrences of the search chars HOT 8
- Swapping ; with , makes repeating unusable HOT 2
- `Alt-f` and `Alt-F` in insert mode didn't reset `;` and `,` HOT 1
- Labels are not shown for last partially displayed line HOT 5
- vim-sneak conflicts with regular usage of `;` HOT 1
- sneak removes user-defined <Esc> mapping HOT 1
- feature ideas: land on second char? remove f/t completely? HOT 1
- Ahead of time labels HOT 2
- 3-chars label? HOT 2
- Sneak_f in operator-pending mode is incorrect if the target is on eol/eof HOT 2
- repetition clobbers registers
- Re-configuring sneak (in VS-Code) so that "s" and "S" keep their traditional meaning HOT 1
- Support for wrapscan? HOT 2
- allow disabling prompt for cmdheight=0 HOT 1
- How to remap s to other key and s work as the default command in vim (subsititute)? HOT 1
- Make ; map to most recent f/s usage HOT 1
- disable prompt? so the cursor stays in place in buffer and does not jump to command line HOT 4
- Is it possible to use ':' to go to a previous search result rather than ','? HOT 1
- label mode not working with f HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-sneak.