mirror of
https://github.com/Hizenberg469/Vim-tutorials.git
synced 2026-04-19 14:02:22 +03:00
Inserting, Replacing, Changing and Jumping done
This commit is contained in:
BIN
.inserting.txt.swo
Normal file
BIN
.inserting.txt.swo
Normal file
Binary file not shown.
83
vim-commands
83
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 :- <optional-register> + c + <word-motion>
|
||||
|
||||
What does it do?
|
||||
|
||||
It delete the series of bytes, based on the word-motion given,
|
||||
and put the mode in INSERT mode. <word-motion> can be any
|
||||
type of word motion that we have learnt. Here, <optional-register>
|
||||
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 + ~ + <motion-command>
|
||||
|
||||
What does it do?
|
||||
|
||||
Switch over the cases of the each character based on the motion command
|
||||
range.
|
||||
|
||||
@ Command :- g + U + <motion-command>
|
||||
|
||||
What does it do?
|
||||
|
||||
Changes the entire case of each character to upper-case based on the motion command
|
||||
range.
|
||||
|
||||
@ Command :- g + u + <motion-command>
|
||||
|
||||
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 + <motion-command>
|
||||
|
||||
What does it do?
|
||||
|
||||
Do the same thing as "J" command. Only difference is that it doesn't
|
||||
add any space between joining lines.
|
||||
|
||||
Reference in New Issue
Block a user