[ADD][VIM] Mapping search using fzf
This commit is contained in:
parent
e96580ebd5
commit
dfc7166126
|
@ -1,20 +1,38 @@
|
||||||
" Only git-tracked files, Vim needs to be in a Git repository
|
" Only git-tracked files, Vim needs to be in a Git repository
|
||||||
nnoremap <Leader>fg :GFiles<CR>
|
nnoremap <Leader>fg :GFiles<CR>
|
||||||
|
|
||||||
" All files
|
" All files
|
||||||
nnoremap <Leader>ff :Files<CR>
|
nnoremap <Leader>ff :Files<CR>
|
||||||
|
|
||||||
" Currently open buffers
|
" Currently open buffers
|
||||||
nnoremap <Leader>fb :Buffers<CR>
|
nnoremap <Leader>fb :Buffers<CR>
|
||||||
|
|
||||||
" Buffer history
|
" Buffer history
|
||||||
nnoremap <Leader>fh :History<CR>
|
nnoremap <Leader>fh :History<CR>
|
||||||
|
|
||||||
" Tags in buffer
|
" Tags in buffer
|
||||||
nnoremap <Leader>ft :BTags<CR>
|
nnoremap <Leader>ft :BTags<CR>
|
||||||
|
|
||||||
" Tags in all project files
|
" Tags in all project files
|
||||||
nnoremap <Leader>fT :Tags<CR>
|
nnoremap <Leader>fT :Tags<CR>
|
||||||
|
|
||||||
" Snippets for the current fileytpe (using Ultisnips)
|
" Snippets for the current fileytpe (using Ultisnips)
|
||||||
nnoremap <Leader>fs :Snippets<CR>
|
nnoremap <Leader>fs :Snippets<CR>
|
||||||
|
|
||||||
" All available commands
|
" All available commands
|
||||||
nnoremap <Leader>f: :Commands<CR>
|
nnoremap <Leader>f: :Commands<CR>
|
||||||
|
|
||||||
" All commits (using fugitive)
|
" All commits (using fugitive)
|
||||||
nnoremap <Leader>fc :Commits<CR>
|
nnoremap <Leader>fc :Commits<CR>
|
||||||
|
|
||||||
" All commits for the current buffer (using fugitive)
|
" All commits for the current buffer (using fugitive)
|
||||||
nnoremap <Leader>fC :BCommits<CR>
|
nnoremap <Leader>fC :BCommits<CR>
|
||||||
|
|
||||||
|
" Select normal mode mapping by searching for its name
|
||||||
|
nmap <Leader><Tab> <Plug>(fzf-maps-n)
|
||||||
|
|
||||||
|
" Select visual mode mapping by searching for its name
|
||||||
|
xmap <Leader><Tab> <Plug>(fzf-maps-x)
|
||||||
|
|
||||||
|
" Select operator pending mode mapping by searching for its name
|
||||||
|
omap <Leader><Tab> <Plug>(fzf-maps-o)
|
||||||
|
|
Loading…
Reference in a new issue