blob: 926f1e719f8d24e299f23509f54bd70def35ef25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
function! todo#Escalate()
endfunction
function! todo#Descalate()
let todo = getline('.')
" First non-whitespace character
let col = match(todo, '\S')
let priority = todo[col]
if priority ==# '!'
let todo = substitute(todo, '!', '-', '')
elseif priority ==# '-'
let todo = substitute(todo, '-', '_', '')
endif
call setline(line('.'), todo)
endfunction
|