[index] [home]


How to avoid 'oops, I deleted all entered text in current line' in Vim

Ctrl-U in insert-mode will delete all entered text on the current line (a-la shell/readline).

There is no undo for this, and it has caused much cursing here already. To fix:

    echo 'imap <C-U> <space>' >> ~/.vimrc

(no idea how to make it do nothing, but a space is quite harmless.)

Delivered to you by Vim, GNU Make, MultiMarkdown, bozohttpd, NetBSD, and 1 human.