Skip to content

Commit 2d2b5fa

Browse files
author
sql-koala
committed
update readme
1 parent 386a3b1 commit 2d2b5fa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,13 @@ Some examples:
592592
- `"test"` with cursor inside quotes type `ds"` to end up with `test`
593593
- `"test"` with cursor inside quotes type `cs"t` and enter `123>` to end up with `<123>test</123>`
594594

595+
Surround mappings:
596+
since 1.20, we internally use special key notation for surround ( `<plugys>`, `<plugcs>`, `<plugds>` ), for which we create default mappings. This has two consequences:
597+
598+
- custom mappings need to use these too.\
599+
Example: `nnoremap s" <plugys>iw"`
600+
- the default mappings will not fit for users of custom keyboard layouts (workman, dvorak, etc.).
601+
They need to disable them using `vim.disableDefaultPluginMappings`
595602
### vim-commentary
596603

597604
Similar to [vim-commentary](https://github.com/tpope/vim-commentary), but uses the VS Code native _Toggle Line Comment_ and _Toggle Block Comment_ features.

0 commit comments

Comments
 (0)