On Sunday 07 February 2010 07:15:00 am [email protected] wrote: > sc <[email protected]> [10-02-07 13:48]: > > On Sunday 07 February 2010 05:50:44 am [email protected] wrote: > > > :let \...@='/pattern' > > > > shouldn't that be > > > > let @/ = 'pattern' > > > > ? > > > > sc > > Ohh...Uuuuhh...Yes, of course... > And it was the correct way in my script... > Only the cite in the posting was wrong...sorry... >
as to your original question, i have several scripts where i perform a locate and want the resulting target to be highlighted -- the way i accomplish this is to first feed the locate register, perform a 'normal n', then, in the mapping where i call the function, after the function call, i'll put 'set hlsearch' (so it's outside the function) here is one such mapping: nnoremap <silent> <Leader>d :call Fcd() \| set hlsearch<CR> perhaps this method is not as elegant as you may want, but it works sc -- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php
