diff options
author | makefu <root@pigstarter.de> | 2014-01-20 22:43:12 +0100 |
---|---|---|
committer | makefu <root@pigstarter.de> | 2014-01-20 22:43:12 +0100 |
commit | 7baee36853d0fae399a951918c2b8ebe4e6da6a8 (patch) | |
tree | 0b05800c6ba0e08b0c5e8ccea255d03e7ae15da6 /ship/lib/vim | |
parent | 8c2c2a68ae1db0e6ce86ce6f50df148f73a33989 (diff) |
refactor vim configuration
Diffstat (limited to 'ship/lib/vim')
-rw-r--r-- | ship/lib/vim | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/ship/lib/vim b/ship/lib/vim new file mode 100644 index 00000000..de1ec5b0 --- /dev/null +++ b/ship/lib/vim @@ -0,0 +1,37 @@ +# configure vim + +vimrc=$HOME/.vimrc + +vim_conf_sane_defaults(){ + cat >>$vimrc<<EOF +set nocompatible +filetype plugin indent on +syntax on +set vb +set foldenable +set foldmethod=syntax +set ignorecase +set incsearch +set showmatch +set matchtime=3 +set hlsearch +set backupdir=~/.vim/backup +set directory=~/.vim/backup +inoremap <F1> <ESC> +nnoremap <F1> <ESC> +vnoremap <F1> <ESC> +set wildignore=*.o,*.obj,*.bak,*.exe,*.os +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 +} |