Nano configuration
Nano is my favorite console-based text editor. It is by default available on many Linux distributions and
OS X. However, the default configuration uses tabs and does not show line numbers. It can easily be fixed by a ~/.nanorc configuration
file. The description of possible options can be found from here. Below is the list
of options I have put into my file:
set const
set nowrap
set tabsize 4
set tabstospaces
set autoindent
Here:
set constwill enable current line/column info display on the status line;set nowrapdisables line wrapping;set tabsize 4makes tabs take 4 columns;set tabstospacesturns typed tabs into spaces;set autoindentenables automatic indentation.