« first day (274 days earlier)      last day (1537 days later) » 

1:32 AM
@DJMcMayhem what's the difference in feedkeys and exe norm!?
 
1:57 AM
Asking with regards to implementing / and ? in operator-pending mode
 
 
2 hours later…
3:29 AM
@nmjcman101 (Sorry for not getting back to you earlier) I would recommend going with exe norm instead of feedkeys. They're pretty similar, but feedkeys can sometimes do weird things with the typeahead queue
It's kinda hard to explain the differences though, cause they rarely matter
Compare the difference between these two functions:
    function! Foo1()
      call feedkeys('a')
      let g:foo = getchar()
    endfunction

    function! Foo2()
      norm a
      let g:foo = getchar()
    endfunction
 
 
10 hours later…
1:22 PM
@DJMcMayhem In that case, I may change the Search function to use exe norm instead of feedkeys, because that worked better when I was adding operator-pending mode to the search operations.
 
 
3 hours later…
4:41 PM
That sounds like a good idea
 
Also was thinking about a "try macro" operator, so that nesting macros would be possible. Example where @q=l@q (Go to the end of the line), then @w=TRY(@q)axj0, running @w would put an x at the end of every line
Currently this would need to be @w=:try|exe"norm!@q"|endt^M
 
5:04 PM
@nmjcman101 That wouldn't be very hard to implement. I could probably whip it up in ten minutes or so. (I was actually just thinking the same thing yesterday)
Actually wait, I don't think you need the try
So you could use the norm mapping
 
5:20 PM
The norm just eats the error?
(@DJMcMayhem)
:O that's super awesome
Might be cool then to have ò record to successive registers (maybe q,w,e) so that it could be used multiple times or nested. Maybe that's already possible?
 
 
1 hour later…
6:23 PM
Woah, that's an awesome idea!
 
 
4 hours later…
10:21 PM
Users/answers:
Users:          Answers:
DJMcMayhem      106
Kritixi Lithos  14
nmjcman101      11
Conor O'Brien   1
DLosc           1
Gaffi           1
Jordan          1
Riker           1
Wheat Wizard    1
alphabot        1
carusocomputing 1
statox          1
5
(Keep in mind some of these might be slightly off, a lot of this was by hand)
 
10:41 PM
@DJMcMayhem do you know which answer was mine? (just wondering if you have it on hand)
 
Uhhhhh....
I think it was hello world, let me go check
2
A: "Hello, World!"

Conor O'BrienV, 14 bytes iHello, World! Try it online! This enters insert mode, then inserts Hello, World! into the field.

 
indeed it is! I really need to use V more
 
Hey, I actually wrote a (partial) tutorial!
 
And verbose mode should make it a lot easier too
 
10:59 PM
@DJMcMayhem holy shit I haven't upvoted that lol
upvotes
 
what on earth is yanking in vim
it sounds like an australian insult
 
copy-pasting text basically
 
so, basically, copy <motion selection> to clipboard
 
i think so yeah
i don't vim too good tho so ask dj
 
@ConorO'Brien exactly. yw is like shift-ctrl-right, ctrl-c in traditional editors
 
11:05 PM
oh cool!
 
And it works the same for every motion
Although to nitpick on terminology, s/clipboard/register
 
what's the dif?
 
there are many registers
each with their own name
iirc * is the yanking one
 
it's basically vars in vim
 
11:08 PM
@Riker no, that's the system register
 
ah
what's the yanking one then?
 
is the clipboard a vim register?
 
Yeah, one of them
The default register is called "The unnamed register", and that's what y Yanks to by default
 
ah
 

« first day (274 days earlier)      last day (1537 days later) »