mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-03 22:53:22 +01:00
vim: Add gdefault setting to set /g as a default substitution flag (#47664)
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>
This commit is contained in:
1 parent
e77c528c1c
commit
41ce23f896
8 files changed
+166
-7
No files matched your search
@@ -0,0 +1,64 @@
|
||||
{"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"}}
|
||||
Reference in new issue
Block a user