On 2/17/26 18:02, Michael DeBusk via Remind-fans wrote:
I was thinking of ways to make vim more useful with remind files and
wondered if I could come up with a date picker. I put this in my
vimrc:
cnoremap dtp execute '-r !zenity --calendar --date-format=\%F'
Interesting idea!
On the subject of making vim easier to use with dates, you might want to
check out speeddating.vim which makes adjusting existing dates faster.
E.g. with the cursor on the month portion of an ISO date, 4<c-a> in
normal mode will increase the month by 4 while accounting for end of
month edge cases.
https://github.com/tpope/vim-speeddating
I also added this to my vimrc to quickly insert today's date in ISO
format. My typical use is to insert today's date and then adjust it to
whatever date I actually need. I find it quicker to add 7 days to
today's date to set a reminder for next week than to do the mental
arithmetic or look at a calendar.
nnoremap <F5> "=strftime("%Y-%m-%d")<CR>P
inoremap <F5> <C-R>=strftime("%Y-%m-%d")<CR>
--
JB
_______________________________________________
Remind-fans mailing list
[email protected]
https://dianne.skoll.ca/mailman/listinfo/remind-fans
Remind is at https://dianne.skoll.ca/projects/remind/