GNU nano

GNU nano
1
is Nano's ANOther editor, inspired by
Pico
2
.


Dependencies

Required

  • Pacman
    3

1. Install

NOTE

nano-syntax-highlighting replaces and expands the default syntax highlighting.


2. Configure

2.1. nanorc

NOTE

  • /etc/nanorc is a configuration file included during installation
  • Customize
    nano
    4
    with
    nanorc
    5
    (~/.config/nano/nanorc)

2.2. Syntax highlighting

NOTE

  • Write include declarations on top of ~/.config/nano/nanorc
  • /usr/share/nano/*.nanorc contains predefined syntax highlighting rules
  • /usr/share/nano-syntax-highlighting/*.nanorc replaces and expands above rules

2.3. Set as default editor

NOTE

  • $EDITOR is used when $VISUAL fails
  • This replaces vi with nano to edit with other programs
  • Use sudo EDITOR=nano visudo to edit sudoers file (/etc/sudoers)

References

Show Comments