tungph
5/20/2019 - 4:01 AM

Vim setup

Collection of useful vim setup and usage.

syntax enable           " enable syntax processing
set number              " show line numbers
set showcmd             " show command in bottom bar
set wildmenu            " visual autocomplete for command menu
set showmatch           " highlight matching [{()}]
set incsearch           " search as characters are entered
set hlsearch            " highlight matches

" persistent undo
set undofile 
set undodir=~/.vim/undodir

" jk is escape
inoremap jk <esc>