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'}) +