Simple but sufficient .vimrc settings.
From: Amit
Date: Tue Mar 04 2025 - 06:24:10 EST
Simple but sufficient .vimrc settings.
set hlsearch
set ts=4
set expandtab
set shiftwidth=4
set autoindent
set smartindent
syntax on
set formatoptions+=r
set splitbelow
set splitright
set colorcolumn=81
highlight ColorColumn ctermbg=black ctermfg=white
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") |
exe "normal! g'\"" | endif
endif