diff --git a/vim-commands b/vim-commands index 5cb65ec..a449342 100644 --- a/vim-commands +++ b/vim-commands @@ -37,6 +37,29 @@ Normal mode commands: g + (ctrl+g): To get more detailed information of whatever 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: + + {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: