A vim utility for making monthly plan, todo and so on in markdown.
- Copy the
pluginfolder to~/.vim. - Configure regular-task options in
.vimrc. - Use
:PlanMonth/:DiaryMonthcommand to generate plan/diary template for a month.
Tips: If you want to preview markdown file, you can install MarkdownViewer.vim.
:PlanMonth [month] [year]insert the template of plan for a month.- If there is no arguments, the command will insert the template for current month.
- If there is only
monthargument, the command will insert template for the month in current year. - If there are both
monthandyeararguments, the command will insert template for the month in the year.
:PlanDay [day] [month] [year]insert the template of plan for a day.- If there is no arguments, the command will insert the template for today.
- If there is only
dayargument, the command will insert template for the day in current month and current year. - If there are both
dayandmontharguments, the command will insert template for the day in the month and current year. - If there are
day,month,yeararguments, the command will insert template for the day in the month and the year.
:DiaryMonth [month] [year]insert the template of diary for a month.- See
:PlanMonth
- See
:DiaryDay [day] [month] [year]insert the template of diary for a day.- See
:PlanDay
- See
:GotoTodaygoto the line of today in plan/diary file, the default map key is<leader>gt.
:EditPlanopen and edit plan file.:EditDiaryopen and edit diary file.
g:plan_custom_keymapcustom to make key mapping or not, default value is0.g:p_edit_filesthe files that can be edit.
let g:p_edit_files = {
\ 'plan': 'the/path/to/plan/file/or/directory',
\ 'diary': 'the/path/to/diary/file/or/directory'
\}
g:plan_month_workregular work-task for every month.g:plan_month_personalregular personal-task for every month.g:plan_month_reviewregular review items for every month.g:plan_week_workregular work-task for every week.g:plan_week_personalregular personal-task for every week.g:plan_week_reviewregular review items for every week.g:plan_year_workregular work-task for every year.g:plan_year_personalregular personal-task for every year.
Take my regular tasks configuration for example:
"
" NOTE: add `;` to the end of each task to as a line break
"
let g:plan_week_work = {
\ 1 : '1. 10:00 - 11:00 @2层灵芝 YNote Editor Weekly meeting;',
\ 2 : '1. 16:00 - 16:30 weekly report;',
\ 5 : '1. 14:00 - 16:00 @二层甘草 webfront weekly meeting;'
\}
let g:plan_week_personal = {
\}
let g:plan_week_review = [
\ '1. Invest & Finance;',
\ '1. Tech & Managment;',
\ '1. Enjoy Life;'
\]
let g:plan_month_work = {
\ 18: '1. Sprint 总结, 会议;'
\}
let g:plan_month_personal = {
\ 3 : '1. 18:00 ~ @ buy <<Programmer>> magazine;',
\ 8 : '1. 还房贷;',
\ 28 : '1. 月度总结;1. 下月计划;'
\}
let g:plan_month_review = g:plan_week_review
let g:plan_year_personal = {
\'01-18': '1. 收房租;',
\'04-18': '1. 收房租;'
\}
:PEdit <type>open and editg:p_edit_files[<type>]file or directory- The
:EditPlancommand is equal:PEdit plan.
- The
You can set g:p_edit_files in .vimrc.
- 2019-11-28
- REMOVE remove commands
:PEditCwd:EditPlanCwd:EditDiaryCwd
- REMOVE remove commands
- 2019-11-25
- ADD completer for
:PEditand:PEditCwdcommands
- ADD completer for
- 2017-01-03
- ADD
g:plan_week_keypoint,g:plan_month_keypoint
- ADD
- 2016-11-18
- ADD
g:plan_week_reviewandg:plan_month_review
- ADD
- 2016-04-05
- ADD key point of day
- 2015-12-28
- ADD
:PEdit,:PEditCwd,g:p_edit_files - REMOVE
g:p_plan_file,g:p_diary_file
- ADD
- 2015-05-31
- Leap year support
- 2015-01-31
- ADD
:EditPlanCwdand:EditDiaryCwdcommand - REMOVE
g:p_change_dir
- ADD
- 2015-01-27
- ADD
g:plan_year_workandg:plan_year_personal
- ADD
- 2015-01-20
- REMOVE
:EditPlanDircommand - REMOVE default mapping keys for
:EditPlanDirand:EditPlancommands - ADD
:EditDiarycommand,g:p_diary_file,g:p_change_dir - RENAME
g:plan_filerename tog:p_plan_file
- REMOVE
- 2015-01-05
- REMOVE the modules that depend on
node.js
- REMOVE the modules that depend on
- 2014-12-03
- ADD
:DiaryMonth,:DiaryDaycommands
- ADD
