Utilize fzf tag jump too

* ctg -> create tags
* gd -> classic ctags jump
* tg -> fzf tags jump with list
This commit is contained in:
Julian Ospald 2018-08-19 14:14:22 +08:00
parent 77a5eb5742
commit 3adeb5e04e
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
2 changed files with 7 additions and 1 deletions

View File

@ -15,10 +15,12 @@ call CmdAlias('hasktags', '!hasktags -c .<CR>')
call CmdAlias('codex', 'call system("haskell-ctags")<CR><CR>call LoadHscope()<CR>')
map <leader>tg :codex<CR>
map <leader>ctg :codex<CR>
set tags=tags;/,codex.tags;/
" classic ctags jump
nnoremap <leader>gd <C-]>
nnoremap <silent> <leader>cgd :cs find g <C-R>=expand("<cword>")<CR><CR>
nnoremap <silent> <C-\> :cs find c <C-R>=expand("<cword>")<CR><CR>

View File

@ -153,3 +153,7 @@ inoremap <C-V> <C-O>:call Paste("i")<CR>
" select all
nnoremap <C-A> ggVG<CR>
inoremap <C-A> <C-O>:call Select()<CR>
" fzf
nnoremap <leader>tg :call fzf#vim#tags(expand('<cword>'), {'options': '--exact --select-1 --exit-0'})<CR>