From b201fb5074cb38ce713fce42b97cf6e23b5c7e79 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 28 Feb 2014 01:58:48 +0100 Subject: update makefu env bootstrapping --- ship/src/bootstrap_env_makefu | 51 +++++-------------------------------------- 1 file changed, 6 insertions(+), 45 deletions(-) (limited to 'ship/src/bootstrap_env_makefu') diff --git a/ship/src/bootstrap_env_makefu b/ship/src/bootstrap_env_makefu index 7ec59a79..44148665 100755 --- a/ship/src/bootstrap_env_makefu +++ b/ship/src/bootstrap_env_makefu @@ -4,6 +4,9 @@ #@strict #@include core #@include punani +#@include vim +#@mainifyme + info "Configuring environment for $(id -un)" cd $(readlink -f $(dirname $0)) info "Using punani to install git vim and zsh" @@ -68,43 +71,22 @@ mkdir -p $HOME/.vim # TODO modilarize vimconfig cat > $HOME/.vim/vimrc < -nnoremap -vnoremap " pasting nnoremap :set invpaste paste? set pastetoggle= @@ -114,34 +96,13 @@ set showmode au FocusLost * :wa set spelllang=en -" use set spell to enable spelling - -" press ttt to rot16 the whole file -nmap ttt ggg?G - -colorscheme darkblue -set background=dark -set number -set mouse= set textwidth=9001 -set ignorecase -set incsearch -set wildignore=*.o,*.obj,*.bak,*.exe,*.os - -set shiftwidth=2 -set tabstop=2 -set et -set sw=2 -set smarttab -set autoindent -" end tabstop -set backspace=indent,eol,start -set nocp autocmd BufRead *.json set filetype=json EOF ln -vs $HOME/.vim/vimrc $HOME/.vimrc +vim_conf_sane_defaults #install all the vim stuff with the help of vundle cd $HOME/.vim -- cgit v1.2.3 From fb75532f8ac05761955ea25ed0d00ce66a6567db Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 7 Mar 2014 14:25:40 +0100 Subject: update env-bootstrapping --- ship/src/bootstrap_env_makefu | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) (limited to 'ship/src/bootstrap_env_makefu') diff --git a/ship/src/bootstrap_env_makefu b/ship/src/bootstrap_env_makefu index 44148665..6c75cd57 100755 --- a/ship/src/bootstrap_env_makefu +++ b/ship/src/bootstrap_env_makefu @@ -5,12 +5,23 @@ #@include core #@include punani #@include vim + +# vim +python +_punanidb_pacman_vim_python=gvim +_punanidb_yum_vim_python=vim-enhanced +_punanidb_aptget_vim_python=vim + +# TODO pull out youcompleteme into a vim function +# cmake ,make,g++,python-dev for youcompleteme +_punanidb_pacman_cmake=cmake +_punanidb_yum_cmake=cmake +_punanidb_aptget_cmake=cmake #@mainifyme info "Configuring environment for $(id -un)" cd $(readlink -f $(dirname $0)) info "Using punani to install git vim and zsh" -punani install git vim zsh || error "cannot install some shit" +punani install git vim_python zsh gpp cmake make python2_dev || die "cannot install some shit" info "writing dotfiles" # deploying zshrc @@ -100,19 +111,27 @@ set spelllang=en set textwidth=9001 autocmd BufRead *.json set filetype=json EOF - +if [ -e $HOME/.vimrc ] ; then + oldvim=$HOME/.vimrc.`date +%Y%M%d` + info "Backing up old vimrc file to $oldvim" + mv -v $HOME/.vimrc $oldvim +fi +info "Symlinking .vimrc to .vim/vimrc" ln -vs $HOME/.vim/vimrc $HOME/.vimrc vim_conf_sane_defaults #install all the vim stuff with the help of vundle cd $HOME/.vim -mkdir bundle -mkdir backup +mkdir -p bundle info "Fetching vim-vundle" git clone https://github.com/gmarik/vundle.git bundle/vundle > /dev/null && \ info "Vim Vundle deployed" info "Installing Vundle Bundles" vim "+:BundleInstall" "+:qall" + +info "building youcompleteme libs" +cd $HOME/.vim/bundle/YouCompleteMe +./install.sh cd - info "configuring zsh" -- cgit v1.2.3 From 5ddec8ce80976ce02f1302d80aa155bb2755b4f1 Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 15 Apr 2014 13:50:54 +0200 Subject: update bootstrap env with gundo --- ship/src/bootstrap_env_makefu | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'ship/src/bootstrap_env_makefu') diff --git a/ship/src/bootstrap_env_makefu b/ship/src/bootstrap_env_makefu index 6c75cd57..3088d059 100755 --- a/ship/src/bootstrap_env_makefu +++ b/ship/src/bootstrap_env_makefu @@ -92,6 +92,21 @@ Bundle 'snipMate' Bundle 'tpope/vim-fugitive' Bundle 'Valloric/YouCompleteMe' Bundle 'scrooloose/syntastic' +Bundle 'scrooloose/syntastic' +Bundle 'sjl/gundo.vim' + +nnoremap :GundoToggle +set undodir=~/.vim/undo +set undofile +"maximum number of changes that can be undone +set undolevels=1000000 +"maximum number lines to save for undo on a buffer reload +set undoreload=10000000 + +set pastetoggle= +set showmode +filetype plugin indent on + filetype plugin indent on @@ -122,7 +137,7 @@ vim_conf_sane_defaults #install all the vim stuff with the help of vundle cd $HOME/.vim -mkdir -p bundle +mkdir -p bundle undo backup info "Fetching vim-vundle" git clone https://github.com/gmarik/vundle.git bundle/vundle > /dev/null && \ info "Vim Vundle deployed" -- cgit v1.2.3 From baadbeda024630166a5c62fbfa92d642c77f687c Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 15 Apr 2014 13:53:24 +0200 Subject: bootstrap_env: add python auto complete --- ship/src/bootstrap_env_makefu | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ship/src/bootstrap_env_makefu') diff --git a/ship/src/bootstrap_env_makefu b/ship/src/bootstrap_env_makefu index 3088d059..188a48e7 100755 --- a/ship/src/bootstrap_env_makefu +++ b/ship/src/bootstrap_env_makefu @@ -68,8 +68,13 @@ test -r ~/TODO && cat ~/TODO setopt menu_complete unsetopt correct_all +export PYTHONSTARTUP=~/.pythonrc +EOF +info 'deploying pythonrc' +cat > $HOME/.pythonrc < Date: Mon, 28 Apr 2014 11:05:03 +0200 Subject: bootstrap_env: fix duplicate vimrc line --- ship/src/bootstrap_env_makefu | 1 - 1 file changed, 1 deletion(-) (limited to 'ship/src/bootstrap_env_makefu') diff --git a/ship/src/bootstrap_env_makefu b/ship/src/bootstrap_env_makefu index 188a48e7..e61f4e99 100755 --- a/ship/src/bootstrap_env_makefu +++ b/ship/src/bootstrap_env_makefu @@ -97,7 +97,6 @@ Bundle 'snipMate' Bundle 'tpope/vim-fugitive' Bundle 'Valloric/YouCompleteMe' Bundle 'scrooloose/syntastic' -Bundle 'scrooloose/syntastic' Bundle 'sjl/gundo.vim' nnoremap :GundoToggle -- cgit v1.2.3