Bram Moolenaar wrote:
> 
> Charles Campbell wrote:
> 
>> I'd like to do
>>
>>    imap ... = ...=<c-o>:something<cr>
>>
>> however, "." no longer repeats the small change.   For example:
>>
>>  imap = =<c-o>:echo "hello!"<cr>
>>
>> work with the following file contents:
>>
>> abc;
>> def;
>>
>> Place cursor on the semicolon with "abc;" -- insert
>>   =2
>>
>> Now put the cursor on the semicolon with "def;" and press "." .
>> All you get is
>>
>> def 2;
>>
>> Now, if there was a dotjoin:
>>
>> imap = =<c-o>:dotjoin<bar>echo "hello!"<cr>
>>
>> just might work!
> 
> How about using CTRL-G CTRL-O for going to Normal mode without breaking
> the current Insert in two?  It would only work when the cursor didn't
> move and the text isn't changed.
> 

I don't find Ctrl-G Ctrl-O under ":help ins-special-special" (or anywhere in 
Insert mode). Maybe you mean Ctrl-\ Ctrl-O ?


Best regards,
Tony.
-- 
"I am ready to meet my Maker.  Whether my Maker is prepared for the
great ordeal of meeting me is another matter."
                -- Winston Churchill

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

Raspunde prin e-mail lui