OptionsOn vim itself
-s
Enable silent mode (when in ex mode), or Read Normal mode commands from file <scriptin>
-d
Diff mode (like 'vimdiff')
-y
Easy mode (like 'evim', modeless)
-R
Readonly mode (like 'view')
-Z
Restricted mode (like 'rvim')
-m
Modifications (writing files) not allowed
-M
Modifications in text not allowed
-C
Compatible with Vi: 'compatible'
-N
Not fully Vi compatible: 'nocompatible'
-V
Be verbose [level N] [log messages to fname] <N> <fname>
-n
No swap file, use memory only
-r
Recover crashed session if filename is specified, otherwise list swap files and exit <filename>
-T
Set terminal type to <terminal> <terminal>
--not-a-term
Skip warning for input/output not being a terminal
--ttyfail
Exit if input or output is not a terminal
-u
Use <vimrc> instead of any .vimrc <vimrc>
--noplugin
Don't load plugin scripts
-p
Open N tab pages (default: one for each file) <N>
-o
Open N windows (default: one for each file) <N>
-O
Like -o but split vertically <N>
+
Start at end of file, if line number is specified, start at that line <lnum>
--cmd
Execute <command> before loading any vimrc file <command>
-c
Execute <command> after loading the first file <command>
-S
Source file <session> after loading the first file <session>
-w
Append all typed commands to file <scriptout> <scriptout>
-W
Write all typed commands to file <scriptout> <scriptout>
--startuptime
Write startup timing messages to <file> <file>
-i
Use <viminfo> instead of .viminfo <viminfo>
--clean
'nocompatible', Vim defaults, no plugins, no viminfo
-h--help
Print Help message and exit
--version
Print version information and exit