Closed SolitaryN closed 1 year ago
I can run it in nvim, but i can't get the right react and answer of the command
No idea what your desire result is. please be specific.
Your command is incorrect. The correct way is !gcc % && ./a.out
. BTW, I don't know this command whether works on windows.
Oops, that's my fault, i didn't not realize that it is Windows. And the correct command in Windows is :!gcc % && .\a.exe
@SolitaryN so is the problem solved?
But there are still some problem in the text format generated by the command in Windows. like below:
the command output format in nvim is not right.
can confirmed. it happens in other places too, for example, plugin installation failed, but i'm not sure how to fix it. it seems like an encoding issue.
We need some additional information (fill in all queries that are in bold [i.e., replace \<your-response> with your answer] and tick all applicable checkboxes):
```````markdown
- **Your $TERM environment variable:** _\
Preview:
nvim
supports multibyte text processing (:echo has("multi_byte")
returns 1).Write-Host ("E492:不是编辑器的命令", "", "", "", "XXXXXXXXX") -Separator " || "
nvim
(command mode).Write-Host ($OutputEncoding, [System.Console]::InputEncoding, [System.Console]::OutputEncoding) -Separator " | "
nvim
command mode is: \<your-response>:set encoding?
: \<your-response>:language
: \<your-response>:set fileencodings?
: \<your-response>cc @CharlesChiuGit @SolitaryN
xterm-256color
compatible^1nvim
supports multibyte text processing (:echo has("multi_byte")
returns 1).Half right, half wrong.
In wezterm on win11:
Write-Host ("E492:不是编辑器的命令", "", "", "", "XXXXXXXXX") -Separator " || "
They overlap.
Result:
nvim
(command mode).
it doesn't.
Result:
The output of the following command in PowerShell is:
Write-Host ($OutputEncoding, [System.Console]::InputEncoding, [System.Console]::OutputEncoding) -Separator " | "
Result: (same in wezterm's pwsh)
The output of the above command in nvim
command mode is:
Result: (same in wezterm's pwsh)
:set encoding?
: utf-8
:language
: LC_COLLATE=zh_TW;LC_CTYPE=zh_TW;LC_MONETARY=zh_TW;LC_NUMERIC=C;LC_TIME=zh_TW
:set fileencodings?
: ucs-bom,utf-8,default,latin1
My screenshots with black background are in wezterm, and those with purple background are in windows terminal.
@SolitaryN can u try this draft? #659
I would like to know if this draft can get the same result on your machine as mine.
Your $TERM environment variable: nothing was printed(echo $TERM
)
Your operating system & version: Windows10 22H2 19045.2604
[ x] My nvim
supports multibyte text processing (:echo has("multi_byte")
returns 1).
[x ] This issue can be reproduced using other terminal emulators.
[ ] The following command works as expected in PowerShell (i.e., pwsh renders those texts and icons correctly. When applicable, icons are very close to the crosses but there is no overlap):
[ ] The above command works as expected in nvim
(command mode).
The output of the following command in PowerShell is:
Write-Host ($OutputEncoding, [System.Console]::InputEncoding, [System.Console]::OutputEncoding) -Separator " | "
The output of the above command in nvim
command mode is:
The output of the following commands in neovim:
:set encoding?
: encoding=utf-8:language
: :set fileencodings?
: fileencodings=ucs-bom, utf-8,default,latin1
Your $TERM environment variable: nothing was printed(
echo $TERM
)Your operating system & version: Windows10 22H2 19045.2604
[ x] My
nvim
supports multibyte text processing (:echo has("multi_byte")
returns 1).[x ] This issue can be reproduced using other terminal emulators.
[ ] The following command works as expected in PowerShell (i.e., pwsh renders those texts and icons correctly. When applicable, icons are very close to the crosses but there is no overlap):
- [ ] The above command works as expected in
nvim
(command mode).
- The output of the following command in PowerShell is: _
_
Write-Host ($OutputEncoding, [System.Console]::InputEncoding, [System.Console]::OutputEncoding) -Separator " | "
The output of the above command in
nvim
command mode is:The output of the following commands in neovim:
:set encoding?
: encoding=utf-8
:language
:
:set fileencodings?
: fileencodings=ucs-bom, utf-8,default,latin1
I think u didn't install any nerdfont?
I installed cascadia-code, it is nerd-font right?
I installed cascadia-code, it is nerd-font right?
it seems like u install it via scoop? i found the scoop version somehow looks different then directly downloaded and install the font from the official repo. can u try reinstall the nerdfont with this manner?( i'm using jetbtainsmono, maybe u can try it, i'm not sure if this make any difference.
also, did u set the font in windows terminal's shell profile?
yes, i installed it via scoop and I set the font in windows terminal profile.
could u try install jetbrainsmono from the official nerdfont repo? tks!
there are still wrong format in nvim
whether have you had this wrong in your nvim on Windows?
there are still wrong format in nvim
i think u use the wrong name, check "font settings" to get the correct name.
whether have you had this wrong in your nvim on Windows?
there are still wrong format in nvim
check my above comment
@SolitaryN can u try this draft? #659
I would like to know if this draft can get the same result on your machine as mine.
this one
@SolitaryN so does the draft work?
Actually not, I mean maybe it's not suitable to use it in Windows, I will try it in WSL2.
thanks for your help and お世話になってすみませんでした、ありがとう
@SolitaryN I think u will be interested in https://github.com/ayamir/nvimdots/pull/659#issuecomment-1509565509.
Feature description
like in normal mode to type: :!gcc % && a.out
Additional information
No response