vim: f and t multiline option (#8448)

I'm not sure how compliant you're aiming to be with vim, but the `f`
behavior is more useful when it can search on multiple lines instead of
a single one, so I'd like to propose this change.

This change is quite frequent in vim/neovim as a plugin (e.g.
[clever-f](https://github.com/VSCodeVim/Vim),
[improved-ft](https://github.com/backdround/improved-ft.nvim), etc), and
in other vim emulations (e.g.
[vscode-vim](https://github.com/VSCodeVim/Vim)).
This commit is contained in:
Rom Grk authored and GitHub committed 2024-02-27 19:34:19 -07:00
1 parent fe610de965
commit c92675f45e
6 files changed
+186 -37

No files matched your search

@@ -144,6 +144,23 @@ Currently supported vim-specific commands (as of Zed 0.106):
to sort the current selection (with i, case-insensitively)
```
## Vim settings
Some vim settings are available to modify the default vim behavior:
```json
{
"vim": {
// "always": use system clipboard
// "never": don't use system clipboard
// "on_yank": use system clipboard for yank operations
"use_system_clipboard": "always",
// Enable multi-line find for `f` and `t` motions
"use_multiline_find": false
}
}
```
## Related settings
There are a few Zed settings that you may also enjoy if you use vim mode: