Simple but sufficient .vimrc settings in case someone needs it.

From: Amit
Date: Tue Jun 21 2022 - 01:42:08 EST


Simple but sufficient .vimrc settings in case someone needs it.

set hlsearch
set ts=4
set expandtab
set shiftwidth=4

set autoindent
set smartindent

syntax on

set formatoptions+=r

set colorcolumn=81
highlight ColorColumn ctermbg=black ctermfg=white

if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") |
exe "normal! g'\"" | endif
endif