So I was watching a tutorial on laravel and the tutor in the vid enters the command on the terminal as shown in the picture. He said we can use touch command on mac but to keep compatible on windows he's using vim. I don't believe he has vim.exe on his laravel project folder. Project name is freecodeGram as in pic. How do i get my computer to understand the vim command. Thanks in advance, I'm on windows.
Command was: vim database/database.sqlite
Asked
Active
Viewed 1,331 times
-1

Sanoj23
- 23
- 2
- 7
-
1Welcome to SO. Please do not use an image to convey information essential to the question. If the link breaks your question will not make any sense. Please see "[Why not upload images of code on SO when asking a question?](https://meta.stackoverflow.com/a/285557/128421)" and "[Discourage screenshots of code and/or errors](https://meta.stackoverflow.com/questions/303812)", and "[Stack Overflow question checklist](https://meta.stackoverflow.com/questions/260648)" and "[Writing The Perfect Question](https://codeblog.jonskeet.uk/2010/08/29/writing-the-perfect-question/)" – the Tin Man Jan 16 '20 at 04:16
-
Will keep that in mind thank you. Thats why i was also included the command itself and gave a description – Sanoj23 Jan 16 '20 at 04:27
-
Does this answer your question? [What is the reason for "X is not recognized as an internal or external command, operable program or batch file"?](https://stackoverflow.com/questions/41454769/what-is-the-reason-for-x-is-not-recognized-as-an-internal-or-external-command) – phd Jan 16 '20 at 12:50
-
https://stackoverflow.com/search?q=%5Bvim%5D+is+not+recognized – phd Jan 16 '20 at 12:50
-
Please don't keep it in mind, fix it now. While you might want your question to pertain to you only, SO wants it to be toward the future. – the Tin Man Jan 17 '20 at 08:00
-
I just saw this comment pic deleted. – Sanoj23 Jul 09 '21 at 13:20
1 Answers
2
You need to add the path to vim.exe to your system PATH. This would allow you to type vim ..... in the CLI and would execute vim directly. Otherwise, prefix vim database/database.sqlite with c:/path/to/vim database/database.sqlite

Jesse Rushlow
- 196
- 1
- 7
-
https://www.java.com/en/download/help/path.xml has a list of how-to’s for different versions of windows to add to your a variable to your PATH – Jesse Rushlow Jan 16 '20 at 04:28
-
I added vim exe to system path, but still vim is not recognized command? – Hamza Zafeer May 08 '20 at 12:48