Hi David, Ok, this looks like it could be helpful. I haven't worked with user commands before so I would think with getCmdLine() and a user defined function I could get this done.
I'm just starting with vim scripts so a simplified code example would really would be good if that is possible. Also how do you debug vim scripts? Thanks, -----Original Message----- From: Larson, David [mailto:[EMAIL PROTECTED] Sent: Monday, May 07, 2007 1:11 PM To: Dan Fabrizio; [email protected] Subject: RE: autocomplete on the command line from words in buffers Hello Dan, I suggest wrapping these functions into vim commands and then leverage the command completion feature. See: :help :command-completion HTH, David -----Original Message----- From: Dan Fabrizio [mailto:[EMAIL PROTECTED] Sent: Monday, May 07, 2007 5:27 AM To: [email protected] Subject: FW: autocomplete on the command line from words in buffers Hello All, I want to develop a plugin just using vim scripts for the verilog language. In the plugin I have functions that require arguments that are words used in the current open buffers. On the command line, I want to autocomplete these words that are arguments to functions. For example: :call function1("last_<Tab>","first_<Tab>") In open buffers, the words called last_buffer_value and first_buffer_value are used. So when I hit <Tab> I want that word to be completed so the result would be :call function1("last_buffer_value","first_buffer_value") Is there a way to do this? Thanks in advance, Dan Fabrizio
