diff options
author | Jersey <fonseca@uchicago.edu> | 2020-06-24 20:37:08 +0000 |
---|---|---|
committer | Jersey <fonseca@uchicago.edu> | 2020-06-24 20:37:08 +0000 |
commit | 6b118944809f42d3af2a1b20f71f1aad580dc08d (patch) | |
tree | f653b37999204ae5a3ce813d674c1f71f35f6efe /plugin | |
parent | 90e5518188c66bbdb40398a7f0c88ca1f1115958 (diff) |
First release
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/bujo.vim | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/plugin/bujo.vim b/plugin/bujo.vim index cc8a84e..9531421 100644 --- a/plugin/bujo.vim +++ b/plugin/bujo.vim | |||
@@ -1,17 +1,7 @@ | |||
1 | autocmd BufWritePre,FileWritePre todo.md ks|call LastMod()|'s | ||
2 | fun LastMod() | ||
3 | if line("$") > 20 | ||
4 | let l = 20 | ||
5 | else | ||
6 | let l = line("$") | ||
7 | endif | ||
8 | exe "1," . l . "g/Date: /s/Date: .*/Date: " . | ||
9 | \ strftime("%Y %b %d") | ||
10 | endfun | ||
11 | |||
12 | "Make bujo directory if it doesn't exist" | 1 | "Make bujo directory if it doesn't exist" |
13 | if empty(glob('~/bujo')) | 2 | if empty(glob('~/bujo')) |
14 | call mkdir($HOME . '/bujo', 'p') | 3 | call mkdir($HOME . '/bujo', 'p') |
4 | |||
15 | endif | 5 | endif |
16 | 6 | ||
17 | " Open the bujo todo list file | 7 | " Open the bujo todo list file |