On 2月18日, 下午3时18分, Hari <[email protected]> wrote:
> Would it be possible to simulate the omni-complete (Ctrl-X Ctrl-) in a
> sandbox? I would like to see what matches I can retrieve for a line
> completion or file completion by passing in a lead string, and then saving
> it later for my own usage.
you want to write a plugin? just map <C-R>complete()<CR><C-R>feedback()
<CR>
you can return C-X_C-O in complete(), and check the complete is done
in feedback. just check the position of cursor, and the pumvisible()
function
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---