Vim options: Difference between revisions
From wikinotes
Line 31: | Line 31: | ||
<blockquote> | <blockquote> | ||
Hidden text (ex. links in orgmode) | Hidden text (ex. links in orgmode) | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="vim"> | ||
set conceallevel=1 | set conceallevel=1 | ||
set concealcursor=nv " stay concealed in (n)ormal, (v)isual modes | set concealcursor=nv " stay concealed in (n)ormal, (v)isual modes | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- conceallevel, concealcursor --> | </blockquote><!-- conceallevel, concealcursor --> |
Latest revision as of 17:22, 25 June 2023
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