LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-07-2020, 06:57 AM   #1
Coder19
LQ Newbie
 
Registered: Feb 2020
Location: India
Posts: 10

Rep: Reputation: Disabled
Easy to use cli text editor


Hi!
First time posting here sorry if this isn't right forum to post this,
is there an easy to use cli text editor?
I tried nano but it doesn't look good

EDIT: Wow I didn't expect to get so many replies thanks everyone!

EDIT 2: I configured nano see the attachment
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2020-02-08-14-11-06-28_84d3000e3f4017145260f7618db1d683.png
Views:	22
Size:	99.0 KB
ID:	32492  

Last edited by Coder19; 02-08-2020 at 02:43 AM.
 
Old 02-07-2020, 07:23 AM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,152
Blog Entries: 6

Rep: Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835
General info
https://wiki.archlinux.org/index.php...s#Text_editors
 
2 members found this post helpful.
Old 02-07-2020, 07:57 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Quote:
Originally Posted by Coder19 View Post
Hi!
First time posting here sorry if this isn't right forum post this,
is there an easy to use cli text editor?
I tried nano but it doesn't look good
I think the forum choice is fine.

I feel you'll also get a bunch of answers either not intending to bias, maybe mine here, or instead giving preferential advice, such as if I were to say "use <blah-blah>"

Suggest you search the web, and your Linux system.

Your profile seems to show that you are using Android. If so, then you're familiar with the app store.

For a typical Linux Desktop, if that's what you have, there's typically a software manager application in the settings or administrative tools menu. That type of application is similar, you type in "text editor" or "editor" and it'll find you a bunch, plus previews and informative details.
 
1 members found this post helpful.
Old 02-07-2020, 07:58 AM   #4
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,519

Rep: Reputation: Disabled
You could always try vi/vim the unix standard editor, but not easy to get to grips with, included with nearly ever unix like O/S, but it's easy on the eye.

Maybe try mcedit, part of mc file manager, I use it when I'm working in mc, but it is kind of similar looking to nano, but more functional.

Last edited by fatmac; 02-07-2020 at 08:00 AM.
 
1 members found this post helpful.
Old 02-07-2020, 08:15 AM   #5
Geist
Member
 
Registered: Jul 2013
Distribution: Slackware 14 / current
Posts: 442

Rep: Reputation: 196Reputation: 196
vim

It's not more difficult than notepad, it's just different, and despite it having a metric tonne of commands, you only use as many as you need.

Ranging from the very basics of
i (to start inserting)
Your text here.
escape (to stop inserting)
:w or :wq depending on if you want to just write the file or write and quit, and a filename.
(or :q! to just quit, the exclamation mark is there in case you have entered something into the buffer and just using :q would make vim question your intent, and suggest the ! if you really meant it while unsaved changes are there)

so
:wq myfile.txt
would save the current buffer to myfile.txt and quit vim

To as much as you need. I don't think there's anyone out there who uses all vim commands, not even the author himself does.
They're just there because they are useful to someone out there. Different needs, etc.

You can even use the mouse and arrow keys at first (but one should really never use the mouse for text editing, because the mouse only has a handful or keys and can only work on the currently visible text wheras the actual editing stuff works on the entire buffer/file. Not to mention that blasted rat is all the way over there. Especially bad if you have a 'numpad' on your keyboard and you're right handed. Then the mouse is several billion miles away from home row, you know, where the TEXT part comes in)

So if you go viB (visually select inside curly Braces) in 'normal' (aka 'editing') mode, and you're in a curly brace block that goes off the screen, vim will still select all of it.
Not something the mouse can do, and you can 'record' such actions to create 'macros' which are replayable on all text objects that follow the same pattern/attributes as the one you've recorded them for.
Not something the mouse can do (easily) either.

But that's advanced stuff (although after a week or so, that's should be more normal than advanced).

Run the vimtutor to get started, but really, all you need is i, escape, and :w / :wq filename to get started.
These keys are not more esotheric or magical than control+s and alt+f4

Don't shy away from vim. It's easy as pie and scales from naive to "near speed of thought magic that shapes and reconstructs blocks of texts with a few wiggle of the fingers and a few keystrokes".
Thanks to its modal approach to editing. Something every "editor" should have. A mode to "edit", otherwise everything that accepts texts is an editor. I mean, sure, yeah, technically this posting form is an editor too then.

But...c'mon... Don't be like the kind of people talked about here.

Last edited by Geist; 02-07-2020 at 08:26 AM.
 
1 members found this post helpful.
Old 02-07-2020, 08:19 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
try customizing NANO's rc file
NANORC
Nano Text Editor and nanorc Tips and Tricks

Configure nano for Command Line Development

and whatever else is online to give how tos
 
1 members found this post helpful.
Old 02-07-2020, 08:22 AM   #7
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Rep: Reputation: 51
Honestly, just take the link teckk posted and try some out. What's easy to use for us may be hard for you or vice versa. Linux definitely gives you choices.

Unlike you, I prefer nano...just what I've gotten used to. I also used joe which is in that link...it was pretty easy to use as well. Or there is always classic Linux editors like vi or emacs.
 
1 members found this post helpful.
Old 02-07-2020, 08:44 AM   #8
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,249

Rep: Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323
https://micro-editor.github.io/
 
1 members found this post helpful.
Old 02-08-2020, 12:33 AM   #9
Coder19
LQ Newbie
 
Registered: Feb 2020
Location: India
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
try customizing NANO's rc file
NANORC
Nano Text Editor and nanorc Tips and Tricks

Configure nano for Command Line Development

and whatever else is online to give how tos
Hey BW-userx I disabled the help and now it looks much better thanks!
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2020-02-08-12-01-12-65_84d3000e3f4017145260f7618db1d683.png
Views:	11
Size:	83.4 KB
ID:	32491  
 
1 members found this post helpful.
Old 02-08-2020, 01:10 AM   #10
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by fatmac View Post
You could always try vi/vim the unix standard editor,
Actually ed (and its derivation sed) is the Unix standard editor.
In BSD Unix it got extended to ex (EXtended editor), to which later a visual mode got added, which then could be started as vi.
Vim, then again, is an improved vi, with ex still present in it (and normally as an executable link too):
Quote:
/usr/bin/ex -> vim
/usr/bin/vi -> vim
Most Linux distro's still will have ed present (and certainly sed, the Stream EDitor), but I do not recommend it, unless you really don't have any other editor available.

Last edited by ehartman; 02-08-2020 at 01:11 AM.
 
1 members found this post helpful.
Old 02-08-2020, 03:58 AM   #11
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,519

Rep: Reputation: Disabled
Quote:
but I do not recommend it, unless you really don't have any other editor available.
...& probably why vi became the standard/regular editor....

P.S. the ed editor is usually a link to vi/vim.

Last edited by fatmac; 02-08-2020 at 04:00 AM.
 
Old 02-08-2020, 07:04 AM   #12
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by fatmac View Post
P.S. the ed editor is usually a link to vi/vim.
NOT in my system:
Quote:
/usr/bin/ed -> ../../bin/ed
-rwxr-xr-x 1 root root 44536 2013-06-28 00:42:18 /bin/ed
in which /bin/ed is installed from the package ed-1.9
Quote:
ed (text editor)

GNU ed is an 8-bit clean, more or less POSIX-compliant implementation of the standard Unix line editor. These days, full-screen editors have rendered 'ed' mostly of historical interest. Nonetheless, it appeals to a handful of aging programmers who still believe that "Small is Beautiful".
It is still being maintained, the newest version is ed-1.15 (on the GNU site)
Quote:
ed-1.15.tar.lz 2019-Jan-01 13:49:26 65.7K application/octet-stream
ed-1.15.tar.lz.sig 2019-Jan-01 13:49:27 0.1K application/pgp-signature
which, as you can see, is about a year old.

PS: the commandset of ed is compatible with sed, which has been derived FROM it.

Last edited by ehartman; 02-08-2020 at 07:10 AM. Reason: addition about newest version
 
Old 02-08-2020, 01:41 PM   #13
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Coder19 View Post
Hey BW-userx I disabled the help and now it looks much better thanks!
so that is on a phone?
 
Old 02-08-2020, 11:09 PM   #14
Coder19
LQ Newbie
 
Registered: Feb 2020
Location: India
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
so that is on a phone?
Yeah it's termux, and thats why i was looking for easy to use text editor i couldn't use vim on such a small screen.
 
Old 02-09-2020, 02:51 AM   #15
Geist
Member
 
Registered: Jul 2013
Distribution: Slackware 14 / current
Posts: 442

Rep: Reputation: 196Reputation: 196
Quote:
Originally Posted by Coder19 View Post
Yeah it's termux, and thats why i was looking for easy to use text editor i couldn't use vim on such a small screen.
o_O Why not?

I mean, you're editing text with you phone, meaning your on screen keyboard is big enough for you to hit the keys.
If it's big enough for you to hit the keys, which they are, since you're using your phone for text editing, then that would not change if you used vim.

And vim doesn't use screenspace to always print instructions.
And vim also does so much more editing work per precious keystroke.

I'm stammering and gesturing IRL, starting to wonder if vim is some sort of MKULTRA like trigger that makes people go silly.

Last edited by Geist; 02-09-2020 at 02:55 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Avidemux Video Editor An Easy To Use Video Editor For Linux LXer Syndicated Linux News 0 06-15-2017 07:18 PM
LXer: nano: CLI Text Editor For Everyone basic tutorials LXer Syndicated Linux News 0 04-19-2017 11:01 AM
In Fluxbox trying to cli a text editor and file and no go x org error. BW-userx Slackware 9 01-31-2017 05:55 AM
CLI RTF text editor? linus72 Linux - General 4 08-23-2013 12:40 AM
Which CLI / Text editor has greatest number of features ? frenchn00b General 1 06-20-2010 04:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration