Using vim 7.1 (huge) on kubuntu 7.10

Executing the following 
?[\|(\|{
Gives me the expected results. I.E.
The cursor is placed at the closest previous '[' or '(' or '{'  

Executing the following 
/]\|)\|}
Gives me the expected results. I.E.
The cursor is placed on the closest next ']' or ')' or '}'  

Yet these two functions:
function! PreviousDelimiter()
        execute '?[\|(\|{'
        execute ':nohls'
endfunction
" and
function! PreviousDelimiter()
        execute '?[\|(\|{'
        execute ':nohls'
endfunction

yield unexpected results. In each case, when the function
is called, the cursor is placed at the beginning of the line
of the first successful match, rather than on the target char.

Your help is appreciated and even moreso, pointers to
discussions on the relevant subjects.

Thanks
Tim

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to