Skip to content

Instantly share code, notes, and snippets.

@fanzeyi
Last active December 21, 2015 15:19
Show Gist options
  • Save fanzeyi/6325696 to your computer and use it in GitHub Desktop.
Save fanzeyi/6325696 to your computer and use it in GitHub Desktop.
" Zeray Rice's New Vimrc
" Created: Augest 24, 2013
" ===============
" Vundle
" ===============
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" ---------------
" Bundles
" ---------------
Bundle 'gmarik/vundle'
Bundle 'molokai'
Bundle 'Tagbar'
Bundle 'Lokaltog/vim-powerline'
Bundle 'FencView.vim'
Bundle 'fanzeyi/pep8'
Bundle 'mileszs/ack.vim'
Bundle 'pyflakes.vim'
Bundle 'tpope/vim-surround'
Bundle 'SuperTab'
Bundle 'davidhalter/jedi-vim'
Bundle 'AutoComplPop'
Bundle 'othree/html5.vim'
Bundle 'HTML-AutoCloseTag'
filetype plugin indent on
" ===============
" Normal
" ===============
set number
syntax on
set autoindent
set smartindent
set showmatch
set vb t_vb=
set ruler
set incsearch
set softtabstop=4
set shiftwidth=4
set tabstop=8
set smarttab
set expandtab
set nobackup
set noswapfile
set fdm=syntax
set modeline
set go=e
set cursorline
set cursorcolumn
set wmnu
filetype indent on
colo molokai
set guifont=Monaco:h12
" ==============
" MacVim
" ==============
if has("gui_macvim")
set transparency=10
endif
" =============
" TagBar
" =============
let g:tagbar_left = 1
let g:tagbar_width = 20
let g:tagbar_expand = 1
let g:tagbar_iconchars = ['+', '-']
autocmd BufEnter * nested :call tagbar#autoopen(0)
" =============
" Powerline
" =============
let g:Powerline_symbols = 'fancy'
" =============
" PEP8
" =============
let g:pep8_map = '<leader>p'
let g:pep8_max_height = 10
" =============
" ACK
" =============
nmap <leader>a <Esc>:Ack!
" =============
" PyFlakes
" =============
let g:pyflakes_use_quickfix = 0
" =============
" Indent for HTML
" =============
let g:html_indent_inctags="script,head,body"
" =============
" SuperTab
" =============
let g:SuperTabDefaultCompletionType = "<c-space>"
" =============
" jedi
" =============
let g:jedi#rename_command = "<leader>r"
" =============
" acp
" =============
let g:acp_behaviorKeywordCommand = "\<c-x>\<c-n>"
autocmd FileType python,html,c,ruby let g:acp_behaviorKeywordCommand = "\<c-x>\<c-o>"
" =============
" misc
" =============
imap <c-n> <c-x><c-o>
autocmd FileType html set fdm=manual
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment