aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Feist <shabble@cowu.be>2010-09-20 22:49:05 +0000
committerTom Feist <shabble@cowu.be>2010-09-20 22:49:05 +0000
commit12c64eb59ef420526c3817b715844918c9270706 (patch)
tree6572e5b1759f05f64ce1249ffee8c42211d148c5
parentmoved to an emulated keystrokes approach rather than trying to reimplement the (diff)
downloadirssi-scripts-12c64eb59ef420526c3817b715844918c9270706.tar.gz
irssi-scripts-12c64eb59ef420526c3817b715844918c9270706.zip
added some brief documentation in comments to vim-mode
Diffstat (limited to '')
-rw-r--r--vim-mode/vim_mode.pl28
1 files changed, 27 insertions, 1 deletions
diff --git a/vim-mode/vim_mode.pl b/vim-mode/vim_mode.pl
index 2418eb0..97105d1 100644
--- a/vim-mode/vim_mode.pl
+++ b/vim-mode/vim_mode.pl
@@ -1,10 +1,36 @@
+# A script to emulate some of the vi(m) features for the Irssi inputline.
+#
+# Currently supported features:
+#
+# * Insert/Command mode. Escape enter command mode.
+# * cursor motion with: h, l
+# * cursor word motion with: w, b
+# * delete at cursor: x
+# * Insert mode at pos: i
+# * Insert mode at end: I
+# * insert mode at start: A
+
+# Installation:
+#
+# The usual, stick in scripts dir, /script load vim_mode.pl ...
+#
+# Use the following command to get a statusbar item that shows which mode you're
+# in. Annoying vi bleeping not yet supported :)
+
+# /statusbar window add vim_mode to get the status.
+
+# NOTE: This is still under extreme development, and there's a whole bunch of
+# debugging output. Edit the script to remove all the print statements if it
+# bothers you.
+
+# Have fun!
+
use strict;
use warnings;
use Irssi;
use Irssi::TextUI; # for sbar_items_redraw
-# /statusbar window add vim_mode to get the status.
use vars qw($VERSION %IRSSI);
$VERSION = "1.0.1";