From 8cbb60f349e5a37277f80e7fa8e60f10055199d8 Mon Sep 17 00:00:00 2001 From: Cyrus Yip <60951091+CyrusYip@users.noreply.github.com> Date: Thu, 25 Aug 2022 02:02:50 +0800 Subject: [PATCH] ch22: add `vim --clean` --- ch22_vimrc.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ch22_vimrc.md b/ch22_vimrc.md index 5fd839c..bee6e52 100644 --- a/ch22_vimrc.md +++ b/ch22_vimrc.md @@ -395,6 +395,12 @@ If you need to run Vim with a *different* vimrc, say `~/.vimrc-backup`, run: vim -u ~/.vimrc-backup ``` +If you need to run Vim with only `defaults.vim` and without plugins, which is helpful to fix broken vimrc, run: + +``` +vim --clean +``` + ## Configure Vimrc the Smart Way Vimrc is an important component of Vim customization. A good way to start building your vimrc is by reading other people's vimrcs and gradually build it over time. The best vimrc is not the one that developer X uses, but the one that is tailored exactly to fit your thinking framework and editing style.