From 04c4680c86cf32c44bd723d7340dd31a29b16835 Mon Sep 17 00:00:00 2001 From: Jersey Date: Wed, 24 Jun 2020 16:32:04 -0500 Subject: Trying out --- plugin/bujo.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugin') diff --git a/plugin/bujo.vim b/plugin/bujo.vim index 3764af5..9250608 100644 --- a/plugin/bujo.vim +++ b/plugin/bujo.vim @@ -3,6 +3,12 @@ if empty(glob('~/bujo')) call mkdir($HOME . '/bujo', 'p') endif +autocmd bufnewfile todo.md so <> "how do i insert the text file? +autocmd bufnewfile todo.md exe "1," . 10 . "g/Date.*/s//" .strftime("%a d %b %Y") +autocmd Bufwritepre,filewritepre todo.md execute "normal ma" + + + " Open the bujo todo list file function s:OpenTodo() "30 makes it open at width 30 -- cgit v1.2.3