Wednesday, May 12, 2010

Re: question about [[

> Strange: I wouldn't expect to work with the quotes, which would be
> considered part of a Normal-mode command, but AFAIK "? is not a valid
> register and { is a motion, not a register operation anyway...
>
> Or else, maybe the " is seen as the comment leader, and then it would do
> nothing?

hmm, " is not needed, remove it.

function! My_PreSection()
normal ?{
normal w99[{
endfunction

nmap [[ :call My_PreSection()<CR>

Best Regards,
robert

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