Skip to content

Instantly share code, notes, and snippets.

@linuxcaffe
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linuxcaffe/ef992879554b61a99229 to your computer and use it in GitHub Desktop.
Save linuxcaffe/ef992879554b61a99229 to your computer and use it in GitHub Desktop.
my .vitrc
### vit rc file
## f-keys
# map 265=man vit
map <F1>=:h<Return>
map <F2>=:blocking<Return>
map <F3>=:waiting<Return>
map <F4>=:active<Return>
map <F5>=:minimal<Return>
map <F6>=:ls<Return>
map <F7>=:list<Return>
map <F8>=:long<Return>
map <F9>=:ready<Return>
map <F10>=:next<Return>
# leave <f11> as terminal full-screen
map <F12>=:!w task reports<Return>
## other task reports
# map ~=:! attach %TASKID
# ^^^ see https://github.com/ValiValpas/taskopen/blob/master/scripts/attach
map !=:!w task _commands |pr -w 80 -t --columns 4<Return>
# map -r -p 'Context:' @=task context $
map \#=:!w task stats ; task burndown<Return>
# map $=:! hledger bal
map %=:!w task ghistory.annual ; task summary<Return>
map ^=:recurring<Return>
map &=:!w task tags<Return>
map *=:all <Return>
map (=:oldest<Return>
map )=:newest<Return>
map _=:overdue<Return>
map -=:!r task %TASKID stop<Return>
map +=:!r task %TASKID start<Return>
# map -p 'Export:' |=task %TASKID export$ #no space allow for export.csv, etc., must preserve leading space when entered.
map \|=:! task %TASKID export$(read -p "Export:" EXPORTCMD; echo $EXPORTCMD)<Return>
map \\=:! task rc._forcecolor=yes show |less -r<Return>
# ^^^ should be 'map --prompt 'task show: \\=:! show $ |less -r
## nav
# map <Home>=none_selected, top of list, see Feature #1368
map <Home>=0
map <End>=G
map <Insert>=a
map <Del>=D
map C=:! task cal<Return>
# map -w k=cat ~/.task/vit.keyref.txt
# dashboard
map `=:!w task logo ; fortune ; figlet Taskwarrior ; echo ' Taskwarrior is a command-line todo list manager' ; date<Return>
map .=:!w ~/.task/tw.daskboard.sh<Return>
map ,=:! vi ~/vimwiki.txt<Return>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment