====== VIM configuration ====== {{template>meta:template:pageinfo#tpl |desc=Document common configurations of VIM.}} ===== .vimrc ===== The configuration I currently use. " Display line number. set nu " Set table size set ts=4 set expandtab " Render blank characters. setlocal list set listchars=tab:~~>,space:. "" Set the color of the blank characters. highlight MyTabSpace guifg=darkgrey ctermfg=darkgrey match MyTabSpace /\t\| / " Enable mouse to select text. set mouse=a " Auto-delete trailing blank characters. autocmd BufWritePre * :%s/\s\+$//e " Highlight the current row set cursorline ===== Reference ===== * //[[https://vimdoc.sourceforge.net/htmldoc/autocmd.html|autocmd]]//