From 45abd64a8300056603b379431eea0385b10fdd52 Mon Sep 17 00:00:00 2001 From: Phillipe Queiroz Date: Mon, 28 Oct 2019 21:47:53 -0300 Subject: [PATCH] Add vim split window tutorial --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index aa6b3ed..ffbbd8c 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,20 @@ Save the file | `:w` then `` Save the file then quit | `:wq` then `` Quit without saving the file | `:q!` then `` +### Create new window + +It's a good idea split windows in your text editor to visualize and make changes that depends on each other. For example, you need use a class selector in css of a html tag with specific class. So, you can do it with: + +Action | Keys +------ | ---- +Split Up/Down | `:sp ` +Split Left/Right | `:vsp ` +Move between windows | `` + `w` + `h/j/k/l` +Grow window | `` + `w` + `-` +Shrink window | `` + `w` + `+` + +Remember that `h`, `j`, `k` and `l` move cursor to left, down, up and right respectively. + ## Settings These are some of the commands to customise the display: