3 ms·
Though ^D does work if you haven't made any changes to the file ;) But, for those who don't know it already, the way to exit ed is either wq to save the fi
by u801e 6y ago
Though ^D does work if you haven't made any changes to the file ;)
But, for those who don't know it already, the way to exit ed is either
wq
to save the file and exit, or
Q
to exit without saving.
- dirtnugget 6y agoso basically vim, except a capital instead of exclamation mark
- u801e 6y agoed basically works like what you can do in vim's normal mode (other than not having to prefix the commands with a :). IIRC, Bill Joy wrote ex as an improved version of ed and he subsequently added a visual mode to ex called vi. You can enter ex mode in vim using Q (though it may be bound to gQ) and you can exit it by typing vi.