7 most useful vim mappings
· ☕ 3 min read · ✍️ Syed Dawood
01 Leader Vim's default mapping for leader is /. Most peoples remap it to , ,which I personally think is not a good choice. Remap it to either CAPSLOCK or <SPACE> key, and find out which works better for you.For me CAPSLOCK didn't workout well. let mapleader=" " # or noremap <Space> <Leader> 02 ESCAPE In modal editor like VIM, we constantly need to switch modes.

Registers in VIM-NEOVIM
· ☕ 4 min read · ✍️ Syed Dawood
Unnamed " Vim uses unnamed register as the default register. It is often used for all delete, change, copy or cut operations. It also points to the last used register unless last used register is Black hole register. Whenever you use y/Y or p/P commands , you are using unnamed register.It is still surprising to see name for an unnamed register.It can be explicitly accessed using "" in normal mode or " in insert mode Numbered 0 to 9 Vim gradually fills up these registers as you keep using delete and copy(yank) commands.