For example one could have many of these for different tasks (with different values for different registers based on the task):

function !RegisterTemplateTest() 

    # Set contents of said register
    let @p='andy'
    let @w='blah'
    let @b='someBunchahText'
    let @v='dfaskfasf'

And have them setup with some sort of init function that calls them.

  • 1
    I have a side question: why do this, unless those registers are meant for interactive use? Jw, since I’ve not done it before, other than to create a macro and play it. – D. Ben Knoble May 20 '19 at 21:37
  • @D.BenKnoble define interactive use... – leeand00 May 20 '19 at 21:38
  • I'm aware of c^n and all of that... – leeand00 May 20 '19 at 21:39
  • I don't understand your question: Are you searching for a generic english term to talk about setting a bunch of data you'll need later like "setup" or "fixture" or something like this, for a term specific to vim about setting registers, for something else? Why do you need this term? I don't really see how it is related to vim or to a text editor at all. – statox May 21 '19 at 9:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.