2026-04-27 21:38:06 +10:00
2026-04-27 21:38:06 +10:00
2026-04-27 21:38:06 +10:00
2026-04-27 21:38:06 +10:00
2026-04-27 21:38:06 +10:00
2026-04-27 21:38:06 +10:00

Dive

Dive is a Vim-like text editor using ncurses.

Usage

dive file.txt

Compiling

fish build.fish

Supported actions

Ctrl+C exits the editor anywhere.

Normal Mode

  • Move around with arrow keys or hjkl
  • Use i to enter insert mode
  • Use a to enter insert mode, moving the cursor forward
  • Use o to enter insert mode, with a blank line below the currently selected one
  • Use : or ; to enter command mode

Insert Mode

  • Use ESC to get back to Normal Mode
  • Use arrow keys to move around
  • Type to type things in
  • Backspace to delete the character before the cursor, or to merge 2 lines when cursor is at the start of a line
  • Enter to split the current line in half

Command Mode

  • Use ESC to get back to Normal Mode
  • Type to type a command into the minibuffer
  • Enter to run the command

Commands:

  • q, quit: Quits Dive, forgetting any changes.
  • w, write: Writes changes to the file provided

Enjoy!

Description
Vim-like text editor in C++
Readme 34 KiB
Languages
C++ 99.6%
Shell 0.4%