Skip to content

Commit

Permalink
Merge pull request #157 from CyrusYip/patch-13
Browse files Browse the repository at this point in the history
ch24: fix typos
  • Loading branch information
iggredible authored Aug 30, 2022
2 parents e67ccf8 + c233390 commit 5132cc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch24_vim_runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 5132cc1

Please sign in to comment.