mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-24 13:39:08 +00:00
Add support for Vim's `gdefault` option which makes the `:substitute` command replace all matches in a line by default, instead of just the first match. When enabled, the `/g` flag inverts this behavior. - Add `vim.gdefault` setting - Add `:set gdefault`, `:set nogdefault` (and short forms `:set gd`, `:set nogd`) - Fix handling of multiple `/g` flags so that each one inverts the one before Closes #36209 Release Notes: - vim: Add `vim.gdefault` setting to make `/g` (replace all matches in a line) the default for substitutions, along with `:set gdefault` and `:set nogdefault` commands (short forms: `gd`, `nogd`) --------- Co-authored-by: dino <dinojoaocosta@gmail.com>
64 lines
1,006 B
JSON
64 lines
1,006 B
JSON
{"Key":":"}
|
|
{"Key":"s"}
|
|
{"Key":"e"}
|
|
{"Key":"t"}
|
|
{"Key":"space"}
|
|
{"Key":"g"}
|
|
{"Key":"d"}
|
|
{"Key":"e"}
|
|
{"Key":"f"}
|
|
{"Key":"a"}
|
|
{"Key":"u"}
|
|
{"Key":"l"}
|
|
{"Key":"t"}
|
|
{"Key":"enter"}
|
|
{"Put":{"state":"ˇaa aa aa aa\naa\naa"}}
|
|
{"Key":":"}
|
|
{"Key":"s"}
|
|
{"Key":"/"}
|
|
{"Key":"a"}
|
|
{"Key":"a"}
|
|
{"Key":"/"}
|
|
{"Key":"b"}
|
|
{"Key":"b"}
|
|
{"Key":"enter"}
|
|
{"Get":{"state":"ˇbb bb bb bb\naa\naa","mode":"Normal"}}
|
|
{"Key":":"}
|
|
{"Key":"s"}
|
|
{"Key":"/"}
|
|
{"Key":"b"}
|
|
{"Key":"b"}
|
|
{"Key":"/"}
|
|
{"Key":"c"}
|
|
{"Key":"c"}
|
|
{"Key":"/"}
|
|
{"Key":"g"}
|
|
{"Key":"enter"}
|
|
{"Get":{"state":"ˇcc bb bb bb\naa\naa","mode":"Normal"}}
|
|
{"Key":":"}
|
|
{"Key":"s"}
|
|
{"Key":"/"}
|
|
{"Key":"b"}
|
|
{"Key":"b"}
|
|
{"Key":"/"}
|
|
{"Key":"d"}
|
|
{"Key":"d"}
|
|
{"Key":"/"}
|
|
{"Key":"g"}
|
|
{"Key":"g"}
|
|
{"Key":"enter"}
|
|
{"Get":{"state":"ˇcc dd dd dd\naa\naa","mode":"Normal"}}
|
|
{"Key":":"}
|
|
{"Key":"s"}
|
|
{"Key":"/"}
|
|
{"Key":"c"}
|
|
{"Key":"c"}
|
|
{"Key":"/"}
|
|
{"Key":"e"}
|
|
{"Key":"e"}
|
|
{"Key":"/"}
|
|
{"Key":"g"}
|
|
{"Key":"g"}
|
|
{"Key":"g"}
|
|
{"Key":"enter"}
|
|
{"Get":{"state":"ˇee dd dd dd\naa\naa","mode":"Normal"}}
|