From 860f874ffe99349ed011200687c1d707ccadde24 Mon Sep 17 00:00:00 2001 From: Patrick Armstrong Date: Tue, 5 Feb 2013 15:05:36 -0800 Subject: [PATCH] Updatez --- home/.vimrc | 19 +++++++++++++++---- home/.zshrc | 4 ++-- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/home/.vimrc b/home/.vimrc index 5b75e97..f02eaa4 100644 --- a/home/.vimrc +++ b/home/.vimrc @@ -1,15 +1,20 @@ set nocompatible +filetype on +filetype off " Set up vundle -set rtp+=~/.vim/vundle.git/ +set rtp+=~/.vim/bundle/vundle/ call vundle#rc() " Bundles (use :BundleInstall to install) +Bundle 'gmarik/vundle' Bundle 'tpope/vim-fugitive' Bundle 'ervandew/supertab' Bundle 'altercation/vim-colors-solarized' -Bundle 'git://github.com/kien/ctrlp.vim.git' -Bundle 'klen/python-mode' +Bundle 'kien/ctrlp.vim' +Bundle 'kevinw/pyflakes-vim' +Bundle 'tsaleh/vim-matchit' +"Bundle 'klen/python-mode' let mapleader = "," syntax on @@ -28,7 +33,7 @@ filetype plugin indent on " Disable Python folding let g:pymode_folding = 0 let g:pymode_rope_goto_def_newwin = "new" -let g:pymode_lint_ignore = "W,E501" +let g:pymode_lint_ignore = "W,E501,E128,E126,E127" " Highlight the 80 column line set colorcolumn=81 highlight ColorColumn ctermbg=lightgrey guibg=lightgrey @@ -58,6 +63,9 @@ set backspace=2 set expandtab set incsearch +" tab size of 2 for html +autocmd FileType html setlocal shiftwidth=2 tabstop=2 + " Setup Ctrl-P let g:ctrlp_map = '' let g:ctrlp_working_path_mode = 2 @@ -68,8 +76,11 @@ function! StripWhitespace () endfunction map s :call StripWhitespace () +" nice paste toggle set pastetoggle=p +" put backups somewhere that isn't annoying +set backupdir=~/.vim/backup if has("mouse") set mouse=a diff --git a/home/.zshrc b/home/.zshrc index 19d93a9..1599df4 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -16,6 +16,8 @@ export INTERACTIVE_COMMENTS="true" # Comment this out to disable weekly auto-update checks export DISABLE_AUTO_UPDATE="true" +export EDITOR=/usr/local/bin/vim + # Uncomment following line if you want to disable colors in ls # export DISABLE_LS_COLORS="true" @@ -32,8 +34,6 @@ source $ZSH/oh-my-zsh.sh #aliases alias git='nocorrect hub' -source /Users/patricka/.rvm/scripts/rvm # Customize to your needs... export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin -