Nano


This post is in the category: Applications

These posts are small bits of information for applications that I feel are worth noting.


Nano is a pretty simple text editor. I only have a few customization options with auto-tabbing and word wrap.

My Configuration

[user]$ nano ~/.nanorc
# disable word wrap
set nowrap

# default tabs are too big - shrink to 4 spaces
set tabsize 4

# scroll only one line at a time
set smooth

# maintain tab indent on new lines
set autoindent

Setting Options at Runtime

-T cols (--tabsize=cols)

– Set the size (width) of a tab to cols columns. The value of cols must be greater than 0. The default value is 8.

-w (--nowrap)

– Disable wrapping of long lines.

-S (--smooth)

– Enable smooth scrolling. Text will scroll line-by-line, instead of the usual chunk-by-chunk behavior.

-i (--autoindent)

– Indent new lines to the previous line’s indentation. Useful when editing source code.

This entry was posted in Applications on by .

About Andrew Wells

I have been developing on the LAMP stack since about 2006. I run Ubuntu XFCE on my desktop and have a history of managing Ubuntu and CentOS servers. I code web applications mostly in PHP but have experience with other languages as well. When I'm not working, I can be found working in my home lab or out snowboarding, hiking, camping, or biking depending on the season.

Leave a Reply

Your email address will not be published. Required fields are marked *