Settings in Vim

Ari Sweedler
1 min readAug 8, 2018
  1. You can control settings in vim with a vimrc file (most likely ~/.vimrc)
  2. You can also control settings without leaving the editor using a :set <setting> command. Example: set expandtab
  3. You can turn boolean settings off by adding a no as a prefix. Example:set noexpandtab
  4. You can also toggle your settings in vim by adding a ! as a suffix. Example: set expandtab!
  5. You can check a setting in vim by adding a ? as a suffix. Example:set expandtab?
  6. You can set numerical values with an =n suffix. Example: set tabstop=8
  7. Vim has a shortcut for every keyword. Examples: tabstop becomes ts, expandtab becomes et, listchars becomes lcs, 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.

--

--