lv のkey binding
最近ではpagerにはlvを使わせていただいています。よく、*.logとかを渡して :n で次々にファイルを変えてみていくのですが、諸般の理由で英語配列好きなので、 : を入力するのにShiftキー(Shift+;)を押す必要があります。これファイルが多いとき超絶面倒臭いです。nを入力するときにはShiftキーを離さなければなりません。すこし前までは、nでもNでもいいようにいじって使っていたのですが、ふと ; に何も割り当てられていないことに気づいたので、今はこれで落ち着いています。
diff -ur lv451/src/keybind.h lv451.ore/src/keybind.h --- lv451/src/keybind.h 2003-11-13 12:08:19.000000000 +0900 +++ lv451.ore/src/keybind.h 2007-10-03 10:50:49.000000000 +0900 @@ -70,7 +70,7 @@ CommandNull, /* '8' */ CommandNull, /* '9' */ CommandColon, /* ':' */ - CommandNull, /* ';' */ + CommandColon, /* ';' */ CommandTopOfFile, /* '<' */ CommandFileStatus, /* '=' */ CommandBottomOfFile, /* '>' */
よく考えたら初期設定ファイルみたいなのあるのかな、と探してみましたが、
Customization for command key bindings
Please modify the keybind table in keybind.h.
とWebサイトにかいてありました。
ちなみにAIXではこれをやると少しだけ幸せになりました。
diff -ur lv451/src/guesslocale.c lv451.ore/src/guesslocale.c --- lv451/src/guesslocale.c 2004-01-05 17:41:22.000000000 +0900 +++ lv451.ore/src/guesslocale.c 2007-11-18 23:12:50.000000000 +0900 @@ -96,6 +96,7 @@ else if ( !strcmp2(nl, "BIG5") ) c = BIG_FIVE; else if ( !strcmp2(nl, "SHIFT_JIS") ) c = SHIFT_JIS; else if ( !strcmp2(nl, "SJIS") ) c = SHIFT_JIS; + else if ( !strcmp2(nl, "IBM-943") ) c = SHIFT_JIS; else c = ISO_8859_1; strcpy( language, lang );
あと、xlcでコンパイルするか-qcpluscmntをCFLAGSにいれるといいです。.cのファイルにc++タイプのコメント(//〜)があるのです。