" org.vim - VimOrganizer plugin for Vim " ------------------------------------------------------------- " Version: 0.30 " Maintainer: Herbert Sitz " Last Change: 2011 Nov 02 " " Script: http://www.vim.org/scripts/script.php?script_id=3342 " Github page: http://github.com/hsitz/VimOrganizer " Copyright: (c) 2010, 2011 by Herbert Sitz " The VIM LICENSE applies to all files in the " VimOrganizer plugin. " (See the Vim copyright except read "VimOrganizer" " in places where that copyright refers to "Vim".) " http://vimdoc.sourceforge.net/htmldoc/uganda.html#license " No warranty, express or implied. " *** *** Use At-Your-Own-Risk *** *** " "Section Mappings and Endstuff " below block of 10 or 15 maps are ones collected " from body of doc that weren't getting assigned for docs " oepened after initial org filetype doc nnoremap :call OrgCycle() nnoremap :call OrgGlobalCycle() nnoremap ci :call OrgClockIn(line(".")) nnoremap co :call OrgClockOut() "cnoremap e(OrgDateEdit()) " dl is for the date on the current line noremap x :call OrgExportDashboard() noremap d :call OrgDateDashboard() noremap b :call OrgTableDashboard() "noremap dg :call OrgGenericDateEdit() "noremap dt :call OrgDateEdit('TIMESTAMP') "noremap dd :call OrgDateEdit('DEADLINE') "noremap dc :call OrgDateEdit('CLOSED') "noremap ds :call OrgDateEdit('SCHEDULED') noremap a* :call OrgRunAgenda(strftime("%Y-%m-%d"),'w,'') noremap aa :call OrgRunAgenda(strftime("%Y-%m-%d"),'w,'+ANY_TODO') noremap at :call OrgRunAgenda(strftime("%Y-%m-%d"),'w,'+UNFINISHED_TODOS') noremap ad :call OrgRunAgenda(strftime("%Y-%m-%d"),'w,'+FINISHED_TODOS') noremap ag :call OrgAgendaDashboard() noremap ac :call OrgCustomSearchMenu() "command! -nargs=0 Agenda :call OrgAgendaDashboard() nnoremap :call OrgDateInc(1) nnoremap :call OrgDateInc(-1) nnoremap <2-LeftMouse> :call OrgMouseDate() nnoremap pl :call s:MyPopup() inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\\\" : "\" inoremap pumvisible() ? "\\\" : "\" "map b :call ShowBottomCal() nnoremap et :call OrgTagsEdit() " clear search matching nnoremap cs :let @/='' noremap r :call OrgRefileDashboard() "noremap rh :call OrgRefile(line('.')) "noremap rj :call OrgJumpToRefilePoint() "noremap rx :call OrgJumpToRefilePointPersistent() "noremap rs :call OrgSetRefilePoint() "noremap rp :call OrgRefileToPermPoint(line('.')) noremap v :silent call OrgEval() noremap noremap noremap 0 :call OrgExpandWithoutText(99999) noremap 9 :call OrgExpandWithoutText(9) noremap 8 :call OrgExpandWithoutText(8) noremap 7 :call OrgExpandWithoutText(7) noremap 6 :call OrgExpandWithoutText(6) noremap 5 :call OrgExpandWithoutText(5) noremap 4 :call OrgExpandWithoutText(4) noremap 3 :call OrgExpandWithoutText(3) noremap 2 :call OrgExpandWithoutText(2) noremap 1 :call OrgExpandWithoutText(1) noremap :call OrgExpandWithoutText(1) "noremap / :let @/='exec call OrgExpandWithoutText(1) "noremap / :let @a='/^\*\{1,' . &foldlevel . '\} .*'|call LevSearch() nnoremap / '/^\*\{1,' . &foldlevel . '\} .*' nnoremap ? '?^\*\{1,' . &foldlevel . '\} .*' " set reasonable max limit of 12 for '0' command below, because it iterates " each for each level, just assume 12 is max. . . noremap ,0 :call OrgShowSubs(12,0) noremap ,9 :call OrgShowSubs(9,0) noremap ,8 :call OrgShowSubs(8,0) noremap ,7 :call OrgShowSubs(7,0) noremap ,6 :call OrgShowSubs(6,0) noremap ,5 :call OrgShowSubs(5,0) noremap ,4 :call OrgShowSubs(4,0) noremap ,3 :call OrgShowSubs(3,0) noremap ,2 :call OrgShowSubs(2,0) noremap ,1 :call OrgShowSubs(1,0) noremap ,; :call OrgShowSubs(1,0) "nnoremap no :call NarrowOutline(line('.')) "nnoremap ns :call NarrowOutline(line('.')) "nnoremap nc :call NarrowCodeBlock(line('.')) nnoremap na :call NarrowCodeBlock(line('.')) nnoremap m :call OrgColumnsDashboard() " ---------------------------------------- " table commands au InsertEnter *.org :call org#tbl#reset_tw(line(".")) au InsertLeave *.org :call org#tbl#format(line(".")) command! -buffer -nargs=* OrgTable call org#tbl#create() "nnoremap bc :call org#tbl#create() command! -buffer OrgTableAlignQ call org#tbl#align_or_cmd('gqq') command! -buffer OrgTableAlignW call org#tbl#align_or_cmd('gww') command! -buffer OrgTableMoveColumnLeft call org#tbl#move_column_left() "nnoremap bl :call org#tbl#move_column_left() command! -buffer OrgTableMoveColumnRight call org#tbl#move_column_right() "nnoremap br :call org#tbl#move_column_right() " table function mappings inoremap org#tbl#kbd_cr() inoremap org#tbl#kbd_tab() inoremap org#tbl#kbd_shift_tab() nnoremap gqq :OrgTableAlignQ nnoremap gww :OrgTableAlignW "nnoremap OrgTableMoveColumnLeft nnoremap