Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set Vim's Local Leader to Backslash?

Tags:

vim

This works fine for setting local leader to the minus key:

:let mapleader = "-"

I can't figure out how to set it to backslash. I've tried the following with no avail:

:let mapleader = "\"

:let mapleader = "\"

:let mapleader = \

Any help is greatly appreciated.

like image 286
newUserNameHere Avatar asked Nov 27 '22 21:11

newUserNameHere


1 Answers

Either escape the backslash or use single quotes:

:let mapleader = "\\"
:let mapleader = '\'
like image 72
Nikita Kouevda Avatar answered Dec 15 '22 02:12

Nikita Kouevda