Just a note, but ':help' doesn't always go to what you want. For example the option 'smartindent' (set with ':set smartindent') can be abbreviated as ':set si', but ':help si' takes you to the help for the ':sim[alt]' command.
It's useful to note that when searching through help you type something like:
:help 'si'
To get help on a variable and:
:help :si
To get help on a command. The first form would take you to the help entry for 'smartindent' and the second would take you to the entry for :simalt. If you just use:
:help si
It will just find the first match for 'si', which in this case is the tag :si and not the tag 'si'.
Other possible confusions with :help are:
:help tab
Will take to the help for <Tab> (the tab key/tab character), whereas the help page for all the things related to Vim tabs is:
:help tabpage
(though :help tabs will take you to the :tabs command which is part of the tabpage help doc)
:help si<CTL-D> (type :help space s i and control-d after the i)
will give you all available variations in help on si, including 'si' and si among many others.
CTL-D is a sort of intelli-suggest in context (except it's move 1/2 page down in command mode)
:help<CTL-D> gives variations of help in your installation.
:help <CTL-D> (help then space then control-D) gives more variations.
:help help<CTL-D> (ask for help on help, with a control-D immediately after the last p) gives more variations on help.
:help c_CTRL-D (literally typed just like that) is the help entry for using CTL-D on the command line.
:help CTRL-D<CTL-D> (everything up to the first D literally, then control-D) lists all the different help subjects for CTRL-D in various contexts.
:<CTL-D> (control-D immediately after typing colon) lists all the things you can do on the command line, including help.
":help help-context" explains this. And :h 'si' is for an option, not a variable.
And what's up with highlighting the most abused and misunderstood option ever? 'cindent' replaced 'smartindent', and usually you want "filetype indent on" in your .vimrc, not "set si" or "set cin".
It's useful to note that when searching through help you type something like:
To get help on a variable and: To get help on a command. The first form would take you to the help entry for 'smartindent' and the second would take you to the entry for :simalt. If you just use: It will just find the first match for 'si', which in this case is the tag :si and not the tag 'si'.Other possible confusions with :help are:
Will take to the help for <Tab> (the tab key/tab character), whereas the help page for all the things related to Vim tabs is: (though :help tabs will take you to the :tabs command which is part of the tabpage help doc)