From 65c219c98d529be8059d903dc8a8d57789671857 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sat, 30 Mar 2019 20:03:19 +0000 Subject: [PATCH] Add todo.md template --- plugin/autocmds.vim | 3 +++ templates/skeleton.todo.md | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 templates/skeleton.todo.md diff --git a/plugin/autocmds.vim b/plugin/autocmds.vim index 4ed5738..360921d 100644 --- a/plugin/autocmds.vim +++ b/plugin/autocmds.vim @@ -8,4 +8,7 @@ augroup benieAugroup " Highlight conflict markers in any filefile au FileType * :call matchadd('Todo', '^\(<<<<<<<\||||||||\|=======\|>>>>>>>\)\s\ze.*$') + + " Read template into buffer and send line 1 to the black hold register + au BufNewFile todo.md read ~/.vim/templates/skeleton.todo.md | 1delete _ augroup END diff --git a/templates/skeleton.todo.md b/templates/skeleton.todo.md new file mode 100644 index 0000000..a01c363 --- /dev/null +++ b/templates/skeleton.todo.md @@ -0,0 +1,15 @@ +# TODO + +## High + +* [ ] + +## Normal + +* [ ] + +## Low + +* [ ] + +