fzf basic istallation
This commit is contained in:
19
vim/vimrc
19
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 <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
|
||||
autocmd FileType yaml,yml setlocal ts=2 sts=2 sw=2 expandtab
|
||||
let g:indentLine_char = '⦙'
|
||||
|
||||
Reference in New Issue
Block a user