Delete part of word right/left to the cursor in vim

Loom

Let cursor is positioned on some inner symbol of word in vim. I'd like to delete part of word from the left (or right) of cursor. How it can be done (in normal and insert mode)?

QuestionC

db deletes from the cursor to the beginning of the current word.

de deletes from the cursor to the end of the current word.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Ag.vim: Use word under the cursor as *part* of a search pattern?

From Dev

vim: delete lines before cursor

From Dev

Bash: delete word ahead of cursor

From Dev

delete part of string (word) in tcl

From Dev

Spell-check word under cursor in Vim

From Dev

Vim highlight a word with * without moving cursor

From Dev

Vim search with ag the word under cursor

From Dev

Vim highlight a word with * without moving cursor

From Dev

Vim: Delete from cursor to next period

From Dev

How to delete 4 words before cursor in vim?

From Dev

How to delete 4 words before cursor in vim?

From Dev

Delete text *after* cursor in vim (leaving what is under the cursor)

From Dev

How to configure vim such that `_` is also counted as part of a word?

From Dev

Delete everything AFTER the cursor (or delete everything after the current word)

From Dev

how to delete a word that has a dot in it in vim

From Dev

How to delete a WORD in vim in insert mode

From Dev

Delete the remainder of the line after current word in VIM

From Dev

VIM - How to delete a word in the INSERT mode?

From Dev

vi vim delete a word in a special block

From Dev

how to delete a word that has a dot in it in vim

From Dev

How to get the count of the word under cursor in Vim quickly?

From Dev

Vim command: how to select a word under cursor in normal mode

From Dev

Formatting text in vim + jump cursor to after a word's punctuation

From Dev

How to move cursor to specific word in current line in Vim

From Dev

Delete backwards from cursor to the end of the previous line in Vim?

From Dev

Delete from cursor to end of line under visual selection in vim

From Dev

vim: delete from cursor position to n characters before end of line

From Dev

How to delete the last word from each line in vim?

From Dev

Emacs delete up to the beginning of next word (like Vim 'dw')?

Related Related

  1. 1

    Ag.vim: Use word under the cursor as *part* of a search pattern?

  2. 2

    vim: delete lines before cursor

  3. 3

    Bash: delete word ahead of cursor

  4. 4

    delete part of string (word) in tcl

  5. 5

    Spell-check word under cursor in Vim

  6. 6

    Vim highlight a word with * without moving cursor

  7. 7

    Vim search with ag the word under cursor

  8. 8

    Vim highlight a word with * without moving cursor

  9. 9

    Vim: Delete from cursor to next period

  10. 10

    How to delete 4 words before cursor in vim?

  11. 11

    How to delete 4 words before cursor in vim?

  12. 12

    Delete text *after* cursor in vim (leaving what is under the cursor)

  13. 13

    How to configure vim such that `_` is also counted as part of a word?

  14. 14

    Delete everything AFTER the cursor (or delete everything after the current word)

  15. 15

    how to delete a word that has a dot in it in vim

  16. 16

    How to delete a WORD in vim in insert mode

  17. 17

    Delete the remainder of the line after current word in VIM

  18. 18

    VIM - How to delete a word in the INSERT mode?

  19. 19

    vi vim delete a word in a special block

  20. 20

    how to delete a word that has a dot in it in vim

  21. 21

    How to get the count of the word under cursor in Vim quickly?

  22. 22

    Vim command: how to select a word under cursor in normal mode

  23. 23

    Formatting text in vim + jump cursor to after a word's punctuation

  24. 24

    How to move cursor to specific word in current line in Vim

  25. 25

    Delete backwards from cursor to the end of the previous line in Vim?

  26. 26

    Delete from cursor to end of line under visual selection in vim

  27. 27

    vim: delete from cursor position to n characters before end of line

  28. 28

    How to delete the last word from each line in vim?

  29. 29

    Emacs delete up to the beginning of next word (like Vim 'dw')?

HotTag

Archive