From: Pass Automated Testing Suite Date: Tue, 28 Sep 2021 09:54:57 +0000 (+0200) Subject: upadte vimrc X-Git-Url: https://git.beaudet.xyz/?a=commitdiff_plain;h=efe01394e360ae74130a0702507954ba7d66ba72;p=vim.git upadte vimrc --- diff --git a/after/ftplugin/mail.vim b/after/ftplugin/mail.vim index 987f78a..7c620df 100644 --- a/after/ftplugin/mail.vim +++ b/after/ftplugin/mail.vim @@ -1,2 +1,5 @@ setlocal spell +nnoremap b + \ :0r ~/dev/templates/basic.mail + let b:undo_ftplugin .= '|setlocal spell<' diff --git a/vimrc b/vimrc index 6eba37a..ae80ab0 100644 --- a/vimrc +++ b/vimrc @@ -1,7 +1,7 @@ syntax enable -packadd! dracula -colorscheme dracula -highlight Normal ctermbg=none +" packadd! dracula +" colorscheme dracula +" highlight Normal ctermbg=none let mapleader="\\" @@ -42,3 +42,10 @@ nnoremap cr :call ccr#CCR() " Allow saving of files as sudo when I forgot to start vim using sudo. cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' edit! + + +" Templates +augroup newfile + au! + autocmd BufNewFile *.html 0r ~/dev/templates/basic.html +augroup END