[EMAIL PROTECTED] wrote:
Yes indeed. When processing with my test there was a local $HOME/.vimrc
file...snip
In the second case, the Ctrl-] shortcut echos ":call JumpToTag_ada('')" on
the command line. The :verbose map <C-]> echos:
"n <C-]> *@:call JumpToTag_ada('')<CR>"
on the command line.
JumpToTag() lies in the default ada ftplugin:
As A.M. said, you may contact the ada plugin maintainer.
IMHO, instead of:
if mapcheck('<C-]>','n') == ''
nnoremap <unique> <buffer> <C-]> :call JumpToTag_ada('')<cr>
endif
the plugin should be using: (untested, as I don't use Ada myself)
if !hasmapto('<Plug>JumpToTag_ada')
nno <unique> <buffer> <c-]> <Plug>JumpToTag_ada
endif
nmap <silent> <script> <Plug>JumpToTag_ada :call JumpToTag_ada('')<cr>
With the hasmapto() method, you could retain functionality by mapping
whatever
key combo you like to the the <Plug>JumpToTag_ada by putting
nno <buffer> SomeKeyComboHere <Plug>JumpToTag_ada
in your <.vimrc> file. Of course, then you'd also get the normal <c-]>
meaning back.
Regards,
Chip Campbell