forked from danth/pathfinder.vim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefaults.vim
More file actions
75 lines (72 loc) · 5.01 KB
/
defaults.vim
File metadata and controls
75 lines (72 loc) · 5.01 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
if !exists('g:pf_autorun_delay')
let g:pf_autorun_delay = 2
endif
if !exists('g:pf_explore_scale')
let g:pf_explore_scale = 0.5
endif
if !exists('g:pf_max_explore')
let g:pf_max_explore = 10
endif
if !hlexists('PathfinderPopup')
highlight PathfinderPopup
\ ctermfg=Black ctermbg=DarkGray
\ guifg=Black guibg=DarkGray
endif
if !exists('g:pf_motions')
let g:pf_motions = [
\ {'motion': 'h', 'weight': 1, 'description': 'Left {count} columns'},
\ {'motion': 'l', 'weight': 1, 'description': 'Right {count} columns'},
\ {'motion': 'j', 'weight': 1, 'description': 'Down {count} lines'},
\ {'motion': 'k', 'weight': 1, 'description': 'Up {count} lines'},
\ {'motion': 'gj', 'weight': 2, 'description': 'Down {count} display lines'},
\ {'motion': 'gk', 'weight': 2, 'description': 'Up {count} display lines'},
\
\ {'motion': 'gg', 'weight': 2, 'description': 'To the start of the buffer'},
\ {'motion': 'G', 'weight': 1, 'description': 'To the end of the buffer'},
\
\ {'motion': 'H', 'weight': 1, 'description': 'To line {count} from the top of the window'},
\ {'motion': 'M', 'weight': 1, 'description': 'To the middle of the window'},
\ {'motion': 'L', 'weight': 1, 'description': 'To line {count} from the bottom of the window'},
\ {'motion': '\<C-f>', 'name': 'CTRL-f', 'weight': 1, 'description': 'Scroll forward {count} pages'},
\ {'motion': '\<C-b>', 'name': 'CTRL-b', 'weight': 1, 'description': 'Scroll backward {count} pages'},
\ {'motion': '\<C-d>', 'name': 'CTRL-d', 'weight': 1, 'description': 'Scroll downward {count} times'},
\ {'motion': '\<C-u>', 'name': 'CTRL-u', 'weight': 1, 'description': 'Scroll upward {count} times'},
\
\ {'motion': '0', 'weight': 1, 'description': 'To the start of the line'},
\ {'motion': '^', 'weight': 1, 'description': 'To the first non-blank character on the line'},
\ {'motion': 'g^', 'weight': 2, 'description': 'To the first non-blank character on the display line'},
\ {'motion': '$', 'weight': 1, 'description': 'To the end of the line'},
\ {'motion': 'g$', 'weight': 2, 'description': 'To the end of the display line'},
\ {'motion': 'g_', 'weight': 2, 'description': 'To the last non-blank character on the line'},
\ {'motion': 'gm', 'weight': 2, 'description': 'To the centre of the screen'},
\ {'motion': 'gM', 'weight': 2, 'description': 'To the centre of the line'},
\
\ {'motion': 'W', 'weight': 1, 'description': '{count} WORDs forward (inclusive)'},
\ {'motion': 'E', 'weight': 1, 'description': 'Forward to the end of WORD {count} (exclusive)'},
\ {'motion': 'B', 'weight': 1, 'description': '{count} WORDs backward (inclusive)'},
\ {'motion': 'gE', 'weight': 2, 'description': 'Backward to the end of WORD {count} (exclusive)'},
\ {'motion': 'w', 'weight': 1, 'description': '{count} words forward (inclusive)'},
\ {'motion': 'e', 'weight': 1, 'description': 'Forward to the end of word {count} (exclusive)'},
\ {'motion': 'b', 'weight': 1, 'description': '{count} words backward (inclusive)'},
\ {'motion': 'ge', 'weight': 2, 'description': 'Backward to the end of word {count} (exclusive)'},
\
\ {'motion': '(', 'weight': 1, 'description': '{count} sentences backward'},
\ {'motion': ')', 'weight': 1, 'description': '{count} sentences forward'},
\ {'motion': '{', 'weight': 1, 'description': '{count} paragraphs backward'},
\ {'motion': '}', 'weight': 1, 'description': '{count} paragraphs forward'},
\ {'motion': ']]', 'weight': 2, 'description': '{count} sections forward or to the next { in the first column'},
\ {'motion': '][', 'weight': 2, 'description': '{count} sections forward or to the next } in the first column'},
\ {'motion': '[[', 'weight': 2, 'description': '{count} sections backward or to the previous { in the first column'},
\ {'motion': '[]', 'weight': 2, 'description': '{count} sections backward or to the previous } in the first column'},
\ {'motion': ']m', 'weight': 2, 'description': '{count} next start of a method (Java or similar)'},
\ {'motion': '[m', 'weight': 2, 'description': '{count} previous start of a method (Java or similar)'},
\ {'motion': ']M', 'weight': 2, 'description': '{count} next end of a method (Java or similar)'},
\ {'motion': '[M', 'weight': 2, 'description': '{count} previous end of a method (Java or similar)'},
\
\ {'motion': '*', 'weight': 1, 'description': 'Search forward for occurence {count} of the word nearest to the cursor'},
\ {'motion': '#', 'weight': 1, 'description': 'Search backward for occurence {count} of the word nearest to the cursor'},
\ {'motion': 'g*', 'weight': 2, 'description': 'Search forward for occurence {count} of the word nearest to the cursor, allowing matches which are not a whole word'},
\ {'motion': 'g#', 'weight': 2, 'description': 'Search backward for occurence {count} of the word nearest to the cursor, allowing matches which are not a whole word'},
\ {'motion': '%', 'weight': 1, 'description': 'Go to the matching bracket'},
\ ]
endif