vim Configuring Vim Which options can I use?


If you don't know which options you should use, you may be interested in the :options command.

This will open a split with all Vim options listed and with their current value displayed. There are 26 sections to display all options you can try.


4 displaying text

scroll    number of lines to scroll for CTRL-U and CTRL-D
    (local to window)
     set scr=20
scrolloff    number of screen lines to show around the cursor
     set so=5
wrap    long lines wrap
     set nowrap    wrap


On a value line (e.g. set nowrap) you can press CR to toggle the value (if it's a binary value). On an option line (e.g. wrap long line wrap) you can press CR to access the documentation for this option.