To yank/delete into a named buffer, prefix the command with “l where l is the letter of the buffer e.g. “dyy And to paste from the buffer do the same e.g. “dp
A common problem when pasting into Vi from a shell is that it seems to indent already indented code. If you run the following before pasting :set paste and after :set nopaste then this problem will be solved.