1

Re: :r[ead] missing?

Greetings all,

New user of ViEmu -- thank you -- my sanity is somewhat preserved!

Question:  I would like to map a key to read in a file for function/file headers, but the :r command doesn't appear to be implemented.  Is there another / better way to do this?  The header is rather long, so I'd prefer to not map it as one long abbreviation or map.

Thanks!

2

Re: :r[ead] missing?

Hello kilgore,

Thanks for the kind comment. Indeed, :r is not implemented. Your best bet is probably to write a VS macro (say 'IncludeFile') and call it with the :macro command from a mapping in this way:

  :nnoremap <c-s-F5> :macro MyMacros.RecordingModule.IncludeFile<return>

Let me know if I can help with anything else. I plan to implement :r some time in the future, but it will take some time until it's ready.

Regards,

  Jon

3

Re: :r[ead] missing?

Thanks!  that works...
Good job on this -- the purchase order (sigh) is in the pipeline...

4

Re: :r[ead] missing?

Thanks kilgore, glad it worked.

Regards,

  Jon