Update vimrc to the current setup

This commit is contained in:
2024-03-30 00:45:18 +05:30
parent a1b04517a5
commit 1b789cb8cc

60
.vimrc
View File

@@ -1,52 +1,38 @@
set nocompatible
" Vim Plug
call plug#begin('~/.vim/plugged')
" Actual plugins
Plug 'editorconfig/editorconfig-vim'
"utility
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'tpope/vim-fugitive'
Plug 'preservim/nerdtree'
"accessiblities
Plug 'NLKNguyen/papercolor-theme'
Plug 'itchyny/lightline.vim'
call plug#end()
" Important!!
if has('termguicolors')
set termguicolors
endif
" For dark version.
syntax on
set background=dark
" Set contrast.
" This configuration option should be placed before `colorscheme everforest`.
" Available values: 'hard', 'medium'(default), 'soft'
let g:everforest_background = 'soft'
" For better performance
let g:everforest_better_performance = 1
colorscheme everforest
set laststatus=2
set t_Co=256
set encoding=utf-8
let g:lightline = {
\ 'colorscheme': 'PaperColor',
\ }
colorscheme PaperColor
set shiftwidth=4
set tabstop=4
set expandtab
set smarttab
set autoindent
set magic
filetype on
set number
set scrolloff=3
set sidescroll=3
set ruler
set cc=80
set nowrap
set ignorecase
set smartcase
set splitbelow
set hidden
set notimeout
set incsearch
set showmatch
set hlsearch
set mouse=a
set noswapfile
set nofoldenable
set lazyredraw
syntax enable