set nocompatible " prevent from emulating vi's bugs and limitations. set t_Co=256 " allow more colors (256 - see below) augroup colorscheme_change autocmd! " autocmd ColorScheme * highlight Comment ctermfg=gray " autocmd ColorScheme * hi Visual guifg=White guibg=LightBlue " autocmd ColorScheme * hi Comment ctermfg=102 autocmd ColorScheme * hi Visual ctermfg=230 ctermbg=196 augroup end "color desert "color gruvbox "colorscheme molokai color better-molokai set number! " STATUS LINE ------------------------------------------------------------ {{{ " Clear status line when vimrc is reloaded. set statusline= " Status line left side. set statusline+=\ %F\ %M\ %Y\ %R " Use a divider to separate the left side from the right side. set statusline+=%= " Status line right side. set statusline+=\ ascii:\ %b\ hex:\ 0x%B\ row:\ %l\ col:\ %c\ percent:\ %p%% " Show the status on the second to last line. set laststatus=2 " }}} " Enable type file detection. Vim will be able to try to detect the type of file is use. filetype on "File type detection filetype plugin on " filetype indent on " syntax on set cursorline "Set set cursorcolumn set tabstop=4 set nowrap set ignorecase set mousehide " Show matching words during a search. set showmatch " Show brackets set showcmd " Show (partal) commands in status line " Use highlighting when doing a search. set hlsearch " Set the commands to save in history default number is 20. set history=1000 " Enable auto completion menu after pressing TAB. set wildmenu " Make wildmenu behave like similar to Bash completion. set wildmode=list:longest " Key Bindings: " : past toggle (past without autoindent) " : open file under cursor " : toggle line numbers " : open directory in new tab " : toggle line wrapping " : toggle list chars (show non printable chars) " : indent whole file (4 space indention) " : go to previous tab " : go to next tab " past toggle { nnoremap :set invpaste paste? set pastetoggle= set showmode " } " openFileUnderCursor { map :wincmd gf " } " number toggle { map :set invnumber " } " open directory in tab { map :tabnew ./ " } " toggle line number wraping { map :set invwrap " } " toggle listchars { map :set invlist "} "indent { map mzgg=G`z " } " noremap % v% map :tabp map :tabn map :tabp map :tabn cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' edit! "Не комментировать при вставке из буфера " set paste "set nopaste set formatoptions-=cr