Vim + z = lightning fast navigation
If you're reading this, you probably use z
to jump around your file system. It's a magical experience, and probably
one of my favorite CLI tools. If you don't use it, I highly recommend
checking it out, even without this plugin.
It's a critical part of my CLI workflow, and I wanted that same magic for vim.
Say you've got a project named drone-security-guard/
. Normally to reach
this project you'd write
$ z drone
and it figures out what you mean and jumps into the directory. This plugin works much the same:
:Z drone
The command above will open the drone-security-guard/
directory using
whatever directory browser you've got configured.
Note: I use netrw for navigation because it's awesome. This should work for NERDTree too, but I never test against it.
In traditional vim fashion, the documentation is kept in a help page. After installing the plugin run
:help z.vim
Plug 'PsychoLlama/z.vim'
Plugin 'PsychoLlama/z.vim'
git clone https://github.com/PsychoLlama/z.vim ~/.vim/bundle/z.vim
If you use the oh-my-zsh
framework, z.vim
will work out of the box. You're good to go ๐
If not, you'll need to explicitly provide a path to your z installation. Add this to your vimrc:
let g:zcd#path = expand('~/path/to/z/z.sh')
Where ~/path/to/z/z.sh
is replaced with the actual file path.
If you run into trouble, feel free to open an issue.