language en_US.UTF-8 " Basic syntax on set autoindent set autoread set background=dark set backspace=indent,eol,start set expandtab set guifont=Menlo:h12 set ignorecase set history=10000 set hlsearch set mouse=a set number set nocindent set ruler set shiftwidth=4 set showbreak=+++\ set showcmd set showmatch set smartcase set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class set smarttab set softtabstop=4 set tabstop=4 set termguicolors " Keys let mapleader = "," nmap l :set list! nnoremap q :bp nnoremap w :bn " Vundle set nocompatible filetype off set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'VundleVim/Vundle.vim' Plugin 'dracula/vim',{'name':'dracula'} Plugin 'itchyny/lightline.vim' Plugin 'terryma/vim-multiple-cursors' Plugin 'airblade/vim-gitgutter' Plugin 'scrooloose/nerdcommenter' Plugin 'nathanaelkane/vim-indent-guides' call vundle#end() filetype plugin indent on colorscheme dracula " for lightline.vim set laststatus=2 " for vim-gitgutter" set updatetime=250 " Don't use Ex mode, use Q for formatting map Q gq " CTRL-U in insert mode deletes a lot. Use CTRL-G u to first break undo, " so that you can undo CTRL-U after inserting a line break. inoremap u " Python-mode " Activate rope " Keys: " K Show python docs " Rope autocomplete " g Rope goto definition " d Rope show documentation " f Rope find occurrences " b Set, unset breakpoint (g:pymode_breakpoint enabled) " [[ Jump on previous class or function (normal, visual, operator modes) " ]] Jump on next class or function (normal, visual, operator modes) " [M Jump on previous class or method (normal, visual, operator modes) " ]M Jump on next class or method (normal, visual, operator modes) let g:pymode_rope = 1 " Documentation let g:pymode_doc = 1 let g:pymode_doc_key = 'K' "Linting let g:pymode_lint = 1 let g:pymode_lint_checker = "pyflakes,pep8" " Auto check on save let g:pymode_lint_write = 1 " Support virtualenv let g:pymode_virtualenv = 1 " Enable breakpoints plugin let g:pymode_breakpoint = 1 let g:pymode_breakpoint_bind = '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 " NERD Commenter " Add spaces after comment delimiters by default let g:NERDSpaceDelims = 1 " Use compact syntax for prettified multi-line comments let g:NERDCompactSexyComs = 1 " Align line-wise comment delimiters flush left instead of following code indentation let g:NERDDefaultAlign = 'left' " Set a language to use its alternate delimiters by default let g:NERDAltDelims_java = 1 " Add your own custom formats or override the defaults let g:NERDCustomDelimiters = { 'c': { 'left': '/**','right': '*/' } } " Allow commenting and inverting empty lines (useful when commenting a region) let g:NERDCommentEmptyLines = 1 " Enable trimming of trailing whitespace when uncommenting let g:NERDTrimTrailingWhitespace = 1 " Indent Guides let g:indent_guides_enable_on_vim_startup = 1 let g:indent_guides_start_level = 2 let g:indent_guides_guide_size = 1