Skip to content
Newer
Older
100644 180 lines (155 sloc) 8.06 KB
7447503 @hsitz overall changes to simplify installation and make VimOrganizer 'play …
authored
1 " This is an example vimrc that should work for testing purposes.
2 " Integrate the VimOrganizer specific sections into your own
3 " vimrc if you wish to use VimOrganizer on a regular basis. . .
edae918 @hsitz edits to help and vimrc files
authored
4
5 "===================================================================
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
6 " THE NECESSARY STUFF
7 " The three lines below are necessary for VimOrganizer to work right
8 " ==================================================================
caefa8b @hsitz added OrgAgendaDateInc() to map to >> and << in agenda, revised OrgDa…
authored
9 let g:ft_ignore_pat = '\.org'
4622a6b @hsitz First commit of base files
authored
10 filetype plugin indent on
edae918 @hsitz edits to help and vimrc files
authored
11 " and then put these lines in vimrc somewhere after the line above
12 au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
13 au BufEnter *.org call org#SetOrgFileType()
d0c49aa @hsitz fixes so CaptureBuffer and EditAgendaFiles buf will quit properly reg…
authored
14 " let g:org_capture_file = '~/org_files/mycaptures.org'
ae9a456 @hsitz moved CaptureBuffer() funcs to autoload (and put command in vimrc) pl…
authored
15 command! OrgCapture :call org#CaptureBuffer()
da0bf3a @hsitz various changes, too long without commits, big changes to help file
authored
16 command! OrgCaptureFile :call org#OpenCaptureFile()
edae918 @hsitz edits to help and vimrc files
authored
17
18 "==============================================================
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
19 " THE UNNECESSARY STUFF
20 "==============================================================
edae918 @hsitz edits to help and vimrc files
authored
21 " Everything below here is a customization. None are needed.
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
22 "==============================================================
edae918 @hsitz edits to help and vimrc files
authored
23
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
24 " The variables below are used to define the default Todo list and
edae918 @hsitz edits to help and vimrc files
authored
25 " default Tag list. Both of these can also be defined
26 " on a document-specific basis by config lines in a file.
27 " See :h vimorg-todo-metadata and/or :h vimorg-tag-metadata
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
28 " 'TODO | DONE' is the default, so not really necessary to define it at all
edae918 @hsitz edits to help and vimrc files
authored
29 let g:org_todo_setup='TODO | DONE'
30 " OR, e.g.,:
31 "let g:org_todo_setup='TODO NEXT STARTED | DONE CANCELED'
32
33 " include a tags setup string if you want:
34 let g:org_tags_alist='{@home(h) @work(w) @tennisclub(t)} {easy(e) hard(d)} {computer(c) phone(p)}'
35 "
36 " g:org_agenda_dirs specify directories that, along with
7447503 @hsitz overall changes to simplify installation and make VimOrganizer 'play …
authored
37 " their subtrees, are searched for list of .org files when
edae918 @hsitz edits to help and vimrc files
authored
38 " accessing EditAgendaFiles(). Specify your own here, otherwise
7447503 @hsitz overall changes to simplify installation and make VimOrganizer 'play …
authored
39 " default will be for g:org_agenda_dirs to hold single
40 " directory which is directory of the first .org file opened
41 " in current Vim instance:
42 " Below is line I use in my Windows install:
edae918 @hsitz edits to help and vimrc files
authored
43 " NOTE: case sensitive even on windows.
44 let g:org_agenda_select_dirs=["~/desktop/org_files"]
45 let g:org_agenda_files = split(glob("~/desktop/org_files/org-mod*.org"),"\n")
7447503 @hsitz overall changes to simplify installation and make VimOrganizer 'play …
authored
46
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
47 " ----------------------
edae918 @hsitz edits to help and vimrc files
authored
48 " Emacs setup
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
49 " ----------------------
edae918 @hsitz edits to help and vimrc files
authored
50 " To use Emacs you will need to define the client. On
51 " Linux/OSX this is typically simple, just:
52 "let g:org_command_for_emacsclient = 'emacsclient'
53 "
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
54 " On Windows it is more complicated, and probably involves creating
edae918 @hsitz edits to help and vimrc files
authored
55 " a 'soft link' to the emacsclient executable (which is 'emacsclientw')
56 " See :h vimorg-emacs-setup
57 "let g:org_command_for_emacsclient = 'c:\users\herbert\emacsclientw.exe'
58
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
59 " ----------------------
edae918 @hsitz edits to help and vimrc files
authored
60 " Custom Agenda Searches
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
61 " ----------------------
62 " The assignment to g:org_custom_searches below defines searches that a
edae918 @hsitz edits to help and vimrc files
authored
63 " a user can then easily access from the Org menu or the Agenda Dashboard.
64 " (Still need to add help on how to define them, assignment below
65 " is hopefully illustrative for now. . . . )
66 let g:org_custom_searches = [
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
67 \ { 'name':"Next week's agenda", 'type':'agenda',
68 \ 'agenda_date':'+1w', 'agenda_duration':'w' }
69 \, { 'name':"Next week's TODOS", 'type':'agenda',
70 \ 'agenda_date':'+1w', 'agenda_duration':'w',
71 \ 'spec':'+UNFINISHED_TODOS' }
72 \, { 'name':'Home tags', 'type':'heading_list', 'spec':'+HOME' }
73 \, { 'name':'Home tags', 'type':'sparse_tree', 'spec':'+HOME' }
74 \ ]
edae918 @hsitz edits to help and vimrc files
authored
75
76 " --------------------------------
77 " Custom colors
78 " --------------------------------"
79 " OrgCustomColors() allows a user to set highlighting for particular items
80 function! OrgCustomColors()
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
81 " Various text item 'highlightings' below
82 " are the defaults. Uncomment and change a line if you
83 " want different highlighting for the element.
edae918 @hsitz edits to help and vimrc files
authored
84 "
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
85 " Below are defaults for any TODOS you define. TODOS that
edae918 @hsitz edits to help and vimrc files
authored
86 " come before the | in a definition will use 'NOTDONETODO'
87 " and those that come after are DONETODO
88 "hi! DONETODO guifg=green ctermfg=green
89 "hi! NOTDONETODO guifg=red ctermfg=lightred
90
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
91 " Heading level highlighting is done in pairs, one for the
92 " heading when unfolded and one for folded. Default is to make
edae918 @hsitz edits to help and vimrc files
authored
93 " them the same except for the folded version being bold:
94 " assign OL1 pair for level 1, OL2 pair for level 2, etc.
95 "hi! OL1 guifg=somecolor guibg=somecolor
96 "hi! OL1Folded guifg=somecolor guibg=somecolor gui=bold
97
98
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
99 " Tags are lines below headings that have :colon:separated:tags:
edae918 @hsitz edits to help and vimrc files
authored
100 "hi! Org_Tag guifg=lightgreen ctermfg=blue
101
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
102 " Lines that begin with '#+' in column 0 are config lines
edae918 @hsitz edits to help and vimrc files
authored
103 "hi! Org_Config_Line guifg=darkgray ctermfg=magenta
104
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
105 " Drawers are :PROPERTIES: and :LOGBOOK: lines and their associated
edae918 @hsitz edits to help and vimrc files
authored
106 " :END: lines
107 "hi! Org_Drawer guifg=pink ctermfg=magenta
108 "hi! Org_Drawer_Folded guifg=pink ctermfg=magenta gui=bold cterm=bold
109
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
110 " This applies to value names in :PROPERTIES: blocks
edae918 @hsitz edits to help and vimrc files
authored
111 "hi! Org_Property_Value guifg=pink ctermfg=magenta
112
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
113 " Three lines below apply to different kinds of blocks
edae918 @hsitz edits to help and vimrc files
authored
114 "hi! Org_Block guifg=#555555 ctermfg=magenta
115 "hi! Org_Src_Block guifg=#555555 ctermfg=magenta
116 "hi! Org_Table guifg=#888888 guibg=#333333 ctermfg=magenta
117
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
118 " Dates are date specs between angle brackets (<>) or square brackets ([])
edae918 @hsitz edits to help and vimrc files
authored
119 "hi! Org_Date guifg=magenta ctermfg=magenta gui=underline cterm=underline
120
121 " Org_Star is used to "hide" initial asterisks in a heading
122 "hi! Org_Star guifg=#444444 ctermfg=darkgray
123
124 "hi! Props guifg=#ffa0a0 ctermfg=gray
125
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
126 " Bold, italics, underline, and code are highlights applied
edae918 @hsitz edits to help and vimrc files
authored
127 " to character formatting
128 "hi! Org_Code guifg=darkgray gui=bold ctermfg=14
129 "hi! Org_Itals gui=italic guifg=#aaaaaa ctermfg=lightgray
130 "hi! Org_Bold gui=bold guifg=#aaaaaa ctermfg=lightgray
131 "hi! Org_Underline gui=underline guifg=#aaaaaa ctermfg=lightgray
132 "hi! Org_Lnumber guifg=#999999 ctermfg=gray
133
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
134 " These lines apply to links: [[link]], and [[link][link desc]]
edae918 @hsitz edits to help and vimrc files
authored
135 "if has("conceal")
136 " hi! default linkends guifg=blue ctermfg=blue
137 "endif
138 "hi! Org_Full_Link guifg=cyan gui=underline ctermfg=lightblue cterm=underline
139 "hi! Org_Half_Link guifg=cyan gui=underline ctermfg=lightblue cterm=underline
140
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
141 " Applies to the Heading line that can be displayed in column view
edae918 @hsitz edits to help and vimrc files
authored
142 "highlight OrgColumnHeadings guibg=#444444 guifg=#aaaaaa gui=underline
143
144 " Use g:org_todo_custom_highlights to set up highlighting for individual
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
145 " TODO items. Without this all todos that designate an unfinished state
edae918 @hsitz edits to help and vimrc files
authored
146 " will be highlighted using NOTDONETODO highlight (see above)
147 " and all todos that designate a finished state will be highlighted using
148 " the DONETODO highlight (see above).
149 let g:org_todo_custom_highlights =
150 \ { 'NEXT': { 'guifg':'#888888', 'guibg':'#222222',
151 \ 'ctermfg':'gray', 'ctermbg':'darkgray'},
152 \ 'WAITING': { 'guifg':'#aa3388',
153 \ 'ctermfg':'red' } }
154
155 endfunction
41e4a1e @hsitz further clocktable stuff, also re-enabled autocommands for tag conver…
authored
156
098ab37 @hfs Minor documentation improvements: typos, alignment
hfs authored
157 " Below are two examples of Org-mode "hook" functions
7447503 @hsitz overall changes to simplify installation and make VimOrganizer 'play …
authored
158 " These present opportunities for end-user customization
edae918 @hsitz edits to help and vimrc files
authored
159 " of how VimOrganizer works. For more info see the
7447503 @hsitz overall changes to simplify installation and make VimOrganizer 'play …
authored
160 " documentation for hooks in Emacs' Org-mode documentation:
161 " http://orgmode.org/worg/org-configs/org-hooks.php#sec-1_40
edae918 @hsitz edits to help and vimrc files
authored
162 "
163 " These two hooks are currently the only ones enabled in
7447503 @hsitz overall changes to simplify installation and make VimOrganizer 'play …
authored
164 " the VimOrganizer codebase, but they are easy to add so if
165 " there's a particular hook you want go ahead and request it
edae918 @hsitz edits to help and vimrc files
authored
166 " or look for where these hooks are implemented in
7447503 @hsitz overall changes to simplify installation and make VimOrganizer 'play …
authored
167 " /ftplugin/org.vim and use them as example for placing your
168 " own hooks in VimOrganizer:
41e4a1e @hsitz further clocktable stuff, also re-enabled autocommands for tag conver…
authored
169 function! Org_property_changed_functions(line,key, val)
170 "call confirm("prop changed: ".a:line."--key:".a:key." val:".a:val)
171 endfunction
172 function! Org_after_todo_state_change_hook(line,state1, state2)
edae918 @hsitz edits to help and vimrc files
authored
173 "call confirm("changed: ".a:line."--key:".a:state1." val:".a:state2)
174 "call OrgConfirmDrawer("LOGBOOK")
175 "let str = ": - State: " . org#Pad(a:state2,10) . " from: " . Pad(a:state1,10) .
176 " \ ' [' . org#Timestamp() . ']'
41e4a1e @hsitz further clocktable stuff, also re-enabled autocommands for tag conver…
authored
177 "call append(line("."), repeat(' ',len(matchstr(getline(line(".")),'^\s*'))) . str)
178 endfunction
edae918 @hsitz edits to help and vimrc files
authored
179
Something went wrong with that request. Please try again.