From 08e4299e27b4257db33a8a6dd85fd5d46cfa059e Mon Sep 17 00:00:00 2001 From: Iker Tejero <61519891+ikertejero@users.noreply.github.com> Date: Sat, 13 Jan 2024 18:15:18 +0100 Subject: [PATCH] Update window shortcuts as per vim's: :help ctrl-w --- ch02_buffers_windows_tabs.md | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/ch02_buffers_windows_tabs.md b/ch02_buffers_windows_tabs.md index 8f51acd..3bf3968 100644 --- a/ch02_buffers_windows_tabs.md +++ b/ch02_buffers_windows_tabs.md @@ -88,10 +88,19 @@ Now you are looking at two buffers through **two windows**. The top window displ If you want to navigate between windows, use these shortcuts: ``` -Ctrl-W H Moves the cursor to the left window -Ctrl-W J Moves the cursor to the window below -Ctrl-W K Moves the cursor to the window upper -Ctrl-W L Moves the cursor to the right window +Ctrl-W h Moves the cursor to the left window +Ctrl-W j Moves the cursor to the window below +Ctrl-W k Moves the cursor to the window upper +Ctrl-W l Moves the cursor to the right window +``` + +If you want to move your windows, use these ones: + +``` +Ctrl-W H Moves current window to the far left +Ctrl-W J Moves current window to the very bottom +Ctrl-W K Moves current window to the very top +Ctrl-W L Moves current window to the far right ``` Now run: @@ -115,10 +124,10 @@ To close the current window, you can run `Ctrl-W C` or type `:quit`. When you cl Here are some useful normal-mode window commands: ``` -Ctrl-W V Opens a new vertical split -Ctrl-W S Opens a new horizontal split -Ctrl-W C Closes a window -Ctrl-W O Makes the current window the only one on screen and closes other windows +Ctrl-W v Opens a new vertical split +Ctrl-W s Opens a new horizontal split +Ctrl-W c Closes a window +Ctrl-W o Makes the current window the only one on screen and closes other windows ``` And here is a list of useful window command-line commands: