mirror of
https://github.com/Hizenberg469/Vim-tutorials.git
synced 2026-04-19 22:02:24 +03:00
latest
This commit is contained in:
23
vim-commands
23
vim-commands
@@ -37,6 +37,29 @@ Normal mode commands:
|
|||||||
g + (ctrl+g): To get more detailed information of whatever
|
g + (ctrl+g): To get more detailed information of whatever
|
||||||
the previous was showing.
|
the previous was showing.
|
||||||
|
|
||||||
|
-> Deleting text from file in normal mode:
|
||||||
|
|
||||||
|
x: To delete the right side byte of the current cursor position.
|
||||||
|
X: To delete the left side byte of the current cursor position.
|
||||||
|
|
||||||
|
Using d to delete words with motion operation:
|
||||||
|
|
||||||
|
<operation>{motion}
|
||||||
|
for ex:
|
||||||
|
dw (this delete the what the w command would move
|
||||||
|
the cursor by)
|
||||||
|
|
||||||
|
dw: To delete a word in front of the current cursor position.
|
||||||
|
|
||||||
|
dl: To delete next byte towards right from current cursor position on
|
||||||
|
current line.
|
||||||
|
dh: To delete next byte towards left from current cursor position on
|
||||||
|
current line.
|
||||||
|
dj: To delete whole current line and the line below.
|
||||||
|
dk: To delete whole current line and the line above.
|
||||||
|
d$: To delete from current position of cursor to the end of
|
||||||
|
the line.
|
||||||
|
|
||||||
|
|
||||||
Line mode:
|
Line mode:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user