Vim options

From wikinotes

Vim's configurable settings are called options

Documentation

:help option https://vimhelp.org/options.txt.html

Usage

let foo = &filetype  " assign an option to a variable
set filetype=vim     " assign a value to an option
setlocal ignorecase  " set the local variable value
echo &l:ignorecase   " get the local variable value

list, listchars

set list                 " activate listchars
set listchars=tab:\|\ ,  " each tab preceded by '| '

conceallevel, concealcursor

Hidden text (ex. links in orgmode)

set conceallevel=1
set concealcursor=nv  " stay concealed in (n)ormal, (v)isual modes