What's your favorite CLI text editor?

Chat about Linux in general
Post Reply

What's your favorite CLI text editor?

Poll ended at Thu May 17, 2018 3:28 pm

GNU nano / Pico
11
44%
Vi / Vim
9
36%
GNU Emacs
0
No votes
Ed
1
4%
Other
4
16%
 
Total votes: 25

Kyowash
Level 3
Level 3
Posts: 106
Joined: Mon Sep 25, 2017 1:22 pm
Location: /dev/full

What's your favorite CLI text editor?

Post by Kyowash » Wed May 02, 2018 3:28 pm

I'm curious, what's your favorite command line text editor, or which one do you use the most?
I personally prefer GNU nano, it's easy to use and lists most of the shortcuts at the bottom. I'm considering to learn to use a more powerful editor like Vim this summer, tough.

Please, don't use this topic to start a text editor war. The reason I made this topic is because I would like to know the most used command line text editor among Linux Mint users.

User avatar
Flemur
Level 16
Level 16
Posts: 6271
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: What's your favorite CLI text editor?

Post by Flemur » Wed May 02, 2018 3:33 pm

I usually use "vi", having gone thru its learning curve years ago, for a GUI editor "leafpad".
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

User avatar
slipstick
Level 5
Level 5
Posts: 802
Joined: Sun Oct 21, 2012 9:56 pm
Location: Somewhere on the /LL0 scale

Re: What's your favorite CLI text editor?

Post by slipstick » Wed May 02, 2018 5:52 pm

Only nano. I edit from the CL so seldom that I can't justify the time or effort to learn vim or emacs.
In theory, theory and practice are the same. In practice, they ain't.

User avatar
xenopeek
Level 24
Level 24
Posts: 23193
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: What's your favorite CLI text editor?

Post by xenopeek » Thu May 03, 2018 4:29 am

I picked other. I'm using micro: https://micro-editor.github.io/. It's like nano but on steroids :)

I used slap editor in the past (it's a CLI sublime like editor) but development of that was abandoned 2 years ago. micro is a nice improvement over nano. Just download the Linux tar.gz file, extract the micro file and put it in a bin directory in your path.
Image

Kyowash
Level 3
Level 3
Posts: 106
Joined: Mon Sep 25, 2017 1:22 pm
Location: /dev/full

Re: What's your favorite CLI text editor?

Post by Kyowash » Thu May 03, 2018 2:03 pm

Flemur wrote:
Wed May 02, 2018 3:33 pm
I usually use "vi", having gone thru its learning curve years ago, for a GUI editor "leafpad".
How did you overcome its learning curve? Did you use a web tutorial? Or it was enough to read the manpage and put it into practice?
xenopeek wrote:
Thu May 03, 2018 4:29 am
I picked other. I'm using micro: https://micro-editor.github.io/. It's like nano but on steroids :)

I used slap editor in the past (it's a CLI sublime like editor) but development of that was abandoned 2 years ago. micro is a nice improvement over nano. Just download the Linux tar.gz file, extract the micro file and put it in a bin directory in your path.
Yeah, I've heard of slap, but I never gave it a try because I have never used Sublime Text (yes, I'm not joking. Even if you can use it without a license) so I don't need an editor based on it.
I once tried Micro, I was amazed how easy to install it was. But for some reason I preferred to stick with nano... I will consider to install it again one day. However, I must say micro gets an unexplainable amount of hate because it's written in Go.

User avatar
Flemur
Level 16
Level 16
Posts: 6271
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: What's your favorite CLI text editor?

Post by Flemur » Thu May 03, 2018 2:16 pm

Kyowash wrote:
Thu May 03, 2018 2:03 pm
How did you overcome its [vi] learning curve? Did you use a web tutorial? Or it was enough to read the manpage and put it into practice?
It was back when Unix was new and I didn't have any choice! Switching back-and-forth between vi and regular "text box" editing, like this forum or leafpad, can sometimes be ... interesting.

This is reminding me of the first on-screen text editor I ever saw, on an IBM 370 (360?), because it was such a big step up from punch cards.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

User avatar
xenopeek
Level 24
Level 24
Posts: 23193
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: What's your favorite CLI text editor?

Post by xenopeek » Thu May 03, 2018 2:24 pm

Kyowash wrote:
Thu May 03, 2018 2:03 pm
However, I must say micro gets an unexplainable amount of hate because it's written in Go.
I think at the time I switched to Micro I was exploring Go so that's how I may have ended up on it; looking for what people were writing in Go.

Currently trying to get into Rust and that already led me down the same path to some new programs on my system :lol: And just stumbled across Google's Xi Editor https://google.github.io/xi-editor/
Kyowash wrote:
Thu May 03, 2018 2:03 pm
Flemur wrote:
Wed May 02, 2018 3:33 pm
I usually use "vi", having gone thru its learning curve years ago, for a GUI editor "leafpad".
How did you overcome its learning curve? Did you use a web tutorial? Or it was enough to read the manpage and put it into practice?
I learned it back in the day on Unix machines. Didn't have anything else so just had to muddle through it.
Image

Kyowash
Level 3
Level 3
Posts: 106
Joined: Mon Sep 25, 2017 1:22 pm
Location: /dev/full

Re: What's your favorite CLI text editor?

Post by Kyowash » Thu May 03, 2018 4:02 pm

Flemur wrote:
Thu May 03, 2018 2:16 pm
It was back when Unix was new and I didn't have any choice! Switching back-and-forth between vi and regular "text box" editing, like this forum or leafpad, can sometimes be ... interesting.
xenopeek wrote:
Thu May 03, 2018 2:24 pm
I learned it back in the day on Unix machines. Didn't have anything else so just had to muddle through it.
Oh, well. I guess being the only choice is also a reason to learn it. :)
I never have seen the original Unix. In fact, I never have tried anything different from GNU/Linux apart from Windows (like FreeBSD or Solaris). I first switched from Windows XP to Ubuntu in 2009 until 2012 for three reasons: I hated (and still hate) Unity with a passion, the Ubuntu community wasn't very begginer-friendly back then (at least that was my experience) and I let others influence me about Linux saying that it was harder than Windows, that Linux would never be a replacement for Windows, etc. But that will never happen again.

I don't know why, but my desire to learn Vi is increasing greatly. :mrgreen:

Hoser Rob
Level 12
Level 12
Posts: 4449
Joined: Sat Dec 15, 2012 8:57 am

Re: What's your favorite CLI text editor?

Post by Hoser Rob » Sat May 05, 2018 9:48 am

I also had to learn vi for Unix in the 80s but I've blissfully forgotten how to use it :wink: . Now I use leafpad.

User avatar
Portreve
Level 6
Level 6
Posts: 1415
Joined: Mon Apr 18, 2011 12:03 am
Location: Florida
Contact:

Re: What's your favorite CLI text editor?

Post by Portreve » Mon May 07, 2018 3:58 pm

I use nano here. I've really never seen the point in anything else unless you're actually writing code, in which case emacs and vi are I assume the best of breed.

When I'm editing a text file (which is to say, a configuration file) I want to get into and out of it as efficiently and unencumbered-ly as possible.

Image
Peoples of the universe, please attend carefully: the message which follows is vital to the future of you all.

If your issue is solved or your question answered, please edit the first post of your thread and add [SOLVED] to the thread topic. Thanks!

User avatar
Arch_Enemy
Level 6
Level 6
Posts: 1282
Joined: Tue Apr 26, 2016 3:28 pm

Re: What's your favorite CLI text editor?

Post by Arch_Enemy » Mon May 07, 2018 6:09 pm

Flemur wrote:
Wed May 02, 2018 3:33 pm
I usually use "vi", having gone thru its learning curve years ago, for a GUI editor "leafpad".
Image

We had a French exchange student come to work at my company and he made up a quick web page for internal use to submit news and messages to the employees. I asked him what web page editor he used.

"VIM" was his answer! :shock:

PS: Whoever came up with vi in the first place back in the day must have also had a Hewlett-Packard calculator...
I have travelled 35629424162.9 miles in my lifetime

One thing I would suggest, create a partition a ~28G partition as /. Partition the rest as /Home.
When the system fails, reinstall and use the exact same username and all your 'stuff' comes back to you.

User avatar
timapple
Level 1
Level 1
Posts: 48
Joined: Sat Feb 15, 2014 5:36 pm
Location: Dallas, TX
Contact:

Re: What's your favorite CLI text editor?

Post by timapple » Mon May 07, 2018 8:32 pm

For those who want to get their feet wet with Vi/Vim this helps quite a bit.

http://www.openvim.com/tutorial.html
Cheers!
Tim

User avatar
Fred Barclay
Level 12
Level 12
Posts: 4156
Joined: Sat Sep 13, 2014 11:12 am
Location: Bumping around in the bush

Re: What's your favorite CLI text editor?

Post by Fred Barclay » Mon May 07, 2018 10:26 pm

Vi or vim for me. But I rarely use it, usually only when initially setting up Arch and I need to edit /etc/hosts or something. Otherwise it's usually pluma or Atom for me. :)

Poor old Emacs doesn't have any votes yet. :(
Image
"Once you can accept the universe as matter expanding into nothing that is something, wearing stripes with plaid comes easy."
- Albert Einstein

Kyowash
Level 3
Level 3
Posts: 106
Joined: Mon Sep 25, 2017 1:22 pm
Location: /dev/full

Re: What's your favorite CLI text editor?

Post by Kyowash » Fri May 11, 2018 2:13 pm

timapple wrote:
Mon May 07, 2018 8:32 pm
For those who want to get their feet wet with Vi/Vim this helps quite a bit.

http://www.openvim.com/tutorial.html
This is the tutorial I'm using, it's very understandable and well-written. I can now see why Vim is said to be more powerful than CLI text editor like Nano, and I've got to say it's not that hard. Sure, there are things like the movement with the h, j, k and l keys which are odd and hard to get used to, but after 6 days following the tutorial the movement with those keys feels natural. Another shocking feature is its different modes to edit, view, save, etc. I think this is probably why people refuse to use it. I felt helplessness for not being able to close Vim. :oops:
Fred Barclay wrote:
Mon May 07, 2018 10:26 pm
Poor old Emacs doesn't have any votes yet. :(
I am quite surprised because of this as well.

Post Reply

Return to “Chat about Linux”