Vim/Deleting

From Debuntu

< Vim
Jump to: navigation, search
WorkInProgress.png
Work in Progress
This page is a work in progress and might contain errors or inconsistency. Comment are most appreciated.

In escape mode:

Deletion
Command Action
x delete character
[count]x delete [count] character under and after cursor
[count]X delete [count] character before cursor
dd delete current line
[count]dd delete [count] lines from cursor
d^ delete from cursor (not included) to begin of line
d$ or D delete from cursor to end of line
[count]d$ or [count]D delete from cursor to end of line and [count] -1 lines
dw delete word forward
db delete word backward
[count]d{motion} delete text that motion moves over (up/down = lines, left/right = characters )
:[range]d [count] delete range
Idea.png
Find out more
:help deleting
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
Google AdSense