Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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.
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,519
Rep:
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.
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.
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.
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.
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)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.