From efe01394e360ae74130a0702507954ba7d66ba72 Mon Sep 17 00:00:00 2001 From: Pass Automated Testing Suite Date: Tue, 28 Sep 2021 11:54:57 +0200 Subject: [PATCH] upadte vimrc --- after/ftplugin/mail.vim | 3 +++ vimrc | 13 ++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) 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 -- 2.20.1