Wednesday, May 12, 2010

Re: question about [[

On 12/05/10 15:00, robert song wrote:
> thanks, tony.
> Now I added the following script to .vimrc, but it fails with "Pattern
> not found" error.
> Any idea ?
>
> function! My_PreSection()
> exe "?{<CR>w99[{"

(untested)
normal ?{
normal w99[{

:exe is for ex-commands

> endfunction
>
> map [[ :call My_PreSection()<CR>
>
>
> Regards,
> robert
>

Best regards,
Tony.
--
The English have no respect for their language, and will not teach
their children to speak it.
-- G. B. Shaw

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

No comments: