vim: Prevent around word operations from selecting indentation (#24635)
Closes https://github.com/zed-industries/zed/issues/15323 Changes: Added check for first word on line Tested `v/c/d/y aw`. Matches standard neovim. |initial|old|new| |---|---|---| ||| Release Notes: - vim: Prevent around word operations from selecting indentation
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{"Put":{"state":" ˇconst f = (x: unknown) => {"}}
|
||||
{"Key":"v"}
|
||||
{"Key":"a"}
|
||||
{"Key":"w"}
|
||||
{"Get":{"state":" «const ˇ»f = (x: unknown) => {","mode":"Visual"}}
|
||||
{"Put":{"state":" ˇconst f = (x: unknown) => {"}}
|
||||
{"Key":"y"}
|
||||
{"Key":"a"}
|
||||
{"Key":"w"}
|
||||
{"Get":{"state":" ˇconst f = (x: unknown) => {","mode":"Normal"}}
|
||||
{"ReadRegister":{"name":"\"","value":"const "}}
|
||||
{"Put":{"state":" ˇconst f = (x: unknown) => {"}}
|
||||
{"Key":"d"}
|
||||
{"Key":"a"}
|
||||
{"Key":"w"}
|
||||
{"Get":{"state":" ˇf = (x: unknown) => {","mode":"Normal"}}
|
||||
{"ReadRegister":{"name":"\"","value":"const "}}
|
||||
{"Put":{"state":" ˇconst f = (x: unknown) => {"}}
|
||||
{"Key":"c"}
|
||||
{"Key":"a"}
|
||||
{"Key":"w"}
|
||||
{"Get":{"state":" ˇf = (x: unknown) => {","mode":"Insert"}}
|
||||
{"ReadRegister":{"name":"\"","value":"const "}}
|
||||
Reference in New Issue
Block a user