Awesome Linux Tools: The "micro" text editor
Ғылым және технология
"micro" is an awesome text editor that I've discovered recently, and I wanted to create a video and show you guys. It's a small, lightweight and feature-packed text editor that's easy to use and install. I give it an overview in this video.
Downloading: 2:09
Installation: 4:29
Installing xclip (enable copy/paste): 6:30
Syntax highlighting: 8:26
Command bar: 9:17
Replacing text: 11:46
Horizontal/vertical splitting: 12:13
🗈 Check out micro here:
➡️ micro-editor.github.io/index....
📖 Check out Jay's latest book, Mastering Ubuntu Server 4th Edition. Covers Ubuntu 22.04!
➡️ ubuntuserverbook.com
🙌 Support me on Patreon and get early access to new content!
➡️ learnlinux.link/patron
☁️ Get $100 toward your own cloud server with Linode!
➡️ linode.com/learnlinuxtv
🛒 Affiliate store for Linux compatible hardware/accessories (commission earned):
➡️ learnlinux.link/amazon
💻 Check out the Tiny Pilot KVM for your Homelab (commission earned):
➡️ learnlinux.link/tinypilot
🐦 Follow me on Twitter!
➡️ learnlinux.link/twitter
💬 Official LearnLinux.tv Community:
➡️ community.learnlinux.tv
💽 How to create a bootable flash drive for installing Linux
➡️ linux.video/flash-usb
🐧 Which distro do I use?
➡️ learnlinux.link/mydistro
🔐 How to better secure OpenSSH:
➡️ linux.video/secure-ssh
☁️ How to create a cloud Linux server with Linode:
➡️ learnlinux.link/create-linode
👨 More about me:
➡️ www.jaylacroix.com
➡️ www.learnlinux.tv/about-me
#LearnLinuxTV #Linux
Пікірлер: 262
Great tip! Vim was always a bit "too much" for my needs and nano was not enough. Micro fills the gap. Thank you!
Micro works on all systems, BSD, Linux, Windows and Mac :) I've been using it for 2 years now, great to see it getting noticed
I've been using it for probably 6 months and I love it! You said it perfectly. It fits right between vim and nano. It's perfect for people who are reluctant to dive into vim, which is why I went with it.
@ChristopherGray00
2 жыл бұрын
I've always just hated vim, no offense to vim users but it's so bloody unintuative, whereas micro lets you use it as a noob or all the way to a power user if you choose.
12MB is actually massive for an editor like this. It must have a bunch of system libraries statically linked into it or something.
I've been using micro for a few months. I really like it and it's becoming my go-to CLI text editor. I've put it on all my Linux systems.
I am one of those guys that really doesn't like vi, gotta say that from the start. That being said from Solaris, HPUX, SGI, xxx BSD, MacOS, Red Hat, Ubuntu ALL have VI installed. On a production system you can't just start installing binaries. If you're going to make a career out of Unix/Linux I suggest you learn the tools. Buy a book on VI, Print out a cheat sheet. From the looks of Micro you're going to have to learn a bunch of keyboard ctrl-xxx commands anyway might as well learn vi. And VI once you learn it is SOOOO powerful and you can really cut your editing time down if you learn it.
Finally some great content about micro. Have been using it for at least 1.5 years and I absolutely love it! First thing on a new system is installing micro...
Absolutely love micro! Absolutely perfect for people who prefer Nano but want things like syntax highlight out of the box.
This is what I've been looking for a long time, big thanks!
YES I NEEDED This--- I used nano once and had my system so screwed up I had to reload everything!! ha. I LIKE this-- it actually makes SENSE!!! AND i love your videos-- so simple- straight -forward with NO fluff and wordy BS... THANK YOU SO MUCH.
It's so good to see a nice editor. The two things I always missed from nano was user friendly text manipulations and multiple cursors. It's such a liberating experience. I never cared to learn the weirdness that is vim besides the mandatory basics for the systems where I had no choice
Just downloaded this on my Mac tonight, and I already love it to pieces!
LOVE how you explain things. As a novice/beginner have always wanted to learn how to workbfrom the command prompt. My life dream is to learn PYTHON. Have no plans to work as a programmer. Iwas a RN for 36 yrs, specialty was critical/transplants.. I find working with computers much more interesting. Love computers.
@lakrinmex8132
3 жыл бұрын
Python doesn't need to be a "life dream". It is probably the easiest to language to learn. Very high level interpereted language. Will be easier than you think.
I'll have to give that a try. For most simple things I've been using Nano, and for more involved files Vim. Micro seems like a good compromise between them.
Overwriting ctrl+s and ctrl+q in a terminal used to be a deadly sin
@BobCollins42
2 жыл бұрын
If you are worried about being a sinner, it is trivial to bind commands to other keys.
it doesn't require any dependencies once you install the dependencies
when you login to whatever unix/linux computer you will always find vim or nano. So stick with one of these. What will you do if you have to login to a server and it doesn't have micro and it doesn't have internet connection?
@Hublium
3 жыл бұрын
You definitely don't find nano everywhere. Not even vim. But there will surely be some variant of vi there. So, learn enough vi to be comfortable navigating through a document and on your personal machine use whatever you like best. I think about switching to micro but I have a really bizarre vim configuration that works just right for me.
@almarn
2 жыл бұрын
Hit the beach...
@BobCollins42
2 жыл бұрын
The highest use for vi is for installing another text editor. (Paraphrasing the original) ;-)
Very useful video. I look forward to learning this tool.
pretty nice. I'm currently using it and enjoying a lot. My favorite theme is Darcula
12Mb small? It isBLOAT
@matthewstott3493
3 жыл бұрын
ViM 8.2 = 2.8MB's! Seems micro is written in Go and seems to include the Go runtime engine within the binary.
@brunoacf
3 жыл бұрын
When you have all the functionalities (including help texts, colorizing schemes and skins) in only one binary file, I think 12MB is not that big. OK. VIM is much smaller, but there are several auxiliary files not included in the main binary
@jiraphat2200
3 жыл бұрын
@@matthewstott3493 on arch, vim 8.2 = 3.9MB and it depends on vim-runtime = 31.3MB and others dependencies... Who is the bloat now?
@tunahankaratay1523
3 жыл бұрын
@@jiraphat2200 Vim is so much more powerful tho.
@baxiry.
3 жыл бұрын
@@matthewstott3493 vim + dependency is more then 30 MB
It's 12 M because all the required packages are statically linked, so that it is fully portable and not dependent on specific versions of external libraries that you may not have installed on your system.
@genkiferal7178
3 жыл бұрын
if it is portable (like an AppImage?), does that mean I can copy it *after* setting it up/customizing it, to another PC and keep my settings?
@JohnJohnson-ox3uc
3 жыл бұрын
@@genkiferal7178 you'll probably have to copy a config file over as well.
@genkiferal7178
3 жыл бұрын
@@JohnJohnson-ox3uc sounds hard. I am learning it, though. I love the color schemes (I accidentally set it to my system's which is FAR prettier than micro's) and split screens option, but dislike how I have to save or open a file: If I didn't have the GUI file manager to look at and/or copy/paste from, it would be a big hassle (such as on a remote server - which is why I looked into it).
I'm impressed. I run Slackware -current and micro is included with the standard distribution. I usually use ed as my go-to text editor, but I'll have to take a look at this. Syntax highlighting would be nice.
Thanks for the suggestion
Thank you, Jay.
VERY good explanation ❤
Micro might have been my editor of choice if I had found it before vim.
Amazing, I will give it a try! Thanks :)
im loving it
Totally switching to this!
Thanks dude - was looking for something better than Nano but easier than VI
Ill give it a try. Thanks
I think Micro should have replaced Nano as the "easy" terminal text editor a long time ago.
Actually, "micro" is very helpful when you work with Termux on the go, helped me a lot than vim or emacs.
I was actually wondering what programming language can produce such a small and feature rich text editor, and C first came to mind, but it's actually made in Go.
@LearnLinuxTV
3 жыл бұрын
Go figure.
@pardal_bs
3 жыл бұрын
If it were written in C, I'm sure it would be *a lot* smaller.
@c4llv07e
3 жыл бұрын
>C first came to mind When I saw the size of this editor, I thought it was written in javascript along with JS runtime engine. It's not bad (I have my new favorite editor in general), but I think C/C++ would be better.
Thanks for the interesting video. Although I probably won't switch from vim/Kate/VSCode combo, the most interesting features for me are the common shortcuts (CTRL-Z, CTRL-C, etc. ), copy-paste and mouse support in a terminal editor. Not sure yet how I feel about statically linked all-inclusive binaries (with themes, syntax highlighters and configurations inside). Although, you can customize those through user config files, I prefer external files including those that come by default. On the other hand, having a single binary has its benefits in simplicity.
thanks soo much, its a really good one..
Great video as always, yet to find out how to do a spell check with micro
Wow this is simple and usefull!
This is freakin' neat! 💎✨👌
I haven't figured out how to manually set syntax highlighting for custom languages based on C++, but I just ended up ending the files with .cpp temporarily as a workaround. Thanks for the tutorial, the mult-windows feature reminds me of xpanes for tmux.
oh thanks so much you definitely made my day! :-)
Thanks for the tip, Jay. I just installed micro on my Manjaro system and will start using it over nano. Favorite color scheme: solarized.
@LearnLinuxTV
3 жыл бұрын
I like that one too :)
@Kenny_Ded
3 жыл бұрын
@@LearnLinuxTV I used solarized where ever I can, like on Notepad ++ on Windows, Geany on Linux and on my terminals in general. I find it easy on the eyes and the syntax highlighting looks plesant.
@Kenny_Ded
3 жыл бұрын
@@genkiferal7178 Have a look at Geany. It's small and lightweight. It's my go-to GUI text editor for Linux.
@genkiferal7178
3 жыл бұрын
@@Kenny_Ded thanks. i can try it on my Windows 10 VM so that it doens't mess up much if I don't like it. I think I saw that it has a portable version, too, and, for some reason, I like that.
Man, 12 MB is *not* a small executable :-)
@njsynthesis
3 жыл бұрын
@madseh de 244K on AMD64 (Nano 3.2)
@Gramini
3 жыл бұрын
vim is 2.4 MB and including dependencies it's 31 MB.
@vladix32
3 жыл бұрын
The Linux kernel, version 5.4.0 for x86_64 compiled for Ubuntu, compressed but with a bunch of compiled-in modules, is ~12 MB :-)
@jurgenhohenester8933
3 жыл бұрын
@@vladix32 yes, but with only the kernel you can`t edit files ;)
@tunahankaratay1523
3 жыл бұрын
@@jurgenhohenester8933 My friend did a 2.5 MB ARM CLFS fairly recently. He has also done 7MB x86 LFSvwith only busybox.
in the old days a lot of folks were using SLED by Sam Willmot. It was a great little text editor that was less than 20kb - talk about tight code.
I've started using text editors in the age of TurboPascal 5.5 and to this day I can't live without WordStar key bindings so first thing I do on a new Linux system is to install joe editor.
@derekfrost8991
3 жыл бұрын
I loved joe, using ws bindings but I force myself to use nano cos if you accidently hit ctrl-s on the cli linux crashes.. :'(
@HowToVideosAndTips
3 жыл бұрын
bonus points for mentioning WordStar :)
@cassandradawn780
3 жыл бұрын
@@derekfrost8991 i don't think it crashes, it just suspends output. you need to press ctrl+q to unsuspend (can't english rn)
@craigshea2930
2 жыл бұрын
Ah, Wordstar, my first word processor on 8" floppy on my Z80 CP/M. WordStar 3, IIRC. Those were the days....
that's very cool. now I have a good text editor on my headless Raspberry Pi
I'm quickly moving all my writing into Micro. I am currently looking into how to timestamp and how to create a color highlight for .fountain files. I didn't know I could hit tab from command mode for autofill options, thanks for the tips.
Just installed it - the first thing I don't like is the "SHIFT+ARROW KEY" used for text selection. The Konsole terminal uses SHIFT+LEFT/RIGHT to switch between terminal tabs. I now have to change this in Konsole, or figure out how to change it in Micro.
I was looking for a replacement for nano. I’ll definitely try micro. :)
I found your channel recently.... let me correct myself I found a gold mine!!!
@samnaghavi9775
3 жыл бұрын
@@thingsiplayNo I wanted to learn Centos so I searched for tutorial and he had a full playlist of high quality centos tutorials. Then I looked into his other videos and honestly all of them are gold!
@LearnLinuxTV
3 жыл бұрын
Interesting, did that channel mention mine?
I really like the "dukedark-tc" colorscheme.
@Ayan-od8hk
3 жыл бұрын
yeah! its pretty good
Hi Jay, I liked the video, Most of the time these editors are useful when you working on remote linux server for prod issues. One thing I would like to know is how large files it can handle. Secondly most of the time, if I want to quickly run a snippet which can very a program, can I open a terminal next right and verify the program. I mean similar to most of the ide(s) like atom or vscode editor. if u can come up with one more video on plugins and important linux commands for debugging a prod issue, that will really help the community
Thanks for this overview. I'm looking at micro to get used to CLI (did not use it growing up) and with the end of Atom. I'm noticing replaceall is only for one file. I'm used to being able to do find and replace for all files within a folder on Atom. Any suggested workflows for doing that while on Micro, or other tools? (Am on Win11)
Great CLI text Editor
pico, nano, micro
@GhostRider5555555
3 жыл бұрын
less, more, most
@GhostRider5555555
3 жыл бұрын
@@defalt2384 emacs god bless you
@user-jm3xl7rg5k
3 жыл бұрын
The next and more powerful one must be milli!
First thing I grab entering chroot in an arch build. My terminal choice in graphical is terminator. You can split screens. Perfect when you gotta bounce between root and admin users accounts.
Really love this editor and appreciate this video making it super easy to install and set up. Is there a way to set up syntax highlighting on additional file types? I use a static site generator which has all the files ending with .astro but they are basically HTML files with some javascript and css in them. It would be great if I could tel Micro that those files use the same highlighting as html files. I can't find anything online other than creating my own highlight profile though.
Nano is your bro, when you adjust config files
Would love to see this in-depth. I wanna see if it's feature set is tempting enough to make me switch from vim?
@vim449
3 жыл бұрын
Vim has far more features than micro could possibly ever have. It may be less friendly to configure but you can do just about anything inside of vim.
@PaulSpades
3 жыл бұрын
the only software with a longer list of features than vim (that will ever be made in this universe) is emacs. so you might as well quit searching now.
@BobCollins42
2 жыл бұрын
@@vim449 You say "Vim has far more features" like that's a good thing. ;-)
At minutes 11:02 and saw how you executed and opened commands help. Idea, could I highlight a command while I'm looking at it--yes execute, "that one now". Okay patience. I'll reach minutes 16:14 to start playing. Lol
my preferred colorscheme is nord-16 from the nordcolors plugin ;)
doubt between colorscheme cmc-16 (because of transparancy supporting on my mac) and 'one-dark'
I think you can use the ubuntu package manager, it might be a bit older but no dowloading scripts from the interwebz
I've been using Micro for a while, but there's a little big problem and it's that the clipboard doesn't work properly over SSH. I've tried setting the clipboard on Micro to Internal/External/Terminal, but none of the three work at all. Do I need to install Xclip on the guest computer as well? And if so, how do I even install it when using it from Windows?
Good day. Good video, I tried this a while back and thought it would be good to use but did not follow through. when I saw your video I decided to try again. Works well, I looked at the commands and addons and they say required version 2.0 or greater. I checked the version and it is 0.8 in the help about text. So I deleted and reinstalled the different downloads and they all marked 2.0... bur after installation showed .08 in help about text. I am going to use it but am wondering is this just a mistake or what?
Wow this looks cool. I'm at minutes 9:09. My test of this editor will be, touch test.py and then micro test.py to see if it python highlights as I type in python syntax
@AndyDavis007
3 жыл бұрын
@@DistantComputer yes, this is my new favorite editor
I am knowing nano and vim for terminal editing. If I can I avoid use it in terminal always preferring full feature IDE-s like TexStudio, Code::Blocks, Visual studio, Pycharm etc. or at least VS code, Notepad++. However I am appreciated the effort which you put in this video, I give you a like.
Wow, this is exactly what I'd been longing for for years. A vsCode/SublimeText -like editor for the terminal. FINALLY!!!
Micro has already changed my choice of a text editor (on a console). (I was using nano)
I´ve been using VIM for one year,, I still don´t know how to exit... So I´ll try this one, CTRL-Q sound easy.
It's available in debian bullseye repositories and also in buster-backports
Micro is packaged for Debian (apt install micro). If not yet in Ubuntu I expect it in the next version.
I was hoping to use this in/with a remote headless Pi server. Is that going to work? If I SSH into the server, can I install and use micro that way? I have micro on my desktop PC, but it needs to be on the server to use it there. Already tried, but haven't tried to install it on the server yet.
Does anyone know a way to use this or any text editor to edit a file remotely, without needing the program installed on the remote machine?
Thanks for the vid, im using micro text editor now... Does anyone knows how break lines? (its when you can read the whole long line in the screen... in my language is quebra de linha in mousepad)
After VIM and its keys it is hard to use arrow keys. Also, VIM modes (normal, insert, visual, etc.) are so useful, that other editors are too uncomfortable to use after VIM.
@travisgoesthere
2 жыл бұрын
Same here . There is no comparison to VIM once you know it
that white bar at the bottom doesn't appear in mine, i use ubuntu/lubuntu with qterminal
how do I scroll using the mouse? I have a huge file and have to go back and forth (thanks to covid a have to use micro or jed for my exams!... dont ask)
how can i make micro the default editor in midnite commander?
Darcula theme is the best
Have you looked at the Joe editor?
can you tell me how to run plugins?
thanks for this tutorial! unfortunately, my copy and paste from outside the system to inside the system didn't work. I install xclip but when i tried to use xclip and i get this error Error: Can't open display: (null)
cmc-tc is nice.
micro is the editor of choice for terminal. i don't need all the linters and chasers or whatever else the young kids use these days. and since i use an immutable/containerised OS, the fact that it is a one file, no dependency executable makes it ideal. oh and when in doubt, gruv-box theme for the win.
your joke about arch users was funny. i will look into Linode. For a female, the colorscheme material-tc may be fine - it is a dark gray will some greyed-pastels.
"Just" 12MB.
I feel I'm getting to old for Emacs, keep forgetting the shortcuts - this one might do the trick as it uses many of the same shortcuts as my GUI-apps.
I'm not sure, but think, that micro is also available in default Ubuntu repos. So don't need to look for and download aside.
@craigshea2930
2 жыл бұрын
Only if you want to use a version that's (usually) very old. I find that these days, Ubuntu's "official" packages are rather dated, reminding me of what Fedora/Red Hat used to be years ago. (Since then, Fedora has come a long way; but I'm a Manjaro user myself these days.)
I install xclip but still getting the red message, any recommendations?
If you don't like google, give dte a chance. A much lighter and compatible variant which even has tabs and has all of it's features in the tty/console.
dukedark-tc is my colorscheme :D
Sometimes after closing it the process is still running and consuming cpu!!?
It a vim and emacs alternative?
What is the benefit of micro? The system comes with Vim and nano. Are the space savings worth automating the removal of existing tools? It looks like everything is included in a single binary. Is there a benefit to that?
@qwert4871
5 ай бұрын
It uses shortcuts from a standard familiar to most GUI users, that's the main selling point. Besides that, compare selection and mouse support, much more reliable in micro.
Thank You very much! 👍 🇷🇺
set colorscheme dukeubuntu-tc, micro text editor works on my raspberry pi os, will it replace my midnight commander editor (mcedit) maybe. Liked the window split options vsplit/hsplit. Tested with chromebook ssh to the rpi zero w, has no gui so xclip not used, "set clipboard terminal" to get rid of remark. ctrl-t and ctrl-w are reserved for the chromebook browser, but mouse click does change the active text window. mcedit can also open multiple files but only shows the first or the chosen (Window, list, choice)
@genkiferal7178
3 жыл бұрын
thanks. I understood part of what you wrote. i was wondering about those things.
Nah, I'll be sticking with vim. Vim is much more powerful. Don't get me wrong, Micro is very nicely done. However, I think one of Jay's points towards the end is the one use case where I would consider using Micro above anything else: Micro is small enough, and since it's a single binary, it's very portable. So I would prefer Micro when I need an editor on a machine that perhaps doesn't already have Vim or which is memory constrained.
How can I run code on it?
how to run cpp code???