Open Znoy108x opened 1 year ago
Hi there, since you're on PowerShell please run the following commands:
Get-Command -All vim | ForEach-Object { Write-Host $_.Source }
And
Get-Command -All vi | ForEach-Object { Write-Host $_.Source }
And
Write-Host (($Env:PATH -Split ";")-Join "`n")
Then paste output of each command separately here.
Note: copy and paste as text, do not take a screenshot
C:\Users\Hp>Get-Command -All vim | ForEach-Object { Write-Host $_.Source } 'Get-Command' is not recognized as an internal or external command, operable program or batch file.
C:\Users\Hp>Get-Command -All vi | ForEach-Object { Write-Host $_.Source } 'Get-Command' is not recognized as an internal or external command, operable program or batch file.
C:\Users\Hp>Write-Host (($Env:PATH -Split ";")-Join "`n") 'Write-Host' is not recognized as an internal or external command, operable program or batch file.
You executed the commands in cmd.exe
shell rather than PowerShell.
On cmd.exe, please run the following commands instead and post the results:
where vim
and
where vi
and
set PATH
Question
When I do
vi abhay.txt
the terminal shows this error, even though I have added the vim in the pathChecklist