doc: clarify -Es
This commit is contained in:
parent
eabe7d95f8
commit
544305e802
|
@ -195,34 +195,33 @@ argument.
|
|||
-E Start Nvim in Ex mode |gQ|.
|
||||
|
||||
If stdin is not a TTY:
|
||||
-e reads stdin as Ex commands.
|
||||
-e reads/executes stdin as Ex commands.
|
||||
-E reads stdin as text (into buffer 1).
|
||||
|
||||
*-es* *-Es*
|
||||
-es *-s-ex* *silent-mode*
|
||||
-Es Silent or batch mode: execute Ex commands from a file instead
|
||||
of a terminal. Special case of |-s| (which takes an argument
|
||||
while "-es" doesn't). Disables most prompts, messages,
|
||||
warnings and errors.
|
||||
Output of these commands is displayed (to stdout):
|
||||
-es *-es* *-Es* *-s-ex* *silent-mode*
|
||||
-Es Silent or batch mode. Special case of |-s| (which takes an
|
||||
argument while "-es" doesn't). Disables most prompts,
|
||||
messages, warnings and errors.
|
||||
|
||||
-es reads/executes stdin as Ex commands. >
|
||||
printf "put ='foo'\n%%print\n" | nvim -es
|
||||
|
||||
< -Es reads stdin as text (into buffer 1). Use |-c| or "+" to
|
||||
send commands. >
|
||||
printf "foo\n" | nvim -Es +"%print"
|
||||
|
||||
< Output of these commands is displayed (to stdout):
|
||||
:print
|
||||
:list
|
||||
:number
|
||||
:set to display option values.
|
||||
When 'verbose' is set messages are printed to stderr, e.g.: >
|
||||
:set (to display option values)
|
||||
When 'verbose' is set messages are printed to stderr. >
|
||||
echo foo | nvim -V1 -es
|
||||
<
|
||||
User |init.vim| is skipped (unless given with |-u|).
|
||||
|
||||
< User |init.vim| is skipped (unless given with |-u|).
|
||||
Swap file is skipped (like |-n|).
|
||||
|$TERM| is not used.
|
||||
User |shada| is loaded (unless "-i NONE" is given).
|
||||
|
||||
If stdin is not a TTY:
|
||||
-es reads stdin as Ex commands.
|
||||
-Es reads stdin as text (into buffer 1).
|
||||
|
||||
Example: >
|
||||
printf "put ='foo'\n%%print\n" | nvim -es
|
||||
<
|
||||
*-b*
|
||||
-b Binary mode. File I/O will only recognize <NL> to separate
|
||||
lines. The 'expandtab' option will be reset. The 'textwidth'
|
||||
|
|
Loading…
Reference in New Issue