diff options
| author | Jersey <fonseca@uchicago.edu> | 2020-06-24 21:32:04 +0000 |
|---|---|---|
| committer | Jersey <fonseca@uchicago.edu> | 2020-06-24 21:32:04 +0000 |
| commit | 04c4680c86cf32c44bd723d7340dd31a29b16835 (patch) | |
| tree | f769870b4427368ed8a266ab2795999d30fc13d4 | |
| parent | 0c34b83cf72d3a667aa4a023add9a062cc368097 (diff) | |
Trying out
| -rw-r--r-- | plugin/bujo.vim | 6 | ||||
| -rw-r--r-- | templates/todo.md | 8 |
2 files changed, 9 insertions, 5 deletions
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')) | |||
| 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? | ||
| 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" | ||
| 9 | |||
| 10 | |||
| 11 | |||
| 6 | " Open the bujo todo list file | 12 | " Open the bujo todo list file |
| 7 | function s:OpenTodo() | 13 | function s:OpenTodo() |
| 8 | "30 makes it open at width 30 | 14 | "30 makes it open at width 30 |
diff --git a/templates/todo.md b/templates/todo.md index 1c5cf49..56d4760 100644 --- a/templates/todo.md +++ b/templates/todo.md | |||
| @@ -1,9 +1,7 @@ | |||
| 1 | ``` | 1 | __________ ____ ____ |
| 2 | __________ ____ ____ | ||
| 3 | /_ __/ __ \/ __ \/ __ \ | 2 | /_ __/ __ \/ __ \/ __ \ |
| 4 | / / / / / / / / / / / / | 3 | / / / / / / / / / / / / |
| 5 | / / / /_/ / /_/ / /_/ / | 4 | / / / /_/ / /_/ / /_/ / |
| 6 | /_/ \____/_____/\____/ | 5 | /_/ \____/_____/\____/ |
| 7 | ``` | ||
| 8 | 6 | ||
| 9 | -[] | 7 | Date |
