What are the benefits of having custom commands with the <Leader> key on Vim?

I think he explains it. How much more efficient is this key?

+3
source share
1 answer

One obvious advantage is whenever you decide to change combinations that you could easily make by changing the key mapleader.

This can happen when your favorite plugin conflicts with your favorite shortcut. By changing mapleader, you essentially keep the shortcut, but change it at the same time.

To (mapleader ,)

myFavoriteAction = ,cc

After (mapleader \)

myFavoriteAction = \cc

+5
source

Source: https://habr.com/ru/post/1729755/


All Articles