vuciv / vim-bujo

A minimalist task manager for vim.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ASCII Art for Todo.md

aklsh opened this issue · comments

Hey,
I am absolute noob in VimScript. I want to know how to make use of the md.skeleton file.

Never mind. I got it.

Glad you got it. Enjoy!

how do you get it @aklsh ? I can manually copy it to the To-Do, but not sure I have to do it every day?

@mrpossible, I did a weird hack:

autocmd bufnewfile todo.md call append(1, '') 
autocmd bufnewfile todo.md call append(2, '  ______ ____   ____   ____') 
autocmd bufnewfile todo.md call append(3, ' /_  __ / __ \ / __ \ / __ \') 
autocmd bufnewfile todo.md call append(4, '  / /  / / / // / / // / / /') 
autocmd bufnewfile todo.md call append(5, ' / /  / /_/ // /_/ // /_/ /') 
autocmd bufnewfile todo.md call append(6, '/_/   \____//_____/ \____/.md') 
autocmd bufnewfile todo.md call append(8, 'Date: ') 

I don't know much of vimscript, to use template files and stuff, but observing what the given syntax (given here) does, I understood enough to make this work.

@aklsh Interesting solution!
@mrpossible You can also copy and paste whatever header you want and it will stay (as long as the todo.md file doesn't get deleted from the cache)