X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=vim-leader%2FREADME.md;fp=vim-leader%2FREADME.md;h=fc45b46e4d3dde9cef54617a818c9084a6f758d1;hb=4731a08b78f16d26088607fe0751593c924a5a65;hp=0000000000000000000000000000000000000000;hpb=499f4a2043833ff366d31ff2e9fc9036c552d4eb;p=webi-installers%2F.git diff --git a/vim-leader/README.md b/vim-leader/README.md new file mode 100644 index 0000000..fc45b46 --- /dev/null +++ b/vim-leader/README.md @@ -0,0 +1,31 @@ +--- +title: vim-leader +homepage: https://webinstall.dev/vim-leader +tagline: | + vim leader maps Space as Leader, keep Backslash and Comma as aliases +--- + +To update (replacing the current version) run `webi vim-leader`. + +## Cheat Sheet + +> `let mapleader = " "` + +The `` key is typically used for your own custom shortcuts. + +By default it's mapped to `\` (backslash) - a legacy from a time when `\` was in +a more accessible place - but most people remap it to `,` or ` ` (space). + +This vim-leader plugin makes Space the Leader key, but also remaps `\` and `,` +as aliases. + +### How to configure manually + +The Leader key **_MUST_** be defined before any mappings that use it (probably +before any plugins) - pretty the first thing in your `~/.vimrc`. + +```vim +let mapleader = ' ' +nmap +nmap , +```