]> Sergey Matveev's repositories - dotfiles.git/blob - vim/.vim/pack/stargrave/start/zshfe/plugin/zshfe.vim
Move to vim9script
[dotfiles.git] / vim / .vim / pack / stargrave / start / zshfe / plugin / zshfe.vim
1 vim9script
2
3 # zsh file completion caller
4 # Maintainer: Sergey Matveev <stargrave@stargrave.org>
5 # License: GNU General Public License version 3 of the License or later
6
7 if exists("*zshfe#Do") | finish | endif
8 if !exists("g:zshfe_path")
9     g:zshfe_path = expand("<sfile>:p:h") .. "/zshfe.zsh"
10 endif
11
12 command! -nargs=1 Fe call zshfe#Do(<f-args>, "edit")
13 command! -nargs=1 Fsp call zshfe#Do(<f-args>, "split")
14 command! -nargs=1 Fvs call zshfe#Do(<f-args>, "vsplit")
15
16 nmap <Leader>e :Fe 
17 nmap <Leader><space> :Fsp 
18 nmap <Leader>v :Fvs