From f5d56602df70950de6b7d40966b00c9939c81763 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Sun, 26 Jan 2020 17:16:07 +0100 Subject: Intial commit of v2 See https://drewdevault.com/2019/12/30/dotfiles.html --- .vim/autoload/fasd.vim | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .vim/autoload/fasd.vim (limited to '.vim/autoload/fasd.vim') diff --git a/.vim/autoload/fasd.vim b/.vim/autoload/fasd.vim new file mode 100644 index 0000000..7ef53bd --- /dev/null +++ b/.vim/autoload/fasd.vim @@ -0,0 +1,18 @@ +" not sure if I am using this +finish + +if exists('g:loaded_fasd') + finish +endif +let g:loaded_fasd = 1 +let g:fasd_path = '/home/robert/.dotfiles/zsh/.zplug/repos/sorin-ionescu/prezto/modules/fasd/external/fasd' + +function! fasd#run(args) abort + return system(g:fasd_path . ' -d -0 ' . a:args) +endfunction + +function! fasd#cd(args) abort + execute 'tcd' . fasd#run(a:args) +endfunction + +command! -nargs=1 J :call fasd#cd() -- cgit 1.4.1