Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Every once in a while, I find myself editing some text file on a remote Linux server. Most of the time, I do my best to avoid this, because I'm used to, and like, the windows way of editing files:

  • Shift+arrows to highlight text
  • Ctrl-X,C,V for cut/copy/paste
  • Tab/Shift Tab to indent/dedent highlighted text
  • etc...

I'm not saying that vi and emacs are bad, it's just that I'm not used to them. Right now nano is my editor of choice, but it has very limited support of cut and paste, no smart indent, and some unusual shortcuts.

so my question is: it there an editor that feels like Notepad++/Notepad2/eclipse/kate/gedit but can run on a linux terminal?
Alternatively, is there a way to configure vi/emacs/nano to feel more like those apps?

And please, no "you should really learn vi" answers. Tried that, didn't take.

UPDATE: I was suffering from keyword blockage. Googling for "linux console text editors" gets much better results than "linux terminal text editors".

share|improve this question
3  
I know you asked not to hear "learn vi", but I'd like add one point to that issue. It's worth knowing the MINIMUM set of commands like (insert mode, delete lines/chars, save, quit). While I don't know your situation, I've had to edit files of many different linux/solaris servers and vi is the one editor that is ALWAYS installed. On many of the machines, installing other editors is not an option. Don't throw vi out completely, just keep in your toolbox. More tools makes it easier to pick the right tool for the job –  basszero Nov 12 '09 at 13:12
1  
I agree wholeheartedly. I just find that answers like that get lots of upvotes and really distract from finding a genuine answer to the question. So thanks for leaving it as a comment. –  itsadok Nov 13 '09 at 5:30

6 Answers 6

up vote 4 down vote accepted

Have a look at the Sanos editor:

http://www.jbox.dk/sanos/editor.htm

Only a 28k binary can do what all those other editors try to -- and fail.

It does exactly what the OP asked for:

Shift+arrows to highlight text

Ctrl-X,C,V for cut/copy/paste

You can also have several open files simultaneously, and "pipe" commands into it. For example, press Ctrl-P and at the prompt enter:

cat yourfile

and it will insert yourfile at the position of the cursor. This way the full power of the bash commands are at your disposal ( use grep to get only specific parts of the file inserted ).

share|improve this answer
    
You would have to compile the source for it to work on Linux though. Please add a small description of the program in your answer, as to inform people of what the program actually is. –  Doktoro Reichard Oct 8 '13 at 21:51
    
Wow, finally something that just works! –  itsadok Oct 9 '13 at 5:34
    
It would work even better if it ran on the linux console, instead of xterm. –  ernobe Oct 9 '13 at 13:06

I did a search for the same thing recently. There are several (see JumpingPA's list, plus, 'joe'). Joe or jed are good choices for a no-nonsense simple editor that does more than nano. Diakonos is under active development, and is aiming at users exactly like yourself, but has higher than normal dependencies (Ruby), which not everyone would be able to install on their hosts.

An entirely different solution, which might work depending on your setup is to use a Windows text editor with the ability to edit files remotely. Notepad++, for example, has an FTP plugin, and several Windows IDE's have such functionality. The advantage is that you don't have to install anything on the web host, and you can edit in a full GUI.

Hope that helps.

share|improve this answer
    
To add info to the alternative you suggested, I recently discovered dokan-dev.net/en which allows you to map a drive on windows to a remote ssh server. –  itsadok Dec 17 '09 at 13:18
    
Tried DokanSSHFS - it is unfortunately at best alpha-quality. Diakonos rocks though! –  romkyns Jan 7 '11 at 14:45
    
I'm a happy user of DokanSSHFS. It is not "production-ready", but it is very convenient to have and suitable for text editing purposes. –  naxa Apr 7 '13 at 7:03
    
Notepad++ in the distant past had a buggy FTP plugin what resulted in data loss for me. I think it is fixed but the bad memories kept me from using it again. –  naxa Apr 7 '13 at 7:04

a quick scan in the web revealed: diakonos, nano and jed all are OpenSource

share|improve this answer
    
These look promising. I think the hard part is making the key bindings work, which seems to be very fragile. –  itsadok Nov 12 '09 at 11:48

As I just noted in another answer, you're looking for TUI text editors that adhere to the CUA conventions. See the other answer for a full discussion. Then note that some (almost) CUA TUI text editors are still available as Linux/Unix TUI programs, including ones built upon Turbo Vision (which is close to, but not quite, CUA) such as SET's Editor.

share|improve this answer

Have you tried nano? The shortcuts are a bit different, but it's more "Windows"-y like vi and emacs.

share|improve this answer
1  
Nano is the best I got right now, but it's still too limited, as I mentioned in my question. –  itsadok Nov 12 '09 at 9:36

NEdit is a multi-purpose text editor for X Window System that is available on all major Unix and Linux systems. Users of Windows based text editors should find NEdit a familiar and comfortable environment.

share|improve this answer
1  
I try to avoid installing libx11 on servers. That's why I'm looking for a console based one. –  itsadok Nov 12 '09 at 11:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.