</div>
acme
Resources used:
[evbogdanox](//github.com/evbogdanov/acme/blob/master/README.md)
Image by Tom Lieber
Edit =
Find current line number
:13
Go to the 13th line
:0
Go to file beginning
:$
:1,5 or Edit 1,5 select lines 1..5 Edit , d clear window Edit , < echo hello world replace window body with some text Edit , < erl -man maps replace window body with erlang manual Edit , s/text/TEXT/g or Edit ,
sed 's/text/TEXT/g' global replace $winid current window id echo some text | 9p write acme/$winid/body append to the end of current window
keyboard shortcuts:
ctrl-u delete from cursor to start of line
ctrl-w delete word before the cursor
ctrl-h delete character before the cursor
ctrl-a move cursor to start of the line
ctrl-e move cursor to end of the line
ctrl-i tab
ctrl-j enter
ctrl-f filepath autocompletion
press esc to select the last typed text
press esc again to delete any selected text
vim<a name=MovementVim tutorial What you MUST doNo. 1Stop using default keybinds to save a file, don't bother with To default save a file one has to...
if you are not already in escape mode one has to
that is too many keypresses, even 'ZZ' is no good Useful
Vim includes a man page viewer, :Man , in its runtime files. Even better, you can just place your cursor on a word in the buffer and press set mouse=a Personal configComputers are the closest thing mankind has to magic |
---|