For a couple of days, I was looking for a simple terminal-based text editor for taking simple code notes or basic code fixing kinds of stuff.
As an aspiring developer, I really like the concept of coding without touching the mouse.
So I downloaded the king of CLI text editors, Vim.
Now, guess what happened.
Yeah, you're right. I stuck inside vim and couldn't even quit from there.
Then, I started watching a bunch of tutorials and started reading vim's documentation.
This tutorial from Ben Awad helped me to get started.
But then I realized, I have to learn a lot of things only to operate vim and it's a pretty lengthy process.
At that time, I really needed a very simple text editor for doing basic stuff.
But, vim is not simple... you know :)
So, I had to come back to 'nano' & I was not happy enough to write codes by using 'nano'.
Suddenly, I discovered another really cool text editor called 'micro'.
It's really awesome.
It's not as advanced as vim but definitely a lot better than nano.
Micro is an open-source command-line text editor created by Zachary Yedidia.
Some basic key points of Micro:
- It's really easy to operate.
- It has different colours and highlights.
- It supports syntaxes for over 70+ programming languages.
- It has mouse support.
- Plugins & colour schemes.
- { Read more }.
The best thing for me is colour schemes & screen split support.
Here are some of the basic things for you to get started with Micro. You'll get every single thing on Micro's documentation page but still, these are the first things you can do with micro.
Installation
Open your terminal and give apt install curl
<- this command.
If curl
already exists, then put curl https://getmic.ro | bash
<- this command to download Micro.
Then give sudo mv micro /usr/bin
this command to add micro in the environment variables.
Now, you've successfully installed micro text editor on your computer.
For opening micro with a text file, write micro
followed by the document name (e.g. micro mytext.md
).
Save-Quit, Copy-Paste
Save -> ctrl+s
.
Quit -> ctrl+q
.
Copy -> ctrl+c
.
Paste -> ctrl+v
.
Commands
You can easily interact with the editor by using built-in commands.
Type ctrl+e
to open the command area at the bottom.
Know everything about micro command from here.
Colour Schemes
Micro has different built-in colour schemes for the editor.
Open command area by typing ctrl+e
and then inside command area, type set colorscheme
followed by the colour scheme name (e.g. set colorscheme bubblegum
).
My favourite one is "gotham" - demo.
Screen Splits
You can split your screen and code into multiple files at the same time.
Inside command area, type hsplit
for horizontal split & vsplit
for vertical split followed by the file name (e.g. hsplit abc.py
& vsplit xyz.py
).
Learn more about Micro from the official documentation & GitHub repo.
Tweet this & share it with your dev friends.
Top comments (3)
Try Midnight Commander and Midnight Commander Editor. It is another editor for human.
Thank you so much for letting me know about this. It's lovely ❤️
I can feel you :( Yeah, it's definitely a great text editor. But, I cannot paste my copied text into micro inside linux subsystem for windows. Let me know if you get any hack.