aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-08-04 05:32:17 -0400
committerJustin M. Keyes <justinkz@gmail.com>2019-08-04 11:32:17 +0200
commit2860453c4f9ad6abd7a967f9278401ae84a927e2 (patch)
tree34d6fdebb1b8a353fc752c984fef51a86d64eded
parent0bb1008e7fbbe493e66c517afd26309e27be6860 (diff)
downloadrneovim-2860453c4f9ad6abd7a967f9278401ae84a927e2.tar.gz
rneovim-2860453c4f9ad6abd7a967f9278401ae84a927e2.tar.bz2
rneovim-2860453c4f9ad6abd7a967f9278401ae84a927e2.zip
doc: update 'shellredir' advice for powershell #10686
Encoding can be utf8, unicode, utf32. User can choose to omit '-Encoding' to default to 'unicode'. 'ascii' encoding corrupts the following file: https://www.w3.org/2001/06/utf-8-test/UTF-8-demo.html Inspect 'foo.txt' with the following code after downloading the file. Get-Content -Encoding UTF8 UTF-8-demo.html | Out-File -Encoding ascii foo.txt
-rw-r--r--runtime/doc/options.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index ce0e01265b..6fcead0894 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -5159,8 +5159,9 @@ A jump table for the options with a short description can be found at |Q_op|.
unescaping, so to keep yourself sane use |:let-&| like shown above.
*shell-powershell*
To use powershell (on Windows): >
- set shell=powershell shellquote=( shellpipe=\| shellredir=> shellxquote=
+ set shell=powershell shellquote=( shellpipe=\| shellxquote=
set shellcmdflag=-NoLogo\ -NoProfile\ -ExecutionPolicy\ RemoteSigned\ -Command
+ set shellredir=\|\ Out-File\ -Encoding\ UTF8
< This option cannot be set from a |modeline| or in the |sandbox|, for
security reasons.