Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

backward-kill-word in vim?

Tags:

vim

is the quickest way to go back and kill a word Esc or Ctrl-[ and db? I guess I mess up a lot :P and am used to using M-<backspace or Ctrl-<backspace> in other editors (or word processors). Still getting the hang of this (vim), but switching to normal-mode for short tasks like this one seems an odd way to go about it. Just wanted to inquire if there was anything better than what I was doing... Thanks much ~

like image 288
hatmatrix Avatar asked Sep 09 '10 23:09

hatmatrix


3 Answers

In insert mode you can use CTRL-W to undo the most recently typed word.

like image 83
JaredPar Avatar answered Sep 28 '22 14:09

JaredPar


Are you looking for <c-w> in insert and command modes ? (like in unix shell command line) Or db in normal mode?

like image 25
Luc Hermitte Avatar answered Sep 28 '22 13:09

Luc Hermitte


Try control + W

like image 44
DigitalRoss Avatar answered Sep 28 '22 14:09

DigitalRoss