On Wed, Dec 16, 2009 at 2:43 PM, Matt Southerden wrote:
> On Dec 16, 6:50 pm, Christian Brabandt wrote:
>> Hi Matt!
>>
>> On Mi, 16 Dez 2009, Matt Southerden wrote:
>>
>> > Thanks. :)
>>
>> > Out of interest, why the <C-u>?
>>
>> :h c_TRL-U
>
> I mean; I'm not sure why that would be beneficial.
Look at what happens when you type, say, 3: in normal mode - vim
changes it to :.,+2
So, compare the behavior of
:nnoremap <F1> :echo 42<CR>
and
:nnoremap <F1> :<C-u>echo 42<CR>
When you press 3<F1> the one with the <C-u> works and the other one bombs.
~Matt
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment