From 6a56c58a1ca70087a8431342397cb79526367e2a Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Fri, 3 Jun 2022 19:49:36 +0800 Subject: [PATCH] docs(c/c++): update c/c++ tutorial --- docs/_posts/2019-05-10-use-vim-as-a-c-cpp-ide.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/docs/_posts/2019-05-10-use-vim-as-a-c-cpp-ide.md b/docs/_posts/2019-05-10-use-vim-as-a-c-cpp-ide.md index b340ca544..aaf026a6b 100644 --- a/docs/_posts/2019-05-10-use-vim-as-a-c-cpp-ide.md +++ b/docs/_posts/2019-05-10-use-vim-as-a-c-cpp-ide.md @@ -114,13 +114,9 @@ lint for C/C++ is `gcc`/`g++`. These commands also read configuration in `.clang ### code format -The format layer use neoformat as default tool to format code, it will format current file. -And the default key binding is `SPC b f`. - -```toml -[[layers]] - name = "format" -``` +In order to be able to format C/C++ files, you need to install `uncrustify`, `clangformat` or `astyle`. +The key binding `SPC b f` is defineded in [format](../layers/format/) layer which is loaded by default. +In this layer, the default format engine is `neoformat`. ### REPL support