<hunar>
Can I select using Vip? I wanted to select some code and copy/paste it
<Regenaxer>
Hi hunar!
<Regenaxer>
"y" like in Vim?
<Regenaxer>
or you mean visual select? That is not implemented
<Regenaxer>
You can of course select visually in Termux and also in Tmux
<hunar>
I have three lines of code which I want to duplicate, in vim i would do vjjy and p to paste
<Regenaxer>
To copy some code the easiest is y%
<Regenaxer>
in your case 2yy
<Regenaxer>
3yy
<hunar>
Ah :D that was it, thanks
<Regenaxer>
"v" visual like in Vim is not implemented, I never used it but indeed would be nice
<hunar>
by the way, 3o doesn't add three lines below the cursor
<Regenaxer>
Oh, probably
<Regenaxer>
o just "opens"
<Regenaxer>
does not use the count, I did not think of that
<hunar>
What do you mean by open
<Regenaxer>
(didn't even know what it does in Vim, does it make 3 newlines)
<Regenaxer>
Old VI comman "o"pen
<Regenaxer>
open below
<Regenaxer>
while "O" opens above
<hunar>
Aha
<Regenaxer>
Is 3o usefuly
<Regenaxer>
?
<Regenaxer>
It makes identical stuff 3 times
<Regenaxer>
Sorry, must go
<Regenaxer>
we are cycling
<Regenaxer>
bbl
<hunar>
I just tried vi It works there too
<hunar>
Yes, just behaves like pressing o that many times :D I don't know about others but I personally use it usually.
<hunar>
No problem, keep cycling :)
<hunar>
And my finger is used to press Y instead of yy to copy a line
<hunar>
which doesn't work in vip
<hunar>
Sorry, not (pressing o that many times) but (pressing o then Esc that many times)
beneroth has joined #picolisp
<Regenaxer>
Pause :)
<Regenaxer>
I see!
<Regenaxer>
Interesting 9i works
<Regenaxer>
but 9o doesn't ;)
<Regenaxer>
Y should be easy to impement
<Regenaxer>
"o then Esc that many times" not really. o then arbitrary number of lines, then ESC
<Regenaxer>
then these lines are n-1 times duplicated
<Regenaxer>
I never did that though
<Regenaxer>
Hmm, Y in Vim is not consistent with D
<Regenaxer>
D deletes till end of line, *not* dd
<Regenaxer>
Y yanks full line, *like* yy
<Regenaxer>
also, yy is easier to type than Y (both on PC and Penti, in Penti I use repeat)
<hunar>
Hmm :/
<hunar>
Yeah, I can live with yy
<Regenaxer>
:)
<Regenaxer>
Good, pause over :)
<hunar>
But what is your procedure when It comes to separating two lines? For example I have a few lines that I want to separate to make it easier to read .. I go between them and 3o in vim
<hunar>
Just i then Enter Enter Enter ?
<hunar>
Not i, o
<beneroth>
Hi hunar, Regenaxer :)
<hunar>
Hi beneroth :)
razzy has quit [Ping timeout: 250 seconds]
<Regenaxer>
I use the dot a lot
<Regenaxer>
So the above 3o becomes o followed by 3 dots
<Regenaxer>
To split a line at a space I go to that space and use 's'
<Regenaxer>
's' followed some Tabs usually
<Regenaxer>
To insert a newline on several lines I do oESC
<Regenaxer>
then repeat j and .
<hunar>
Ok :) good enough for me..
<Regenaxer>
You know that Penti can also repeat the last 2 keys?
<Regenaxer>
and also the last 3
<Regenaxer>
so j and d and then just arpeggio thumb+repead
<hunar>
I don't currently use penti so I don't know the tricks yet, but it's good to know since I'll add it to the pentiTrainer
<hunar>
;D
<Regenaxer>
Perfect :)
<Regenaxer>
OK, off for shower now
<hunar>
I'm currently experimenting with (call 'tput) which I saw in the pendulum animation from rosseta code. I'm trying a simple gui which the user goes up and down and selects the training level
<beneroth>
cool project
<hunar>
:)
<hunar>
Regenaxer, another Issue that I usually have with vip is that backspace doesn't delete newline, for example currently I have a line with some text, the next line is )) and I want to move those )) to the end of the line above it .. In any editor I go infront of )) and press backspace, but vip doesn't like that :(
<Regenaxer>
Oh, right!
<Regenaxer>
True, that's a flaw. I think original Vi behaved the same
<hunar>
And I just saw that autoindenting with comma , doesn't work after an empty line is encountered
<Regenaxer>
yes, that's intentional
<Regenaxer>
Indents a paragraph so to say
<Regenaxer>
Otherwise it would never stop till EOF
<Regenaxer>
Also, I don't edit a function from top to down usually, so I can indent individual pieces
<hunar>
Hmm.. You're right .. I mainly/only use comma to detect missing parenthesis by looking at the indented code
<Regenaxer>
e.g. often I keep a block more to the left that it will be in the final function, because my screen is so narrow
<Regenaxer>
You do not use % ?
<Regenaxer>
for parens I mean
<hunar>
I use % too, but comma is faster.. when comma doesn't get help me get rid of the (EOF Overrun) I check with % which is a slower procedure for me :)
<Regenaxer>
Makes sense
<Regenaxer>
Another difference to Vim is p and P for *lines*
<Regenaxer>
It is good, but a little different
<Regenaxer>
similar to cw
<Regenaxer>
Hard to explain ;)
<hunar>
Ah, p P also doesn't repeat ... 3p
<Regenaxer>
I see
<Regenaxer>
Probably because here too I prefer dot
<Regenaxer>
Don't have to think of the number before the command ;)
<hunar>
Because of penti ;)
<Regenaxer>
Not in this case
<Regenaxer>
Dot is convenient on PC too
<Regenaxer>
even more convenient, cause easier to type
<hunar>
I don't know why but penti sounds like a cute girl's name to me :)
<Regenaxer>
really :)
<Regenaxer>
nice
<hunar>
I think the problem is me who got used to number repeats
<Regenaxer>
yeah, this is also good
<Regenaxer>
Seems I simply "forgot" to make some commands counted, because I never used them this way
<hunar>
I just googled (penti name) and got opposite results .. (The masculine name Penti is used in Danish. Penti is not very commonly used baby name for boy. It is not ranked with in the top 1000 names.) Its not even a girl's name :D