summaryrefslogtreecommitdiff
path: root/plugin/bujo.vim
blob: 01f17a57e7d14112ba9d2f3694d967f80b658ef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if empty(glob('~/bujo'))
  call mkdir($HOME . '/bujo', 'p')
  exe "!mv ./../templates/todo.md ~/bujo/"
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