On Mon, Mar 22, 2010 at 21:09, Tim Chase <[email protected]> wrote:
> Tinou wrote:
>>
>> Using @/=... works great, but it does not populate the / history
>> (/<up>). Is there a way to do so ?
>
> You can use the histadd() function to manipulate the history:
>
>  :help histadd()
>
> (and the accompanying histdel() and histget() functions if you want to get
> fancier).
>
> -tim
>

Awesome !

Thanks Tim !

Just for the record, I have this mapping now (among others):

nnoremap <silent> * :call histadd("search", expand("<cword>")) <bar> let
@/='\<'.expand("<cword>").'\>' <bar> set hlsearch<CR>

search like '*', updates '/' history, doesn't move cursor :-D


Regards,

Étienne

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe from this group, send email to 
vim_use+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to