aboutsummaryrefslogtreecommitdiffstats
path: root/vim-mode/vim_mode.pl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2010-09-26 01:10:43 +0000
committerSimon Ruderich <simon@ruderich.org>2010-09-26 01:10:43 +0000
commit0b55d9189f9c05738176685dc23bb6e3981d74d7 (patch)
tree925968dbf4e17947d3d77a7bfd47bcf7b37b4dc4 /vim-mode/vim_mode.pl
parentbugfix for history movement when history list is empty. (diff)
downloadirssi-scripts-0b55d9189f9c05738176685dc23bb6e3981d74d7.tar.gz
irssi-scripts-0b55d9189f9c05738176685dc23bb6e3981d74d7.zip
vim_mode: Implement a.
Diffstat (limited to 'vim-mode/vim_mode.pl')
-rw-r--r--vim-mode/vim_mode.pl7
1 files changed, 6 insertions, 1 deletions
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);