summary refs log tree commit diff
path: root/.vim/autoload/fasd.vim
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2020-01-26 17:16:07 +0100
committerRobert Günzler <r@gnzler.io>2020-01-26 18:00:59 +0100
commitf5d56602df70950de6b7d40966b00c9939c81763 (patch)
treeb50ffeb5496fe3525cc1bab2629389ced95435b7 /.vim/autoload/fasd.vim
Intial commit of v2
See https://drewdevault.com/2019/12/30/dotfiles.html
Diffstat (limited to '.vim/autoload/fasd.vim')
-rw-r--r--.vim/autoload/fasd.vim18
1 files changed, 18 insertions, 0 deletions
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(<f-args>)