@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
@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.
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
@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)
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?