joshnajera / godot-vim

VIM bindings for godot 4
MIT License
235 stars 24 forks source link

Single D press deletes whole line [GD 4.1] #6

Open wrightwriter opened 1 year ago

wrightwriter commented 1 year ago

Most people would expect double D press to delete the line. And DIW to delete inside word or DI( to delete inside ()

joshnajera commented 11 months ago

Hey, I've been MIA personally... sorry about that. Odd, I thought I had it programmed differently.

Regardless, someone just contributed a change which I merged. It seems to include your desired functions.

AnderRasoVazquez commented 11 months ago

di( does nothing, could it be because on the command line instead of appearing di( appears (di ? It looks like it puts the "(" on the beginning.

Captura de pantalla 2023-10-06 025605

binury commented 2 months ago

di( does nothing, could it be because on the command line instead of appearing di( appears (di ? It looks like it puts the "(" on the beginning.

Captura de pantalla 2023-10-06 025605

<i> is not a motion by default. d expects a motion to follow, of course. 🤔 If you check your vim config, I’ll bet you find a custom binding you might have forgotten about creating. (Though it could be a plugin too)