From bef9d736732fe9d83e42d591581bfb0c7540cd50 Mon Sep 17 00:00:00 2001 From: Jersey Date: Wed, 24 Jun 2020 16:57:45 -0500 Subject: another attempt --- plugin/bujo.vim | 2 +- templates/.md.skeleton.swp | Bin 0 -> 12288 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 templates/.md.skeleton.swp diff --git a/plugin/bujo.vim b/plugin/bujo.vim index 212344e..77587f4 100644 --- a/plugin/bujo.vim +++ b/plugin/bujo.vim @@ -3,7 +3,7 @@ if empty(glob('~/bujo')) call mkdir($HOME . '/bujo', 'p') endif -autocmd bufnewfile todo.md so 0r $HOME/.vim/templates/%:e.skeleton +autocmd bufnewfile todo.md call append(0, 'Date') autocmd bufnewfile todo.md exe "1," . 10 . "g/Date.*/s//" .strftime("%a d %b %Y") autocmd Bufwritepre,filewritepre todo.md execute "normal ma" diff --git a/templates/.md.skeleton.swp b/templates/.md.skeleton.swp new file mode 100644 index 0000000..3203d87 Binary files /dev/null and b/templates/.md.skeleton.swp differ -- cgit v1.2.3