diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-04-09 13:16:03 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-04-22 20:56:16 +0200 |
commit | 544305e8027440d25e518962b1ab79e14930dae4 (patch) | |
tree | 982807ec61c39d530c2c3db006117844bf368433 | |
parent | eabe7d95f89b9673640a39fb60d5783efd88db57 (diff) | |
download | rneovim-544305e8027440d25e518962b1ab79e14930dae4.tar.gz rneovim-544305e8027440d25e518962b1ab79e14930dae4.tar.bz2 rneovim-544305e8027440d25e518962b1ab79e14930dae4.zip |
doc: clarify -Es
-rw-r--r-- | runtime/doc/starting.txt | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/runtime/doc/starting.txt b/runtime/doc/starting.txt index d148e1d8cd..771165c361 100644 --- a/runtime/doc/starting.txt +++ b/runtime/doc/starting.txt @@ -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|). - Swap file is skipped (like |-n|). - |$TERM| is not used. - If stdin is not a TTY: - -es reads stdin as Ex commands. - -Es reads stdin as text (into buffer 1). +< User |init.vim| is skipped (unless given with |-u|). + Swap file is skipped (like |-n|). + User |shada| is loaded (unless "-i NONE" is given). - 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' |