From a669c67864951a979d83772b6f059ee5616ba66f Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 23 Feb 2017 23:43:27 +0100 Subject: Create 'insert-formatted-cal' plugin A plugin that will insert a given month from the `cal` program and format it such that I can insert `*`s next to days to flag them. I've been doing this manually for years and it finally seemed time to automate the process. --- bundle/insert-formatted-cal/plugin/insert_formatted_cal.vim | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 bundle/insert-formatted-cal/plugin/insert_formatted_cal.vim (limited to 'bundle/insert-formatted-cal/plugin/insert_formatted_cal.vim') diff --git a/bundle/insert-formatted-cal/plugin/insert_formatted_cal.vim b/bundle/insert-formatted-cal/plugin/insert_formatted_cal.vim new file mode 100644 index 0000000..e1736f4 --- /dev/null +++ b/bundle/insert-formatted-cal/plugin/insert_formatted_cal.vim @@ -0,0 +1,8 @@ +" CalFormattedInsert +" Inserts the specified month from the `cal` command with special formatting +" to use as an in-Vim calendar. +" +" Examples: +" :CalFormattedInsert 3 +" :CalFormattedInsert 3 2017 +command! -nargs=+ CalFormattedInsert call insert_formatted_cal#InsertFormattedCal() -- cgit v1.2.3