I have many menu entries like these:
nnoremenu <silent> 94.015.10 &MyMenu.Test\ :call Test("%","keyw2",keyw3")<CR>
vnoremenu <silent> 94.015.10 &MyMenu.Test\ :<C-U>call Test("'<,'>","keyw2",keyw3")<CR>
One for normal mode 'nnoremenu' and
One for visual mode 'vnoremenu'
With the same keywords except the first one ("%","'<,'>")
Is there no way to merge them together?
p.e. is it possible to do this:
an <silent> 94.015.10 &MyMenu.Test\ :call Test("","keyw2",keyw3")<CR>
and check within the function if normal mode or visual mode is active?