From ff7a3074a20e2897e3b17e323d6a6071371e239d Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Wed, 17 Aug 2022 16:53:11 +0300 Subject: [PATCH] fzf basic istallation --- vim/vimrc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index 77e7252..b65a6f5 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -36,6 +36,8 @@ call plug#begin('~/.vim/bundle') "Начать искать плагины в э Plug 'jreybert/vimagit' Plug 'preservim/nerdtree' Plug 'towolf/vim-helm' + Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } + Plug 'junegunn/fzf.vim' call plug#end() "Перестать это делать " @@ -71,6 +73,23 @@ highlight VertSplit cterm=none " Exit Vim if NERDTree is the only window remaining in the only tab. autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif +" +" fzf plugin config +" +let g:fzf_preview_window = 'right:50%' +let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } } + +nnoremap b :Buffers +nnoremap f :Files +nnoremap cf :Rg +nnoremap / :BLines +nnoremap ' :Marks +nnoremap g :Commits +nnoremap H :Helptags +nnoremap hh :History +nnoremap h: :History: +nnoremap h/ :History/ + " YAML files config autocmd FileType yaml,yml setlocal ts=2 sts=2 sw=2 expandtab let g:indentLine_char = '⦙'