Using vim 7.1 on kubuntu 7.10:

The following snippet of a vim function works as expected
        elseif fileType == 'javascript'
                execute '/\<function\>'
But the search backwords equivalent does not work:
        elseif fileType == 'javascript'
                execute '?\<function\>'
curiously, using ex, as in
:execute '?\<function\>'
works.

Any ideas on what I an doing wrong?
thanks
tim (full function code follows)
"" 
----------------------------------------------------------------------------------------------------------
function! StdNextFunction()
        let fileType = &ft
        if fileType == 'py'
                execute ':call PythonDec("function", 1)<CR>'
        elseif fileType == 'javascript'
                execute '/\<function\>'
        else
                execute 'echo "StdNextFunction() has not (yet) been implemented 
for this 
file-type"'
        endif
endfunction
function! StdPrevFunction()
        let fileType = &ft
        if fileType == 'py'
                execute ':call PythonDec("function", -1)<CR>'
        elseif fileType == 'javascript'
                execute '?\<function\>'
        else
                execute 'echo "StdPrevFunction() has not (yet) been implemented 
for this 
file-type"'
        endif
endfunction

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

Reply via email to