" Pathogen must be loaded first execute pathogen#infect() syntax on filetype on filetype indent plugin on set modeline " use flake8 to ensure PEP-8 compliance for python source ~/.vim/bundle/flake8/ftplugin/python_flake8.vim let g:flake8_builtins="_,apply" autocmd FileType python map :call Flake8() set background=light set showcmd " highlight searches set hlsearch " case insensitive searches set incsearch " Relative line numbers except the current line " Both relativenumber with number works on vim 7.4+ "set relativenumber set number let g:solarized_termcolors=256 colorscheme solarized " Highlight 80 column set colorcolumn=80 highlight ColorColumn ctermbg=223 " Jump to last position in file when reopening if has("autocmd") au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif endif " Switch between light/dark backgrounds " F12 toggles between light and dark backgrounds map :if &background == "light" \set background=dark \else \set background=light \endif set t_Co=256 " always show vim-airline set laststatus=2 let g:airline#extensions#branch#format = 1 if !exists('g:airline_symbols') let g:airline_symbols = {} endif " unicode symbols let g:airline_left_sep = 'Β»' let g:airline_left_sep = 'β–Ά' let g:airline_right_sep = 'Β«' let g:airline_right_sep = 'β—€' let g:airline_symbols.crypt = 'πŸ”’' let g:airline_symbols.linenr = '␊' let g:airline_symbols.linenr = '␀' let g:airline_symbols.linenr = 'ΒΆ' let g:airline_symbols.maxlinenr = '☰' let g:airline_symbols.maxlinenr = '' let g:airline_symbols.branch = 'βŽ‡' let g:airline_symbols.paste = 'ρ' let g:airline_symbols.paste = 'Þ' let g:airline_symbols.paste = 'βˆ₯' let g:airline_symbols.spell = 'Ꞩ' let g:airline_symbols.notexists = 'βˆ„' let g:airline_symbols.whitespace = 'Ξ' " Fix intendation map mzgg=G`z " editorconfig should not tamper with fugitive let g:EditorConfig_exclude_patterns = ['fugitive://.*']