Create a gist now

Instantly share code, notes, and snippets.

anonymous /vimrc
Created Dec 12, 2012

What would you like to do?
my vundle vimrc
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" My Bundles here:
"
" original repos on github
Bundle 'Lokaltog/vim-easymotion'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-rails.git'
" vim-scripts repos
Bundle 'AutoComplPop'
Bundle 'bufexplorer.zip'
Bundle 'ctrlp.vim'
Bundle 'FuzzyFinder'
Bundle 'Gundo'
Bundle 'L9'
Bundle 'matchit.zip'
Bundle 'pyflakes.vim'
Bundle 'surround.vim'
Bundle 'SearchComplete'
Bundle 'Syntastic'
Bundle 'taglist.vim'
Bundle 'tComment'
Bundle 'The-NERD-tree'
Bundle 'vim-flake8'
Bundle 'vim-scripts/indentpython.vim--nianyang'
" github full repos
Bundle 'git@github.com:davidhalter/jedi-vim.git'
Bundle 'git@github.com:ervandew/supertab.git'
Bundle 'git@github.com:motemen/git-vim.git'
filetype plugin indent on " required!
"
" Brief help
" :BundleList - list configured bundles
" :BundleInstall(!) - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!) - confirm(or auto-approve) removal of unused bundles
"
" see :h vundle for more details or wiki for FAQ
" NOTE: comments after Bundle command are not allowed..
let g:ctrlp_custom_ignore = '\.git$\|\.hg$\|\.svn|\.pyc$'
let g:ctrlp_match_window_bottom = 0
let g:ctrlp_dotfiles = 1
let g:ctrlp_max_height = 50
let g:ctrlp_max_files = 0
let g:ctrlp_lazy_update = 1
autocmd BufWritePre *py :%s/\s\+$//e
set nobackup
set incsearch
set showmatch
set textwidth=79
set shiftwidth=4
set tabstop=4
set softtabstop=4
set autoindent
set expandtab
set hlsearch
:au BufWinEnter *py let w:m1=matchadd('Search', '\%<81v.\%>77v', -1)
:au BufWinEnter *py let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
highlight MatchParen cterm=bold ctermfg=cyan
set wildmenu
set wildmode=longest:full
set wildignore=*.pyc
set ruler
set laststatus=2
set statusline=%-0.80F%-0.80m%-0.80r
set statusline+=%{SyntasticStatuslineFlag()}
let g:syntastic_check_on_open=0
let g:syntastic_enable_highlighting = 0
let g:syntastic_mode_map = { 'mode': 'passive' }
let g:pyflakes_use_quickfix = 0
set viminfo='10,\"100,:20,%,n~/.viminfo
au FileType python set omnifunc=pythoncomplete#Complete
let g:SuperTabDefaultCompletionType = "context"
set completeopt=menuone,longest,preview
set wmh=0
function! ResCur()
if line("'\"") <= line("$")
normal! g`"
return 1
endif
endfunction
augroup resCur
autocmd!
autocmd BufWinEnter * call ResCur()
augroup END
let python_highlight_all = 1
set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
highlight WhitespaceEOL ctermbg=red guibg=red
match WhitespaceEOL /\s\+$/
python << EOF
import os
import sys
import vim
for p in sys.path:
if os.path.isdir(p):
vim.command(r"set path+=%s" % (p.replace(" ", r"\ ")))
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment