mirror of
https://github.com/DefectingCat/dotfiles
synced 2025-07-15 08:41:36 +00:00
update vimrc
add fzf
This commit is contained in:
13
vim/vimrc
13
vim/vimrc
@ -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>
|
||||
|
Reference in New Issue
Block a user