forked from rafi/vim-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
whichkey.vim
81 lines (69 loc) · 1.8 KB
/
whichkey.vim
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
" which-key
" ---
augroup user_events
autocmd! FileType which_key
autocmd FileType which_key set laststatus=0 noshowmode noruler
\| autocmd BufLeave <buffer> set laststatus=2 showmode ruler
augroup END
let g:which_key_hspace = 3
call which_key#register('<Space>', "g:which_key_map")
let g:which_key_map = {
\ 'name': 'rafi vim',
\ '-': 'swap window select',
\ '?': 'open dictionary',
\ 'a': 'open structure',
\ 'b': 'find in structure',
\ 'd': 'duplicate line',
\ 'e': 'open diagnostics',
\ 'f': 'filter in-place',
\ 'G': 'distraction-free',
\ 'h': 'show highlight',
\ 'j': 'move line down',
\ 'k': 'move line up',
\ 'K': 'thesaurus',
\ 'l': 'open side-menu',
\ 'N': 'alternate backwards',
\ 'n': 'alternate forwards',
\ 'S': 'source vim line',
\ 'V': 'comment wrap toggle',
\ 'v': 'comment toggle',
\ 'W': 'open wiki',
\ 'w': 'save',
\ 'Y': 'yank relative path',
\ 'y': 'yank absolute path',
\ }
let g:which_key_map['c'] = {
\ 'name': '+misc',
\ 'd': 'change current window directory',
\ 'n': 'change current word in a repeatable manner (forwards)',
\ 'N': 'change current word in a repeatable manner (backwards)',
\ 'p': 'duplicate paragraph',
\ 'w': 'strip trailing whitespace',
\ }
let g:which_key_map['g'] = {
\ 'name': '+find',
\ }
let g:which_key_map['i'] = {
\ 'name': '+jump',
\ }
let g:which_key_map['m'] = {
\ 'name': '+misc2',
\ }
let g:which_key_map['r'] = {
\ 'name': '+iron',
\ }
let g:which_key_map['s'] = {
\ 'name': '+session',
\ 'l': ' load project session',
\ 'e': ' save project session',
\ }
let g:which_key_map['t'] = {
\ 'name': '+toggle',
\ 'h': ' toggle search highlight',
\ 'i': ' toggle indent',
\ 'l': ' toggle hidden chars',
\ 'n': ' toggle line numbers',
\ 's': ' toggle spell',
\ 'w': ' toggle wrap',
\ }
" vim: set ts=2 sw=2 tw=80 noet :