NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
dictionary (Score:1)
i think this is what you need.
you might want to add this to your
function! MyFileStartup()
set complete-=k complete+=k
if exists("b:current_syntax")
let &dictionary = substitute("~/.vim/dict/FT.dict", "FT", b:current_syntax, "")
endif
endfunction
autocmd BufRead,BufNewFile * call MyFileStartup()
with this - you can store per-filet
Vim Hacking (Score:1)
First guess: (Score:1)
:help completionAnd hey lookit. That gets you to
insert.txtchapter 7, which is all about the completion feature.Re: (Score:2)
I think I didn't explain myself well. I don't care about the completion feature. I care about the little menu with completion possibilities that pops up in my editor [wikimedia.org]. I very much want to create my own menus and take actions based on user selection. For example, if someone types ',gt' (goto test), I'd like a pop up showing all tests which cover the current program and let the user scroll through the tests for the one they want.
Re: (Score:1)
One easy avenue might be
:help console-menus.The customary way is do what the explorer and quickfix features do, though: create a new window that binds a bunch of keys to special functions.
I use an autocomplete plugin (Score:1)
There is an autocomplete example in my vim presentation [redhotpenguin.com] that I gave to SF.pm. It might have some useful parts.