Settings in Vim
1 min readAug 8, 2018
- You can control settings in vim with a vimrc file (most likely
~/.vimrc
) - You can also control settings without leaving the editor using a
:set <setting>
command. Example:set expandtab
- You can turn boolean settings off by adding a
no
as a prefix. Example:set noexpandtab
- You can also toggle your settings in vim by adding a
!
as a suffix. Example:set expandtab!
- You can check a setting in vim by adding a
?
as a suffix. Example:set expandtab?
- You can set numerical values with an
=n
suffix. Example:set tabstop=8
- Vim has a shortcut for every keyword. Examples:
tabstop
becomests
,expandtab
becomeset
,listchars
becomeslcs
, etc.
If you’re ever writing something intended to be read by someone, then don’t use abbreviations. Abbrvs sotp ppl frm 📚 easily. Use full words.