Vim tutorial finished

This commit is contained in:
2025-09-02 18:44:50 +03:00
parent 16b259481a
commit 2747b02059
3 changed files with 307 additions and 22 deletions

View File

@@ -131,3 +131,80 @@ Command: :Explore or :E
It is file explorer CLI which allow to navigate directory and open any file in the buffer.
This CLI like look also a special buffer which we can delete using :bd command.
--------------------------------------------------------------------------------------------------
Multiple Buffer:
----------------
Command: vim <filename-pattern>*
To open all the file name following the pattern.
Command: :sp or :split
To split window horizontally and open two buffer at the same time.
To achieve same thing we can use "CTRL+w s"
Command: :vs or :vsplit
To vertically split the window and open two buffer at the same time.
To achieve same thing we can use "CTRL+w v"
Command: CTRL+w q
To close the current active buffer window.
Command: :on or :only or CTRL+w o
To close the all the window except the current active window.
--> To Navigate through windows using h,j,k,l
Same motion for these key can be used for window navigation using
CTRL+w h,j,k,l. (left, down, up, right)
--> To adjust and modify the size of the window.
CTRL+w +: To increase the height of the window.
CTRL+w -: To decrease the height of the window.
CTRL+w >: To increase the width of the window.
CTRL+w <: To increase the width of the window.
CTRL+w _: To set the height of the window to maximum.
CTRL+w |: To maximize the width fo the window to maximum.
CTRL+w =: To make all the window equal in size.
--> To arrange the windows buffer.
CTRL+w r: To rotate the respective buffer in clockwise-direction.
CTRL+w R: To rotate the respective buffer in opposite-direction
CTRL+w h: To move buffer to edge left with full height.
CTRL+w j: To move buffer to bottom edge with full width.
CTRL+w k: To move buffer to top edge with full width.
CTRL+w l: To move buffer to right edge with full height.
Command: :ball
To open all the buffer and split is horizontal.
Vim will try to open all buffer. But, if enough space
is not present then it will stop opening remaining buffer.
--> To execute a action command on every opened window.
Use ":windo <command>". <command> can be, for example,
substitution command.