aboutsummaryrefslogtreecommitdiff
path: root/.vim
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2021-09-11 18:49:25 +0800
committerGuangxiong Lin <[email protected]>2021-09-11 18:49:25 +0800
commit7a2ba4fa9dbae8aa7c05a51d569217d0742e586e (patch)
tree3e188ea54650c4e320eb5326367b9d0bc575870f /.vim
parent0df1188f17268ca5f35d763466d310873446aed3 (diff)
downloaddotfiles-7a2ba4fa9dbae8aa7c05a51d569217d0742e586e.tar.gz
dotfiles-7a2ba4fa9dbae8aa7c05a51d569217d0742e586e.tar.bz2
dotfiles-7a2ba4fa9dbae8aa7c05a51d569217d0742e586e.zip
Move from leaderf.vim to fzf.vim
Diffstat (limited to '.vim')
-rw-r--r--.vim/plugin/fzf.vim11
-rw-r--r--.vim/plugin/init.vim3
-rw-r--r--.vim/plugin/leaderf.vim30
3 files changed, 13 insertions, 31 deletions
diff --git a/.vim/plugin/fzf.vim b/.vim/plugin/fzf.vim
new file mode 100644
index 0000000..32994a1
--- /dev/null
+++ b/.vim/plugin/fzf.vim
@@ -0,0 +1,11 @@
+let g:fzf_command_prefix = 'Fzf'
+
+noremap <leader>ff :FzfFiles<CR>
+noremap <leader>fbf :FzfBuffers<CR>
+noremap <leader>fm :FzfHistory<CR>
+noremap <leader>ft :FzfTags<CR>
+noremap <leader>fbt :FzfBtags<CR>
+noremap <leader>fa :FzfAg<space>
+noremap <leader>fc :FzfCommands<CR>
+noremap <leader>fgc :FzfCommits<CR>
+noremap <leader>fl :FzfLines<CR>
diff --git a/.vim/plugin/init.vim b/.vim/plugin/init.vim
index cdd17ea..eaf75f9 100644
--- a/.vim/plugin/init.vim
+++ b/.vim/plugin/init.vim
@@ -24,7 +24,8 @@ Plug 'prabirshrestha/vim-lsp'
Plug 'dense-analysis/ale'
Plug 'sheerun/vim-polyglot'
-Plug 'Yggdroot/LeaderF', {'do': ':LeaderfInstallCExtension'}
+Plug 'junegunn/fzf'
+Plug 'junegunn/fzf.vim'
Plug 'tpope/vim-eunuch'
Plug 'godlygeek/tabular'
Plug 'ludovicchabant/vim-gutentags'
diff --git a/.vim/plugin/leaderf.vim b/.vim/plugin/leaderf.vim
deleted file mode 100644
index babec7e..0000000
--- a/.vim/plugin/leaderf.vim
+++ /dev/null
@@ -1,30 +0,0 @@
-let g:Lf_ShowDevIcons = 1
-let g:Lf_UseCache = 0
-
-let g:Lf_CommandMap = {
- \ '<C-J>': ['<C-N>'],
- \ '<C-K>': ['<C-P>'],
- \ }
-
-let g:Lf_WindowPosition = 'popup'
-let g:Lf_PreviewInPopup = 1
-let g:Lf_ShortcutF = "<leader>ff"
-
-noremap <leader>fb :<C-U><C-R>=printf("Leaderf buffer %s", "")<CR><CR>
-noremap <leader>fm :<C-U><C-R>=printf("Leaderf mru %s", "")<CR><CR>
-noremap <leader>ft :<C-U><C-R>=printf("Leaderf bufTag %s", "")<CR><CR>
-noremap <leader>fl :<C-U><C-R>=printf("Leaderf line %s", "")<CR><CR>
-noremap <leader>fr :<C-U><C-R>=printf("Leaderf rg %s", "")<CR><CR>
-noremap <leader>fs :<C-U><C-R>=printf("Leaderf self %s", "")<CR><CR>
-noremap <leader>fc :<C-U><C-R>=printf("Leaderf command %s", "")<CR><CR>
-noremap <leader>f<space> :Leaderf<space>
-noremap <C-B> :<C-U><C-R>=printf("Leaderf! rg --current-buffer -e %s ", expand("<cword>"))<CR>
-noremap <C-F> :<C-U><C-R>=printf("Leaderf! rg -e %s ", expand("<cword>"))<CR>
-
-" search visually selected text literally
-xnoremap gf :<C-U><C-R>=printf("Leaderf! rg -F -e %s ", leaderf#Rg#visual())<CR>
-noremap go :<C-U>Leaderf! rg --recall<CR>
-
-let g:Lf_WorkingDirectoryMode = 'AF'
-
-let g:Lf_RootMarkers += ['.project', '.root', '.svn', '.git', '.hg', '.projectile']