sjl / learnvimscriptthehardway

Home Page:http://learnvimscriptthehardway.stevelosh.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chapter 4 - :imap <c-d> dd does not insert two d's

nicohvi opened this issue · comments

Hiya, love the book.

This might just be my stupidity typing, but I can't seem to replicate inserting two ds (lol) when I run :imap <c-d> dd. Nothing really happens when I enter insert mode and press ctrl - d. Also, running :unmap <c-d> returns an error E31: No such mapping.

However, the second map (:imap <c-d> <esc>dd) it works as intended.

Apparently there was something weird with my vim-instance. Closing and opening vim fixed it.