Monday, September 21, 2015

How to use a text editor WITHIN the Command Prompt in a Windows OS?

I would like to be able to create and edit the text of a file, all from the command line. No pop-up window (like with notepad), just create the file and start editing. I know this can be done with Nano on Mac.


My current command line is "Command Prompt with Ruby and Rails," which I'm using on Windows 8. Apparently I have VIM installed, or VI. When I commit to git, I am entered into an excellent text edit space - within my current window. Great! But how do I do it if not committing anything, and just want to >make file>edit file>. Something like >vim file_name.


So the VIM command would be appreciated. If not available, what else can I install? I tried the Nano binary. I ran the nano.exe and it works, but calling >nano file_name from cmd doesn't work. I already copy-pasted the cygwin1.dll to the folder nano asks for in the readme. No luck. I'm using the WinNT/9x binary, .zip format download.


I'm using x64 Windows 8 OS.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...