blob: cfae74cc19890a41cc7e065d044c9f1912cd6827 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
" insert fancy signifiers with abbrevs
iabbrev todo ·
iabbrev done ×
" select the task list and hit `gq` to group by status
" selecting clever status symbols can determine the ordering of tasks
set formatprg=sort\ -V
" syntax highlighting
augroup JournalSyntax
autocmd!
autocmd BufReadPost * set filetype=journal
autocmd BufReadPost * syntax match JournalAll /.*/ " captures the entire buffer
autocmd BufReadPost * syntax match JournalDone /^×.*/ " lines containing 'done' items: ×
autocmd BufReadPost * syntax match JournalTodo /^·.*/ " lines containing 'todo' items: ·
autocmd BufReadPost * syntax match JournalEvent /^o.*/ " lines containing 'event' items: o
autocmd BufReadPost * syntax match JournalNote /^- .*/ " lines containing 'note' items: -
autocmd BufReadPost * syntax match JournalMoved /^>.*/ " lines containing 'moved' items: >
autocmd BufReadPost * syntax match JournalHeader /\<\u\+\>/ " words containing capitals
autocmd BufReadPost * highlight link JournalAll Noise
autocmd BufReadPost * highlight link JournalHeader Noise
autocmd BufReadPost * highlight link JournalDone Noise
autocmd BufReadPost * highlight link JournalMoved Noise
autocmd BufReadPost * highlight JournalEvent ctermfg=6 " cyan
autocmd BufReadPost * highlight JournalMoved ctermfg=5 " pink
autocmd BufReadPost * highlight JournalNote ctermfg=3 " yellow
autocmd BufReadPost * highlight VertSplit ctermfg=0 ctermbg=0 " hide vert splits
augroup END
augroup JournalHideUIElements
autocmd!
" hide junk
autocmd VimEnter * set laststatus=0
autocmd VimEnter * set noruler nonumber nocursorline nocursorcolumn norelativenumber
" pin scrolling
autocmd VimEnter * set scrollbind
augroup END
syntax on
|