Skip to content

Commit 0f03307

Browse files
committed
doc
1 parent a09bff2 commit 0f03307

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

doc/sneak.txt

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ Type dzad to delete from the cursor to the first instance of "ad": >
5555

5656
Note: See |sneak-mappings| to change these mappings.
5757

58-
Sneak default NORMAL-mode mappings:
5958

60-
Normal-Mode Key Sequence | Description
59+
NORMAL-mode mappings~
60+
61+
Key Sequence | Description
6162
-------------------------|----------------------------------------------
6263
s{char}{char} | Go to the next occurrence of {char}{char}
6364
S{char}{char} | Go to the previous occurrence of {char}{char}
@@ -69,8 +70,8 @@ Sneak default NORMAL-mode mappings:
6970
, or \ | Go to the [count]'th previous match
7071
s | Go to the [count]'th next match (see NOTE)
7172
S | Go to the [count]'th previous match (see NOTE)
72-
{range}s{char}{char} | Invoke |sneak-vertical-scope|
73-
{range}S{char}{char} | Invoke backwards |sneak-vertical-scope|
73+
[count]s{char}{char} | Invoke |sneak-vertical-scope|
74+
[count]S{char}{char} | Invoke backwards |sneak-vertical-scope|
7475
{operator}z{char}{char} | Perform {operator} from the cursor to the next
7576
| occurrence of {char}{char}
7677
{operator}Z{char}{char} | Perform {operator} from the cursor to the
@@ -79,9 +80,10 @@ Sneak default NORMAL-mode mappings:
7980
NOTE: s and S go to the next/previous match only immediately after
8081
invoking Sneak; moving the cursor resets this behavior. |sneak-clever-s|
8182

82-
Sneak default VISUAL-mode mappings:
8383

84-
Visual-Mode Key Sequence | Description
84+
VISUAL-mode mappings~
85+
86+
Key Sequence | Description
8587
-------------------------|----------------------------------------------
8688
s{char}{char} | Go to the next occurrence of {char}{char}
8789
Z{char}{char} | Go to the previous occurrence of {char}{char}
@@ -94,11 +96,12 @@ Sneak default VISUAL-mode mappings:
9496
s | Go to the [count]'th next match (NOTE above)
9597
S | Go to the [count]'th previous match (NOTE above)
9698

97-
STREAK-mode mappings (|sneak-streak-mode|):
99+
100+
STREAK-mode mappings~
98101

99102
Key Sequence | Description
100103
-------------------------|----------------------------------------------
101-
<space> | Exit streak-mode at the current cursor
104+
<space> | Exit |sneak-streak-mode| at the current cursor
102105
| position.
103106

104107

@@ -271,8 +274,8 @@ To enable "passive" or "smart" streak-mode: *g:sneak#streak*
271274
>
272275
let g:sneak#streak = 1
273276
>
274-
With this setting, sneak with automatically enter streak-mode _only_ if there
275-
are ≥2 visible (on-screen) matches
277+
With this setting, Sneak enters streak-mode _only_ if there are ≥2 visible
278+
(on-screen) matches
276279

277280
To force streak-mode always (instead of passively letting Sneak decide when
278281
to enter streak-mode), create a mapping to <Plug>(SneakStreak). For example:

0 commit comments

Comments
 (0)