-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathseak.txt
93 lines (58 loc) · 2.91 KB
/
seak.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
*vim-seak* *seak*
The plugin that enhances the / and ?.
==============================================================================
CONTENTS *seak-contents*
Usage |seak-usage|
Function |seak-function|
Variable |seak-variable|
Highlight |seak-highlight|
==============================================================================
Usage *seak-usage*
First, You should install this plugin via your favorite plugin manager.
The following example uses `vim-plug`.
>
Plug 'hrsh7th/vim-seak'
<
Then you should define mapping and variables to setup |vim-seak|.
>
let g:seak_enabled = v:true
cnoremap <C-j> <Cmd>call seak#select({ 'nohlsearch': v:true })<CR>
>
Now, you can jump to the suitable position during searching via / or ? via |seak#select|.
==============================================================================
Function *seak-function*
*seak#select*
seak#select(option)~
Choose current highlighted marks to jump.
The `option` arguments is dict that can be having a following keys.
- `nohlsearch` (boolean)
- Specify clear the search highlight after jump to mark via |vim-seak|.
- `jumplist` (boolean)
- Specify to make new jumplist entry or not.
==============================================================================
Variable *seak-variable*
*g:seak_enabled*
g:seak_enabled~
Default: `v:false`
Enable or disable seak highlight during / or ? search.
*g:seak_auto_accept*
g:seak_auto_accept~
Default: `v:false`
Specify `auto accept` or not.
This option is useful to achive sticky marks.
>
let g:seak_marks = split('ABCDEFGHIJKLMNOPQRSTUVWXYZ', '.\zs')
let g:seak_auto_accept = v:true
<
You can specify the |seak#select| argument for this option.
*g:seak_marks*
g:seak_marks~
Default: `['a', 's', 'd', 'f', 'h', 'j', 'k', 'l']`
Specify jump marks by array of character.
==============================================================================
Highlight *seak-highlight*
*hi-SeakChar*
SeakChar~
Specify mark highlights.
==============================================================================
vim:tw=78:ts=4:et:ft=help:norl: