diff --git a/.inserting.txt.swo b/.inserting.txt.swo new file mode 100644 index 0000000..4dc4b8e Binary files /dev/null and b/.inserting.txt.swo differ diff --git a/vim-commands b/vim-commands index 6421c26..3eb9bbd 100644 --- a/vim-commands +++ b/vim-commands @@ -225,4 +225,87 @@ Line mode: It puts the mode in insert mode and put the cursor above the line where the current cursor is present. + * Replacing (Replace Mode): + + @ Command :- Shift + r or CAPS + r (Capital r) + + What does it do? + + It pust the mode in replace mode. In replace mode, wherever + the cursor is present, it will start to replace each character + as we type and the previous character will be over-written by the + new character. + + * Changing (Changing Mode): + + @ Command :- + c + + + What does it do? + + It delete the series of bytes, based on the word-motion given, + and put the mode in INSERT mode. can be any + type of word motion that we have learnt. Here, + can be used to put the deleted or "replaced" word into the register + which we use to store as intended. + + For example: + + "a + c + w + + It will store the word into register "a which is replaced by using + command c + w. + + @ Command :- Shift + c or CAPS + c (capital + c) + + What does it do? + + Replace the sequence of characters from current cursor position is present at till end + of the line. + + @ Command :- cc + Replace the entire current line where the cursor is present. + + @ Command :- ~ + + What does it do? + + Switch over the case of the character where the current is present. + + @ Command :- g + ~ + + + What does it do? + + Switch over the cases of the each character based on the motion command + range. + + @ Command :- g + U + + + What does it do? + + Changes the entire case of each character to upper-case based on the motion command + range. + + @ Command :- g + u + + + What does it do? + + Changes the entire case of each character to lower-case based on the + motion comand range. + + -> Joining: + + @ Command :- Shift + j or CAPS + j (Capital + j) + + What does it do? + + Joins the line below the current line where the cursor is present + to single line and add a space to it or add a double space if there + is a period at the end of the current line. + + @ Command :- g + J + + + What does it do? + + Do the same thing as "J" command. Only difference is that it doesn't + add any space between joining lines.