> Hi,
> I would like to know how to add a custom message to preview window.
> My requirement is as follows
> 1) When I keep a cursor on a word and press F4. It should open a preview
> window and show some message related to that word. That i've in a
> dictionary.
>
> Is it possible to do the same with autocompletion popup. But i don't want to
> any completion, just want popup to show some message related to that word.
>
You can write the message to a temporary file and use the :pedit
command. The tempname() function should help. Remember to delete the
file when done with delete()!
Possibly you could also create a new scratch buffer and set the
'previewwindow' option but I don't know how well this will behave,
the :help says that you shouldn't normally set this option manually.
--
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