In my plugin, I catch 6 search ops (n,N,*,#,/,?).
Remapping [*#nN] is straightforward. Regarding / and ?
what I do is 'cmap <enter>' then checking cmdtype().
(You can see details at http://www.vim.org/scripts/script.php?script_id=1682)

This works, but causes some bad side-effects when user has
'map' instead of 'noremap'. [1]

My question is, how can I catch / and ? without remapping c-mode <enter> ?

Yakov

[1] 'noremaps' work. With 'map', when lhs contain <enter> which
is not last, chars are reordered as a side-effect of feedkeys

Reply via email to