diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-05-29 07:22:15 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-06-04 02:09:27 +0200 |
commit | 1f300e08b8c0c35b2f3d79506ae9817cd8591624 (patch) | |
tree | 26894f80f6b8d37209d492602c37205ce126380d /runtime | |
parent | 4211255c755513aa91d4a9277b69b557fc6658ee (diff) | |
download | rneovim-1f300e08b8c0c35b2f3d79506ae9817cd8591624.tar.gz rneovim-1f300e08b8c0c35b2f3d79506ae9817cd8591624.tar.bz2 rneovim-1f300e08b8c0c35b2f3d79506ae9817cd8591624.zip |
win/startup: remove --literal
Fixes 2 failing tests in startup_spec.lua.
The Windows-only `--literal` option complicates support of "stdin-as-text
+ file-args" (#7679). Could work around it, but it's not worth
the trouble:
- users have a reasonable (and englightening) alternative: nvim +"n *"
- "always literal" is more consistent/predictable
- avoids platform-specific special-case
Unrelated changes:
- Replace fileno(stdxx) with STDXX_FILENO for consistency (not motivated
by any observed technical reason).
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/starting.txt | 11 | ||||
-rw-r--r-- | runtime/doc/vim_diff.txt | 4 |
2 files changed, 5 insertions, 10 deletions
diff --git a/runtime/doc/starting.txt b/runtime/doc/starting.txt index db3eb757c0..5ff9e0b5dc 100644 --- a/runtime/doc/starting.txt +++ b/runtime/doc/starting.txt @@ -22,8 +22,7 @@ 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. -Exactly one out of the following five items may be used to choose how to -start editing: +The following items may be used to choose how to start editing: *-file* *---* filename One or more file names. The first one will be the current @@ -34,7 +33,6 @@ filename One or more file names. The first one will be the current nvim -- -filename < All arguments after the "--" will be interpreted as file names, no other options or "+command" argument can follow. - For behavior of quotes on MS-Windows, see |win32-quotes|. *--* - This argument can mean two things, depending on whether Ex @@ -104,13 +102,6 @@ argument. (Only available when compiled with the |+startuptime| feature). - *--literal* ---literal Take file names literally, don't expand wildcards. Not needed - for Unix, because Vim always takes file names literally (the - shell expands wildcards). - Applies to all the names, also the ones that come before this - argument. - *-+* +[num] The cursor will be positioned on line "num" for the first file being edited. If "num" is missing, the cursor will be diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 04d78da45a..ceae8eba8c 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -440,6 +440,10 @@ Other compile-time features: Emacs tags support X11 integration (see |x11-selection|) +Startup: + --literal (file args are always literal; to expand wildcards on Windows, use + |:n| e.g. `nvim +"n *"`) + Nvim does not have a built-in GUI and hence the following aliases have been removed: gvim, gex, gview, rgvim, rgview |