Paul wrote:
> Sigh. Once again something is not working for me, even with
> no .vimrc and with a clean ~/.vim/. When I put the script in
> .vim/plugin/, place my cursor inside a {} block, and type \/,
> I see the \ in the status line but it disappears as soon as I
> type /. Then I'm back to normal mode.

I wonder how quickly you are pressing the keys (you have to
press backslash and then, with almost no delay, press slash).
See ':help timeout' (and the following couple of sections).

Here are some experiments:

(1) Add an extra line to the script:

nnoremap <F8> /<C-R>=<SID>ScopeSearch('[[', 0)<CR>

This uses the F8 key instead of \/. Since we want to be sure
there are no glitches, after the above addition, exit from Vim,
then restart Vim and test again (by pressing F8 when inside a C
function).

(2) See if you can make any map work:

nnoremap \/ :echo 'This is the mapping'<CR>

In Vim, select the above line and press y to copy it.
Then type :@" to execute the line.
Then type \/
You should see the text from echo.

John

-- 
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

Reply via email to