From 986c25573633107a6b29436caf71e5865a9b5251 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 25 Nov 2019 10:52:36 +0100 Subject: [PATCH] [ADD][VIM] CMake specific configuration --- vim/.vim/after/ftplugin/cmake.vim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 vim/.vim/after/ftplugin/cmake.vim diff --git a/vim/.vim/after/ftplugin/cmake.vim b/vim/.vim/after/ftplugin/cmake.vim new file mode 100644 index 0000000..d590ae0 --- /dev/null +++ b/vim/.vim/after/ftplugin/cmake.vim @@ -0,0 +1,6 @@ +" Create the `b:undo_ftplugin` variable if it doesn't exist +call ftplugined#check_undo_ft() + +" Use 2 spaces indentation inside CMake files +setlocal shiftwidth=2 +let b:undo_ftplugin.='|setlocal shiftwidth<'