Vim options: Difference between revisions
From wikinotes
No edit summary |
|||
Line 21: | Line 21: | ||
<blockquote> | <blockquote> | ||
<syntaxhighlight lang="vim"> | <syntaxhighlight lang="vim"> | ||
set list " activate listchars | |||
set list | set listchars=tab:\|\ , " each tab preceded by '| ' | ||
set listchars=tab:\|\ , | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- list, listchars --> | </blockquote><!-- list, listchars --> |
Revision as of 02:49, 1 November 2021
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
list, listchars
set list " activate listchars set listchars=tab:\|\ , " each tab preceded by '| '