
Configuration file:
syntax on
set tabstop=4
set shiftwidth=4
set softtabstop=4
set autoindent
set smartindent
“set termguicolors
colorscheme desert
set number
set laststatus=2
set nocompatible
set wrap
set encoding=utf-8
set cursorline
set cursorcolumn
“set spell
set mouse=a
set hlsearch
if filereadable(expand(“~/.vimrc.plug”))
source ~/.vimrc.plug
endif
” VIMSCRIPT ————————————————————– {{{
” Enable the marker method of folding.
augroup filetype_vim
autocmd!
autocmd FileType vim setlocal foldmethod=marker
augroup END
” If the current file type is HTML, set indentation to 2 spaces.
autocmd Filetype html setlocal tabstop=2 shiftwidth=2 expandtab
” If Vim version is equal to or greater than 7.3 enable undofile.
” This allows you to undo changes to a file even after saving it.
if version >= 703
set undodir=~/.vim/backup
set undofile
set undoreload=10000
endif
” You can split a window into sections by typing :split or :vsplit.
” Display cursorline and cursorcolumn ONLY in active window.
augroup cursor_off
autocmd!
autocmd WinLeave * set nocursorline nocursorcolumn
autocmd WinEnter * set cursorline cursorcolumn
augroup END




