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 set nocompatible " be iMproved, required
filetype off " required filetype off " required
@ -46,7 +53,11 @@ filetype plugin indent on " required
set relativenumber set relativenumber
set number set number
set autoindent set autoindent
set syntax
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab 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> inoremap jj <Esc>
nnoremap <C-J> <C-W><C-J> nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K> 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 BufWinLeave *.* mkview
autocmd BufWinEnter *.* silent loadview autocmd BufWinEnter *.* silent loadview
set viewoptions-=options set viewoptions-=options
set nohlsearch set nohlsearch
" Save with sudo " Save with sudo
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit! 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