mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
doc: vi_diff: Remove 'Command line arguments' section
In regards to Nvim, it's very outdated; for an updated list of such arguments refer to the manual page or `nvim --help`. In all other regards, it's of little to no use to end-users.
This commit is contained in:
@@ -28,8 +28,6 @@ More generally, Vim is started with:
|
||||
Option arguments and file name arguments can be mixed, and any number of them
|
||||
can be given. However, watch out for options that take an argument.
|
||||
|
||||
For compatibility with various Vi versions, see |cmdline-arguments|.
|
||||
|
||||
Exactly one out of the following five items may be used to choose how to
|
||||
start editing:
|
||||
|
||||
|
@@ -14,7 +14,6 @@ mentioned in other files and gives an overview.
|
||||
2. Limits |limits|
|
||||
3. The most interesting additions |vim-additions|
|
||||
4. Other vim features |other-features|
|
||||
5. Command-line arguments |cmdline-arguments|
|
||||
|
||||
==============================================================================
|
||||
1. Missing options *missing-options*
|
||||
@@ -724,176 +723,5 @@ changing files.
|
||||
The "No lines in buffer" message is a normal message instead of an error
|
||||
message, since that may cause a mapping to be aborted.
|
||||
|
||||
==============================================================================
|
||||
5. Command-line arguments *cmdline-arguments*
|
||||
|
||||
Different versions of Vi have different command-line arguments. This can be
|
||||
confusing. To help you, this section gives an overview of the differences.
|
||||
|
||||
Five variants of Vi will be considered here:
|
||||
Elvis Elvis version 2.1b
|
||||
Nvi Nvi version 1.79
|
||||
Posix Posix 1003.2
|
||||
Vi Vi version 3.7 (for Sun 4.1.x)
|
||||
Vile Vile version 7.4 (incomplete)
|
||||
Vim Vim version 5.2
|
||||
|
||||
Only Vim is able to accept options in between and after the file names.
|
||||
|
||||
+{command} Elvis, Nvi, Posix, Vi, Vim: Same as "-c {command}".
|
||||
|
||||
- Nvi, Posix, Vi: Run Ex in batch mode.
|
||||
Vim: Read file from stdin (use -s for batch mode).
|
||||
|
||||
-- Vim: End of options, only file names are following.
|
||||
|
||||
--cmd {command} Vim: execute {command} before sourcing vimrc files.
|
||||
|
||||
--echo-wid Vim: GTK+ echoes the Window ID on stdout
|
||||
|
||||
--help Vim: show help message and exit.
|
||||
|
||||
--literal Vim: take file names literally, don't expand wildcards.
|
||||
|
||||
--nofork Vim: same as -f
|
||||
|
||||
--noplugin[s] Vim: Skip loading plugins.
|
||||
|
||||
--remote Vim: edit the files in another Vim server
|
||||
|
||||
--remote-expr {expr} Vim: evaluate {expr} in another Vim server
|
||||
|
||||
--remote-send {keys} Vim: send {keys} to a Vim server and exit
|
||||
|
||||
--remote-silent {file} Vim: edit the files in another Vim server if possible
|
||||
|
||||
--remote-wait Vim: edit the files in another Vim server and wait for it
|
||||
|
||||
--remote-wait-silent Vim: like --remote-wait, no complaints if not possible
|
||||
|
||||
--role {role} Vim: GTK+ 2: set role of main window
|
||||
|
||||
--serverlist Vim: Output a list of Vim servers and exit
|
||||
|
||||
--servername {name} Vim: Specify Vim server name
|
||||
|
||||
--socketid {id} Vim: GTK window socket to run Vim in
|
||||
|
||||
--windowid {id} Vim: Win32 window ID to run Vim in
|
||||
|
||||
--version Vim: show version message and exit.
|
||||
|
||||
-? Vile: print usage summary and exit.
|
||||
|
||||
-a Elvis: Load all specified file names into a window (use -o for
|
||||
Vim).
|
||||
|
||||
-A Vim: Start in Arabic mode (when compiled with Arabic).
|
||||
|
||||
-b {blksize} Elvis: Use {blksize} blocksize for the session file.
|
||||
-b Vim: set 'binary' mode.
|
||||
|
||||
-C Vim: Compatible mode.
|
||||
|
||||
-c {command} Elvis, Nvi, Posix, Vim: run {command} as an Ex command after
|
||||
loading the edit buffer.
|
||||
Vim: allow up to 10 "-c" arguments
|
||||
|
||||
-d Vim: start with 'diff' set. |diff-mode|
|
||||
|
||||
-D Vim: debug mode.
|
||||
|
||||
-e Elvis, Nvi, Vim: Start in Ex mode.
|
||||
|
||||
-E Vim: Start in improved Ex mode |gQ|.
|
||||
|
||||
-f Vim: Run GUI in foreground.
|
||||
-f {session} Elvis: Use {session} as the session file.
|
||||
|
||||
-F Vim: Start in Farsi mode (when compiled with Farsi).
|
||||
Nvi: Fast start, don't read the entire file when editing
|
||||
starts.
|
||||
|
||||
-G {gui} Elvis: Use the {gui} as user interface.
|
||||
|
||||
-g Vim: Start GUI.
|
||||
-g N Vile: start editing at line N
|
||||
|
||||
-h Vim: Give help message.
|
||||
Vile: edit the help file
|
||||
|
||||
-H Vim: start Hebrew mode (when compiled with it).
|
||||
|
||||
-i Elvis: Start each window in Insert mode.
|
||||
-i {viminfo} Vim: Use {viminfo} for viminfo file.
|
||||
|
||||
-L Vim: Same as "-r" (also in some versions of Vi).
|
||||
|
||||
-l Nvi, Vi, Vim: Set 'lisp' and 'showmatch' options.
|
||||
|
||||
-m Vim: Modifications not allowed to be written, resets 'write'
|
||||
option.
|
||||
|
||||
-M Vim: Modifications not allowed, resets 'modifiable' and the
|
||||
'write' option.
|
||||
|
||||
-N Vim: No-compatible mode.
|
||||
|
||||
-n Vim: No swap file used.
|
||||
|
||||
-nb[args] Vim: open a NetBeans interface connection
|
||||
|
||||
-O[N] Vim: Like -o, but use vertically split windows.
|
||||
|
||||
-o[N] Vim: Open [N] windows, or one for each file.
|
||||
|
||||
-p[N] Vim: Open [N] tab pages, or one for each file.
|
||||
|
||||
-P {parent-title} Win32 Vim: open Vim inside a parent application window
|
||||
|
||||
-q {name} Vim: Use {name} for quickfix error file.
|
||||
-q{name} Vim: Idem.
|
||||
|
||||
-R Elvis, Nvi, Posix, Vile, Vim: Set the 'readonly' option.
|
||||
|
||||
-r Elvis, Nvi, Posix, Vi, Vim: Recovery mode.
|
||||
|
||||
-S Nvi: Set 'secure' option.
|
||||
-S {script} Vim: source script after starting up.
|
||||
|
||||
-s Nvi, Posix, Vim: Same as "-" (silent mode), when in Ex mode.
|
||||
Elvis: Sets the 'safer' option.
|
||||
-s {scriptin} Vim: Read from script file {scriptin}; only when not in Ex
|
||||
mode.
|
||||
-s {pattern} Vile: search for {pattern}
|
||||
|
||||
-t {tag} Elvis, Nvi, Posix, Vi, Vim: Edit the file containing {tag}.
|
||||
-t{tag} Vim: Idem.
|
||||
|
||||
-T {term} Vim: Set terminal name to {term}.
|
||||
|
||||
-u {vimrc} Vim: Read initializations from {vimrc} file.
|
||||
|
||||
-U {gvimrc} Vim: Read GUI initializations from {gvimrc} file.
|
||||
|
||||
-v Nvi, Posix, Vi, Vim: Begin in Normal mode (visual mode, in Vi
|
||||
terms).
|
||||
Vile: View mode, no changes possible.
|
||||
|
||||
-V Elvis, Vim: Verbose mode.
|
||||
-V{nr} Vim: Verbose mode with specified level.
|
||||
|
||||
-w {size} Elvis, Posix, Nvi, Vi, Vim: Set value of 'window' to {size}.
|
||||
-w{size} Nvi, Vi: Same as "-w {size}".
|
||||
-w {name} Vim: Write to script file {name} (must start with non-digit).
|
||||
|
||||
-W {name} Vim: Append to script file {name}.
|
||||
|
||||
-X Vim: Don't connect to the X server.
|
||||
|
||||
-Z Vim: restricted mode
|
||||
|
||||
@{cmdfile} Vile: use {cmdfile} as startup file.
|
||||
|
||||
|
||||
vim:tw=78:ts=8:ft=help:norl:
|
||||
|
Reference in New Issue
Block a user