view Wnn/jd/rk.vi/2A_CTRL @ 29:35bc1f2e3f14 default tip

minor fix
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 06 Mar 2010 23:55:24 +0900
parents bbc77ca4def5
children
line wrap: on
line source

;
;   $Id: ./2A_CTRL $
;

;
; FreeWnn is a network-extensible Kana-to-Kanji conversion system.
; This file is part of FreeWnn.
; 
; Copyright Kyoto University Research Institute for Mathematical Sciences
;                 1987, 1988, 1989, 1990, 1991, 1992
; Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
; Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992
; Copyright FreeWnn Project 1999, 2000
; 
; Maintainer:  FreeWnn Project   <freewnn@tomo.gr.jp>
; 
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2 of the License, or
; (at your option) any later version.
; 
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.
; 
; You should have received a copy of the GNU General Public License
; along with this program; if not, write to the Free Software
; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
;

; vi mode comtrol

;'^R'	(restart)

;(defvar esc (list '\033' '^X'))
(defvar esc (list '\033'))
(defvar char (all))
(defvar cont (list '^g'))

'\x81'	(switch katakana)				;PF1
(if VIzenkaku)'\x82'	(off zenkaku)(off VIzenkaku)	;PF2
'\x82' (switch zenkaku)					;PF2
'\x83'	(switch romkan)(off romzen)			;PF3
;'\x84'
'\x85'	(switch romzen)(off keisen)(off KEISEN1)	;PF5
'\x86'	(switch keisen)(off KEISEN1)			;PF6
'\x87'	(switch KEISEN1)(off keisen)			;PF7
'\x88'	(switch cSrcMode)(off comment)(off vimode)	;PF8
;'\x89'							;PF9 RESERVED
'\x8a'	(switch vimode)(on VIquote)(off cSrcMode)(on vimove)(off viex)(off zenkaku)(off VIzenkaku)		;PF10

(if vimode)(esc)	(on vimove)(off viex)(off VIzenkaku)(esc)	;For vi

(if vimode)(if vistr)(if romkan)Q	(on VIquote)(off romkan)(on zenkaku)
(if vimode)(if viquote)(if romkan)Q	(on VIquote)(off romkan)(on zenkaku)
(if vimode)(if vistr)(if romkan)q	(on VIquote)(off romkan)(off zenkaku)(off VIzenkaku)
(if vimode)(if viquote)(if romkan)q	(on VIquote)(off romkan)(off zenkaku)(off VIzenkaku)
(if vimode)(if vimove)(cont)		(cont)
(if vimode)(if VIquote)(cont)		(off VIquote)(on romkan)

(unless vimode)(if romkan)Q	(on quote)(off romkan)(on zenkaku)
(unless vimode)(if romkan)q	(on quote)(off romkan)(off zenkaku)
(unless vimode)(if quote)(cont)	(off quote)(on romkan)

; C SOURCE mode
(if cSrcMode)(unless comment)"/*" (on comment)(off quote)(on romkan)"/* "'^L'
(if cSrcMode)(if comment)"*/"	(off comment)"*/"'^L'
(if cSrcMode)(if comment)(esc)	(off comment)(esc)

(if cSrcMode)(if comment)(if romkan)Q	(on quote)(off romkan)(on zenkaku)
(if cSrcMode)(if comment)(if romkan)q	(on quote)(off romkan)(off zenkaku)
(if cSrcMode)(if comment)(if quote)(cont)	(off quote)(on romkan)