From 2f1b4f1bce15df1c5c2f084390757cba5f4e75f4 Mon Sep 17 00:00:00 2001 From: Jersey Date: Wed, 24 Jun 2020 12:29:30 -0500 Subject: Barest of bones --- ftdetect/markdown.vim | 2 ++ ftplugin/markdown_bujo.vim | 6 ++++++ plugin/bujo.vim | 9 +++++++++ 3 files changed, 17 insertions(+) create mode 100644 ftdetect/markdown.vim create mode 100644 ftplugin/markdown_bujo.vim create mode 100644 plugin/bujo.vim diff --git a/ftdetect/markdown.vim b/ftdetect/markdown.vim new file mode 100644 index 0000000..c00d51a --- /dev/null +++ b/ftdetect/markdown.vim @@ -0,0 +1,2 @@ +" Makes us able to read +au BufRead,BufNewFile *.md set filetype=markdown diff --git a/ftplugin/markdown_bujo.vim b/ftplugin/markdown_bujo.vim new file mode 100644 index 0000000..cf79d6f --- /dev/null +++ b/ftplugin/markdown_bujo.vim @@ -0,0 +1,6 @@ +" Edit markdown lists +" Add and remove bullets with ease +nnoremap i-[] +nnoremap :.s/\[\]/\[x\] +inoremap -[] +inoremap :.s/\[\]/\[x\] diff --git a/plugin/bujo.vim b/plugin/bujo.vim new file mode 100644 index 0000000..b4d1d85 --- /dev/null +++ b/plugin/bujo.vim @@ -0,0 +1,9 @@ +" 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 -- cgit v1.2.3