Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vim split window tutorial #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,20 @@ Save the file | `:w` then `<Enter>`
Save the file then quit | `:wq` then `<Enter>`
Quit without saving the file | `:q!` then `<Enter>`

### 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 <filename>`
Split Left/Right | `:vsp <filename>`
Move between windows | `<Ctrl>` + `w` + `h/j/k/l`
Grow window | `<Ctrl>` + `w` + `-`
Shrink window | `<Ctrl>` + `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:
Expand Down