Skip to content

Instantly share code, notes, and snippets.

@lunixbochs
Created February 23, 2017 17:40
Show Gist options
  • Save lunixbochs/582b2435c6c2ba7e8f12fd2ee7df2f7f to your computer and use it in GitHub Desktop.
Save lunixbochs/582b2435c6c2ba7e8f12fd2ee7df2f7f to your computer and use it in GitHub Desktop.
--------------------
case 1: input('d') deletes line without waiting for more input
<new instance p=True>
cmd: input('<esc>G')
1 | line 1
2 | line 2
* | line 3
cmd: input('d')
1 | line 1
* | line 2
cmd: input('d')
* | line 1
cmd: input('d')
* |
cmd: input('d')
* |
--------------------
case 2: input('d'), input('d') is a noop, but input('G') or input('dd') converts into case 1
<new instance p=True>
cmd: input('d')
* | line 1
2 | line 2
3 | line 3
cmd: input('d')
* | line 1
2 | line 2
3 | line 3
<new instance p=True>
cmd: input(':3\n')
1 | line 1
2 | line 2
* | line 3
cmd: input('d')
1 | line 1
2 | line 2
* | line 3
cmd: input('d')
1 | line 1
2 | line 2
* | line 3
<new instance p=True>
cmd: input(':3\n')
1 | line 1
2 | line 2
* | line 3
cmd: input('dd')
1 | line 1
* | line 2
cmd: input('d')
* | line 1
cmd: input('d')
* |
<new instance p=False>
cmd: input('d')
cmd: input('d')
* | line 2
2 | line 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment