Vocola macro for multiple file search and replace in VIM editor using Dragon NaturallySpeaking

Returned to vim as primary IDE recently because for various reasons visual studio code wasn’t playing nicely in cross-platform environments.
Currently working in Golang & C (including developing bindings with CGO).
Good results with nerdtree, ctrlp, ctags, cscope, omnicomplete plugins for code navigation (with the relevant vocola macros for key-binding incantations).

But by far the most surprising experience was search and replace in multiple files without a plug-in:


# utility macros
EscWait() := {esc} Wait(200); # IDEs sometimes need delay between keypress
CmdWait() := EscWait() ":" Wait(200); # IDEs sometimes need delay between keypress
<...Snip...>
## search and replace in multiple files without plug-in
search with = CmdWait() "let @z=''" {left_1};
LoadReg() := Wait(200) {ctrl+r} Wait(200) "z" Wait(200);
replace in files = CmdWait() "args `grep -r -l '' .`" {left_4} LoadReg() {enter} CmdWait() "argdo %s///gc | update" {left_13} LoadReg() {right_1};
<...Snip>

reference: this post

I’m finding this extremely useful and wanted to share.

Thanks again Mark and others for Natlink / Vocola.

work and renovations

work is interesting challenging (working on a Exascale computing project for Intel) and it is good to be part of such a serious team, very nice to be working within an infrastructure where I can focus on development and offload testing/documentation/project management to specialists (I am used to have to do a lot of that myself). We embark on some house renovations in order to make use of the downstairs more functional and create a room for Ori, encountering various hurdles but builders have been able to get on with the foundations/digging (currently foundations flooded due to rain though).

Update

Continuing to enjoy watching Ori grow in body and mind, he continues to be as cute as ever and entertains us with his beautiful noises and insatiable curiosity.

We thoroughly enjoyed Wilderness festival in Charlbury/Cornbury estate, lovely birthday with family and I’m very excited about Anjunadeep open-air festival in London on Sunday with an incredible lineup.

Work at Intel continues to stimulate and is ramping up steeply with a challenging Exascale project with ambitious timelines. I’m lucky to be working closely with some incredible engineers across the globe.

Stephen Hawking Memorial – Westminster Abbey

Tribute to Stephen Hawking at his memorial service in Westminster Abbey:

We are all grateful to be here to celebrate the legacy of Stephen Hawking.

Stephen heard that I had broken my neck early in 2008 – through Lucy. He immediately reached out to help our family.

He helped us recognise and face challenges in our lives with positivity.

Stephen showed that when time is precious, we must make space for what makes us real. He was exceptionally efficient at choosing his words and making them count. It took him a long time to create his words so he didn’t chitchat and got straight to the point. He had a wicked sense of humour and admired beauty, and even though time was tight he always made sure to share his love for life. That is what made him accessible to so many of us.

Stephen showed how we should all expect the best from one another. Why? Because with higher expectations come greater achievements. He demonstrated that disability is not something that prevents success: the supposed constraints are often imaginary. He showed that we should encourage achievement by expecting it of everyone. We should understand that people have differing abilities, whether visible or invisible, and encourage the best of them. In this way we can all be enabled to be productive, to feel valued and to share love – whatever our ability.

Whether in the NASA space simulator or the CERN particle accelerator Stephen would stop at nothing in working for the good of all.

My wife Ellen and I are besotted by our son who was born hours after Stephen’s passing. Stephen is Ori’s middle name. We look forward to Ori learning about the indefatigable and wise man who really has influenced the world for the better.

Ori’s generation can emulate Stephen in pursuit of sustainable and rewarding futures for all humanity. It is they who will carry Stephen’s influence across the universe.

Media links:

audio link

https://www.cambridge-news.co.uk/news/cambridge-news/stephen-hawking-memorial-celebrity-guests-14778755

https://mobile.twitter.com/itvnews/status/1007607090356064256/video/1

https://www.theguardian.com/science/2018/jun/15/stephen-hawking-ashes-interred-westminster-abbey

https://www.westminster-abbey.org/abbey-news/ashes-of-stephen-hawking-buried-in-the-abbey/

https://www.cambridge-news.co.uk/news/cambridge-news/stephen-hawking-memorial-service-atmosphere-14791324