From a18d9411021a92f8ceabc9ca4195716a187b4f6d 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 | 13 +++++++++++++ 2 files changed, 16 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..6378c08 --- /dev/null +++ b/templates/skeleton.todo.md @@ -0,0 +1,13 @@ +# TODO + +## High + +* [ ] + +## Normal + +* [ ] + +## Low + +* [ ]