vim : The term 'vim' is not recognized as the name of a cmdlet?


Solution 1

In addition to installing Vim from, you also need to make sure it's added to $PATH in order to use it from the command line without using the full path. On Windows, you can do this with

Control Panel -> System -> Edit the system environment variables -> Click Environment Variables -> Find the PATH variable -> Click "edit" -> Check if Vim is here, otherwise click "new" -> Click "browse" -> Navigate to the Vim executable that you installed

After vim has been added to PATH, you should be able to use it from the command line. You will need to close and re-open Cmd/PowerShell.

Solution 2

In my case resetting/adding environment variable for VIM didn't help.

I managed to resolve this issue installing Chocolatey Windows Package Manager.

In Powershell with admin rights run:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString(''))

choco install vim and refreshenv

Your Vim is ready to run within Powershell.

Solution 3

You could simply try: start vim yourFileName

Author by


Updated on July 22, 2022


  • andreasv
    andreasv 2 months

    I'm following a tutorial on Laravel. I've never used it before. The tutorial say I should use create a file with vim database/database.sql but when I do I get the error:

    vim : The term 'vim' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + vim
    + ~~~
        + CategoryInfo          : ObjectNotFound: (vim:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException

    I've tried to install vim from but don't know if this is right. Any help is greatly appreciated. I'm using windows 10.