I am working in VIM and I just want to know is it possible to delete a word when the cursor is in the middle of that word (or some where it is other than the beginning or end).
Thanks in Advance :-)
I am working in VIM and I just want to know is it possible to delete a word when the cursor is in the middle of that word (or some where it is other than the beginning or end).
Thanks in Advance :-)
bdw
should do it.
b
ack to the beginning of the word, d
elete to the next w
ord
what you need is the following keystrokes in normal mode (without quotes):
"daw" delete a word
:help daw
for more related commands.
I found that "diw" ( delete inner word ) is the straight forward way to delete a word!
In Escape mode, use dw even when the cursor is underneath the middle of the word