diff --git a/README.md b/README.md index 526e3e667..165978d74 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ Given git and Vim/NeoVim have been installed already: $ cp ~/.space-vim/init.spacevim ~/.spacevim ``` -5. Open vim, then space-vim will automatically install the missing plugins. If auto-installation fails unexpectly, please try running `:PlugInstall` manually. +5. Open vim, then space-vim will automatically detect and install the missing plugins. If auto-installation fails unexpectly, please try running `:PlugInstall` manually. ## Customize @@ -161,8 +161,7 @@ let g:spacevim_plug_home = '~/.vim/plugged' " Enable the existing layers in space-vim let g:spacevim_layers = [ - \ 'fzf', 'unite', 'better-defaults', - \ 'which-key', + \ 'fzf', 'better-defaults', 'which-key', \ ] " If you want to have more control over the layer, try using Layer command. @@ -194,7 +193,7 @@ endfunction function! UserConfig() " If you have installed the powerline fonts and want to enable airline layer - " let g:airline_powerline_fonts=1 + " let g:airline_powerline_fonts = 1 " Use gui colors in terminal if available function! s:enable_termgui() diff --git a/init.spacevim b/init.spacevim index 43038a838..e90d397b1 100644 --- a/init.spacevim +++ b/init.spacevim @@ -12,8 +12,7 @@ let g:spacevim_plug_home = '~/.vim/plugged' " Enable the existing layers in space-vim let g:spacevim_layers = [ - \ 'fzf', 'unite', 'better-defaults', - \ 'which-key', + \ 'fzf', 'better-defaults', 'which-key', \ ] " If you want to have more control over the layer, try using Layer command. diff --git a/layers/+tools/fzf/config.vim b/layers/+tools/fzf/config.vim index c73f00a06..7f6fa8406 100644 --- a/layers/+tools/fzf/config.vim +++ b/layers/+tools/fzf/config.vim @@ -33,7 +33,6 @@ else command! -bang -nargs=? -complete=dir Files \ call fzf#vim#files(, fzf#vim#with_preview(), 0) - " } command! -nargs=* Rag call spacevim#plug#fzf#AgInProject() command! -bang -nargs=* Rg call spacevim#plug#fzf#Rg(, 0) @@ -55,5 +54,13 @@ else nnoremap rg :Rg! vnoremap rg :call spacevim#plug#fzf#RgVisual() + + if !spacevim#load('unite') + nnoremap v :call spacevim#plug#fzf#Open() + nnoremap p :call spacevim#plug#fzf#Rtp() + nnoremap fc :call spacevim#plug#fzf#FZFCmd() + nnoremap ff :call spacevim#plug#fzf#Func() + endif + " } endif