Re: How to cancel [count] prefix?

2015-03-04 Thread Nikolay Pavlov
2015-03-04 17:34 GMT+03:00 Alexey Muranov alexey.mura...@gmail.com: On 4 mars 2015, at 15:30, Justin M. Keyes justi...@gmail.com wrote: Remapping esc is a bad idea. Could you tell why, please? (In fact, i have remapped more or less all the keys, and i am happy with it so far, but keep

Re: How to cancel [count] prefix?

2015-03-04 Thread Alexey Muranov
On 4 mars 2015, at 20:37, Nikolay Pavlov zyx@gmail.com wrote: For Normal and Visual modes, i plan however to remap my `Esc` key using something like this: function s:NVMapExpr_EscKey() if v:count return '@_' else return \Esc endif endfunction

Re: How to cancel [count] prefix?

2015-03-04 Thread Nikolay Pavlov
2015-03-04 14:34 GMT+03:00 Alexey Muranov alexey.mura...@gmail.com: On 4 mars 2015, at 11:44, Jürgen Krämer jottka...@googlemail.com wrote: Say, i've typed '42' before a motion key, but then changed my mind and decided to use a different motion or a different count. How do i cancel '42' if

Re: How to cancel [count] prefix?

2015-03-04 Thread Jürgen Krämer
Hi, Alexey schrieb am 03.03.2015 um 14:39: i need this for my custom mappings, but i am also curious in this question on its own right: How do you cancel the count prefix in Vim? Say, i've typed '42' before a motion key, but then changed my mind and decided to use a different

Re: How to cancel [count] prefix?

2015-03-04 Thread Alexey Muranov
On 4 mars 2015, at 11:44, Jürgen Krämer jottka...@googlemail.com wrote: Say, i've typed '42' before a motion key, but then changed my mind and decided to use a different motion or a different count. How do i cancel '42' if i am in Visual mode? (In Normal mode i can press Esc, but in

Re: How to cancel [count] prefix?

2015-03-04 Thread Justin M. Keyes
On Mar 4, 2015 6:34 AM, Alexey Muranov alexey.mura...@gmail.com wrote: On 4 mars 2015, at 11:44, Jürgen Krämer jottka...@googlemail.com wrote: Say, i've typed '42' before a motion key, but then changed my mind and decided to use a different motion or a different count. How do i cancel '42'

Re: How to cancel [count] prefix?

2015-03-04 Thread Alexey Muranov
On 4 mars 2015, at 15:30, Justin M. Keyes justi...@gmail.com wrote: Remapping esc is a bad idea. Could you tell why, please? (In fact, i have remapped more or less all the keys, and i am happy with it so far, but keep working on it.) Alexey. -- -- You received this message from the

Re: How to cancel [count] prefix?

2015-03-03 Thread David Fishburn
... The only solution for Visual mode i've found so far is to press '@_'. Is there a better way? ... The @_ is a nice trick though (files that away). ... Okay, I have tried: :h @ :h @_ :h registers :h \@_ I have tried it after visually selecting some text. I can't figure out what

Re: How to cancel [count] prefix?

2015-03-03 Thread Alexey
On Tuesday, March 3, 2015 at 5:33:14 PM UTC+1, David Fishburn wrote: Okay, I have tried: :h @ :h @_ :h registers :h \@_ I have tried it after visually selecting some text. I can't figure out what @_ is doing? Try :h _ 8. Black hole register _

Re: How to cancel [count] prefix?

2015-03-03 Thread Nikolay Pavlov
2015-03-03 19:33 GMT+03:00 David Fishburn dfishburn@gmail.com: ... The only solution for Visual mode i've found so far is to press '@_'. Is there a better way? ... The @_ is a nice trick though (files that away). ... Okay, I have tried: :h @ :h @ was correct :h. But you

How to cancel [count] prefix?

2015-03-03 Thread Alexey
Hello, i need this for my custom mappings, but i am also curious in this question on its own right: How do you cancel the count prefix in Vim? Say, i've typed '42' before a motion key, but then changed my mind and decided to use a different motion or a different count. How do i cancel '42'

Re: How to cancel [count] prefix?

2015-03-03 Thread Christian Brabandt
Hi Tim! On Di, 03 Mär 2015, Tim Chase wrote: On 2015-03-03 05:39, Alexey wrote: How do you cancel the count prefix in Vim? Say, i've typed '42' before a motion key, but then changed my mind and decided to use a different motion or a different count. How do i cancel '42' if i am in

Re: How to cancel [count] prefix?

2015-03-03 Thread Tim Chase
On 2015-03-03 12:32, Alexey wrote: On Tuesday, March 3, 2015 at 9:29:16 PM UTC+1, Christian Brabandt wrote: It works in both modes and switches to visual mode from select mode but if you are already in visual mode it cancels the count, if one was given and it will also beep It beeps

Re: How to cancel [count] prefix?

2015-03-03 Thread Christian Brabandt
Hi Tim! On Di, 03 Mär 2015, Tim Chase wrote: On 2015-03-03 19:42, Christian Brabandt wrote: The only solution for Visual mode i've found so far is to press '@_'. Is there a better way? I generally just hit esc and then use gv to re-highlight the previously-selected

Re: How to cancel [count] prefix?

2015-03-03 Thread Tim Chase
On 2015-03-03 19:42, Christian Brabandt wrote: The only solution for Visual mode i've found so far is to press '@_'. Is there a better way? I generally just hit esc and then use gv to re-highlight the previously-selected region. The @_ is a nice trick though (files that away)

Re: How to cancel [count] prefix?

2015-03-03 Thread Alexey
On Tuesday, March 3, 2015 at 9:29:16 PM UTC+1, Christian Brabandt wrote: It works in both modes and switches to visual mode from select mode but if you are already in visual mode it cancels the count, if one was given and it will also beep It beeps for free! A. -- -- You received this

Re: How to cancel [count] prefix?

2015-03-03 Thread Tim Chase
On 2015-03-03 05:39, Alexey wrote: How do you cancel the count prefix in Vim? Say, i've typed '42' before a motion key, but then changed my mind and decided to use a different motion or a different count. How do i cancel '42' if i am in Visual mode? (In Normal mode i can press Esc, but in