Running Neovim (nvim-qt.exe) in Windows 10 and reading tutorials in :Tutor
.
The version is 0.8.1.
:!ls
was instructed to run, so I ran it, and the result was garbled as follows:
'ls'<82>A<93>... (continued)
Perhaps when you run ls
on a command prompt,
'ls' is an internal or external command.
Not recognized as an operational program or batch file.
I expect the to be displayed with a character code that is not shift-jis.
(:!dir
did not change the parts that would have been in Japanese.)
I have two questions.
That's it.
windows vim neovim
The following methods were introduced to call PowerShell instead of cmd as an external command, although we did not actually try a partial answer:
To invoke pwsh.exe
(PowerShell Core), replace it with set shell=pwsh
.
How do I make neovim use Powershell for external commands?
You can paste these lines to your vimrc (vim:C:\Users\<username>\_vimrc
, neovim:C:\Users\<username>\AppData\local\nvim\init.vim
) to make the change to apply.
set shell=powershell
set shellcmdflag=-command
set shellquote=\"
set shellxquote=
© 2024 OneMinuteCode. All rights reserved.