Re: Mapping for one handed touch typing

2018-03-29 Thread BPJ
I'm also disabled having cerebral palsy with reduced mobility in both hands
and arms. While most of my remappings probably won't help you one of the
things I've done might: I've remapped most of the  commands to
{key} because it's hard for me to hold down two keys simultanously and
because I find it easier to hit  with either index finger than reaching
for the ctrl keys with my little fingers which are almost useless. I also
find a longish timeout value very helpful, but that may be different when
you have full mobility in one hand.

Den fre 23 mar 2018 22:05Robert Bower  skrev:

> I am a occasional Vim user.  It is my default rescue editor and I use it
> for a few tasks but not many.  I would like to use it for more because it
> is so customizable.  What holds me back is I am a one handed left handed
> touch typist.  I only have use of my left arm.
>
> The problem I have with Vim is while the key maps are natural for a two
> handed touch typist, they are awkward for for a one handed typist.  The
> home row for one handed typing is fghj. That makes the direction keys of
> hjkl  somewhat unnatural.
>
> Before, I create my own map, I was wondering has anyone found a remapping
> for one handed typing?
>
> Thanks in advance.
>
> --
> --
> 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
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vim_use+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Comparing values of two consequent lines

2018-03-29 Thread Tim Chase
On 2018-03-29 20:34, tu...@posteo.de wrote:
> On 03/29 06:55, Tim Chase wrote:
> > On 2018-03-29 06:21, Tim Chase wrote:  
> > > > I want to check, whether all paired lines have attached
> > > > the same value.
> > > 
> > > /^command a-\(\w\+\) \+\(\d\+\) *\ncommand b-\1 \+\2\@!  
> > 
> > ^command a-\(\w\+\) \+\(\d\+\) *\ncommand b-\1 \+\2$
> 
> Hi Tim,
> 
> simply amazing! Thanks a lot for your help! THIS will easy my work a
> lot!

Another edge-case occurred to me where they differ after a common
subset.  E.g.

 command a-parameter 1
 command b-parameter 11

which might consider them a match/mismatch in one or the other of
those cases so it might require anchoring with either a "\>" or "$" to
ensure the match ends where expected.

-tim




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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Comparing values of two consequent lines

2018-03-29 Thread tuxic
On 03/29 06:55, Tim Chase wrote:
> On 2018-03-29 06:21, Tim Chase wrote:
> > > I want to check, whether all paired lines have attached
> > > the same value.  
> > 
> > You can find them with
> > 
> > /^command a-\(\w\+\) \+\(\d\+\) *\ncommand b-\1 \+\2\@!
> 
> I suppose I should have offered both alternatives...finding those
> that *don't* match, use my previous email. If you want those that
> *do* match, use the regex
> 
> ^command a-\(\w\+\) \+\(\d\+\) *\ncommand b-\1 \+\2$
> 
> (change the "\@!" at the end which asserts that the number DOESN'T
> match to a "$")
> 
> -tim
> 
> 
> -- 
> -- 
> 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
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to vim_use+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
> 

Hi Tim,

simply amazing! Thanks a lot for your help! THIS will easy my work a
lot!

Cheers!
Meino


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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Comparing values of two consequent lines

2018-03-29 Thread Tim Chase
On 2018-03-29 06:21, Tim Chase wrote:
> > I want to check, whether all paired lines have attached
> > the same value.  
> 
> You can find them with
> 
> /^command a-\(\w\+\) \+\(\d\+\) *\ncommand b-\1 \+\2\@!

I suppose I should have offered both alternatives...finding those
that *don't* match, use my previous email. If you want those that
*do* match, use the regex

^command a-\(\w\+\) \+\(\d\+\) *\ncommand b-\1 \+\2$

(change the "\@!" at the end which asserts that the number DOESN'T
match to a "$")

-tim


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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Comparing values of two consequent lines

2018-03-29 Thread Tim Chase
On 2018-03-29 08:51, tu...@posteo.de wrote:
> I have a textfile with lot of lines.
> These lines have the following format
> 
>  a- 
>  b- 
[snip] 
> I want to check, whether all paired lines have attached
> the same value.

You can find them with

/^command a-\(\w\+\) \+\(\d\+\) *\ncommand b-\1 \+\2\@!

or you can mark them with

:%s/^command a-\(\w\+\) \+\(\d\+\) *\ncommand b-\1 \+\2\@!/& THIS ONE

or indent them with

:g/^command a-\(\w\+\) \+\(\d\+\) *\ncommand b-\1 \+\2\@!/sil .,+>


These assume that "" can be found by the regex
"\w\+", so modify accordingly if needed.

-tim



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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Comparing values of two consequent lines

2018-03-29 Thread Efraim Yawitz
Sounds like a job for awk, but I'm sure someone here will have a more
detailed idea.

On Thu, Mar 29, 2018 at 9:51 AM,  wrote:

> Hi,
>
> I have a textfile with lot of lines.
> These lines have the following format
>
>  a- 
>  b- 
>
> where
>  is a command identical for all lines
>  are different commands.
>  is a numeric value.
>
> The commands are paired. A certain command exist in
> the form 'a-command' and 'b-command'.
>
> The lines are sorted in way that lines with a certain
> command ("a-" and "b-" form) are always paired and
> grouped together.
>
> I want to check, whether all paired lines have attached
> the same value.
>
> There are way too many lines to do this manually and doing
> so would be much too error prone.
>
> Can this done with vim automagically and how?
> Or: Is there already a unix tool (I am on Linux), which
> could do this check?
>
> Thanks a lot for any help in advance!
> Cheers!
> Meino
>
>
>
> --
> --
> 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
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vim_use+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Comparing values of two consequent lines

2018-03-29 Thread tuxic
Hi,

I have a textfile with lot of lines.
These lines have the following format

 a- 
 b- 

where 
 is a command identical for all lines
 are different commands.
 is a numeric value.

The commands are paired. A certain command exist in 
the form 'a-command' and 'b-command'. 

The lines are sorted in way that lines with a certain
command ("a-" and "b-" form) are always paired and
grouped together.

I want to check, whether all paired lines have attached
the same value.

There are way too many lines to do this manually and doing
so would be much too error prone.

Can this done with vim automagically and how?
Or: Is there already a unix tool (I am on Linux), which
could do this check?

Thanks a lot for any help in advance!
Cheers!
Meino



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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.