diff options
author | Jersey <fonseca@uchicago.edu> | 2020-06-24 17:29:30 +0000 |
---|---|---|
committer | Jersey <fonseca@uchicago.edu> | 2020-06-24 17:29:30 +0000 |
commit | 2f1b4f1bce15df1c5c2f084390757cba5f4e75f4 (patch) | |
tree | edc2d5446fd84b0eb627722666f2ed21a0bf353c |
Barest of bones
-rw-r--r-- | ftdetect/markdown.vim | 2 | ||||
-rw-r--r-- | ftplugin/markdown_bujo.vim | 6 | ||||
-rw-r--r-- | plugin/bujo.vim | 9 |
3 files changed, 17 insertions, 0 deletions
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 @@ | |||
1 | " Makes us able to read | ||
2 | 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 @@ | |||
1 | " Edit markdown lists | ||
2 | " Add and remove bullets with ease | ||
3 | nnoremap <buffer> <C-Enter> i-[] | ||
4 | nnoremap <buffer> <C-BS> :.s/\[\]/\[x\]<Enter> | ||
5 | inoremap <buffer> <C-Enter> -[] | ||
6 | inoremap <buffer> <C-BS> <esc>:.s/\[\]/\[x\]<Enter> | ||
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 @@ | |||
1 | " Open the bujo todo list file | ||
2 | function s:OpenTodo() | ||
3 | "30 makes it open at width 30 | ||
4 | exe ":30vs ~/bujo/todo.md" | ||
5 | endfunction | ||
6 | |||
7 | if !exists(":Todo") | ||
8 | command Todo :call s:OpenTodo() | ||
9 | endif | ||