From 3adeb5e04ec171678d907641ee06b236511927b4 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 19 Aug 2018 14:14:22 +0800 Subject: [PATCH] Utilize fzf tag jump too * ctg -> create tags * gd -> classic ctags jump * tg -> fzf tags jump with list --- after/ftplugin/haskell.vim | 4 +++- plugin/keys.vim | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/after/ftplugin/haskell.vim b/after/ftplugin/haskell.vim index d302787..0cb0ad6 100644 --- a/after/ftplugin/haskell.vim +++ b/after/ftplugin/haskell.vim @@ -15,10 +15,12 @@ call CmdAlias('hasktags', '!hasktags -c .') call CmdAlias('codex', 'call system("haskell-ctags")call LoadHscope()') -map tg :codex +map ctg :codex set tags=tags;/,codex.tags;/ +" classic ctags jump nnoremap gd + nnoremap cgd :cs find g =expand("") nnoremap :cs find c =expand("") diff --git a/plugin/keys.vim b/plugin/keys.vim index c4d74f1..9d26569 100644 --- a/plugin/keys.vim +++ b/plugin/keys.vim @@ -153,3 +153,7 @@ inoremap :call Paste("i") " select all nnoremap ggVG inoremap :call Select() + +" fzf +nnoremap tg :call fzf#vim#tags(expand(''), {'options': '--exact --select-1 --exit-0'}) +