todo.txt-vim
todo.txt-vim copied to clipboard
Open a project-file belonging to a task with 'gf'
Hi,
with this function in your .vimrc
:
autocmd FileType todo call s:todo_settings()
function! s:todo_settings()
setl includeexpr=substitute(v:fname,'+','','g')
setl suffixesadd+=.md
setl path+=~/Cloud/wiki/
endfunction
Pressing gf
with the crusor on the project tag, will open a corresponding project file.
For example:
(C) add todo.txt to conky +ConkyAndTodo.txt
Pressing gf
on the project tag will open the file: ~/Cloud/wiki/ConkyAndTodo.txt.md
Cheers
Gordian