fzf basic istallation

This commit is contained in:
2022-08-17 16:53:11 +03:00
parent 9351e7fcd8
commit ff7a3074a2

View File

@@ -36,6 +36,8 @@ call plug#begin('~/.vim/bundle') "Начать искать плагины в э
Plug 'jreybert/vimagit' Plug 'jreybert/vimagit'
Plug 'preservim/nerdtree' Plug 'preservim/nerdtree'
Plug 'towolf/vim-helm' Plug 'towolf/vim-helm'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
call plug#end() "Перестать это делать call plug#end() "Перестать это делать
" "
@@ -71,6 +73,23 @@ highlight VertSplit cterm=none
" Exit Vim if NERDTree is the only window remaining in the only tab. " 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 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 <silent> <Leader>b :Buffers<CR>
nnoremap <silent> <Leader>f :Files<CR>
nnoremap <silent> <Leader>cf :Rg<CR>
nnoremap <silent> <Leader>/ :BLines<CR>
nnoremap <silent> <Leader>' :Marks<CR>
nnoremap <silent> <Leader>g :Commits<CR>
nnoremap <silent> <Leader>H :Helptags<CR>
nnoremap <silent> <Leader>hh :History<CR>
nnoremap <silent> <Leader>h: :History:<CR>
nnoremap <silent> <Leader>h/ :History/<CR>
" YAML files config " YAML files config
autocmd FileType yaml,yml setlocal ts=2 sts=2 sw=2 expandtab autocmd FileType yaml,yml setlocal ts=2 sts=2 sw=2 expandtab
let g:indentLine_char = '⦙' let g:indentLine_char = '⦙'