Penguin Crumbs

Notes and tips from a Linux user

home about this blog
search:  

My personal settings for the nano editor

GNU nano is a simple and moderately powerful text editor. Nowadays it is available in most distributions and it's a fast and alternative way to vim to edit files.

Anyway, in my opinion it has some undesirable default settings, which however users can easily correct by editing the .nanorc file in their home directory.
The number of possible configurations is very large, but I think there are just six particularly noteworthy options to properly configure this editor to my personal tastes:

set softwrap
set linenumbers
set autoindent
set tabsize 4
set tabstospaces
nano editor with line numbers

Here you can find the documentation about these and other available settings: nano-editor.org/dist/latest/nanorc.5.html

 
 
Posted on 2022-04-23  
 
⇦  back
 
__________________
 
Copyright © 2019-2024 Marcello Zaniboni