'Vim in command prompt on Windows 10

I wanted to use Vim on the command prompt, but it gave

vim is not recognized as an internal or external command

I tried searching for a solution and found that I should edit the user specific environment variable 'path', but it still gives the same error. What can be the solution?

vim


Solution 1:[1]

Go to the file location, and double click install.exe. That will open cmd.

If it asks you "Do you want to uninstall", type N and then type D.

Solution 2:[2]

Actually I selected 'browse directory' and selected the location of Vim i.e., C:\Program Files (x86)\Vim

You need to locate the directory that contains vim.exe. If you use the default installation options (and latest available version), that would be C:\Program Files (x86)\Vim\vim80.

Note that there's also a 64-bit version of Vim for Windows.

Solution 3:[3]

Install vim again and make sure to check the box of "create .bat files" option when installing

Solution 4:[4]

It's a problem of the installer on Windows 10!

The installer tries to write some files into C:\WINDOWS, but if you install without administrator privileges, those files cannot be written. However, the rest of the install works and so you think everything is fine.

Try to restart install.exe as an administrator!

Solution 5:[5]

unistall everythingn then follow the guide on: https://www.thewindowsclub.com/install-vim-text-editor-on-windows and make sure to get the full installation it will work in the CMD after that make sure to run it as admin i had the same issue

Solution 6:[6]

When installing, put it to vim itself to create the bat path file on windows. This was my solution to this problem

Solution 7:[7]

First, open Power shell and set alias for canonized commands (Windows 7 and above):

$ Set-alias vi "\path\to\gvim.exe"

$ Set-alias vim "\path\to\gvim.exe"

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Peter Mortensen
Solution 2 Peter Mortensen
Solution 3 Kiwi
Solution 4 Peter Mortensen
Solution 5 Kylie Staraway
Solution 6 jonatasvnascimento
Solution 7 Scorpion_Veer