From 0b55d9189f9c05738176685dc23bb6e3981d74d7 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 26 Sep 2010 03:10:43 +0200 Subject: vim_mode: Implement a. --- vim-mode/vim_mode.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl index 3bf43ac..7730889 100644 --- a/vim-mode/vim_mode.pl +++ b/vim-mode/vim_mode.pl @@ -6,7 +6,7 @@ # * cursor motion with: h, l # * cursor word motion with: w, b, e # * delete at cursor: x -# * Insert mode at pos: i +# * Insert mode at pos: i, a # * Insert mode at start: I # * insert mode at end: A @@ -136,6 +136,7 @@ my $movements # insert mode 'i' => { func => \&cmd_movement_i }, 'I' => { func => \&cmd_movement_I }, + 'a' => { func => \&cmd_movement_a }, 'A' => { func => \&cmd_movement_A }, }; @@ -359,6 +360,10 @@ sub cmd_movement_I { cmd_movement_0(); _update_mode(M_INS); } +sub cmd_movement_a { + cmd_movement_l(1, _input_pos()); + _update_mode(M_INS); +} sub cmd_movement_A { cmd_movement_dollar(); _update_mode(M_INS); -- cgit v1.2.3