http://items.sjbach.com/319/configuring-vim-rightからSpace、vim で mapleader として使用できるはずだとわかりました。試してみましたが、うまくいかないようです。それを機能させた人はいますか?
試した:
let mapleader = <space>
http://items.sjbach.com/319/configuring-vim-rightからSpace、vim で mapleader として使用できるはずだとわかりました。試してみましたが、うまくいかないようです。それを機能させた人はいますか?
試した:
let mapleader = <space>
Try the following instead:
let mapleader=" "
And remember to write the following line before that, to make sure spacebar doesn't have any mapping beforehand:
nnoremap <SPACE> <Nop>
Mapleader は Vim 文字列変数です。リーダーとしてスペースを使用するには、特殊文字をエスケープする必要があります。
let mapleader="\<Space>"
詳細については、
http://vimdoc.sourceforge.net/htmldoc/eval.html#expr-quote
編集:
これは、私のバージョンの Vim では機能しなくなりました。を実行して通常モードでスペースバーのマッピングを解除するというコメントの提案があってもnnoremap <SPACE> <Nop>
。
以下の回答にある解決策に行き着きます。
map <Space> <Leader>