On Wed, Jan 20, 2021 at 4:20 PM Ernie Rael <[email protected]> wrote:
>
> Hi all,
>
> jVi had a feature request, something about supporting
>
>     let @a= "some string"
>
> which is supposed to initialized the named buffer at startup. Something
> the user wanted to use with macros. I pointed out that jVi persists
> named buffers between session and that satisfied his requirement. But, I
> can see how a feature like this would be handy.
>
> I can't find a description of the "@a=" behavior in vimhelp. A pointer
> is appreciated.
>
> -ernie

Possibility 1:
If the < or " item is not present in the 'viminfo' option then all
registers are saved on shutdown and restored at startup. If it is
present with value zero, then no registers are saved. If it is present
with a value >0 then at most that number of lines is saved for each
register.
        See :help 'vi'

Possibility 2:
Most registers can be treated as string variables named @a, @b etc.
They can be read by including them in an expression. Most of them can
also be set by means of a :let statement. To do it at startup, put it
in your vimrc.
        See:
                :help :let-@
                :help registers
                :help expr-register

You can also put a register into your editfile, or delete or yank into
a register. I use the following mappings but of course they can also
be typed:
        :map <F4>     :$put +<CR>
        :map <S-F4>  :0put +<CR>
The above puts the clipboard linewise, after the last line for F4 or
before the first line for Shift-F4
        See also:
                :help y
                :help d
                :help p
                :help P
                :help :yank
                :help :delete
                :help :put

Best regards,
Tony.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAJkCKXuU0P2nRhc-7P0psx-Z7qJ6gte55Bqm3mEAPP%2BfVTi35A%40mail.gmail.com.

Raspunde prin e-mail lui