vmap <Leader>X <Plug>(simple-todo-mark-as-undone)
vmap <Leader>x <Plug>(simple-todo-mark-as-done)
vmap <Leader>s <Plug>(simple-todo-mark-switch)
+
+" From lib.vim
+"nnoremap <Leader>c :call ToggleCheckbox()<CR>
+
+" Insert the current date in ISO format
+"
+" Thanks https://vimtricks.com/p/insert-the-current-date-or-time/
+"map <leader>d :0put =strftime('%Y-%m-%d')<CR>
+nnoremap <leader>d i<C-R>=strftime('%Y-%m-%d')<CR>
+inoremap <leader>d <C-R>=strftime('%Y-%m-%d')<CR>
" Checkbox handling
"
+" This is commented out because vitalk/vim-simple-todo is being used instead.
+"
" Thanks https://www.reddit.com/r/vim/comments/slqsao/readymade_solution_for_handling_markdown/
"function! ToggleCheckbox()
" let line = getline('.')
" call setline('.', substitute(line, '- ', '- \[ \] ', ''))
" endif
"endf
-"
-"nnoremap <Leader>c :call ToggleCheckbox()<CR>