2017-08-16 14:30:47 -05:00
|
|
|
execute pathogen#infect()
|
|
|
|
|
2019-02-05 15:17:50 -06:00
|
|
|
" Theming
|
2020-06-13 07:53:30 -05:00
|
|
|
if $TERM != 'linux' && version >= 800
|
2020-06-01 01:33:59 -05:00
|
|
|
colorscheme breezy
|
|
|
|
set termguicolors
|
|
|
|
set background=light
|
2019-02-05 15:17:50 -06:00
|
|
|
endif
|
2017-08-16 14:30:47 -05:00
|
|
|
|
|
|
|
syntax on
|
|
|
|
filetype plugin indent on
|
2019-06-16 06:59:26 -05:00
|
|
|
set list
|
2019-06-16 07:00:34 -05:00
|
|
|
set listchars=tab:>·,trail:·
|
2019-03-03 14:16:46 -06:00
|
|
|
" Templates
|
|
|
|
let g:email = 'rehashedsalt@cock.li'
|
|
|
|
let g:user = 'Vintage Salt'
|
|
|
|
let g:license = 'MIT'
|
|
|
|
let g:templates_directory = [ '~/.vim/templates' ]
|
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'
|
|
|
|
\ },
|
|
|
|
\}
|
2020-06-01 01:33:59 -05:00
|
|
|
let g:lightline.colorscheme = 'breezy'
|
2017-08-16 14:30:47 -05:00
|
|
|
|
|
|
|
" Automatically read when a file is changed outside of Vim
|
|
|
|
set autoread
|
|
|
|
|
2020-03-03 05:43:42 -06:00
|
|
|
" Fuck autofolding
|
|
|
|
set foldmethod=syntax
|
|
|
|
set nofoldenable
|
|
|
|
|
2019-02-05 14:33:57 -06:00
|
|
|
" Allow buffer switching without saving
|
|
|
|
set hidden
|
2020-05-15 03:28:19 -05:00
|
|
|
" Increase buffer size
|
|
|
|
set viminfo='20,<1000,s1000
|
2019-02-05 14:33:57 -06:00
|
|
|
|
2019-02-05 15:17:50 -06:00
|
|
|
" Split and tab configuration
|
|
|
|
nnoremap <C-H> <C-W><C-H>
|
|
|
|
nnoremap <C-J> <C-W><C-J>
|
|
|
|
nnoremap <C-K> <C-W><C-K>
|
|
|
|
nnoremap <C-L> <C-W><C-L>
|
|
|
|
|
|
|
|
set splitbelow
|
|
|
|
set splitright
|
|
|
|
|
2018-05-17 22:24:57 -05:00
|
|
|
" Enable modelines
|
|
|
|
set modeline
|
|
|
|
set modelines=5
|
|
|
|
|
2017-08-16 14:42:24 -05:00
|
|
|
" Use XA_PRIMARY clipboard by default
|
2019-02-01 03:07:24 -06:00
|
|
|
set clipboard=unnamedplus
|
2017-08-16 14:42:24 -05:00
|
|
|
|
2020-02-28 05:04:46 -06:00
|
|
|
" Python
|
2017-11-29 11:34:52 -06:00
|
|
|
au BufNewFile,BufRead *.py " Set up nice PEP8 indentation
|
2020-02-28 05:04:46 -06:00
|
|
|
\ set tabstop=4 |
|
|
|
|
\ set softtabstop=4 |
|
|
|
|
\ set shiftwidth=4 |
|
|
|
|
\ set textwidth=79 |
|
|
|
|
\ set expandtab |
|
|
|
|
\ set autoindent |
|
|
|
|
\ set fileformat=unix
|
|
|
|
" HTML
|
|
|
|
au BufNewFile,BufRead *.html,*.php
|
|
|
|
\ set tabstop=2 |
|
|
|
|
\ set softtabstop=2 |
|
2020-02-28 05:06:36 -06:00
|
|
|
\ set shiftwidth=2 |
|
|
|
|
\ set autoindent |
|
|
|
|
\ set smartindent
|
2020-02-28 05:04:46 -06:00
|
|
|
" Treat PHP like HTML
|
|
|
|
au BufNewFile,BufRead *.php
|
|
|
|
\ set filetype=html
|
2017-11-29 11:34:52 -06:00
|
|
|
|
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
|
|
|
|
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
|