From 836082e9ef53f4d23e4e9d939b401dbae1fbbfd9 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Wed, 22 Feb 2017 21:25:17 +0800 Subject: [PATCH] Add faq for how to use space as leader --- README.md | 2 +- autoload/SpaceVim.vim | 5 +++++ config/plugins_before/vim-leader-guide.vim | 4 ++-- doc/SpaceVim.txt | 6 ++++++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f17481a05..38a1a4eb1 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ For learning about Vim in general, read [vim-galore](https://github.com/mhinz/vi [![Throughput Graph](https://graphs.waffle.io/SpaceVim/SpaceVim/throughput.svg)](https://waffle.io/SpaceVim/SpaceVim/metrics/throughput) #### Community -Try these Neovim hangouts for any questions, problems or comments. +Try these Neovim hangouts for any questions, problems or comments. - Ask - [issue tracker](https://github.com/SpaceVim/SpaceVim/issues) for issue and feature requests - vi StackExchange for "how to" & configuration questions diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index c84c8f6d5..b877263c7 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -378,3 +378,8 @@ endfunction " binding as ``, so maybe you can change the `cedit` option or use " `+`. " < +" +" 4. How to use `` as ``? +" > +" Add `let mapleader = "\"` to `~/.SpaceVim.d/init.vim` +" < diff --git a/config/plugins_before/vim-leader-guide.vim b/config/plugins_before/vim-leader-guide.vim index c4ac2d0f6..6f02ce82d 100644 --- a/config/plugins_before/vim-leader-guide.vim +++ b/config/plugins_before/vim-leader-guide.vim @@ -1,4 +1,4 @@ if g:spacevim_realtime_leader_guide - nnoremap :LeaderGuide '\' - vnoremap :LeaderGuideVisual '\' + nnoremap :LeaderGuide get(g:, 'mapleader', '\') + vnoremap :LeaderGuideVisual get(g:, 'mapleader', '\') endif diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt index cee353e4e..f08086537 100644 --- a/doc/SpaceVim.txt +++ b/doc/SpaceVim.txt @@ -755,5 +755,11 @@ FAQ *SpaceVim-faq* `+`. < + 4. How to use `` as ``? + +> + Add `let mapleader = "\"` to `~/.SpaceVim.d/init.vim` +< + vim:tw=78:ts=8:ft=help:norl: