Under Development
stars

Configuration Variables

Configuration Variables#

Commands for setting, unsetting, and resetting config options and environment variables.

:set#

Set the value of a config variable.

  • set <variable> = <value> β€” assign a value

  • set <variable> β€” set a boolean to true

  • set no<variable> β€” set a boolean to false

  • set inv<variable> β€” toggle a boolean

  • set <variable> += <value> β€” append to a string, or add to a number

  • set <variable> -= <value> β€” remove from a string, or subtract from a number

  • set <variable>? β€” display the current value

set sort = reverse-date
set editor = "vim +/^$ ++1"
set real_name = "Jane Doe"
set folder = "imaps://mail.example.com/INBOX"
set beep_new
set nomarkers
set invhelp
set index_format += " %g"
set sort?

:unset#

Reset a config option to false (booleans) or empty (strings).

  • unset <variable> β€” clear a single variable

  • unset <var1> <var2> β€” clear multiple variables

unset imap_pass
unset imap_authenticators smtp_authenticators

:reset#

Reset a config option to its initial (default) value.

  • reset <variable> β€” reset one variable

  • reset <var1> <var2> β€” reset multiple variables

reset sort
reset index_format status_format

:toggle#

Toggle the value of a boolean or quad-option variable.

  • toggle <variable> β€” flip the value

toggle sidebar_visible
toggle help

:setenv#

Set or query an environment variable.

  • setenv <variable>=<value> β€” set a value

  • setenv <variable>? β€” display the current value

setenv EDITOR=vim
setenv MAIL_DIR=/home/user/Mail
setenv EDITOR?

:unsetenv#

Remove an environment variable.

  • unsetenv <variable> β€” unset the variable

unsetenv MAIL_DIR