From 5714ab3777d7f866a5eb9aa9b2c6b080262433ea Mon Sep 17 00:00:00 2001 From: Francesco Borzì Date: Sat, 5 Dec 2020 21:35:07 +0100 Subject: docs(how-to-test-a-PR): add vim instructions (#302) * improve-how-to-test-pr-nano-vs-vim * Update How-to-test-a-PR.md --- docs/How-to-test-a-PR.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/How-to-test-a-PR.md b/docs/How-to-test-a-PR.md index 3919f2b..4a8b672 100644 --- a/docs/How-to-test-a-PR.md +++ b/docs/How-to-test-a-PR.md @@ -58,7 +58,12 @@ git remote add upstream https://github.com/azerothcore/azerothcore-wotlk.git The commands above will create a new local branch called `pr-XXXX` which will contain all the changes that need to be tested. -The terminal might prompt an editor (usually `nano`) that asks to save the merge commit message. Just save the changes and exit the editor. If the editor is `nano`, you can do it by simply using `CTRL+O` and `ENTER` to save then `CTRL+X` to exit. +The terminal will prompt an editor (usually `nano` or `vim`) that asks to save the merge commit message. Just save the changes and exit the editor. + +- If the editor is `nano`, you can do it by simply using `CTRL+O` and `ENTER` to save then `CTRL+X` to exit. +- If the editor is `vim` you can hold the `SHIFT` key and press two times `Z` to save and exist. + +You can read more about the `git` configuration and its default editor [here](http://web.mit.edu/6.005/www/fa14/tutorial/git/config.html). ## Update your local server to apply the changes -- cgit