vim:术语'vim'不被识别为cmdlet的名称吗?

问题描述 投票:-1回答:2

我正在学习有关laravel的教程。我以前从未用过。教程说我应该使用vim database/database.sql创建文件,但是当我收到错误消息时:>

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

我已经尝试从vim.org安装vim,但如果正确的话,请不要kofof。非常感谢您的帮助。

我正在学习有关laravel的教程。我以前从未用过。教程说我应该使用vim database / database.sql创建文件,但是出现错误时:vim:术语'vim'是...

vim
2个回答
0
投票

我相信您基本上是想打开一个sql文件。您可以使用任何编辑器打开它。您可以在命令提示符下执行以下命令:


0
投票

除了从vim.org安装Vim之外,还需要确保已将其添加到$ PATH中,以便从命令行使用它而不使用完整路径。在Windows上,您可以使用[]

控制面板->系统->编辑系统环境变量->单击环境变量->查找PATH变量->单击“编辑”->检查Vim是否在此处,否则单击“新建”->单击“浏览”->导航到您安装的Vim可执行文件

© www.soinside.com 2019 - 2024. All rights reserved.