From c233390db7618f763641b9b0be27989d32e08fb3 Mon Sep 17 00:00:00 2001 From: Cyrus Yip <60951091+CyrusYip@users.noreply.github.com> Date: Thu, 25 Aug 2022 02:05:51 +0800 Subject: [PATCH] ch24: fix typos --- ch24_vim_runtime.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch24_vim_runtime.md b/ch24_vim_runtime.md index 56ef3b6..f65e686 100644 --- a/ch24_vim_runtime.md +++ b/ch24_vim_runtime.md @@ -251,7 +251,7 @@ Vim has an environment variable `$VIMRUNTIME` for default scripts and support fi The structure should look familiar. It contains many runtime paths you learned in this chapter. -Recall in Chapter 21, you learned that when you open Vim, it looks for a vimrc files in seven different locations. I said that the last location Vim checks is `$VIMRUNTIME/default.vim`. If Vim fails to find any uservimrc files, Vim uses a `default.vim` as vimrc. +Recall in Chapter 21, you learned that when you open Vim, it looks for a vimrc files in seven different locations. I said that the last location Vim checks is `$VIMRUNTIME/defaults.vim`. If Vim fails to find any user vimrc files, Vim uses a `defaults.vim` as vimrc. Have you ever tried running Vim without syntax plugin like vim-polyglot and yet your file is still syntatically highlighted? That is because when Vim fails to find a syntax file from the runtime path, Vim looks for a syntax file from `$VIMRUNTIME` syntax directory.