From a1ee88b3af7fb9161966bcbdba9e369c9d2701a8 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Sun, 10 Sep 2023 12:16:03 +0200 Subject: [PATCH] chg: [base] set a saner ``~/.vimrc`` to have better yaml indentation --- precise/base-0k/hooks/install.d/30-customize.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/precise/base-0k/hooks/install.d/30-customize.sh b/precise/base-0k/hooks/install.d/30-customize.sh index 41eace0..da1ac03 100755 --- a/precise/base-0k/hooks/install.d/30-customize.sh +++ b/precise/base-0k/hooks/install.d/30-customize.sh @@ -141,3 +141,19 @@ if [ -f ~/.bashrc ]; then fi EOF + + +protect_pre_install /root/.vimrc + +cat <> /root/.vimrc + +syntax on +filetype plugin indent on + +"Get the 2-space YAML as the default when hit carriage return after the colon +autocmd FileType yaml,yml setlocal ts=2 sts=2 sw=2 expandtab indentkeys= + +set is hlsearch ai ic scs +nnoremap :nohls + +EOF