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