Пример файла .vimrc
set colorcolumn=110 " Подсветка столбца с заданным номером (не пишите длинных строк)"
highlight ColorColumn ctermbg=darkgray " Изменение цвета подсветки"
set number
set cursorline
set showmatch "Подсветка парных кобок"
"
"
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab " Замена табуляций пробелами"
syntax enable " enable syntax processing"
" use indentation of previous line"
set autoindent
" use intelligent indentation for C"
set smartindent
" Searching"
set ignorecase " Use case insensitive search"
set smartcase " ... except when using capital letters"
set hlsearch " highlight matches"
"Сворачивание кода"
set foldmethod=indent " fold based on indent level"
set foldenable " enable folding"
set foldlevelstart=10 " open most folds by default"
set foldnestmax=10 " 10 nested fold max"
""
nnoremap za
"Запоминание сверток при выходе из файла"
autocmd BufWinLeave *.* mkview
autocmd BufWinEnter *.* silent loadview
" in normal mode F2 will save the file"
nmap :w
" in insert mode F2 will exit insert, save, enters insert again"
imap :wi