From 732876299f4dccb4caa3a915879d2b5945bbdd42 Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 2 Apr 2014 11:15:54 +0200 Subject: filehooker is now elchOS --- elchos/root-image/krebs/lib/vim | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 elchos/root-image/krebs/lib/vim (limited to 'elchos/root-image/krebs/lib/vim') diff --git a/elchos/root-image/krebs/lib/vim b/elchos/root-image/krebs/lib/vim new file mode 100644 index 00000000..b037a778 --- /dev/null +++ b/elchos/root-image/krebs/lib/vim @@ -0,0 +1,40 @@ +# configure vim + +vimrc=${vimrc:-$HOME/.vimrc} + +vim_conf_sane_defaults(){ + # TODO - make stuff more modular? + cat >>$vimrc< +nnoremap +vnoremap +set wildignore=*.o,*.obj,*.bak,*.exe,*.os +cmap w!! w !sudo tee > /dev/null % +colorscheme darkblue +set background=dark +set number +set mouse= +set shiftwidth=2 +set tabstop=2 +set et +set sw=2 +set smarttab +set autoindent +set backspace=indent,eol,start +set nocp +EOF + mkdir -p $HOME/.vim/backup +} -- cgit v1.2.3