From d27d2dfab854af129bcd4c043372b0158801eaf4 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sun, 9 Feb 2020 13:08:13 -0500 Subject: [PATCH] Added --- .vimrc | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.vimrc b/.vimrc index 36630d9..d103e64 100644 --- a/.vimrc +++ b/.vimrc @@ -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 nnoremap nnoremap @@ -58,8 +69,34 @@ vnoremap \f c:set ri":set nori autocmd BufWinLeave *.* mkview autocmd BufWinEnter *.* silent loadview + set viewoptions-=options set nohlsearch " Save with sudo cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' 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 "\\\@