Skip to content
Newer
Older
100644 82 lines (69 sloc) 2.91 KB
41e4a1e @hsitz further clocktable stuff, also re-enabled autocommands for tag conver…
authored Nov 24, 2010
1 " ********************* IMPORTANT ************
2 " This vimrc is sample vimrc that works with VimOrganizer.
3 "
4 " Some of the commands could be deleted (e.g., the first
5 " five below. . .
6 "-------------------"
4622a6b @hsitz First commit of base files
authored Nov 11, 2010
7 set nocompatible
8 source $VIMRUNTIME/vimrc_example.vim
9 source $VIMRUNTIME/mswin.vim
10 behave mswin
41e4a1e @hsitz further clocktable stuff, also re-enabled autocommands for tag conver…
authored Nov 24, 2010
11 " --------------------
12 " most of the rest of the commands are necessary, be careful about changing
4622a6b @hsitz First commit of base files
authored Nov 12, 2010
13 set foldmethod=manual
14 filetype off
15 filetype plugin indent on
16 colorscheme org_dark
41e4a1e @hsitz further clocktable stuff, also re-enabled autocommands for tag conver…
authored Nov 24, 2010
17 set shellslash
4622a6b @hsitz First commit of base files
authored Nov 12, 2010
18
41e4a1e @hsitz further clocktable stuff, also re-enabled autocommands for tag conver…
authored Nov 24, 2010
19
20 " if desired, set main directories where you store .org files here,
21 " these will be used to assemble list of agenda files to choose from
22 let g:agenda_dirs=["c:/users/herbert/documents/my\ dropbox","c:/users/herbert/desktop"]
23
24 " You can (and should) modify TodoSetup() and TagSetup() calls
25 " in SetFileType() below, but be careful about changing anything else
26 function! SetFileType()
27 if expand("%:e") == 'org'
28 if &filetype != 'org'
29 execute "set filetype=org"
30 endif
31 " The two lines below set up TODOS and tag lists for your
32 " org files, eventually each file will be able to have
33 " these defined with customization lines in the file, but
34 " for now must call a function manually. You can set
35 " different org files up differently, if you want. As
36 " it stands now all org files use same sample setup, below
37 call TodoSetup([['TODO','NEXT'],'STARTED',['DONE','CANCELED']])
38 call TagSetup('{@home(h) @work(w) @tennisclub(t)} {easy(e) hard(d)} {computer(c) phone(p)}')
39 endif
40 if !exists('g:in_agenda_search') && (&foldmethod!='expr')
41 setlocal foldmethod=expr
42 set foldlevel=1
43 endif
44 syntax on
45 colorscheme org_dark
46 endfunction
47
48 " these are two examples of "hooks" in org-mode, which are customizable
49 " functions that will be called
50 " whenever a particular event happens. . . For more information on
51 " possible hooks, see: http://orgmode.org/worg/org-configs/org-hooks.php
52 " Only a couple of hooks have been implemented so far. . .
53 function! Org_property_changed_functions(line,key, val)
54 "call confirm("prop changed: ".a:line."--key:".a:key." val:".a:val)
55 endfunction
56 function! Org_after_todo_state_change_hook(line,state1, state2)
57 "call ConfirmDrawer("LOGBOOK")
58 "let str = ": - State: " . Pad(a:state2,10) . " from: " . Pad(a:state1,10) .
59 " \ ' [' . Timestamp() . ']'
60 "call append(line("."), repeat(' ',len(matchstr(getline(line(".")),'^\s*'))) . str)
61
62 endfunction
63
64 "keep all below
65 syntax on
66 au! BufRead,BufNewFile *.org call SetFileType()
67
68 au BufRead *.org :PreLoadTags
4622a6b @hsitz First commit of base files
authored Nov 12, 2010
69 au BufWrite *.org :PreWriteTags
70 au BufWritePost *.org :PostWriteTags
71
41e4a1e @hsitz further clocktable stuff, also re-enabled autocommands for tag conver…
authored Nov 24, 2010
72
73
74
75 nmap <F9> :execute "normal o<".Timestamp().'>'<cr>
76 imap <F9> <c-r>=' <'.Timestamp().'>'<cr>
77 map <c-left> :tabprevious<cr>
78 map <c-right> :tabnext<cr>
79 map <c-up> :wincmd W<cr>
80 map <c-down> :wincmd w<cr>
4622a6b @hsitz First commit of base files
authored Nov 12, 2010
81
Something went wrong with that request. Please try again.