Nano-8.7

The Nano package contains a small, simple text editor which aims to replace Pico, the default editor in the Pine package.

Approximate build time: 0.2 SBU
Required disk space: 24 MB
SHA256 Checksum: afd287aa672c48b8e1a93fdb6c6588453d527510d966822b687f2835f0d986e9
[Tip]

Alternatives to Nano

If you prefer another editor—such as Emacs, Joe, or Vim—please refer to https://www.linuxfromscratch.org/blfs/view/systemd/postlfs/editors.html for suggested installation instructions.

Installation of Nano

Prepare Nano for compilation:

./configure --prefix=/usr     \
            --sysconfdir=/etc \
            --enable-utf8     \
            --docdir=/usr/share/doc/nano-8.7

Compile the package:

make

This package does not come with a test suite.

Install the package:

make install
install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/nano-8.7

Configuring Nano

cat > /etc/nanorc << "EOF"
# Begin /etc/nanorc

set autoindent
# set boldtext
set constantshow
set fill 72
set historylog
set indicator
set multibuffer
set positionlog
set quickblank
set regexp
# set softwrap
set tabsize 4

include /usr/share/nano/c.nanorc
include /usr/share/nano/sh.nanorc
include /usr/share/nano/yaml.nanorc

# End /etc/nanorc
EOF

Check the sample.nanorc file in the installed documentation directory. It includes color configurations and has some documentation included in the comments. Syntax highlighting is provided for several file types, in /usr/share/nano/ directory. E.g., for shell scripts, you can insert include /usr/share/nano/sh.nanorc in the personal or global configuration file. If you wish highlighting for all supported files, use include /usr/share/nano/*.nanorc. This include does not descend into the extra directory. Move required files one level up.

Contents of Nano

Installed programs: nano and rnano (symlink)
Installed directory: /usr/share/nano and /usr/share/doc/nano-8.7

Short Descriptions

nano

is a small, simple text editor which aims to replace Pico, the default editor in the Pine package

rnano

is a restricted mode for nano