In terminal on mac I was able to the command In terminal vi bot.py
to create a file inside of a directory. I would do mkdir supreme_bot
and then do vi bot.py
which would open a separate window to code and I could save it and move back and fourth between terminal and my work in progress code. On windows I did mkdir supreme_bot
(which created the folder), but when I did vi bot.py
it did not open that section. What is the command for that for cmd on windows?
This probably happens because vi is a text editor that is installed on your Mac and is not installed on your Windows system. There should be an error message indicating that the vi
command could not be found.
Try typing notepad bot.py
instead of vi bot.py
which will open the Windows default notepad.
However, if you like the style of the vi editor you can also install vim on Windows and set it up for command line usage, see this post. Afterwards, you can open and create files as you did before.