home/.vimrc

82 lines
1.8 KiB
VimL
Raw Permalink Normal View History

execute pathogen#infect()
2020-06-29 10:38:47 -05:00
syntax on
filetype plugin indent on
" Theming
if $TERM != 'linux' && version >= 800
2020-12-20 05:11:55 -06:00
colorscheme gruvbox
2020-06-01 01:33:59 -05:00
set termguicolors
2020-12-20 05:11:55 -06:00
set background=dark
endif
2020-06-29 10:38:47 -05:00
set autoread " Automatically read when a file is changed outside of Vim
set clipboard=unnamedplus " Use XA_PRIMARY clipboard by default
set encoding=utf-8
set foldmethod=syntax
set hidden " Allow buffer switching without saving
set incsearch " Search while you type
set laststatus=2 " Always show statusbar
2019-06-16 06:59:26 -05:00
set list
2019-06-16 07:00:34 -05:00
set listchars=tab:>·,trail
2020-06-29 10:38:47 -05:00
set modeline
set modelines=5
set nofoldenable " Fuck autofolding
set number relativenumber " Relative line numbering
set t_Co=256
set viminfo='20,<1000,s1000 " Increase buffer size
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-12-20 05:11:55 -06:00
let g:lightline.colorscheme = 'gruvbox'
2020-08-25 14:00:12 -05:00
" Json
au BufNewFile,BufRead *.json
\ set tabstop=2 |
\ set softtabstop=2 |
\ set shiftwidth=2 |
\ set autoindent |
\ set smartindent
" 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