Skip to content

HTTPS clone URL

Subversion checkout URL

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