commit f2069a8ab2b968a4cfc180e6059f6b64d7a8dad4 parent f3fe977e55434272d84c0aede05acb85780f858b Author: pyratebeard <root@pyratebeard.net> Date: Tue, 9 May 2023 22:18:38 +0100 reg_5_standing_by Diffstat:
M | entry/reg_5_standing_by.md | | | 12 | +++++++++++- |
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/entry/reg_5_standing_by.md b/entry/reg_5_standing_by.md @@ -1,3 +1,13 @@ After getting the hang of [buffers](https://log.pyratebeard.net/entry/20230412-buffer_me_up.html) in [Vim](https://www.vim.org/) I looked at [registers](https://www.tutorialspoint.com/vim/vim_registers.htm). -As with other text editors it is possible to cut (yank) and paste content. When something is yanked in Vim it is entered into a register. +As with other text editors it is possible to cut (yank) and paste content. When something is yanked in Vim it is entered into a register. There are different registers available for use including the letters a-z and numbers 0-9. If a register is not specified then Vim will use the unnamed register, `"`. + +To view registers incant +``` +:registers +``` + +As with buffers I use a leader keymap in my ~/.vimrc +``` +nnoremap <leader>r :registers<CR> +```