Help on viewing Help in System 1.vim
- Press
F1
vim
to open your own preset help document in normal mode
- Enter
:h shiftwidth
shiftwidth
The open Help file in command line mode
- Input
:ver
display version and parameters in command line mode
function setting of 1.vim function
Can be set when editing the file function settings, such as the command line mode input :set nu
(display number of lines), set value exit Vim will not be saved. To permanently save the configuration, you need to modify the Vim configuration file. Vim configuration file ~/.vimrc
, you can open the file for modification, but be careful not to affect the normal use of vim
2. Get the current settings
- Enter
:set
or :se
display all modified configurations in command line mode
- command-line mode input
:set all
displays all the SetPoint values
- Command-line mode
:set option?
to enter a setting value that displays option
- Command line mode to enter the
:set nooption
cancel current set value
Description of the 3.set function
:set autoindent(ai)
automatic indentation of input settings in command line mode
- Command line mode input
:set autowrite(aw)
set AutoArchive, default not open
- Enter or in command line
:set background=dark
mode light
, set the background style
- Command line mode input
:set backup(bk)
set automatic backup, default not open
- Command line mode input
: set cindent(cin)
set C language style indent
For more detailed parameters, please refer to the VIM manual
Vim Help system and function settings