From 5c79e8c6b12328bd43cc55e7e7502fcdddcfdecc Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 16 Dec 2017 23:53:00 -0500 Subject: [PATCH] Add a variety of window commands to vim.md --- help/vim.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/help/vim.md b/help/vim.md index 17ab8d71..90c4e3c6 100644 --- a/help/vim.md +++ b/help/vim.md @@ -6,7 +6,7 @@ For some vim commands, I use a `` keybinding as an alternative since I f ## Starting vim -- Open a file at a particular line number: `vim + ` +- Open a file at a specific line number: `vim + ` - Open multiple files in separate tabs: `vim -p ` - Open all files that contain the function / variable / string `str` in the current directory: `vim -p "grep -l [files]"` - Note that `[files]` is optional, allowing you to only search for e.g. `*.js` files @@ -152,7 +152,11 @@ Note that you can use `` at any time while in insert mode to execute a sing Note that there are a lot of buffer commands, however, I only document the ones I actively use here. -There are also a lot of window commands; however, I don't need to use most of them. +- Switch to the next window: `w` +- Switch to a specific window: `` +- Move a window up *or* to the left: `R` +- Move a window down *or* to the right: `r` +- Move the current window to a specific side: `` Also note that vim tabs is a thing, although you really shouldn't be using them.