From 5abbf5ea481fda6619bab10c7daa80ec786e15c6 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Tue, 5 Nov 2024 18:24:47 +0700 Subject: [PATCH] vimrc added and startdwm.sh changed --- bin/startdwm.sh | 1 - vimrc | 68 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 vimrc diff --git a/bin/startdwm.sh b/bin/startdwm.sh index 57c72bf..1269037 100755 --- a/bin/startdwm.sh +++ b/bin/startdwm.sh @@ -4,7 +4,6 @@ setxkbmap "us,ru" -option 'grp:win_space_toggle' dunst & lxpolkit & -dwmstatus_xcb & xrdb -merge ~/dotfiles/Xresources diff --git a/vimrc b/vimrc new file mode 100644 index 0000000..366eb50 --- /dev/null +++ b/vimrc @@ -0,0 +1,68 @@ +set number +syntax on +set expandtab +set smarttab +set tabstop=4 +set softtabstop=4 +set shiftwidth=4 +set foldcolumn=2 +set mouse=a +set encoding=utf8 +set guifont=JetBrains\ Mono\ Nerd\ Font\ 11 + +"-------- colorcolumn ------------------ +set colorcolumn=110 +highlight ColorColumn ctermbg=darkgray +"--------------------------------------- + +"-------------------- plugins ------------------------ +call plug#begin() + Plug 'preservim/nerdtree' + Plug 'ryanoasis/vim-devicons' + Plug 'ap/vim-css-color' + Plug 'leshill/vim-json' + Plug 'tiagofumo/vim-nerdtree-syntax-highlight' + Plug 'othree/html5-syntax.vim' + Plug 'ghifarit53/tokyonight-vim' + Plug 'Eliot00/git-lens.vim' + Plug 'pangloss/vim-javascript' +call plug#end() +"----------------------------------------------------- + +"--------- keybinds ------------------------- +nnoremap :NERDTreeFocus +inoremap :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 -------- +nnoremap :term +inoremap :term +"------------------------------- +"------------- gitlens ----------------------- +nnoremap :call ToggleGitLens() +inoremap :call ToggleGitLens() +"--------------------------------------------- +nnoremap :w +inoremap :w +nnoremap :q +inoremap :q +"------------- vim-plug -------------- +nnoremap :PlugInstall +inoremap :PlugInstall +"------------------------------------- +nnoremap :so% +inoremap :so% +"--------------------------------------------