This commit is contained in:
Sage Vaillancourt 2020-02-09 13:08:13 -05:00
parent cd1c01ea00
commit d27d2dfab8
1 changed files with 37 additions and 0 deletions

37
.vimrc
View File

@ -1,3 +1,10 @@
" ██╗ ██╗██╗███╗ ███╗
" ██║ ██║██║████╗ ████║
" ██║ ██║██║██╔████╔██║
" ╚██╗ ██╔╝██║██║╚██╔╝██║
" ╚████╔╝ ██║██║ ╚═╝ ██║
" ╚═══╝ ╚═╝╚═╝ ╚═╝
set nocompatible " be iMproved, required
filetype off " required
@ -46,7 +53,11 @@ filetype plugin indent on " required
set relativenumber
set number
set autoindent
set syntax
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc,.png,.jpg
inoremap jj <Esc>
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
@ -58,8 +69,34 @@ vnoremap \f c<C-O>:set ri<CR><C-R>"<Esc>:set nori<CR>
autocmd BufWinLeave *.* mkview
autocmd BufWinEnter *.* silent loadview
set viewoptions-=options
set nohlsearch
" Save with sudo
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
" Spooky scary templates
if has("autocmd")
augroup templates
autocmd BufNewFile *.sh 0r ~/.vim/templates/skeleton.sh
autocmd BufNewFile *.sh 2
autocmd BufNewFile *.sh start
autocmd BufNewFile *.cpp 0r ~/.vim/templates/skeleton.cpp
autocmd BufNewFile *.cpp 10
autocmd BufNewFile *.c 0r ~/.vim/templates/skeleton.c
autocmd BufNewFile *.c 9
autocmd BufNewFile *.html 0r ~/.vim/templates/skeleton.html
autocmd BufNewFile *.html 11
augroup END
endif
hi Asterisks NONE
hi AsteriskItalic cterm=italic gui=italic
syn match Asterisks contained "**" conceal
syn match AsteriskItalic "\\\@<!\*\*[^"*|]\+\*\*" contains=Asterisks