diff options
author | Jersey <fonseca@uchicago.edu> | 2020-06-24 21:41:10 +0000 |
---|---|---|
committer | Jersey <fonseca@uchicago.edu> | 2020-06-24 21:41:10 +0000 |
commit | 7d2bc32723cf8420d7f898f9b9da724469f811dc (patch) | |
tree | 4a629585843ceee0b18c2b014e97b1c6747c94b8 | |
parent | 04c4680c86cf32c44bd723d7340dd31a29b16835 (diff) |
Testing template
-rw-r--r-- | plugin/bujo.vim | 2 | ||||
-rw-r--r-- | templates/md.skeleton (renamed from templates/todo.md) | 0 |
2 files changed, 1 insertions, 1 deletions
diff --git a/plugin/bujo.vim b/plugin/bujo.vim index 9250608..212344e 100644 --- a/plugin/bujo.vim +++ b/plugin/bujo.vim | |||
@@ -3,7 +3,7 @@ if empty(glob('~/bujo')) | |||
3 | call mkdir($HOME . '/bujo', 'p') | 3 | call mkdir($HOME . '/bujo', 'p') |
4 | endif | 4 | endif |
5 | 5 | ||
6 | autocmd bufnewfile todo.md so <> "how do i insert the text file? | 6 | autocmd bufnewfile todo.md so 0r $HOME/.vim/templates/%:e.skeleton |
7 | autocmd bufnewfile todo.md exe "1," . 10 . "g/Date.*/s//" .strftime("%a d %b %Y") | 7 | autocmd bufnewfile todo.md exe "1," . 10 . "g/Date.*/s//" .strftime("%a d %b %Y") |
8 | autocmd Bufwritepre,filewritepre todo.md execute "normal ma" | 8 | autocmd Bufwritepre,filewritepre todo.md execute "normal ma" |
9 | 9 | ||
diff --git a/templates/todo.md b/templates/md.skeleton index 56d4760..56d4760 100644 --- a/templates/todo.md +++ b/templates/md.skeleton | |||