upadte vimrc
authorPass Automated Testing Suite <Pass-Automated-Testing-Suite@zx2c4.com>
Tue, 28 Sep 2021 09:54:57 +0000 (11:54 +0200)
committerPass Automated Testing Suite <Pass-Automated-Testing-Suite@zx2c4.com>
Tue, 28 Sep 2021 09:54:57 +0000 (11:54 +0200)
after/ftplugin/mail.vim
vimrc

index 987f78a..7c620df 100644 (file)
@@ -1,2 +1,5 @@
 setlocal spell
+nnoremap <buffer> <localleader>b
+            \ :<C-U>0r ~/dev/templates/basic.mail<CR>
+
 let b:undo_ftplugin .= '|setlocal spell<'
diff --git a/vimrc b/vimrc
index 6eba37a..ae80ab0 100644 (file)
--- 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 <leader>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' <bar> edit!
+
+
+" Templates
+augroup newfile
+    au!
+    autocmd BufNewFile      *.html 0r   ~/dev/templates/basic.html
+augroup END