X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=vim%2F.vim%2Fplugin%2Fzshfe.vim;h=fd5e5b14616596802f7eaf01e804e34e0eadb936;hb=HEAD;hp=af3540bb7b6377acdb1d92fc978f2ae00bd68e72;hpb=1280549be01e3ce72d9e0aeef6254a1ff14a25a3;p=dotfiles.git diff --git a/vim/.vim/plugin/zshfe.vim b/vim/.vim/plugin/zshfe.vim deleted file mode 100644 index af3540b..0000000 --- a/vim/.vim/plugin/zshfe.vim +++ /dev/null @@ -1,20 +0,0 @@ -" zsh file completion caller -" Maintainer: Sergey Matveev -" License: GNU General Public License version 3 of the License or later - -if exists("*zshfe") | finish | endif -if !exists("g:zshfe_path") | let g:zshfe_path=expand("~/.vim/plugin/zshfe.zsh") | endif - -function! s:zshfe(query, opencmd) - silent let result = systemlist(g:zshfe_path . " " . a:query) - if len(result) == 0 | return | endif - exec a:opencmd . " " . result[0][:-2] -endfunction - -command! -nargs=1 Fe call s:zshfe(, "edit") -command! -nargs=1 Fsp call s:zshfe(, "split") -command! -nargs=1 Fvs call s:zshfe(, "vsplit") - -nmap e :Fe -nmap :Fsp -nmap v :Fvs