-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathgrab-vim.conf.example
More file actions
59 lines (41 loc) · 1.31 KB
/
grab-vim.conf.example
File metadata and controls
59 lines (41 loc) · 1.31 KB
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
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Colors {{{
# selection_foreground #FFFFFF
# selection_background #5294E2
#: Colors for selected text while grabbing.
# cursor #ad7fa8
#: Cursor color while grabbing.
#: }}}
#: Key shortcuts {{{
# map q quit
#: Exit the grabber without copying anything.
# map Enter confirm
map y confirm
#: Copy the selected region to clipboard and exit.
map h move left
map l move right
map k move up
map j move down
map Ctrl+u move page up
map Ctrl+d move page down
map 0 move first
map ^ move first nonwhite
map $ move last nonwhite
map g move top
map G move bottom
map b move word left
map w move word right
#: Move the cursor around the screen.
#: This will scroll the buffer if needed and possible.
#: Note that due to https://github.com/kovidgoyal/kitty/issues/5469, the ctrl+d
#: shortcut will only work with kitty >= 0.26.2
map Ctrl+y scroll up
map Ctrl+e scroll down
#: Scroll the buffer, if possible.
#: Cursor stays in the same position relative to the screen.
map v set_mode visual
map Ctrl+v set_mode block
map Ctrl+Left_Bracket set_mode normal
map Escape set_mode normal
#: Change the selecting mode.
#: }}}