Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions lib/taskjuggler/VimSyntax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -219,16 +219,20 @@ def highlights

" Support browsing the man page by typing Shift-k while having the cursor over
" any syntax keyword
set keywordprg=tj3man
if !has('gui_running')
set keywordprg=tj3man
else
set keywordprg=tj3man\ --no-colors
endif

" Remap Ctrl-] to show full ID of property defined in the current
" line. This requires a current ctags file (generated by 'tagfile'
" report') to be present in the directory where vim was started.
map <C-]> :call ShowFullID()<CR>
map gi :call ShowFullID()<CR>
function! ShowFullID()
let linenumber = line(".")
let filename = bufname("%")
execute "!grep '".filename."\t".linenumber.";' tags|cut -f 1"
execute "!grep '".filename."\\s*".linenumber.";' tags|cut -f 1"
endfunction

augroup TaskJugglerSource
Expand Down