You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is default '' at this time. Even if I set the value of <leader> in .vimrc.local, '<leader>gs' is still \gs.
There is a dirty fix way: set the value of <leader> on top of .vimrc.plugins file, but it destroyed the previous design about load order. It's better way to modify register_hotkey function.
Will the mapleader variable solve your problem? Basically, it will re-map the <leader> to any key you wish. You can learn it from :hep mapleader in Vim.
Activity
jwu commentedon Oct 20, 2016
Will the
mapleadervariable solve your problem? Basically, it will re-map the<leader>to any key you wish. You can learn it from:hep mapleaderin Vim.Tiny-Box commentedon Oct 20, 2016
Did I use the wrong way to set the value of
<leader>?I insert one line in
.vimrc.local:In vim,
:echo mapleaderis,, but if I want to global search current word under cursor by<leader>gg,,ggdoesn't work,\ggcan work well.My system is OS X EI Capitan 10.11.5, the version of vim is 7.3.