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.

voice recognition advice

In summary I use Dragon NaturallySpeaking version 11.5, there is a version 12 but I don’t use it because it has not been compatible with a scripting environments called NatLink that I use. For anyone not having this requirement (and most people don’t) I would go with the latest and greatest e.g. Windows 8 and Dragon NaturallySpeaking 12.
To avoid bottlenecks I would go with a significant amount of RAM (random access memory, at least four gigabytes, although improvements will be seen all the way up to 16!) And voice recognition, because of its reliance on processing power and audio input quality will be more accurate and responsive with powerful computer and sensitive microphone (iPhone is great or alternatively a USBheadset) it makes a significant difference if the microphone is reliably the same distance from the mouth each time you use it, the should be about 1 inch. The tutorials and information about what makes for good voice recognition within the software are very useful. Particularly information about vocal phrasing enunciation etc
I use a possum vivo for switch-based environmental control usage, this is limited but reliable.