implement the difference between the 'w' motion and 'dw' motion using the transition table in vi-word-dfa, rather than convoluted if-branching

This commit is contained in:
2025-12-27 08:42:54 +00:00
parent 742b571b4e
commit 1df0952f08
3 changed files with 39 additions and 35 deletions

View File

@@ -60,6 +60,7 @@ struct
(* equivalent of vi's 'w' command *)
val nextWord = ViWordDfa.startOfNextWord
val nextWordForDelete = ViWordDfa.startOfNextWordForDelete
(* equivalent of vi's 'W' command *)
val nextWORD = ViCapsWordDfa.startOfNextWORD