On 13/05/10 02:47, robert song wrote:
(untested)
        normal ?{
        normal w99[{

tony, thank you very much.
It works.

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

map [[ :call My_PreSection()<CR>


Best Regards,
   robert


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?


Best regards,
Tony.
--
    [clop clop]
MORTICIAN:  Who's that then?
CUSTOMER:   I don't know.
MORTICIAN:  Must be a king.
CUSTOMER:   Why?
MORTICIAN:  He hasn't got shit all over him.
The Quest for the Holy Grail (Monty Python)

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