Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelengstrom committed Jun 26, 2015
2 parents 2cf52a1 + 40335a8 commit 046f891
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 18 deletions.
26 changes: 17 additions & 9 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Bundle "itspriddle/vim-jquery.git"
Bundle "kchmck/vim-coffee-script"
Bundle "scrooloose/syntastic.git"
Bundle "vim-addon-mw-utils"
Bundle "garbas/vim-snipmate.git"
Bundle "SirVer/ultisnips"
Bundle "skwp/vim-html-escape"
Bundle "honza/vim-snippets"

Expand Down Expand Up @@ -64,7 +64,6 @@ Bundle 'Shougo/vimproc'
Bundle 'Shougo/unite.vim'
" Bundle "m2mdas/phpcomplete-extended"

Bundle 'stephpy/vim-php-cs-fixer'
Bundle 'othree/html5.vim'

Bundle 'xolox/vim-misc'
Expand Down Expand Up @@ -163,6 +162,10 @@ set softtabstop=4
set tabstop=4
set expandtab

autocmd FileType python set sw=4
autocmd FileType python set ts=4
autocmd FileType python set sts=4

"search
set ignorecase
set smartcase
Expand All @@ -178,19 +181,15 @@ autocmd FileType php set omnifunc=phpcomplete#CompletePHP
autocmd FileType c set omnifunc=ccomplete#Complete
autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete

"Remove crap on save
autocmd BufWritePre * :retab
autocmd BufWritePre * :%s/\s\+$//e

"html and sql hilight in php files
let php_sql_query=1
let php_htmlInStrings=1

" php-specifc junk
let g:phpcomplete_index_composer_command="composer"
let g:phpcomplete_index_composer_command="composer"
let g:syntastic_php_checkers = ['php', 'phpcs']
let g:syntastic_php_phpcs_args="--standard=PSR2"
let g:syntastic_php_checkers = ['phpcs']
let g:syntastic_phpcs_conf="--standard=PSR2"

let g:ycm_add_preview_to_completeopt = 1
let g:ycm_auto_trigger = 0
Expand Down Expand Up @@ -239,4 +238,13 @@ let g:nerdtree_tabs_open_on_console_startup = 1
set noswapfile

autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif

" Python
let g:ycm_collect_identifiers_from_tags_files = 1
let g:ycm_use_ultisnips_completer = 1
let g:ycm_seed_identifiers_with_syntax = 1
let g:ycm_complete_in_comments = 1
let g:ycm_complete_in_strings = 1

" Ultisnips
18 changes: 9 additions & 9 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ cd "$(dirname "${BASH_SOURCE}")";
git pull origin master;

function doIt() {
rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" \
--exclude "README.md" --exclude "LICENSE-MIT.txt" -avh --no-perms . ~;
source ~/.bash_profile;
rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" \
--exclude "README.md" --exclude "LICENSE-MIT.txt" -avh --no-perms . ~;
source ~/.bash_profile;
}

if [ "$1" == "--force" -o "$1" == "-f" ]; then
doIt;
doIt;
else
read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1;
echo "";
if [[ $REPLY =~ ^[Yy]$ ]]; then
doIt;
fi;
read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1;
echo "";
if [[ $REPLY =~ ^[Yy]$ ]]; then
doIt;
fi;
fi;
unset doIt;

0 comments on commit 046f891

Please sign in to comment.