A small (Neo)Vim wrapper for zoxide
- Vim >=8.2.1969 or Neovim >=0.10.0
- The zoxide utility
- (optional) The fzf utility along with the fzf.vim script
Install using your favorite plugin manager:
- Native vim.pack in Neovim
vim.pack.add({'https://github.com/nanotee/zoxide.vim'})
- vim-plug
Plug 'nanotee/zoxide.vim'
The plugin defines commands that wrap the functionality of zoxide:
:Z {query}: cd to the highest ranked directory matching your query. If{query}is omitted, cd to the home directory:Lz {query}: same as:Z, but local to the current window:Tz {query}: same as:Z, but local to the current tab:Bz {query}: same as:Z, but local to the current buffer (Neovim >=0.13 only):Zi {query}: cd to one of your highest ranking directories using fzf:Lzi {query}: same as:Zi, but local to the current window:Tzi {query}: same as:Zi, but local to the current tab:Bzi {query}: same as:Zi, but local to the current buffer (Neovim >=0.13 only)