Last active
December 4, 2018 08:50
-
-
Save thomaspatzke/5fda2f23a931568cb2f5 to your computer and use it in GitHub Desktop.
My .vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'davidhalter/jedi-vim' | |
Plugin 'vim-latex/vim-latex' | |
Plugin 'vim-syntastic/syntastic' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'Xuyuanp/nerdtree-git-plugin' | |
Plugin 'majutsushi/tagbar' | |
Plugin 'godlygeek/tabular' | |
Plugin 'plasticboy/vim-markdown' | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'tpope/vim-surround' | |
Plugin 'scrooloose/nerdcommenter' | |
Plugin 'mattboehm/vim-unstack' | |
Plugin 'mattboehm/vim-accordion' | |
Plugin 'easymotion/vim-easymotion' | |
Plugin 'jiangmiao/auto-pairs' | |
Plugin 'alfredodeza/coveragepy.vim' | |
Plugin 'aserebryakov/vim-todo-lists' | |
Plugin 'andrewradev/linediff.vim' | |
Plugin 'pangloss/vim-javascript' | |
Plugin 'vim-scripts/dbext.vim' | |
call vundle#end() | |
set hidden | |
set ruler | |
set number | |
highlight LineNr ctermbg=black | |
highlight LineNr ctermfg=darkgrey | |
set wildmenu | |
set showcmd | |
set scrolloff=10 | |
filetype plugin indent on | |
set smartindent | |
set smartcase | |
set sw=4 | |
set expandtab | |
set background=dark | |
set mouse=a | |
syntax enable | |
set incsearch | |
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS | |
autocmd FileType python set foldmethod=indent | |
autocmd FileType html set foldmethod=indent | |
set grepprg=grep\ -nH\ $* | |
let g:tex_flavor='pdflatex' | |
let g:Tex_DefaultTargetFormat='pdf' | |
let g:jedi#force_py_version = 3 | |
" Add the virtualenv's site-packages to vim path | |
if has('python') | |
py << EOF | |
import os.path | |
import sys | |
import vim | |
if 'VIRTUAL_ENV' in os.environ: | |
project_base_dir = os.environ['VIRTUAL_ENV'] | |
sys.path.insert(0, project_base_dir) | |
activate_this = os.path.join(project_base_dir, 'bin/activate_this.py') | |
execfile(activate_this, dict(__file__=activate_this)) | |
EOF | |
endif | |
" Syntastic | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
let g:syntastic_python_pylint_args = "--disable=C,R" | |
" NERDTree | |
let NERDTreeQuitOnOpen = 1 | |
let NERDTreeShowBookmarks = 1 | |
" Tagbar | |
let g:tagbar_autofocus = 1 | |
let g:tagbar_compact = 1 | |
" Markdown | |
let g:vim_markdown_folding_level = 2 | |
let g:vim_markdown_new_list_item_indent = 2 | |
let g:vim_markdown_toc_autofit = 1 | |
" Shortcuts | |
map <F2> :NERDTreeToggle<CR> | |
map <F3> :TagbarToggle<CR> | |
autocmd FileType markdown map <buffer> <F3> :Toc<CR> | |
autocmd FileType markdown map <buffer> <F4> :TableFormat<CR> | |
map <F9> :Gstatus<CR> | |
map <S-F9> :Gdiff<CR> | |
map <C-S-F9> :Gcommit<CR> | |
let g:unstack_mapkey="<F10>" | |
" This file contains the secrets that aren't published ;) | |
source ~/.vimrc-secrets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice, thanks!