Reputation: 3521
Recently I acquaint myself with vim editor and its hotkey system, however I am not confident that I am ok with the first character in its system, I want to try another one as the first hotkey. How can I change the first key in a hotkey sequences from backslash to another in vim?
Upvotes: 2
Views: 925
Reputation: 62528
As Zsolt said, the common way to do this is to change mapleader and maplocalleader, the first one being more often used.
However, this works in a way that Vim simply takes the value of mapleader and substitutes it when sourcing Vim scripts. Therefore, after starting Vim changing mapleader does nothing, unless you're sourcing some additional files.
So, either take
let mapleader = "some-other-key"
and put it in your .vimrc
or re-source all the files in your $VIM and $VIMFILES hierarchy. The first way being more safe. Vim is designes to be quick to start and restart, after all.
If you provide specific examples of what plugins you're having trouble with, then maybe we can help more on that. But on what is given ...
Upvotes: 1
Reputation: 51593
Try
:let mapleader = ","
In an interactive session. To make it permanent, add it to your .vimrc
without the :
.
I'd recommend to read :help leader
.
Upvotes: 4