Browse Source

chg: [base] set a saner ``~/.vimrc`` to have better yaml indentation

boris/docuseal
Valentin Lab 1 year ago
parent
commit
a1ee88b3af
  1. 16
      precise/base-0k/hooks/install.d/30-customize.sh

16
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 <<EOF >> /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 <esc><esc> :nohls<cr>
EOF
Loading…
Cancel
Save