docs: Add clarifying note about Vim subword motion (#44535)
Clarify the docs regarding how operators are affected when subword motion in Vim is activated. Ref: https://github.com/zed-industries/zed/issues/23344#issuecomment-3186025873. Release Notes: - N/A --------- Co-authored-by: Kunall Banerjee <hey@kimchiii.space>
This commit is contained in:
@@ -471,7 +471,7 @@ But you cannot use the same shortcuts to move between all the editor docks (the
|
||||
}
|
||||
```
|
||||
|
||||
Subword motion, which allows you to navigate and select individual words in camelCase or snake_case, is not enabled by default. To enable it, add these bindings to your keymap.
|
||||
Subword motion, which allows you to navigate and select individual words in `camelCase` or `snake_case`, is not enabled by default. To enable it, add these bindings to your keymap.
|
||||
|
||||
```json [settings]
|
||||
{
|
||||
@@ -485,6 +485,9 @@ Subword motion, which allows you to navigate and select individual words in came
|
||||
}
|
||||
```
|
||||
|
||||
> Note: Operations like `dw` remain unaffected. If you would like operations to
|
||||
> also use subword motion, remove `vim_mode != operator` from the `context`.
|
||||
|
||||
Vim mode comes with shortcuts to surround the selection in normal mode (`ys`), but it doesn't have a shortcut to add surrounds in visual mode. By default, `shift-s` substitutes the selection (erases the text and enters insert mode). To use `shift-s` to add surrounds in visual mode, you can add the following object to your keymap.
|
||||
|
||||
```json [settings]
|
||||
|
||||
Reference in New Issue
Block a user