From 7b83a2b497daee6cfe914a2df7d94ad8a6438c2a Mon Sep 17 00:00:00 2001 From: Victorhck Date: Thu, 18 Mar 2021 20:25:07 +0100 Subject: [PATCH] change order of nnoremap explanation ch21 --- ch21_vimrc.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch21_vimrc.md b/ch21_vimrc.md index 404d3f2..8ce527e 100644 --- a/ch21_vimrc.md +++ b/ch21_vimrc.md @@ -193,9 +193,9 @@ let mapleader = "\" ``` The `nnoremap` command used above can be broken down into three parts: -- `map` is the map command. - `n` represents the normal mode. - `nore` means non-recursive. +- `map` is the map command. At minimum, you could have used `nmap` instead of `nnoremap` (`nmap :Gfiles`). However, it is a good practice to use the non-recursive variant to avoid potential infinite loop.