Skip to content

Instantly share code, notes, and snippets.

@cocolacre
Created July 20, 2021 19:46
Show Gist options
  • Save cocolacre/6342beea35e806a1a0e38e7b14ffabff to your computer and use it in GitHub Desktop.
Save cocolacre/6342beea35e806a1a0e38e7b14ffabff to your computer and use it in GitHub Desktop.
gr1m made a simple VIM clone from batch to satisfy your needs.
::I needed a absolute minimal console text editor for windows. 2 minutes of googling brought me here:
::https://stackoverflow.com/questions/19497399/basic-text-editor-in-command-prompt
@echo off
title WinVim
color a
cls
echo WinVim 1.02
echo.
echo To save press CTRL+Z then press enter
echo.
echo Make sure to include extension in file name
set /p name=File Name:
copy con %name%
if exist %name% copy %name% + con
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment