diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-04 22:57:29 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-04 22:57:29 +0200 |
commit | 333b80acf3a44e462456e6d5730e47ffa449c83d (patch) | |
tree | 24070cc76ef5b978aabc38db366e04e0dbed591d /runtime/doc/terminal.txt | |
parent | 1f8495cf48888ff3a8ab3d0eb22db92389191a60 (diff) |
patch 8.0.1660: the terminal API "drop" command doesn't support optionsv8.0.1660
Problem: The terminal API "drop" command doesn't support options.
Solution: Implement the options.
Diffstat (limited to 'runtime/doc/terminal.txt')
-rw-r--r-- | runtime/doc/terminal.txt | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/runtime/doc/terminal.txt b/runtime/doc/terminal.txt index 54c7e1f044..f575c82d1b 100644 --- a/runtime/doc/terminal.txt +++ b/runtime/doc/terminal.txt @@ -25,7 +25,7 @@ If the result is "1" you have it. MS-Windows |terminal-ms-windows| 2. Terminal communication |terminal-communication| Vim to job: term_sendkeys() |terminal-to-job| - Job to Vim: JSON API |terminal-api| + Job to Vim: JSON API |terminal-api| Using the client-server feature |terminal-client-server| 3. Remote testing |terminal-testing| 4. Diffing screen dumps |terminal-diff| @@ -352,7 +352,7 @@ On Unix a pty is used to make it possible to run all kinds of commands. You can even run Vim in the terminal! That's used for debugging, see below. Environment variables are used to pass information to the running job: - TERM name of the terminal, 'term' + TERM name of the terminal, from the 'term' option ROWS number of rows in the terminal initially LINES same as ROWS COLUMNS number of columns in the terminal initially @@ -443,11 +443,25 @@ Currently supported commands: < Output from `:echo` may be erased by a redraw, use `:echomsg` to be able to see it with `:messages`. - drop {filename} + drop {filename} [options] Let Vim open a file, like the `:drop` command. If {filename} is already open in a window, switch to that window. Otherwise open a new window to edit {filename}. + + [options] is only used when opening a new window. If present, + it must be a Dict. Similarly to |++opt|, These entries are recognized: + "ff" file format: "dos", "mac" or "unix" + "fileformat" idem + "enc" overrides 'fileencoding' + "encoding" idem + "bin" sets 'binary' + "binary" idem + "nobin" resets 'binary' + "nobinary" idem + "bad" specifies behavior for bad characters, see + |++bad| + Example in JSON: > ["drop", "path/file.txt", {"ff": "dos"}] |