I have established a footnichnial dictionary in vyim so that I can get a list of dragon commands, when I press tabs partially Everything is working fine after typing command, every time the menu appears, there is a file name in addition to each command in the list. How do I remove that filename from the menu?
plz, take a look at the picture: (copy and paste link when you click on the job)
thanks
I have not managed to solve it very beautifully, but by writing a custom completion function, there is an alternative solution that simply dictionary files for Grips matches:
function! MyCompleteFunction (Search, Base) if: Give the lookup line = 'getline' ('.') Start = call ('.') - 1 while start> 0 and amp; Amp; Start the line [Start - 1] = ~ [[AZA-Z_] '- [1] - = 1 Finally start the return and give a call to the callgrap (a: base,' path \ to \ dictionary \ file ') [ =]
Note that I have defined a function DictGrep () which actually displays vimgrep. That's because I can say silently and can not be disturbed by error messages:
function! Try DictGrep (leader, file) exe "vimgrep / ^" a leader. Define: "./JA" A: File Hold /.*/ Reverb "No Matches" Endry And Function
Then Full Set:
Use the setlocal fullfunc = MyCompleteFunction ()
and then to complete the insert-mode (which can be mapped to replace your current dictionary full binding).
vimgrep may be slow to moderate, but I have not seen any problems, unless the dictionary file has hundreds of matches.
Hope this will be helpful.
No comments:
Post a Comment