From f0b59677aa70ef2775351900f6dfb8a1dc79d325 Mon Sep 17 00:00:00 2001 From: jremmen Date: Sat, 24 Sep 2016 23:07:58 -0700 Subject: [PATCH] add show root cmd --- plugin/vim-ripgrep.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/vim-ripgrep.vim b/plugin/vim-ripgrep.vim index 73d89ec..e4f649c 100644 --- a/plugin/vim-ripgrep.vim +++ b/plugin/vim-ripgrep.vim @@ -90,5 +90,9 @@ fun! s:RgHasFile(path) return filereadable(a:path) || isdirectory(a:path) endfun +fun! s:RgShowRoot() + echo s:RgRootDir() +endfun + command! -nargs=* Rg :call s:Rg() -command! RgDir :call s:RgRootDir() +command! RgRoot :call s:RgShowRoot()