-
Notifications
You must be signed in to change notification settings - Fork 6
/
zoxide-vim.txt
102 lines (76 loc) · 2.53 KB
/
zoxide-vim.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
93
94
95
96
97
98
99
100
101
102
*zoxide-vim.txt* A small (Neo)Vim wrapper for zoxide
===============================================================================
USAGE *zoxide-vim* *zoxide-vim-usage*
*:Z*
:Z {query} cd to the highest ranked directory matching your query.
If {query} is omitted, cd to the home directory.
*:Lz*
:Lz {query} same as :Z but local to the current window.
*:Tz*
:Tz {query} same as :Z but local to the current tab.
*:Zi*
:Zi {query} cd to one of your highest ranking directories using
fzf.
*:Lzi*
:Lzi {query} same as :Zi, but local to the current window.
*:Tzi*
:Tzi {query} same as :Zi, but local to the current tab.
===============================================================================
CONFIGURATION *zoxide-vim-configuration*
*g:zoxide_executable*
g:zoxide_executable
The name or path of the zoxide executable.
Default value: `'zoxide'`
*g:zoxide_prefix*
g:zoxide_prefix
The prefix to use for commands. Example: >
let g:zoxide_prefix = 'jump'
<
Generates the following commands:
:Jump
:Ljump
:Tjump
:Jumpi
:Ljumpi
:Tjumpi
Default value: `'z'`
*g:zoxide_update_score*
g:zoxide_update_score
Decides whether the zoxide database should be updated
when you execute a :Z-style command.
Default value: `1`
*g:zoxide_hook*
g:zoxide_hook
Automatically increment a directory's score on certain
events. Available hooks:
- `'none'`: never automatically add directories to
zoxide.
- `'pwd'`: sets up an autocommand that listens to the
|DirChanged| event. Note: on Neovim < `0.6.0`,
'autochdir' can cause the event to be triggered very
often.
Default value: `'none'`
*g:zoxide_use_select*
g:zoxide_use_select
Use |vim.ui.select()| for :Zi-style commands (Neovim
`0.6.0+` only)
Default value: `0`
*g:zoxide_fzf_options*
g:zoxide_fzf_options
Options to pass to fzf during interactive selection.
Use this configration if you want to use the same
options as `$_ZO_FZF_OPTS`: >
if exists('$_ZO_FZF_OPTS')
let g:zoxide_fzf_options = $_ZO_FZF_OPTS
endif
<
Accepts a string or an array of strings.
===============================================================================
EVENTS *zoxide-vim-events*
zoxide.vim dispatches custom |User| events that can be subscribed to using
|autocommand|s.
*User_ZoxideDirChanged*
User ZoxideDirChanged
After the |current-directory| was
changed using a zoxide.vim command.
vim:tw=78:ts=8:noet:ft=help:norl: