1.4 KiB
1.4 KiB
bim
bim is a tiny Vim-like editor written in Bash.
This is an early prototype, not a full Vim replacement. It starts in command mode and supports:
iinsert before the cursoraappend after the cursorIinsert at the beginning of the lineAappend at the end of the line- arrow keys, plus
h,j,k,l wmove forward by wordbmove backward by wordemove to the end of the current or next wordxdelete the character under the cursordddelete the current lined$orDdelete from the cursor to the end of the linedwdelete forward by worddbdelete backward by wordcwchange wordccchange the current lineCchange from the cursor to the end of the linessubstitute the character under the cursorrreplace the character under the cursoryyyank the current lineppaste the yanked or deleted line below the cursoroopen a new line below and enter insert modeOopen a new line above and enter insert modeuundo the last change- numeric prefixes for common commands, such as
2dd,20yy,3p,5j,4x,5w,5dw,3rX, and2s Escreturn to command modeCtrl+Gshow file, modified state, line, and column info:w,:w path,:q,:q!,:wq, and:wq path
There is no persistent ruler/status line. The bottom line is used only for
commands, messages, and explicit Ctrl+G file info.
Run it with:
./bim path/to/file