How does Vim control modes states, such as entering to insert mode from normal mode? How is the C implementation? How can we patch? This is a journey to learn about them.
Normal modeからInsert modeに入る9つの四天王 ● a カーソルの後に挿入 ● A 行末に挿入 (:startinsert!) ● iと同じ ● i カーソルの前に挿入 (:startinsert) ● I (インデントのあとの)行先頭に挿入 ● gI 行先頭に挿入 ● gi 最後に入力あった場所に挿入 ● o 下の行を作ってそこに挿入 ● O 上の行を作ってそこに挿入