Nano or Minimalist IDE

In this article, I would like to show you the power and beauty of the console text editor nano, simple and unobtrusive at first glance.

Nano or Minimalist IDE

Introduction

Developers have actually prepared a lot of useful features for you that you might not even be aware of, such as: auto-indents, jumping to matching brackets, and even autocompletion! Let's take it step by step.

Standard Keyboard Shortcuts

M – modifier key (default Alt); ^ – Control;
Selection using Shift+Arrow key.

The most useful in my opinion| ^ | Replacement can be multiple, selective, and complete
| ^w | Search
| ^k | Cuts the line where the cursor is or the selected portion of text
| ^u | Paste
|^β‡βˆββ—| Jumps to the next word or paragraph.
| ^Y | Moves the cursor to the beginning of the file
| ^] | Ends the word; pressing again substitutes a different option (autocomplete)
| ^c | Information about the cursor's position
|M-β‡βˆ | Switch between open buffers (tabs)
|M-⍐⍗ | Smooth scrolling
| M-u | Undo (works as long as there is something to undo)
| M-] | To the matching bracket
| M-n | Toggle line numbering (useful for copy-pasting)
| M-i | Toggle auto-indentation

I hope I haven't forgotten anything...

Configs

Let's get to the good stuff… Come on, without editing configs, Linux is no longer Linux.

So, the main config is located at /etc/nanorc, for syntax highlighting – at /usr/share/nano/*
In general, a lot of interesting things can be done,

for example| set autoindent | enables auto-indentation
| set backup | enables backup creation
| set mouse | enables mouse support (much more convenient)
| set multibuffer | allows copy-pasting from one nano buffer (tab) to another
| set nohelp | disables bottom hints, increasing usable space
| set tabsize N | sets the tab size to N
| set tabstospaces | converts tabs to spaces
| bind | unbind | changes hotkeys

In the syntax config, you can set/change colors
color
Although it would be better if you dive in yourself and make everything as you need.

By the way, it's better to copy the necessary configs to your home folder so that they won't be overwritten after each update.

Conclusion

As you can see, nano has quite a rich functionality and is easy to deeply customize.

Good luck!

Source: habr.com

Buy reliable website hosting with DDoS protection, VPS VDS servers πŸ”₯ Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster