"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " general set nocompatible set fileformat=unix set shell=bash set noswapfile set nobackup set nowritebackup set hidden set autoindent set expandtab set shiftwidth=2 set tabstop=2 set softtabstop=2 set scrolloff=8 set cursorline set noemoji set mouse=a filetype plugin on " search set hlsearch set incsearch set showmatch set smartcase " set ignorecase " line numbers set number set nu set relativenumber if exists('&bellof') set bellof=all endif if has('linebreak') set breakindent let &showbreak='↳ ' if exists('&breakindentopt') set breakindentopt=shift:2 endif endif if has('folding') set foldmethod=indent set foldlevel=10 if has('windows') set fillchars=diff:∙ set fillchars+=fold:· endif endif """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " layout if has('windows') set splitbelow endif if has('vertsplit') set splitright endif if has('syntax') set spellcapcheck= endif """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " general mappings let mapleader=" " noremap w :w noremap wq :wq noremap q :q noremap q! :q! noremap qa :qa noremap qa! :qa! noremap R :%s/ " unhighlight search matches noremap / :noh noremap b :b# " yank to clipboard vnoremap "*y :let @+=@* " `jj` to exit insert inoremap jj " up/down arrows scroll noremap noremap " move lines vnoremap :m '>+1gv=gv vnoremap :m '<-2gv=gv """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " theme if has('termguicolors') set termguicolors endif set colorcolumn=81 " insert chars at tabs and trailing spaces exec "set listchars=tab:\uBB\uBB,trail:\uB7,nbsp:~" set list set listchars=nbsp:⦸ set listchars+=tab:▷┅ set listchars+=extends:» set listchars+=precedes:« set listchars+=trail:•