Skip to content

Instantly share code, notes, and snippets.

@marioidival
Created November 16, 2013 00:49
Show Gist options
  • Save marioidival/7494322 to your computer and use it in GitHub Desktop.
Save marioidival/7494322 to your computer and use it in GitHub Desktop.
set nocompatible
filetype off
syntax on
set number
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
let mapleader = ","
" let Vundle manage Vundle
" " required!
Bundle 'gmarik/vundle'
Bundle 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
Bundle 'klen/python-mode'
Bundle 'kien/ctrlp.vim'
Bundle "MarcWeber/vim-addon-mw-utils"
Bundle "tomtom/tlib_vim"
Bundle "garbas/vim-snipmate"
Bundle "rkulla/pydiction"
Bundle "xolox/vim-lua-ftplugin"
Bundle "xolox/vim-lua-inspect"
Bundle "xolox/vim-misc"
Bundle "mattn/emmet-vim"
Bundle 'jelera/vim-javascript-syntax'
Bundle "daylerees/colour-schemes", { "rtp": "vim-themes/" }
Bundle 'bzx/vim-theme-pack'
Bundle 'chriskempson/base16-vim'
Bundle 'chriskempson/tomorrow-theme', { 'rtp': 'vim/' }
Bundle 'flazz/vim-colorschemes'
Bundle 'vim-scripts/cudajinja.vim'
"langs
Bundle "vim-scripts/django.vim"
Bundle 'saltstack/salt-vim'
Bundle 'digitaltoad/vim-jade'
Bundle 'ap/vim-css-color'
Bundle 'hail2u/vim-css3-syntax'
Bundle 'jimenezrick/vimerl'
Bundle 'kchmck/vim-coffee-script'
Bundle 'mmalecki/vim-node.js'
Bundle 'othree/html5.vim'
Bundle 'pangloss/vim-javascript'
Bundle 'tpope/vim-git'
"tools
"
Bundle 'godlygeek/csapprox'
Bundle 'henrik/vim-ruby-runner'
Bundle 'jceb/vim-orgmode'
Bundle 'MarcWeber/vim-addon-mw-utils'
Bundle 'Townk/vim-autoclose'
Bundle 'airblade/vim-gitgutter'
Bundle 'bling/vim-airline'
Bundle 'bronson/vim-trailing-whitespace'
Bundle 'editorconfig/editorconfig-vim'
Bundle 'garbas/vim-snipmate'
Bundle 'guns/xterm-color-table.vim'
Bundle 'honza/vim-snippets'
Bundle 'jeetsukumaran/vim-buffergator'
Bundle 'kien/ctrlp.vim'
Bundle 'mattboehm/vim-unstack'
Bundle 'mattn/gist-vim'
Bundle 'mattn/webapi-vim'
Bundle 'mileszs/ack.vim'
Bundle 'nathanaelkane/vim-indent-guides'
Bundle 'natw/keyboard_cat.vim'
Bundle 'scrooloose/nerdcommenter'
Bundle 'scrooloose/nerdtree'
Bundle 'scrooloose/syntastic'
Bundle 'skwp/vim-rspec'
Bundle 'terryma/vim-multiple-cursors'
Bundle 'tomtom/tlib_vim'
Bundle 'tpope/vim-bundler'
Bundle 'tpope/vim-endwise'
Bundle 'tpope/vim-fugitive'
Bundle 'vim-scripts/ctags.vim'
Bundle 'vim-scripts/upAndDown'
Bundle 'flazz/vim-colorschemes'
" autocomplete javascript
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
" " The bundles you install will be listed here
"
filetype plugin indent on
"
" " The rest of your config follows here
"
"
augroup vimrc_autocmds
autocmd!
" highlight characters past column 120
autocmd FileType python highlight Excess ctermbg=DarkGrey guibg=Black
autocmd FileType python match Excess /\%120v.*/
autocmd FileType python set nowrap
augroup END
" Powerline setup
set guifont=DejaVu\ Sans\ Mono\ for\ Powerline\ 9
set laststatus=2
map <F2> :NERDTreeToggle<CR>
" Python-Mode
let g:pymode_rope = 1
" Documentation
" let g:pymode_doc = 1
let g:pymode_doc_key = 'K'
let g:pymode_rope_autocomplete_map = '<C-Space>'
"
" "Linting
let g:pymode_lint = 1
let g:pymode_lint_checker = "pyflakes,pep8"
" " Auto check on save
let g:pymode_lint_write = 0
"
" " Support virtualenv
let g:pymode_virtualenv = 1
"
" " Enable breakpoints plugin
let g:pymode_breakpoint = 1
let g:pymode_breakpoint_key = '<leader>b'
"
" " syntax highlighting
let g:pymode_syntax = 1
let g:pymode_syntax_all = 1
let g:pymode_syntax_indent_errors = g:pymode_syntax_all
let g:pymode_syntax_space_errors = g:pymode_syntax_all
"
" " Don't autofold code
let g:pymode_folding = 0
" Use <leader>l to toggle display of whitespace
nmap <leader>l :set list!<CR>
" " And set some nice chars to do it with
"
" " automatically change window's cwd to file's dir
set autochdir
"
" " I'm prefer spaces to tabs
set tabstop=4
set shiftwidth=4
set expandtab
"
" " more subtle popup colors
if has ('gui_running')
highlight Pmenu guibg=#cccccc gui=bold
endif
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Colors and Fonts
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
colorscheme xoria256
set background=dark
"
" " Set extra options when running in GUI mode
if has("gui_running")
set guioptions-=T
set guioptions+=e
set t_Co=256
set guitablabel=%M\ %t
endif
" Set utf8 as standard encoding and en_US as the standard language
set encoding=utf8
"
" Use Unix as the standard file type
set ffs=unix,dos,mac
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Files, backups and undo
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" " Turn backup off, since most stuff is in SVN, git et.c anyway...
set nobackup
set nowb
set noswapfile
" Ctrl P
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|pyc|pyo)$'
" Pydiction
let g:pydiction_location = '~/.vim/bundle/pydiction/complete-dict'
autocmd BufNewFile,BufRead *.jade set filetype=jade
autocmd BufNewFile,BufRead *.mako,*.mak,*.jinja2 setlocal ft=html
"NERDTREE
let NERDTreeIgnore=['\.rbc$', '\~$', '\.pyc$', '\.db$', '\.sqlite$', '__pycache__','\.orig$']
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.pyc,*.db,*.sqlite,*.orig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment