Timeline for In Honor of Adam West
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 16, 2017 at 1:16 | history | edited | Ray | CC BY-SA 3.0 |
clarified that bracked entries are just used to represent the actual nonprintable characters.
|
Jun 16, 2017 at 1:14 | comment | added | Ray | @L3viathan I could, but it wouldn't make any difference in the count. The actual file contains single bytes for each of those; I just represented the nonprintables in bracket notation here for readability. <C-v> is 0x16; <ESC> is 0x1b, and <NEWLINE> is 0x0d (so perhaps I should have called it <CR> instead). Those are the bytes that are inserted via <C-v><C-v>, <C-v><ESC>, and <C-v><ENTER> respectively. I've clarified that in the answer. | |
Jun 15, 2017 at 18:26 | comment | added | L3viathan |
Can't you write <NL> instead of <NEWLINE> ?
|
|
Jun 14, 2017 at 21:35 | comment | added | Ray | @DJMcMayhem Very nice. Thanks. | |
Jun 14, 2017 at 21:32 | history | edited | Ray | CC BY-SA 3.0 |
added TIO link (using V)
|
Jun 14, 2017 at 21:28 | comment | added | DJMcMayhem |
I'm glad to know you got it working! Another way you can test vim answers for convenience is Try it online!, which really uses an esolang I wrote, but it's (mostly) backwards compatible anyway. The -v flag lets you use vim key descriptions (like <C-v> and whatnot)
|
|
Jun 14, 2017 at 21:12 | history | edited | Ray | CC BY-SA 3.0 |
added 21 characters in body
|
Jun 14, 2017 at 21:08 | comment | added | Ray |
@DJMcMayhem So it does. For some reason, I thought it would be more difficult to store the <C-v> in a file than it is, so I used the roundabout method so I could test it with { cat foo.vim; echo ':wq'; } | vim out.txt . I'm not sure why it didn't occur to me to try <C-v><C-v> yesterday.
|
|
Jun 14, 2017 at 21:06 | history | edited | Ray | CC BY-SA 3.0 |
merged macros and :nm
|
Jun 14, 2017 at 19:27 | comment | added | DJMcMayhem |
I think it would be faster to not bother making macros 'b' and 'c', and instead remap them directly. :nm N a <C-v><esc> and :nm A a*<C-v><esc>
|
|
Jun 14, 2017 at 3:18 | history | answered | Ray | CC BY-SA 3.0 |