diff --git a/vimrc b/vimrc index 8345ea6..ea23a62 100644 --- a/vimrc +++ b/vimrc @@ -9,12 +9,11 @@ set foldcolumn=2 set mouse=a set encoding=utf8 set guifont=JetBrains\ Mono\ Nerd\ Font\ 11 -"-------- colorcolumn ------------------ +"colorcolumn set colorcolumn=110 highlight ColorColumn ctermbg=darkgray -"--------------------------------------- -"-------------------- plugins ------------------------ +"plugins call plug#begin() Plug 'preservim/nerdtree' Plug 'ryanoasis/vim-devicons' @@ -27,45 +26,63 @@ call plug#begin() Plug 'pangloss/vim-javascript' Plug 'mxw/vim-jsx' Plug 'theRealCarneiro/hyprland-vim-syntax' + Plug 'junegunn/fzf.vim' call plug#end() -"----------------------------------------------------- -"--------- keybinds ------------------------- +"keybinds +nnoremap :NERDTreeToggle +inoremap :NERDTreeToggle nnoremap :NERDTreeFocus inoremap :NERDTreeFocus +nnoremap e :NERDTreeFocus +inoremap e :NERDTreeFocus nnoremap :NERDTree nnoremap :NERDTreeToggle inoremap :NERDTreeToggle nnoremap :NERDTreeRefresh inoremap :NERDTreeRefresh -"------------ tabs ----------------------- -nnoremap :tabprevious -nnoremap :tabnext -nnoremap :tabnew -inoremap :tabpreviousi -inoremap :tabnexti -inoremap :tabnew -nnoremap :tabclose -inoremap :tabclose -"----------------------------------------- -"----------------- term -------- +"tabs +nnoremap [ :tabprevious +inoremap [ :tabprevious +nnoremap ] :tabnext +inoremap ] :tabnexti +nnoremap t :tabnew +inoremap t :tabnew +nnoremap w :tabclose +inoremap w :tabclose +"term nnoremap :term inoremap :term -"------------------------------- -"------------- gitlens ----------------------- +"Open terminal bottom with 15split size +function! OpenTerminalBelow() + belowright term + resize 15 term +endfunc + +nnoremap h :call OpenTerminalBelow() +inoremap h :call OpenTerminalBelow() +nnoremap l :resize +5 +inoremap l :resize +5 +nnoremap k :resize -5 +inoremap k :resize -5 +"gitlens nnoremap :call ToggleGitLens() inoremap :call ToggleGitLens() -"--------------------------------------------- +"save file nnoremap :w inoremap :w +"quit nnoremap :q inoremap :q -"------------- vim-plug -------------- +"vim-plug nnoremap :PlugInstall inoremap :PlugInstall -"------------------------------------- +"update vim config nnoremap :so% inoremap :so% -"-------------------------------------------- -"-------------------------------------------- - +"fzf +nnoremap f :Files +inoremap f :Files +nnoremap g :Rg +inoremap g :Rg +nnoremap r :vimgrep // **/*