summaryrefslogtreecommitdiff
path: root/plugin/bujo.vim
blob: 3764af5f81f61bd8c87d9da8f8d8f558d125ae12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"Make bujo directory if it doesn't exist"
if empty(glob('~/bujo'))
  call mkdir($HOME . '/bujo', 'p')
endif

" Open the bujo todo list file
function s:OpenTodo()
  "30 makes it open at width 30
  exe ":30vs ~/bujo/todo.md" 
endfunction

if !exists(":Todo")
  command Todo :call s:OpenTodo()
endif