Monday, March 1, 2010

Re: Integration with SAP

On Monday 01 March 2010 02:03:25 pm Pavel Vávra wrote:

> A: double-click at <word> does:
> 1) if <word> is variable name, jumps to its definition
> 2) if <word> is form/procedure/macro/function name, jumps to
> its definition. In both cases: if definition is outside
> opened source code, vim has to inform system about it (I just
> do not know how it works, but assume it can be done), new
> source file will be prepared (by SAP system) to Vim and Vim
> shold open new file and move cursor to appropriate position
> in this file. As a benefit - if user is not allowed to edit
> new file, it should be opened in read-only mode (this
> information has to be trasferred from SAP system). I think,
> that if no double-click can be reassigned, it will be fine to
> choose any other key, e.g. F2 for this functionality
>
> B: help (F1)
> - when cursor stays on keyword, just send info to SAP, it
> creates its own window with specified help. I think that it
> can be done via some macro, is it?
>

for (A) you're probably going to want to use some implementation
of exuberant ctags, about which what i know wouldn't fill a
thimble, but (B) can be easily handled by assigning ":help" to
keywordprg in your .vimrc thusly:

set keywordprg=:help

then you just hit K in normal mode with your cursor on the
keyword and up pops the help for that keyword

hth,

sc

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment