Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Console editor: something between VIM and nano?

Tags:

vim

editor

nano

I used vim for a long time, but switched to Sublime Text last year for most of my programming work.

Now, every time I have to make use of a console editor (mostly over ssh), I feel extremely uncomfortable with vim. The shortcuts and commands have slowly left my memory, my once carefully curated vimrc is gathering dust, and I just can't use the editor effectively without re-learning everything.

On the other hand, nano is just dumb. Great for opening a file, adding a flag and closing it, but way too primitive for anything else.

Is there something in between I can use? I can settle for not-as-easy-as-nano-nor-as-powerful-as-vim.

like image 408
slezica Avatar asked Feb 02 '13 02:02

slezica


People also ask

What is difference between nano and Vim?

Vim is a mode-based editor. Nano is a WYSIWYG (What You See Is What You Get) command-line editor. Vim is not a WYSIWYG text editor. Nano is an improved version of the Pico text editor.

What is the difference between Vi and nano editor?

Emacs and Vi/Vim are complex and powerful text editors while Nano is a lightweight, simplified editor. While it's fun to have light-hearted debates about which command-line text editor is the best text editor to use, at the end of the day they are truly nothing more than different tools.

Is there anything better than Vim?

Emacs, Neovim, Atom, Notepad++, and Sublime Text are the most popular alternatives and competitors to Vim.

Is Vim better than gedit?

While aiming at simplicity and ease of use, gedit is a powerful general purpose text editor; Vim: Highly configurable text editor built to enable efficient text editing. Vim is an advanced text editor that seeks to provide the power of the de-facto Unix editor 'Vi', with a more complete feature set.


2 Answers

You can use mcedit. It is much more user friendly than other editors - it even supports mouse over ssh (even in Putty console from Windows).

Simply install package Midnight Commander as follows:

  • Ubuntu/Debian:

    sudo apt-get install mc
    
  • Fedora/Redhat:

    sudo yum install mc
    
  • MacOS:

    brew install mc
    

and it will make mcedit available.

In local console it even supports Shift+Del, Shift+Ins, Ctrl+Ins shortcuts that we use in Windows.

It also has nice ability to copy blocks into arbitrary files, effectively giving you unlimited number of clipboards.

like image 54
mvp Avatar answered Sep 28 '22 23:09

mvp


You could try these, but you'll have to install them on the machines you SSH into:

  • joe
  • ne
  • diakonos

But my opinion is that you should drop the seriously underpowered Sublime and go back to Vim.

$ vimtutor is your friend.

like image 20
romainl Avatar answered Sep 29 '22 00:09

romainl