use Vundle for vim bundles

This commit is contained in:
Oliver Ladner 2018-08-28 00:22:58 +02:00
commit 29797120ca
11 changed files with 144 additions and 427 deletions

123
.vimrc
View file

@ -1,83 +1,70 @@
" Pathogen must be loaded first
execute pathogen#infect()
set nocompatible " be iMproved, required
filetype off " required
" 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
Plugin 'VundleVim/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" Git wrapper
Plugin 'tpope/vim-fugitive'
" Python autocompletion
Plugin 'davidhalter/jedi-vim'
" status/tabline
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
" base16 color scheme
Plugin 'chriskempson/base16-vim'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
" airline theme
let g:airline_theme='base16_monokai'
set t_Co=256
colorscheme base16-darktooth
syntax on
filetype on
filetype indent plugin on
" enable vim modelines
set modeline
set tabstop=2 shiftwidth=2 expandtab
"set background=dark
" 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 <buffer> <F3> :call Flake8()<CR>
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
" Putty reg file: https://github.com/benjojo/base-16-putty
" iTerm2: https://github.com/martinlindhe/base16-iterm2
" 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 <silent> <F12> :if &background == "light"<CR>
\set background=dark<CR>
\else<CR>
\set background=light<CR>
\endif<CR>
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 <F5> mzgg=G`z<CR>
" editorconfig should not tamper with fugitive
let g:EditorConfig_exclude_patterns = ['fugitive://.*']
highlight ColorColumn ctermbg=LightGrey
"