Browse Source

first stab at setup script, plus some other fixes & stuff

main
root 7 years ago
parent
commit
df35a00e31
5 changed files with 35 additions and 26 deletions
  1. +2
    -0
      .add_to.bashrc
  2. +0
    -0
      .regexlist.vim
  3. +0
    -25
      .vim/.vimrc
  4. +1
    -1
      .vimrc
  5. +32
    -0
      setup.sh

+ 2
- 0
.add_to.bashrc View File

@ -1,3 +1,5 @@
# handy snippets from dotfiles/.add_to.bashrc
source ~/.git-completion
alias vim='vim -w ~/.vimlog'
alias vsplit='vim -O'


+ 0
- 0
.regexlist.vim View File


+ 0
- 25
.vim/.vimrc View File

@ -1,25 +0,0 @@
execute pathogen#infect()
set autoindent
set smartindent
set tabstop=2
set et
set shiftwidth=2
set ruler
syntax on
set hlsearch
set incsearch
set ignorecase
set smartcase
set splitbelow
set splitright
" set statusline += %{SyntasticStatuslineFlag()} "syntastic status line stuff
au BufRead,BufNewFile *.game set filetype=php
au BufRead,BufNewFile *.tpl set filetype=smarty
au BufRead,BufNewFile con.fig set filetype=php
au InsertEnter * set nohlsearch
au InsertLeave * set hlsearch
au BufRead,BufNewFile *.less set filetype=css
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>

+ 1
- 1
.vimrc View File

@ -1,5 +1,5 @@
set statusline +=%f\ %h%m%r\ -\ buf#:\ %n\ %=%{fugitive#statusline()}\ \ line:\ %l/%L\ -\ col:\ %c%V\ \
call pathogen#infect()
execute pathogen#infect()
set binary
set autoindent
set smartindent


+ 32
- 0
setup.sh View File

@ -0,0 +1,32 @@
#!/bin/bash
links=(
.vimrc
.vim
.regexlist.vim
.tmux.conf
.gitconfig
.gitignore_global
.git-completion
)
for i in ${links[@]}; do
ln -s ${i} ~/${i}
done
clones=(
scrooloose/syntastic
tpope/vim-fugitive
)
cd ~/.vim/bundle
for i in ${clones[@]}; do
git clone http://github.com/${i}
done
cd ~
appends=(.add_to.bashrc)
for i in ${appends[@]}; do
fname=`cut -d \. -f 3`
cat ${i} >> ${fname}
done
exit 0

Loading…
Cancel
Save