97 lines
2.0 KiB
VimL
97 lines
2.0 KiB
VimL
execute pathogen#infect()
|
|
|
|
" Theming
|
|
if $TERM != 'linux' && version >= 800
|
|
colorscheme breezy
|
|
set termguicolors
|
|
set background=light
|
|
endif
|
|
|
|
syntax on
|
|
filetype plugin indent on
|
|
set list
|
|
set listchars=tab:>·,trail:·
|
|
" Templates
|
|
let g:email = 'rehashedsalt@cock.li'
|
|
let g:user = 'Vintage Salt'
|
|
let g:license = 'MIT'
|
|
let g:templates_directory = [ '~/.vim/templates' ]
|
|
" 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'
|
|
\ },
|
|
\}
|
|
let g:lightline.colorscheme = 'breezy'
|
|
|
|
" Automatically read when a file is changed outside of Vim
|
|
set autoread
|
|
|
|
" Fuck autofolding
|
|
set foldmethod=syntax
|
|
set nofoldenable
|
|
|
|
" Allow buffer switching without saving
|
|
set hidden
|
|
" Increase buffer size
|
|
set viminfo='20,<1000,s1000
|
|
|
|
" 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
|
|
|
|
" Enable modelines
|
|
set modeline
|
|
set modelines=5
|
|
|
|
" Use XA_PRIMARY clipboard by default
|
|
set clipboard=unnamedplus
|
|
|
|
" Python
|
|
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
|
|
" HTML
|
|
au BufNewFile,BufRead *.html,*.php
|
|
\ set tabstop=2 |
|
|
\ set softtabstop=2 |
|
|
\ set shiftwidth=2 |
|
|
\ set autoindent |
|
|
\ set smartindent
|
|
" Treat PHP like HTML
|
|
au BufNewFile,BufRead *.php
|
|
\ set filetype=html
|
|
|
|
" Miscellaneous options
|
|
set incsearch " Search while you type
|
|
set number relativenumber " Relative line numbering
|
|
set encoding=utf-8
|
|
set laststatus=2 " Always show statusbar
|
|
|
|
" Enable 256-color support
|
|
" All of my machines support 256-color so this should be fine
|
|
set t_Co=256
|