Notepad/Edit equivalent for Linux command line [closed]

I'm looking for a simple text editor that I can use from the command line in Linux to edit files. I'm used to editing files in windows, so I'm looking for something with the same keyboard interface. That means:

  • SHIFT+Arrow Keys/PGUP/PGDN to select text
  • CTRL+C, CTRL+X, CTRL+V to copy/cut/paste

And that's pretty much it. Surprisingly I'm having a tough time finding something like this. Vi/emacs are naturally out. Nano comes close, but has its own non-standard cut/paste/select keyboard shortcuts.

Surely this thing exists somewhere. Thanks in advance for pointing me in the right direction.


nano is as close as I've found to something I can easily transition to. It is certainly the closest command line tool to edit in DOS.


I highly recommend just learning vim. There are plenty of "quick start" and "quick reference" guides to get you started. You will be much happier in the long run.

http://tnerual.eriogerg.free.fr/vimqrc.html

http://fosswire.com/post/2007/11/ultra-quick-start-in-vim/


cream is meant to be an easier-to-learn vim which implements the Common User Access keybindings. I haven't used it, but they have a snazzy webpage.

The downside to something like cream is that it's much less likely to be available on a given system than is vim. Either vim or vi itself is guaranteed to be installed on any unix-ish system.

If you are interested in learning vim, so as to be ready to use it or vi for those times when you need to, your best bet may be to install it on your windows system and start using it instead of notepad. There is lots to be learned, and if learn it you will be able to do things much faster than before.

Tips and resources
  • Vim's help is pretty thorough: try the command :help help to get started.
  • Undoing is easy: just press <ESC> and/or <CTRL-C>' a couple times to get back to normal mode. You can then undo any accidental changes, usingu`, until you're back to where you want to be.
  • <CTRL-R> will redo.
  • :help vimtutor will bring up a tutorial.
  • I found this visual cheat sheet invaluable when first learning vim.

After you put in a couple of hours learning basic commands, you'll probably start saving time with basic editing. Also, it's quite interesting: it makes editing a bit more like an arcade or strategy game. This aspect, i.e. preventing brain-rot and the loss in productivity that comes with perceived drudgery, may actually be more valuable than the increase in speed.

This post has more tips on learning vim: stackoverflow.com/questions/74625/what-is-the-best-way-to-force-yourself-to-master-vi


If you're running X windows then there are a lot of graphical editors you can run, gedit springs to mind.

You may be able to define nano's escape sequence behaviour in your .nanorc file.

I know it looks arcane, but I'd take the time to learn Vi, once you learn it, you wonder why you used anything else.

You can learn emacs, however I regard emacs to be an operating system in its own right, it's not an editor ;-).