This commit is contained in:
coast 2025-06-30 12:04:36 +03:30
parent 3be7372cfb
commit 37951c81f2
2 changed files with 74 additions and 7 deletions

67
.vimrc Normal file
View file

@ -0,0 +1,67 @@
set nocompatible
filetype plugin indent on
syntax enable
set encoding=utf-8
set laststatus=2
set statusline=%l
set statusline+=<<
set statusline+=\ %f\ %*
set statusline+=>>
set statusline+=\ %2*\ %F
set statusline+=\ %m
set statusline+=%=
set statusline+=\ %1*\ <<
set statusline+=\ Line:\ %l
set statusline+=\ Col:\ %c
set statusline+=\ :::\ %n
set statusline+=\ >>
set number
set relativenumber
set numberwidth=4
highlight LineNr ctermfg=DarkGray guifg=#3a3a3a
highlight SignColumn ctermbg=NONE guibg=NONE
highlight LineNr cterm=italic gui=italic
set tabstop=4
set shiftwidth=4
set expandtab
set smartindent
set nowrap
set incsearch
set hlsearch
set ignorecase
set smartcase
set mouse=a
set scrolloff=5
set cursorline
set noshowmode
set shortmess+=I
set laststatus=2
let mapleader = "\<Space>"
nnoremap <leader>w :w<CR>
nnoremap <leader>q :q<CR>
nnoremap <silent> <leader>h :nohlsearch<CR>
nnoremap <leader>n :set relativenumber!<CR>
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
call plug#begin('~/.vim/plugged')
Plug 'preservim/nerdtree'
Plug 'itchyny/lightline.vim'
Plug 'tpope/vim-commentary'
Plug 'airblade/vim-gitgutter'
call plug#end()
nnoremap <leader>t :NERDTreeToggle<CR>

View file

@ -16,7 +16,7 @@ general {
border_size = 1
resize_on_border = false
allow_tearing = false
layout = master
layout = dwindl/
col.active_border = rgba(646496ee) rgba(121218ee) 45deg
col.inactive_border = rgba(404040cc)
}
@ -104,10 +104,10 @@ bind = $mainMod, W, fullscreen,
bind = $mainMod, R, exec, $menu
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod, j, movefocus, l
bind = $mainMod, k, movefocus, r
bind = $mainMod, h, movefocus, u
bind = $mainMod, l, movefocus, d
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3