How jump words with Ctrl+Cursor?

classic Classic list List threaded Threaded
19 messages Options
Reply | Threaded
Open this post in threaded view
|

How jump words with Ctrl+Cursor?

Rafael G.

Hi list,

    I'm using VIM - Vi IMproved 7.0 (2006 May 7, compiled May 22 2007
21:12:53) in Ubuntu Feisty.  I want to jump between words with
ctrl+[left|right] but it don't work, it write "1;5D"(left cursor) or
"1;5C" (right cursor). I know that I can do the same with "w"(or "e")
and "b" keys, but my instinct always guide me to push ctrl+cursor.

How I can solve it? Regards!

--
Rafael Garcia Ortega

Prueba gratis nuestro nuevo producto GASTOSgem (http://www.gastosgem.com)


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


Reply | Threaded
Open this post in threaded view
|

Re: How jump words with Ctrl+Cursor?

Tony Mechelynck

Rafael G. wrote:

> Hi list,
>
>     I'm using VIM - Vi IMproved 7.0 (2006 May 7, compiled May 22 2007
> 21:12:53) in Ubuntu Feisty.  I want to jump between words with
> ctrl+[left|right] but it don't work, it write "1;5D"(left cursor) or
> "1;5C" (right cursor). I know that I can do the same with "w"(or "e")
> and "b" keys, but my instinct always guide me to push ctrl+cursor.
>
> How I can solve it? Regards!
>

Sounds like a misunderstanding between what your system sends and what Vin
thinks you sent.

- Is this Console Vim or gvim?
- If console Vim:
   - Does it work OK in gvim?
   - What kind of terminal are you using (pure-text /dev/tty console, xterm,
konsole, ...)?
   - What is $TERM set to?
   - What it 'term' set to?
   - Try the following:
        :new
        :redir @"
        :set termcap
        :redir END
        :0put
     then copy the result into your reply.


Best regards,
Tony.
--
Ladybug, ladybug, look to your stern!
Your house is on fire, your children will burn!
So jump ye and sing, for the very first time
The four lines above have been put into rhyme.
                -- Walt Kelly

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


Reply | Threaded
Open this post in threaded view
|

Re: How jump words with Ctrl+Cursor?

Zachary Turner-2
In reply to this post by Rafael G.

On Jul 19, 12:46 pm, "Rafael G." <[hidden email]> wrote:
> I know that I can do the same with "w"(or "e")
> and "b" keys, but my instinct always guide me to push ctrl+cursor.

Try to re-condition your instinct to use w, W, e, E, b, B.  It may be
hard at first, but it can't be as hard as getting used to h, j, k, and
l to move the cursor around!  ;-)  Another advantage of using w is
that you can preced it with a number (for example, 5w) to jump
multiple words at a time.  Also, w, e, b, etc are tied in with many
deletion commands such as dw, de, etc that if you always stick to Ctrl
+Right / Left you will never feel natural in using a very large set of
motion-based commands.


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


Reply | Threaded
Open this post in threaded view
|

Re: How jump words with Ctrl+Cursor?

Tony Mechelynck

Zachary Turner wrote:

> On Jul 19, 12:46 pm, "Rafael G." <[hidden email]> wrote:
>> I know that I can do the same with "w"(or "e")
>> and "b" keys, but my instinct always guide me to push ctrl+cursor.
>
> Try to re-condition your instinct to use w, W, e, E, b, B.  It may be
> hard at first, but it can't be as hard as getting used to h, j, k, and
> l to move the cursor around!  ;-)  Another advantage of using w is
> that you can preced it with a number (for example, 5w) to jump
> multiple words at a time.  Also, w, e, b, etc are tied in with many
> deletion commands such as dw, de, etc that if you always stick to Ctrl
> +Right / Left you will never feel natural in using a very large set of
> motion-based commands.

A disadvantage is that you can't use them in Insert mode (or only after Ctrl-O
which is OK for a mapping but awkward when you're doing the typing yourself).

What is this hjkl totalitarianism? Vi-like normal-mode commands are great, but
I see no advantage in forbidding the use of arrow keys.


Best regards,
Tony.
--
The advertisement is the most truthful part of a newspaper
                -- Thomas Jefferson

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


Reply | Threaded
Open this post in threaded view
|

Re: How jump words with Ctrl+Cursor?

Rafael G.
In reply to this post by Tony Mechelynck


> thinks you sent.
>
> - Is this Console Vim or gvim?
>  
Console Vim.
> - If console Vim:
>    - Does it work OK in gvim?
>  
It works ok in gvim.
>    - What kind of terminal are you using (pure-text /dev/tty console, xterm,
> konsole, ...)?
>  
I'm using gnome-terminal
>    - What is $TERM set to?
>  
leptom@tate:~$ echo $TERM
xterm
>    - What it 'term' set to?
>  
Sorry, I don't understand this question.
>    - Try the following:
> :new
> :redir @"
> :set termcap
> :redir END
> :0put
>      then copy the result into your reply.
>  
--- Códigos de terminal ---
  t_AB=^[[4%p1%dm     t_da=               t_me=^[[m           t_ti=^[[?1049h
  t_AF=^[[3%p1%dm     t_db=               t_mr=^[[7m          t_ue=^[[m
  t_AL=^[[%p1%dL      t_DL=^[[%p1%dM      t_ms=y              t_us=^[[4m
  t_al=^[[L           t_dl=^[[M           t_nd=^[[C           t_vi=^[[?25l
  t_bc=               t_fs=^G             t_op=^[[39;49m      
t_vs=^[[?12;25h
  t_cd=^[[J           t_IE=^G             t_RI=^[[%p1%dC      t_SI=
  t_ce=^[[K           t_IS=^[]1;          t_RV=^[[>c          t_EI=
  t_cl=^[[H^[[2J      t_ke=^[[?1l^[>      t_se=^[[27m         t_xs=
  t_Co=256            t_ks=^[[?1h^[=      t_so=^[[7m          t_ZH=^[[7m
  t_CS=               t_le=^H             t_sr=^[M            t_ZR=^[[m
  t_CV=               t_mb=^[[5m          t_ts=^[]2;
  t_ut=y              t_md=^[[1m          t_te=^[[?1049l
  t_cm=^[[%i%p1%d;%p2%dH
  t_cs=^[[%i%p1%d;%p2%dr
 
t_Sb=^[[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m
 
t_Sf=^[[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m
  t_vb=^[[?5h$<100/>^[[?5l
  t_ve=^[[?12l^[[?25h
  t_WP=^[[3;%p1%d;%p2%dt
  t_WS=^[[8;%p1%d;%p2%dt
--- Teclas del terminal ---
t_#2 <S-Home>    ^[[1;2H   t_k2 <F2>        ^[[12;*~  t_kr <Right>     ^[O*C
t_#4 <S-Left>    ^[[1;2D   t_k3 <F3>        ^[[13;*~  t_ku <Up>        ^[O*A
t_%1 <Help>      ^[[28;*~  t_k4 <F4>        ^[[14;*~       <Mouse>     ^[[M
t_%i <S-Right>   ^[[1;2C   t_k5 <F5>        ^[[15;*~       <xF1>       ^[O*P
t_&8 <Undo>      ^[[26;*~  t_k6 <F6>        ^[[17;*~       <xF2>       ^[O*Q
t_*7 <S-End>     ^[[1;2F   t_k7 <F7>        ^[[18;*~       <xF3>       ^[O*R
t_@7 <End>       ^[[1;*F   t_k8 <F8>        ^[[19;*~       <xF4>       ^[O*S
t_F1 <F11>       ^[[23;*~  t_k9 <F9>        ^[[20;*~       <xEnd>      ^[O*F
t_F2 <F12>       ^[[24;*~  t_k; <F10>       ^[[21;*~       <zEnd>      
^[[8;*~
t_K1 <kHome>     ^[[1;*~   t_kB <S-Tab>     ^[[Z           <xHome>     ^[O*H
t_K4 <kEnd>      ^[[4;*~   t_kD <Del>       ^[[3~          <zHome>    
^[[7;*~
t_K6 <kPlus>     ^[O*k     t_kI <Insert>    ^[[2;*~        <xUp>      
^[[1;*A
t_K7 <kMinus>    ^[O*m     t_kN <PageDown>  ^[[6;*~        <xDown>    
^[[1;*B
t_K8 <kDivide>   ^[O*o     t_kP <PageUp>    ^[[5;*~        <xLeft>    
^[[1;*D
t_K9 <kMultiply> ^[O*j     t_kb <BS>        ^?             <xRight>    
^[[1;*C
t_KA <kEnter>    ^[O*M     t_kd <Down>      ^[O*B          <kDel>      
^[[3;*~
t_KB <kPoint>    ^[O*n     t_kh <Home>      ^[[1;*H
t_k1 <F1>        ^[[11;*~  t_kl <Left>      ^[O*D

very interesting! :D
>
> Best regards,
> Tony.
>  
Thanks very much!

--
Rafael Garcia Ortega

Prueba gratis nuestro nuevo producto GASTOSgem (http://www.gastosgem.com)


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


Reply | Threaded
Open this post in threaded view
|

Re: How jump words with Ctrl+Cursor?

Franco Saliola
In reply to this post by Tony Mechelynck

On 7/19/07, Tony Mechelynck <[hidden email]> wrote:

> A disadvantage is that you can't use them in Insert mode (or only after Ctrl-O
> which is OK for a mapping but awkward when you're doing the typing yourself).

Ctrl-O? That's awesome. I didn't know about this before. Why do you
think this awkward while typing? I use the Ctrl key all the time.

> I see no advantage in forbidding the use of arrow keys.

One of the first mappings (ever) I put into my .vimrc file disabled
the arrow keys. This forced me to learn about hjkl and other motions.
(I was moving to vim for the efficiency of not have to use the arrow
keys.)

Franco

--

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


Reply | Threaded
Open this post in threaded view
|

Re: How jump words with Ctrl+Cursor?

Tony Mechelynck
In reply to this post by Rafael G.

Rafael G. wrote:

>
>> thinks you sent.
>>
>> - Is this Console Vim or gvim?
>>  
> Console Vim.
>> - If console Vim:
>>    - Does it work OK in gvim?
>>  
> It works ok in gvim.
>>    - What kind of terminal are you using (pure-text /dev/tty console, xterm,
>> konsole, ...)?
>>  
> I'm using gnome-terminal
>>    - What is $TERM set to?
>>  
> leptom@tate:~$ echo $TERM
> xterm
>>    - What it 'term' set to?
>>  
> Sorry, I don't understand this question.

What does vim answer to

        :set term?

I guess it says
   term=xterm

>>    - Try the following:
>> :new
>> :redir @"
>> :set termcap
>> :redir END
>> :0put
>>      then copy the result into your reply.
>>  
> --- Códigos de terminal ---
>   t_AB=^[[4%p1%dm     t_da=               t_me=^[[m           t_ti=^[[?1049h
>   t_AF=^[[3%p1%dm     t_db=               t_mr=^[[7m          t_ue=^[[m
>   t_AL=^[[%p1%dL      t_DL=^[[%p1%dM      t_ms=y              t_us=^[[4m
>   t_al=^[[L           t_dl=^[[M           t_nd=^[[C           t_vi=^[[?25l
>   t_bc=               t_fs=^G             t_op=^[[39;49m      
> t_vs=^[[?12;25h
>   t_cd=^[[J           t_IE=^G             t_RI=^[[%p1%dC      t_SI=
>   t_ce=^[[K           t_IS=^[]1;          t_RV=^[[>c          t_EI=
>   t_cl=^[[H^[[2J      t_ke=^[[?1l^[>      t_se=^[[27m         t_xs=
>   t_Co=256            t_ks=^[[?1h^[=      t_so=^[[7m          t_ZH=^[[7m
>   t_CS=               t_le=^H             t_sr=^[M            t_ZR=^[[m
>   t_CV=               t_mb=^[[5m          t_ts=^[]2;
>   t_ut=y              t_md=^[[1m          t_te=^[[?1049l
>   t_cm=^[[%i%p1%d;%p2%dH
>   t_cs=^[[%i%p1%d;%p2%dr
>  
> t_Sb=^[[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m
>  
> t_Sf=^[[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m
>   t_vb=^[[?5h$<100/>^[[?5l
>   t_ve=^[[?12l^[[?25h
>   t_WP=^[[3;%p1%d;%p2%dt
>   t_WS=^[[8;%p1%d;%p2%dt
> --- Teclas del terminal ---
> t_#2 <S-Home>    ^[[1;2H   t_k2 <F2>        ^[[12;*~  t_kr <Right>     ^[O*C
> t_#4 <S-Left>    ^[[1;2D   t_k3 <F3>        ^[[13;*~  t_ku <Up>        ^[O*A
> t_%1 <Help>      ^[[28;*~  t_k4 <F4>        ^[[14;*~       <Mouse>     ^[[M
> t_%i <S-Right>   ^[[1;2C   t_k5 <F5>        ^[[15;*~       <xF1>       ^[O*P
> t_&8 <Undo>      ^[[26;*~  t_k6 <F6>        ^[[17;*~       <xF2>       ^[O*Q
> t_*7 <S-End>     ^[[1;2F   t_k7 <F7>        ^[[18;*~       <xF3>       ^[O*R
> t_@7 <End>       ^[[1;*F   t_k8 <F8>        ^[[19;*~       <xF4>       ^[O*S
> t_F1 <F11>       ^[[23;*~  t_k9 <F9>        ^[[20;*~       <xEnd>      ^[O*F
> t_F2 <F12>       ^[[24;*~  t_k; <F10>       ^[[21;*~       <zEnd>      
> ^[[8;*~
> t_K1 <kHome>     ^[[1;*~   t_kB <S-Tab>     ^[[Z           <xHome>     ^[O*H
> t_K4 <kEnd>      ^[[4;*~   t_kD <Del>       ^[[3~          <zHome>    
> ^[[7;*~
> t_K6 <kPlus>     ^[O*k     t_kI <Insert>    ^[[2;*~        <xUp>      
> ^[[1;*A
> t_K7 <kMinus>    ^[O*m     t_kN <PageDown>  ^[[6;*~        <xDown>    
> ^[[1;*B
> t_K8 <kDivide>   ^[O*o     t_kP <PageUp>    ^[[5;*~        <xLeft>    
> ^[[1;*D
> t_K9 <kMultiply> ^[O*j     t_kb <BS>        ^?             <xRight>    
> ^[[1;*C
> t_KA <kEnter>    ^[O*M     t_kd <Down>      ^[O*B          <kDel>      
> ^[[3;*~
> t_KB <kPoint>    ^[O*n     t_kh <Home>      ^[[1;*H
> t_k1 <F1>        ^[[11;*~  t_kl <Left>      ^[O*D
>
> very interesting! :D
>> Best regards,
>> Tony.
>>  
> Thanks very much!
>

Hm. I'm getting similar results in konsole, but here <C-Right> gives in
practice the same keycode as just <Right> so they both move the cursor one
space to the right.

Can anyone interpret this (and the earlier post by Rafael) better than I can?


Best regards,
Tony.
--
A poem:                read aloud:

<> !*''#               Waka waka bang splat tick tick hash,
^"`$$-                 Caret quote back-tick dollar dollar dash,
!*=@$_                 Bang splat equal at dollar under-score,
%*<> ~#4               Percent splat waka waka tilde number four,
&[]../                 Ampersand bracket bracket dot dot slash,
|{,,SYSTEM HALTED      Vertical-bar curly-bracket comma comma CRASH.

Fred Bremmer and Steve Kroese (Calvin College & Seminary of Grand Rapids, MI.)

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


Reply | Threaded
Open this post in threaded view
|

Re: How jump words with Ctrl+Cursor?

Tony Mechelynck
In reply to this post by Franco Saliola

Franco Saliola wrote:
> On 7/19/07, Tony Mechelynck <[hidden email]> wrote:
>
>> A disadvantage is that you can't use them in Insert mode (or only after Ctrl-O
>> which is OK for a mapping but awkward when you're doing the typing yourself).
>
> Ctrl-O? That's awesome. I didn't know about this before. Why do you
> think this awkward while typing? I use the Ctrl key all the time.

Because to move the cursor three chars left in Insert mode, <Left><Left><Left>
is worlds easier than either <Esc>hhi or <Ctrl-O>h<Ctrl-O>h<Ctrl-O>h

>
>> I see no advantage in forbidding the use of arrow keys.
>
> One of the first mappings (ever) I put into my .vimrc file disabled
> the arrow keys. This forced me to learn about hjkl and other motions.
> (I was moving to vim for the efficiency of not have to use the arrow
> keys.)
>
> Franco

Did you disable the mouse too?

I use the arrow keys constantly in Vim, and I occasionally use the mouse. The
reason I switched to Vim was for all it could do, in general, including
mappings, syntax highlighting, search and replace, etc. etc. etc. Not in order
to be forced not to use the arrows. In fact, I'd say that being able to use
them _adds_ to the efficiency. In general, the possibility to do the same
thing in various ways, which is so characteristic of Vim, makes it a more
efficient editor than most.


Best regards,
Tony.
--
Parallel lines never meet, unless you bend one or both of them.

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


Reply | Threaded
Open this post in threaded view
|

Re: How jump words with Ctrl+Cursor?

Rafael G.
In reply to this post by Tony Mechelynck

Hi again,

    :set term? give me... it that you thought.
> I guess it says
>    term=xterm
>  

Thanks for all

--
Rafael Garcia Ortega

Prueba gratis nuestro nuevo producto GASTOSgem (http://www.gastosgem.com)


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


Reply | Threaded
Open this post in threaded view
|

Re: How jump words with Ctrl+Cursor?

Zachary Turner-2
In reply to this post by Tony Mechelynck



On Jul 19, 1:35 pm, Tony Mechelynck <[hidden email]>
wrote:

> Zachary Turner wrote:
> > On Jul 19, 12:46 pm, "Rafael G." <[hidden email]> wrote:
> >> I know that I can do the same with "w"(or "e")
> >> and "b" keys, but my instinct always guide me to push ctrl+cursor.
>
> > Try to re-condition your instinct to use w, W, e, E, b, B.  It may be
> > hard at first, but it can't be as hard as getting used to h, j, k, and
> > l to move the cursor around!  ;-)  Another advantage of using w is
> > that you can preced it with a number (for example, 5w) to jump
> > multiple words at a time.  Also, w, e, b, etc are tied in with many
> > deletion commands such as dw, de, etc that if you always stick to Ctrl
> > +Right / Left you will never feel natural in using a very large set of
> > motion-based commands.
>
> A disadvantage is that you can't use them in Insert mode (or only after Ctrl-O
> which is OK for a mapping but awkward when you're doing the typing yourself).
>
> What is this hjkl totalitarianism? Vi-like normal-mode commands are great, but
> I see no advantage in forbidding the use of arrow keys.

It's not totalitarianism, and it's not forbidding the use of arrow
keys either.  Rather, it's forcing yourself to use hjkl and not using
arrow keys *until such time that you feel equally natural using either
one*.  Only when you have reached that point can you make the decision
on the fly about which is the most efficient.  I just don't see the
point in shifting to a new way of doing or thinking about something if
you are going to be resistant to what it's offering.  It's like saying
you're going to learn Chinese but only learning the spelling of each
word and not the intonation, because it feels more natural to speak
like English with a flat intonation.

My argument was to learn hjkl, w, e, b, etc until the point that they
feel as natural and as instinctive as the arrow keys.  THEN use
whatever you want.


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


Reply | Threaded
Open this post in threaded view
|

Re: How jump words with Ctrl+Cursor?

Tobiah-3


> Only when you have reached that point can you make the decision
> on the fly about which is the most efficient.  

Nah, it's just *far* less efficient to use arrow keys, and
that's it.

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


Reply | Threaded
Open this post in threaded view
|

Re: How jump words with Ctrl+Cursor?

Tony Mechelynck
In reply to this post by Zachary Turner-2

Zachary Turner wrote:

>
>
> On Jul 19, 1:35 pm, Tony Mechelynck <[hidden email]>
> wrote:
>> Zachary Turner wrote:
>>> On Jul 19, 12:46 pm, "Rafael G." <[hidden email]> wrote:
>>>> I know that I can do the same with "w"(or "e")
>>>> and "b" keys, but my instinct always guide me to push ctrl+cursor.
>>> Try to re-condition your instinct to use w, W, e, E, b, B.  It may be
>>> hard at first, but it can't be as hard as getting used to h, j, k, and
>>> l to move the cursor around!  ;-)  Another advantage of using w is
>>> that you can preced it with a number (for example, 5w) to jump
>>> multiple words at a time.  Also, w, e, b, etc are tied in with many
>>> deletion commands such as dw, de, etc that if you always stick to Ctrl
>>> +Right / Left you will never feel natural in using a very large set of
>>> motion-based commands.
>> A disadvantage is that you can't use them in Insert mode (or only after Ctrl-O
>> which is OK for a mapping but awkward when you're doing the typing yourself).
>>
>> What is this hjkl totalitarianism? Vi-like normal-mode commands are great, but
>> I see no advantage in forbidding the use of arrow keys.
>
> It's not totalitarianism, and it's not forbidding the use of arrow
> keys either.  Rather, it's forcing yourself to use hjkl and not using
> arrow keys *until such time that you feel equally natural using either
> one*.  Only when you have reached that point can you make the decision
> on the fly about which is the most efficient.  I just don't see the
> point in shifting to a new way of doing or thinking about something if
> you are going to be resistant to what it's offering.  It's like saying
> you're going to learn Chinese but only learning the spelling of each
> word and not the intonation, because it feels more natural to speak
> like English with a flat intonation.
>
> My argument was to learn hjkl, w, e, b, etc until the point that they
> feel as natural and as instinctive as the arrow keys.  THEN use
> whatever you want.

Ah, sorry, I thought you were saying to learn to use hjkl wWeEbB exclusively,
to the exclusion of arrow keys.



Best regards,
Tony.
--
Forms follow function, and often obliterate it.

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


Reply | Threaded
Open this post in threaded view
|

Re: How jump words with Ctrl+Cursor?

Tony Mechelynck
In reply to this post by Tobiah-3

Tobiah wrote:
>
>> Only when you have reached that point can you make the decision
>> on the fly about which is the most efficient.  
>
> Nah, it's just *far* less efficient to use arrow keys, and
> that's it.

Not always, especially in Insert mode.


Best regards,
Tony.
--
DENNIS:  Listen -- strange women lying in ponds distributing swords is no
          basis for a system of government.  Supreme executive power derives
          from a mandate from the masses, not from some farcical aquatic
          ceremony.
                                   The Quest for the Holy Grail (Monty Python)

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


Reply | Threaded
Open this post in threaded view
|

Re: How jump words with Ctrl+Cursor?

Tobiah-3

Tony Mechelynck wrote:
> Tobiah wrote:
>>> Only when you have reached that point can you make the decision
>>> on the fly about which is the most efficient.  
>> Nah, it's just *far* less efficient to use arrow keys, and
>> that's it.
>
> Not always, especially in Insert mode.

Good point, but
I'd rather just jump to command mode and back
then make the trip over to the arrow keys.

For many, the round trip will require the eyes to drop
for a moment, which creates fatigue finding one's place
on the page again.


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


Reply | Threaded
Open this post in threaded view
|

Re: How jump words with Ctrl+Cursor?

Tony Mechelynck

Tobiah wrote:

> Tony Mechelynck wrote:
>> Tobiah wrote:
>>>> Only when you have reached that point can you make the decision
>>>> on the fly about which is the most efficient.  
>>> Nah, it's just *far* less efficient to use arrow keys, and
>>> that's it.
>> Not always, especially in Insert mode.
>
> Good point, but
> I'd rather just jump to command mode and back
> then make the trip over to the arrow keys.

I wouldn't.

>
> For many, the round trip will require the eyes to drop
> for a moment, which creates fatigue finding one's place
> on the page again.

I can find my arrow keys by touch: I know approximately where they are on my
keyboard, and it's the only four keys grouped
    _
  _|_|_
[_|_|_]

with nothing on either side of the top one. From there I can reach Home, End,
Delete, etc., without taking my eyes off the screen.


Best regards,
Tony.
--
        Home centers are designed for the do-it-yourselfer who's
willing to pay higher prices for the convenience of being able to shop
for lumber, hardware, and toasters all in one location.  Notice I say
"shop for", as opposed to "obtain".  This is the major drawback of home
centers: they are always out of everything except artificial Christmas
trees.  The home center employees have no time to reorder merchandise
because they are too busy applying little price stickers to every
object -- every board, washer, nail and screw -- in the entire store ...
        Let's say a piece in your toilet tank breaks, so you remove the
broken part, take it to the home center, and ask an employee if he has
a replacement.  The employee, who has never is his life even seen the
inside of a toilet tank, will peer at the broken part in very much the
same way that a member of a primitive Amazon jungle tribe would look at
an electronic calculator, and then say, "We're expecting a shipment of
these sometime around the middle of next week".
                -- Dave Barry, "The Taming of the Screw"

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


Reply | Threaded
Open this post in threaded view
|

Re: How jump words with Ctrl+Cursor?

Zachary Turner-2



On Jul 19, 6:00 pm, Tony Mechelynck <[hidden email]>
wrote:

> Tobiah wrote:
> > Tony Mechelynck wrote:
> >> Tobiah wrote:
> >>>> Only when you have reached that point can you make the decision
> >>>> on the fly about which is the most efficient.  
> >>> Nah, it's just *far* less efficient to use arrow keys, and
> >>> that's it.
> >> Not always, especially in Insert mode.
>
> > Good point, but
> > I'd rather just jump to command mode and back
> > then make the trip over to the arrow keys.
>
> I wouldn't.
>
>
>
> > For many, the round trip will require the eyes to drop
> > for a moment, which creates fatigue finding one's place
> > on the page again.
>
> I can find my arrow keys by touch: I know approximately where they are on my
> keyboard, and it's the only four keys grouped
>     _
>   _|_|_
> [_|_|_]
>
> with nothing on either side of the top one. From there I can reach Home, End,
> Delete, etc., without taking my eyes off the screen.

>From the home row you should be able to find ^, $, x, etc without
taking your eyes off the screen.  Use whatever you want, my point is
that if your fluency with hjkl$^xetc is less than your fluency with
up,down,left,right,Home,Del,etc, then your efficiency with VI is
provably less than or equal to your efficiency if you just take the
time to master the keys.  If you master them, then your new efficiency
is provably greater than or equal to your efficiency without them.  I
would rather take the second, the whole reason i started learning VI
in the first place is for efficiency, I wouldn't want to sell myself
short.


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


Reply | Threaded
Open this post in threaded view
|

Re: How jump words with Ctrl+Cursor?

Rafael G.
In reply to this post by Tony Mechelynck

Well, I'll try to change my instincts, second try!(I tried it some times
ago).

thanks for your time! Regards!

Tony Mechelynck escribió:

> Zachary Turner wrote:
>  
>> On Jul 19, 1:35 pm, Tony Mechelynck <[hidden email]>
>> wrote:
>>    
>>> Zachary Turner wrote:
>>>      
>>>> On Jul 19, 12:46 pm, "Rafael G." <[hidden email]> wrote:
>>>>        
>>>>> I know that I can do the same with "w"(or "e")
>>>>> and "b" keys, but my instinct always guide me to push ctrl+cursor.
>>>>>          
>>>> Try to re-condition your instinct to use w, W, e, E, b, B.  It may be
>>>> hard at first, but it can't be as hard as getting used to h, j, k, and
>>>> l to move the cursor around!  ;-)  Another advantage of using w is
>>>> that you can preced it with a number (for example, 5w) to jump
>>>> multiple words at a time.  Also, w, e, b, etc are tied in with many
>>>> deletion commands such as dw, de, etc that if you always stick to Ctrl
>>>> +Right / Left you will never feel natural in using a very large set of
>>>> motion-based commands.
>>>>        
>>> A disadvantage is that you can't use them in Insert mode (or only after Ctrl-O
>>> which is OK for a mapping but awkward when you're doing the typing yourself).
>>>
>>> What is this hjkl totalitarianism? Vi-like normal-mode commands are great, but
>>> I see no advantage in forbidding the use of arrow keys.
>>>      
>> It's not totalitarianism, and it's not forbidding the use of arrow
>> keys either.  Rather, it's forcing yourself to use hjkl and not using
>> arrow keys *until such time that you feel equally natural using either
>> one*.  Only when you have reached that point can you make the decision
>> on the fly about which is the most efficient.  I just don't see the
>> point in shifting to a new way of doing or thinking about something if
>> you are going to be resistant to what it's offering.  It's like saying
>> you're going to learn Chinese but only learning the spelling of each
>> word and not the intonation, because it feels more natural to speak
>> like English with a flat intonation.
>>
>> My argument was to learn hjkl, w, e, b, etc until the point that they
>> feel as natural and as instinctive as the arrow keys.  THEN use
>> whatever you want.
>>    
>
> Ah, sorry, I thought you were saying to learn to use hjkl wWeEbB exclusively,
> to the exclusion of arrow keys.
>
>
>
> Best regards,
> Tony.
>  

--
Rafael Garcia Ortega

Prueba gratis nuestro nuevo producto GASTOSgem (http://www.gastosgem.com)


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


Reply | Threaded
Open this post in threaded view
|

Re: How jump words with Ctrl+Cursor?

Albie Janse van Rensburg
In reply to this post by Rafael G.

Rafael G. wrote:

> Hi list,
>
>     I'm using VIM - Vi IMproved 7.0 (2006 May 7, compiled May 22 2007
> 21:12:53) in Ubuntu Feisty.  I want to jump between words with
> ctrl+[left|right] but it don't work, it write "1;5D"(left cursor) or
> "1;5C" (right cursor). I know that I can do the same with "w"(or "e")
> and "b" keys, but my instinct always guide me to push ctrl+cursor.
>
> How I can solve it? Regards!
>
>  
I am using Windows at the moment, so I can't test for Ubuntu.  
Interesting function I just discovered - shift+\(left\|right\) arrow
also skips words like \(w\|b\) does.

Does this happen on your system too?

--

Albie Janse van Rensburg ~ http://morph.telspace.co.za

Please don't send me any MS Word or Powerpoint attachments
unless it's absolutely neccessary - send simply text.
http://www.gnu.org/philosophy/no-word-attachments.html

You have all eternity to be cautious in when you're dead.
                -- Lois Platford


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


Reply | Threaded
Open this post in threaded view
|

Re: How jump words with Ctrl+Cursor?

Rafael G.


> Does this happen on your system too?
>
>  
Nopes, it produce same issue (write "1;2C" or "1;2D").
Thanks!

--
Rafael Garcia Ortega

Prueba gratis nuestro nuevo producto GASTOSgem (http://www.gastosgem.com)


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