Hi

I am trying to build a lexical analyzer using flex. Following is a
line which shows a regular expression and its corresponding action.

[0-9] {printf("yada yada \n");} //regex1
Is there a way to reuse {printf("yada yada \n");} from regex1 by auto-
completion features of vim, so that I don't need to write the whole
thing again while writing regex2?

e.g.

.* {printf("yada yada \n");} //regex2
This goes beyond word completion, so I was wondering is this doable in
vim?

P.S.
 I know one can do this by storing the text in a register("aymotion),
but I am looking for some divine vim auto-completion.

TIA

-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to