set nocompatible              " required
filetype off                  " required

" Syntax highlighting
syntax enable
colorscheme gruvbox
" Python syntax rules
" see https://vimawesome.com/plugin/python-syntax-please-everybody
let g:python_highlight_all = 1

" Open file tree on start
autocmd vimenter * NERDTree
" Close file tree on close
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif

" Turn on line numbers
set number

" Use backspace in insert mode
set backspace=indent,eol,start

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
" add all your plugins here (note older versions of Vundle
" used Bundle instead of Plugin)
Plugin 'gmarik/Vundle.vim'
Plugin 'morhetz/gruvbox'
Plugin 'scrooloose/nerdtree'
Plugin 'szymonmaszke/vimpyter'
Plugin 'davidhalter/jedi-vim'
Plugin 'vim-python/python-syntax'

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required