update vimrc

add fzf
This commit is contained in:
xfy
2025-01-16 11:36:11 +08:00
parent 9f204c2258
commit 3be3a71d8f

View File

@ -9,8 +9,12 @@ call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-surround'
Plugin 'scrooloose/nerdtree'
" status line
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
" find files
Plugin 'junegunn/fzf'
Plugin 'junegunn/fzf.vim'
call vundle#end()
" Turn on syntax highlighting
@ -111,7 +115,7 @@ colorscheme nord
let g:NERDTreeWinPos = "right"
" Mapping
map <ESC> :noh<CR>
" map <ESC> :noh<CR>
noremap - :Ex<CR> " Open local-directory browser
tnoremap <C-x> <C-\><C-n> " test
" siwtch window
@ -132,10 +136,15 @@ noremap <leader>tt :term ++curwin<CR>
noremap <S-l> :bn<CR>
noremap <S-h> :bp<CR>
noremap <leader>x :bd<CR>
noremap <leader>b :ls<CR>:b
" noremap <leader>b :ls<CR>:b
" save
noremap <C-s> :w<CR>
map <leader>p :set paste<CR>
map <leader>np :set nopaste<CR>
" nerdtree
map <leader>e :NERDTreeToggle<CR> " Open local-directory browser
" fzf
map <leader>ff :Files<CR>
map <leader>fw :Rg<CR>
map <leader>b :Buffers<CR>
map <leader>ct ::Filetypes<CR>