Neovim
Language of VIM/NEOVIM
Language of VIM/NEOVIM
· ☕ 3 min read · ✍️ Syed Dawood
The first thing that may come to your mind when I say language of vim is Vim Script.No that’s not what I am talking about.

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.Switching to normal mode vim uses esc key which lies too far on the keyboard and ctrl-[ is painful to reach.So I’ve mapped it to keys available on the home row.It might seem an overkill , using 2 keys to do a job that just required 1 key.But trust me you will thank yourself for dropping this mapping into your .vimrc file after few days.


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