Browse Source

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

pull/31/head
Valentin Lab 8 months 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