hello, I am trying to emulate textpad. In textpad, when cursor is over some word and you press ctrl-f5 the search box pops up, and a word is in the input area.
So, an equivalent behavior (at least for now :-)) in vim is to press ctrl-f5 and have a word show up in the string :vimgrep/WORD/j c:/projects/foo/**/*.[ch] I know how to do this in a kludgy way, by yanking the word with viwy. However, that "kills" the * register. The question is whether it is possible to do what i want through some temp register, without "killing" the * (or using the * and then restoring it): I could map ctrl f5 to something like (kludgy): nmap <C-F5> <ESC>viwy:vimgrep/<S-Insert>/j c:/projects/kopera/**/*.[ch] map! <C-F5> <ESC>viwy:vimgrep/<S-Insert>/j c:/projects/kopera/**/*.[ch] There must be a prettier way of doing that (and a way which does not kill the *) Could someone please point me to the right direction? thanks, denis -- // mailto: Denis Perelyubskiy <lists at overwhelmTAKECAPITALSOUT dot net> // icq : 12359698