A vim utility for making monthly plan, todo and so on in markdown.
- Copy the
plugin
folder to~/.vim
. - Configure regular-task options in
.vimrc
. - Use
:PlanMonth
/:DiaryMonth
command 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
month
argument, the command will insert template for the month in current year. - If there are both
month
andyear
arguments, 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
day
argument, the command will insert template for the day in current month and current year. - If there are both
day
andmonth
arguments, the command will insert template for the day in the month and current year. - If there are
day
,month
,year
arguments, 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
:GotoToday
goto the line of today in plan/diary file, the default map key is<leader>gt
.
:EditPlan
open and edit plan file.:EditDiary
open and edit diary file.
g:plan_custom_keymap
custom to make key mapping or not, default value is0
.g:p_edit_files
the 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_work
regular work-task for every month.g:plan_month_personal
regular personal-task for every month.g:plan_month_review
regular review items for every month.g:plan_week_work
regular work-task for every week.g:plan_week_personal
regular personal-task for every week.g:plan_week_review
regular review items for every week.g:plan_year_work
regular work-task for every year.g:plan_year_personal
regular 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
:EditPlan
command 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
:PEdit
and:PEditCwd
commands
- ADD completer for
- 2017-01-03
- ADD
g:plan_week_keypoint
,g:plan_month_keypoint
- ADD
- 2016-11-18
- ADD
g:plan_week_review
andg: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
:EditPlanCwd
and:EditDiaryCwd
command - REMOVE
g:p_change_dir
- ADD
- 2015-01-27
- ADD
g:plan_year_work
andg:plan_year_personal
- ADD
- 2015-01-20
- REMOVE
:EditPlanDir
command - REMOVE default mapping keys for
:EditPlanDir
and:EditPlan
commands - ADD
:EditDiary
command,g:p_diary_file
,g:p_change_dir
- RENAME
g:plan_file
rename 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
,:DiaryDay
commands
- ADD