update vimrc
This commit is contained in:
1 parent
8221c9beae
commit
084068b990
1 file changed
+5
-18
@@ -29,6 +29,7 @@ call plug#begin()
|
||||
Plug 'mxw/vim-jsx'
|
||||
Plug 'theRealCarneiro/hyprland-vim-syntax'
|
||||
Plug 'junegunn/fzf.vim'
|
||||
Plug 'junegunn/fzf'
|
||||
Plug 'vv9k/vim-github-dark'
|
||||
Plug 'dracula/vim',{'as':'dracula'}
|
||||
call plug#end()
|
||||
@@ -39,7 +40,6 @@ inoremap <C-n> :NERDTreeToggle<CR>
|
||||
nnoremap <C-a> :NERDTreeFocus<CR>
|
||||
inoremap <C-a> <Esc>:NERDTreeFocus<CR>
|
||||
nnoremap <Space>e :NERDTreeFocus<CR>
|
||||
inoremap <Space>e :NERDTreeFocus<CR>
|
||||
nnoremap <C-e> :NERDTree<CR>
|
||||
nnoremap <C-z> :NERDTreeToggle<CR>
|
||||
inoremap <C-z> :NERDTreeToggle<CR>
|
||||
@@ -47,13 +47,9 @@ nnoremap <C-g> :NERDTreeRefresh<CR>
|
||||
inoremap <C-g> <Esc>:NERDTreeRefresh<CR>
|
||||
"tabs
|
||||
nnoremap <Space>[ :tabprevious<CR>
|
||||
inoremap <Space>[ <Esc>:tabprevious<CR>
|
||||
nnoremap <Space>] :tabnext<CR>
|
||||
inoremap <Space>] <Esc>:tabnext<CR>i
|
||||
nnoremap <Space>t :tabnew<CR>
|
||||
inoremap <Space>t <Esc>:tabnew<CR>
|
||||
nnoremap <Space>w :tabclose<CR>
|
||||
inoremap <Space>w <Esc>:tabclose<CR>
|
||||
"term
|
||||
nnoremap <C-x> :term<CR>
|
||||
inoremap <C-x> <Esc>:term<CR>
|
||||
@@ -64,29 +60,20 @@ function! OpenTerminalBelow()
|
||||
endfunc
|
||||
|
||||
nnoremap <Space>h :call OpenTerminalBelow()<CR>
|
||||
inoremap <Space>h <Esc>:call OpenTerminalBelow()<CR>
|
||||
nnoremap <Space>l :resize +5<CR>
|
||||
inoremap <Space>l <Esc>:resize +5<CR>
|
||||
nnoremap <Space>k :resize -5<CR>
|
||||
inoremap <Space>k <Esc>:resize -5<CR>
|
||||
"gitlens
|
||||
nnoremap <C-l> :call ToggleGitLens()<CR>
|
||||
inoremap <C-l> <Esc>:call ToggleGitLens()<CR>
|
||||
"save file
|
||||
nnoremap <C-s> :w<CR>
|
||||
inoremap <C-s> <Esc>:w<CR>
|
||||
nnoremap <Space>s :w<CR>
|
||||
"quit
|
||||
nnoremap <C-q> :q<CR>
|
||||
inoremap <C-q> <Esc>:q<CR>
|
||||
nnoremap <Space>q :q<CR>
|
||||
"vim-plug
|
||||
nnoremap <C-i> :PlugInstall<CR>
|
||||
inoremap <C-i> <Esc>:PlugInstall<CR>
|
||||
nnoremap <Space>i :PlugInstall<CR>
|
||||
"update vim config
|
||||
nnoremap <C-u> :so%<CR>
|
||||
inoremap <C-u> <Esc>:so%<CR>
|
||||
nnoremap <Space>u :so%<CR>
|
||||
"fzf
|
||||
nnoremap <Space>f :Files<CR>
|
||||
inoremap <Space>f <Esc>:Files<CR>
|
||||
nnoremap <Space>g :Rg<CR>
|
||||
inoremap <Space>g <Esc>:Rg<CR>
|
||||
nnoremap <Space>r :vimgrep // **/*<Left><Left><Left><Left><Left><Left><Left>
|
||||
Reference in new issue
Block a user