2017-08-16 14:30:47 -05:00
|
|
|
execute pathogen#infect()
|
|
|
|
|
2018-05-17 16:34:31 -05:00
|
|
|
set background=dark
|
|
|
|
colorscheme gruvbox
|
2017-08-16 14:30:47 -05:00
|
|
|
|
|
|
|
syntax on
|
|
|
|
filetype plugin indent on
|
2018-11-05 17:57:00 -06:00
|
|
|
" Lightline
|
|
|
|
set noshowmode
|
|
|
|
let g:lightline = {
|
|
|
|
\ 'active': {
|
|
|
|
\ 'left': [
|
|
|
|
\ [ 'mode', 'paste' ],
|
|
|
|
\ [ 'readonly', 'filename', 'modified' ],
|
|
|
|
\ [ 'charvaluehex' ]
|
|
|
|
\ ],
|
|
|
|
\ 'right': [
|
|
|
|
\ [ 'lineinfo' ],
|
|
|
|
\ [ 'percent' ],
|
|
|
|
\ [ 'fileformat', 'fileencoding', 'filetype' ]
|
|
|
|
\ ]
|
|
|
|
\ },
|
|
|
|
\ 'component': {
|
|
|
|
\ 'charvaluehex': 'char: 0x%B'
|
|
|
|
\ },
|
|
|
|
\}
|
2018-12-01 11:34:45 -06:00
|
|
|
let g:lightline.colorscheme = 'gruvbox'
|
2017-08-16 14:30:47 -05:00
|
|
|
|
|
|
|
" Automatically read when a file is changed outside of Vim
|
|
|
|
set autoread
|
|
|
|
|
2018-05-17 22:24:57 -05:00
|
|
|
" Enable modelines
|
|
|
|
set modeline
|
|
|
|
set modelines=5
|
|
|
|
|
2018-07-19 16:49:38 -05:00
|
|
|
" View tabs and trailing whitespace
|
|
|
|
set list
|
|
|
|
set listchars=tab:>·,trail:·
|
|
|
|
|
2017-08-16 14:42:24 -05:00
|
|
|
" Use XA_PRIMARY clipboard by default
|
|
|
|
set clipboard=unnamed
|
|
|
|
|
2017-11-29 11:34:52 -06:00
|
|
|
" Python stuff
|
|
|
|
au BufNewFile,BufRead *.py " Set up nice PEP8 indentation
|
|
|
|
\ set tabstop=4 |
|
|
|
|
\ set softtabstop=4 |
|
|
|
|
\ set shiftwidth=4 |
|
|
|
|
\ set textwidth=79 |
|
|
|
|
\ set expandtab |
|
|
|
|
\ set autoindent |
|
|
|
|
\ set fileformat=unix
|
|
|
|
|
2017-11-29 10:25:34 -06:00
|
|
|
" Miscellaneous options
|
|
|
|
set incsearch " Search while you type
|
|
|
|
set number relativenumber " Relative line numbering
|
2017-11-29 11:34:52 -06:00
|
|
|
set encoding=utf-8
|
2018-07-21 13:41:32 -05:00
|
|
|
set laststatus=2 " Always show statusbar
|
2017-08-18 13:07:47 -05:00
|
|
|
|
2018-07-19 17:45:29 -05:00
|
|
|
" For clang_complete
|
|
|
|
" Proper path for Debian Testing
|
|
|
|
let g:clang_library_path='/usr/lib/llvm-4.0/lib/libclang.so.1'
|
2017-11-29 11:36:27 -06:00
|
|
|
|
2017-08-16 14:30:47 -05:00
|
|
|
" Enable 256-color support
|
|
|
|
" All of my machines support 256-color so this should be fine
|
|
|
|
set t_Co=256
|