CLI Editor

nano

cli parameters/flags

set defaults by editing /etc/nanorc or in ~/.nanorc: (some recommendations)

## Constantly display the cursor position in the status bar or minibar.
set constantshow

## Display line numbers to the left (and any anchors in the margin).
set linenumbers

## Enable mouse support, if available for your system.  When enabled,
## mouse clicks can be used to place the cursor, set the mark (with a
## double click), and execute shortcuts.  The mouse will work in the
## X Window System, and on the console when gpm is running.
set mouse

## Make the Home key smarter: when Home is pressed anywhere but at the
## very beginning of non-whitespace characters on a line, the cursor
## will jump to that beginning (either forwards or backwards).  If the
## cursor is already at that position, it will jump to the true start
## of the line (the left edge).
# set smarthome

## Spread overlong lines over multiple screen lines.
# set softwrap

userful short cuts

shortcuts are displayed on the bottom, maximize to see more

vim

tutorials

vim modes

base commands

movement

text editing

find and replace

searching only

example: /Linux\c + Enter

find and replace

:[range]s/{pattern}/{string}/[flags]


Created 2023-02-06 09:32:56 UTC by Daniel Raab
Updated 2025-07-08 11:56:35 UTC by Daniel Raab