mirror of
https://github.com/esm7/obsidian-vimrc-support.git
synced 2026-07-22 05:00:25 +00:00
Note on <Space> is unnecessary
This commit is contained in:
parent
10c5a580f9
commit
b3beeae815
1 changed files with 0 additions and 10 deletions
10
README.md
10
README.md
|
|
@ -231,16 +231,6 @@ The default leader key is `\` (backslash), matching Vim's default.
|
|||
|
||||
`<leader>` works in all mapping commands (`map`, `nmap`, `noremap`, `imap`, `vmap`, etc.) and is case-insensitive — `<Leader>`, `<LEADER>`, and `<leader>` all work.
|
||||
|
||||
If you set `let mapleader = "<Space>"`, you should also add `unmap <Space>` before your leader mappings to free Space from its default binding:
|
||||
|
||||
```vim
|
||||
let mapleader = "<Space>"
|
||||
unmap <Space>
|
||||
nmap <leader>fs :obcommand editor:save-file<CR>
|
||||
```
|
||||
|
||||
Space continues to work normally in insert mode.
|
||||
|
||||
You can change the leader key mid-file — each `let mapleader` only affects mappings that come after it, matching Vim's behavior.
|
||||
|
||||
## Emulate Common Vim Commands via Obsidian commands
|
||||
|
|
|
|||
Loading…
Reference in a new issue