grepping substitute commands from file into current buffer

2015-04-18 Thread Graham Lawrence
As my typical use of vim is applying the substitute command, I decided to maintain a file of previously used such commands, and to grep a selection of them back into my current buffer by providing grep with the first few characters of the pattern for the substitute I wish to make. For that, I have

Re: grepping substitute commands from file into current buffer

2015-04-18 Thread Graham Lawrence
I guess the visual bell trashes a mapping, and I couldn't find any way to have vim ignore it (set vb t_vb="" just stops it flashing I guess), so I've removed the pl sequence and used a while loop for that process and all is now well. On Sat, Apr 18, 2015 at 9:46 AM, Graham Lawrence wrote: > As m