home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Utility Spectacular / Text / Emacs-1.12d folder / lisp / vip.elc < prev    next >
Encoding:
Text File  |  1993-11-09  |  67.7 KB  |  1,268 lines  |  [dELC/EMAC]

  1.  
  2. (defvar vip-emacs-local-map nil "\
  3. Local map used in emacs mode. (buffer specific)")
  4.  
  5. (defvar vip-emacs-old-commands nil "\
  6. Old Emacs definitions of C-x 3 and C-x TAB.")
  7.  
  8. (defvar vip-insert-local-map nil "\
  9. Local map used in insert command mode. (buffer specific)")
  10.  
  11. (make-variable-buffer-local (quote vip-emacs-local-map))
  12.  
  13. (make-variable-buffer-local (quote vip-emacs-old-commands))
  14.  
  15. (make-variable-buffer-local (quote vip-insert-local-map))
  16.  
  17. (defvar vip-insert-point nil "\
  18. Remember insert point as a marker. (buffer specific)")
  19.  
  20. (set-default (quote vip-insert-point) (make-marker))
  21.  
  22. (make-variable-buffer-local (quote vip-insert-point))
  23.  
  24. (defvar vip-com-point nil "\
  25. Remember com point as a marker. (buffer specific)")
  26.  
  27. (set-default (quote vip-com-point) (make-marker))
  28.  
  29. (make-variable-buffer-local (quote vip-com-point))
  30.  
  31. (defvar vip-current-mode nil "\
  32. Current mode.  One of emacs-mode, vi-mode, insert-mode.")
  33.  
  34. (make-variable-buffer-local (quote vip-current-mode))
  35.  
  36. (setq-default vip-current-mode (quote emacs-mode))
  37.  
  38. (defvar vip-emacs-mode-line-buffer-identification nil "\
  39. value of mode-line-buffer-identification in emacs-mode.")
  40.  
  41. (make-variable-buffer-local (quote vip-emacs-mode-line-buffer-identification))
  42.  
  43. (setq-default vip-emacs-mode-line-buffer-identification (quote ("Emacs: %17b")))
  44.  
  45. (defvar vip-current-major-mode nil "\
  46. vip-current-major-mode is the major-mode vi considers it is now.
  47. (buffer specific)")
  48.  
  49. (make-variable-buffer-local (quote vip-current-major-mode))
  50.  
  51. (defvar vip-last-shell-com nil "\
  52. last shell command executed by ! command")
  53.  
  54. (defvar vip-use-register nil "\
  55. name of register to store deleted or yanked strings.")
  56.  
  57. (defvar vip-d-com nil "\
  58. If non-nil, it's value is a list (M-COM VAL COM), and is used to
  59. re-execute last destrcutive command")
  60.  
  61. (defconst vip-shift-width 8 "\
  62. *The number of colums shifted by > and < command.")
  63.  
  64. (defconst vip-re-replace nil "\
  65. *If t then do regexp replace, if nil then do string replace.")
  66.  
  67. (defvar vip-d-char nil "\
  68. The character remenbered by the vi \"r\" command")
  69.  
  70. (defvar vip-f-char nil "\
  71. for use by \";\" command")
  72.  
  73. (defvar vip-F-char nil "\
  74. for use by \".\" command")
  75.  
  76. (defvar vip-f-forward nil "\
  77. for use by \";\" command")
  78.  
  79. (defvar vip-f-offset nil "\
  80. for use by \";\" command")
  81.  
  82. (defconst vip-search-wrap-around t "\
  83. *if t, search wraps around")
  84.  
  85. (defconst vip-re-search nil "\
  86. *if t, search is reg-exp search, otherwise vanilla search.")
  87.  
  88. (defvar vip-s-string nil "\
  89. last search string")
  90.  
  91. (defvar vip-s-forward nil "\
  92. if t, search is forward.")
  93.  
  94. (defconst vip-case-fold-search nil "\
  95. *if t, search ignores cases.")
  96.  
  97. (defconst vip-re-query-replace nil "\
  98. *If t then do regexp replace, if nil then do string replace.")
  99.  
  100. (defconst vip-open-with-indent nil "\
  101. *if t, indent when open a new line.")
  102.  
  103. (defconst vip-help-in-insert-mode nil "\
  104. *if t then C-h is bound to help-command in insert mode, if nil then it is
  105. bound to delete-backward-char.")
  106.  
  107. (defvar vip-quote-string "> " "\
  108. string inserted at the beginning of region")
  109.  
  110. (defvar vip-tags-file-name "TAGS")
  111.  
  112. (defvar vip-inhibit-startup-message nil)
  113.  
  114. (global-set-key "" (quote vip-change-mode-to-vi))
  115.  
  116. (defmacro vip-loop (count body) "(COUNT BODY) Execute BODY COUNT times." (byte-code "¬¿DC√ƒ¿≈E    Δ¿«¿DEFEá" [count body let while > 0 setq 1-] 9))
  117.  
  118. (defun vip-push-mark-silent (&optional location) "\
  119. Set mark at LOCATION (point, by default) and push old mark on mark ring.
  120. No message." (byte-code "ƒ ?É
  121. ¿Ç+≈Δ !    Bâà    G
  122. VÖ+«»
  123.     \"@¿\"à…»
  124. S    \"¿\"à  Ü2`!á" [nil mark-ring mark-ring-max location mark copy-marker mark-marker move-marker nthcdr setcdr set-mark] 9))
  125.  
  126. (defun vip-goto-col (arg) "\
  127. Go to ARG's column." (interactive "P") (byte-code "ƒà≈    !Δ    !ä« àiTVÖ»…!)à
  128. Ö\"  `\"àÀ àÃS!à
  129. Ö4ÕŒ
  130. #*á" [val arg com vip-com-point nil vip-p-val vip-getcom end-of-line error "" move-marker beginning-of-line forward-char vip-execute-com vip-goto-col] 11))
  131.  
  132. (defun vip-refresh-mode-line nil "\
  133. Redraw mode line." (byte-code "¿¡ !á" [set-buffer-modified-p buffer-modified-p] 3))
  134.  
  135. (defun vip-copy-keymap (map) (byte-code "?É
  136. ¡ Ç
  137. ¬!á" [map make-sparse-keymap copy-keymap] 3))
  138.  
  139. (defun vip-change-mode (new-mode) "\
  140. Change mode to NEW-MODE.  NEW-MODE is either emacs-mode, vi-mode,
  141. or insert-mode." (byte-code "    =Ü›À=ÉL    Ã=ÉÕ`
  142. \"àŒ Ç@œ –
  143. —\"–
  144. “\"B”œ !âà‘
  145. —’#à‘
  146. “÷#à◊ÿ!àŸ    !Ç÷Ã=ɪ⁄
  147. `\"à    €=ÉÑœ –
  148. —\"–
  149. “\"B”œ !âà‘
  150. —’#à‘
  151. “÷#Çä” !âà◊‹!àŸ!à‘›fi#à‘fl‡#à‘·
  152. ÉØ‚Ç∞„#à‘‰Â#Ç÷€=Ö÷◊Ê!à‘
  153. — @#à‘
  154. “ A#àŸ !àâàÁ á" [new-mode vip-current-mode vip-insert-point vip-emacs-local-map vip-emacs-old-commands ctl-x-map vip-emacs-mode-line-buffer-identification mode-line-buffer-identification vip-insert-local-map vip-mode-map vip-help-in-insert-mode vi-mode insert-mode vip-copy-region-as-kill vip-repeat-insert-command current-local-map lookup-key "3" "    " vip-copy-keymap define-key vip-buffer-in-two-windows insert-file vip-change-mode-line "Vi:   " use-local-map move-marker emacs-mode "Insert" "" vip-change-mode-to-vi "" vip-ESC "" help-command delete-backward-char "" vip-delete-backward-word "Emacs:" vip-refresh-mode-line] 32))
  155.  
  156. (defun vip-copy-region-as-kill (beg end) "\
  157. If BEG and END do not belong to the same buffer, it copies empty region." (byte-code "¿¡¬èá" [nil (byte-code "¬    \"á" [beg end copy-region-as-kill] 3) ((error (byte-code "¡\"á" [beg copy-region-as-kill] 3)))] 3))
  158.  
  159. (defun vip-change-mode-line (string) "\
  160. Assuming that the mode line format contains the string \"Emacs:\", this
  161. function replaces the string by \"Vi:   \" etc." (byte-code "√    ƒ\"É
  162. Ç    ≈PCâá" [mode-line-buffer-identification string vip-emacs-mode-line-buffer-identification string= "Emacs:" " %17b"] 3))
  163.  
  164. (defun vip-mode nil "\
  165. Turn on VIP emulation of VI." (interactive) (byte-code "¬à?ÖC√ƒ!à≈ àΔcàebà«»!Ö7ä… À!!qàdbàÃcàÕ àŒp!)àœ–!à—“!àŒp!àœ”!à¡âà‘ á" [vip-inhibit-startup-message t nil switch-to-buffer "VIP Startup Message" erase-buffer "VIP is a Vi emulation package for GNU Emacs.  VIP provides most Vi commands
  166. including Ex commands.  VIP is however different from Vi in several points.
  167. You can get more information on VIP by:
  168.     1.  Typing `M-x info' and selecting menu item \"vip\".
  169.     2.  Typing `C-h k' followed by a key whose description you want.
  170.     3.  Printing VIP manual which can be found as GNU/man/vip.texinfo
  171.     4.  Printing VIP Reference Card which can be found as GNU/etc/vipcard.tex
  172.  
  173. This startup message appears whenever you load VIP unless you type `y' now.
  174. Type `n' to quit this window for now.
  175. " y-or-n-p "Inhibit VIP startup message? " find-file-noselect substitute-in-file-name "~/.vip" "
  176. (setq vip-inhibit-startup-message t)
  177. " save-buffer kill-buffer message "VIP startup message inhibited." sit-for 2 "" vip-change-mode-to-vi] 13))
  178.  
  179. (defun vip-change-mode-to-vi nil "\
  180. Change mode to vi mode." (interactive) (byte-code "¿à¡¬!á" [nil vip-change-mode vi-mode] 2))
  181.  
  182. (defun vip-change-mode-to-insert nil "\
  183. Change mode to insert mode." (interactive) (byte-code "¿à¡¬!á" [nil vip-change-mode insert-mode] 2))
  184.  
  185. (defun vip-change-mode-to-emacs nil "\
  186. Change mode to emacs mode." (interactive) (byte-code "¿à¡¬!á" [nil vip-change-mode emacs-mode] 2))
  187.  
  188. (defun vip-get-editor-command (l-map g-map &optional str) "\
  189. Read characters from keyboard until an editor command is formed, using
  190. local keymap L-MAP and global keymap G-MAP.  If the command is a
  191. self-insert-command, the character just read is returned instead.  Optional
  192. string STR is used as initial input string." (byte-code "««« ?Ü» …\"ÉrÇ  !âàâàÀ
  193. \"âà    ?É[À\"âà
  194. ?É=«ÇXÃ
  195. !ÉMÕ«
  196. Œ !#ÇX
  197. œ=ÉWÇX
  198. Çùà   !ÉíÀ\"âà
  199. ?ÉxÕ    «Œ !#ÇèÃ
  200. !ÉàÕ    
  201. Œ !#ÇèÕ    «Œ !#Çù    œ=ÉúÇù    +á" [char l-bind g-bind str last-command-char l-map g-map nil string= "" string-to-char vip-binding-of keymapp vip-get-editor-command vip-string-tail self-insert-command] 19))
  202.  
  203. (defun vip-binding-of (char map) "\
  204. Return key-binding of CHAR under keymap MAP.  It is nil if the binding
  205. is void, or a command, or a keymap" (byte-code "    <É
  206. Δ
  207.     \"AÇ    
  208. H?É√ÇB«!É.9É*KÇ+ÇBK
  209. ?Ü9«
  210. !É@
  211. ÇA))á" [val map char nil t fun assq keymapp] 4))
  212.  
  213. (defun vip-escape-to-emacs (arg &optional char) "\
  214. Escape to emacs mode and execute one emacs command and then return to
  215. vi mode.  ARG is used as the prefix value for the executed command.  If
  216. CHAR is given it becomes the first character of the command." (interactive "P") (byte-code "»à»p√ Ö âàâà
  217. Ü
  218. ÃYÖ\\»âàÕ    
  219. \"âàŒ!ÉSœ!  ÃVÖO–!cà Sâ àÇ9)ÇX—\"àÇà»â+á" [com buff first t char unread-command-char prefix-arg arg nil vip-emacs-local-map global-map count 0 vip-get-editor-command numberp vip-p-val char-to-string command-execute] 8))
  220.  
  221. (defun vip-message-conditions (conditions) "\
  222. Print CONDITIONS as a message." (byte-code "    @    A
  223. ?É√ƒ\"Ç√≈Δ
  224. !#à« *á" [case conditions msg message "%s" "%s %s" prin1-to-string ding] 6))
  225.  
  226. (defun vip-ESC (arg) "\
  227. Emulate ESC key in Emacs mode." (interactive "P") (byte-code "¡à¬√\"á" [arg nil vip-escape-to-emacs 27] 3))
  228.  
  229. (defun vip-ctl-c (arg) "\
  230. Emulate C-c key in Emacs mode." (interactive "P") (byte-code "¡à¬√\"á" [arg nil vip-escape-to-emacs 3] 3))
  231.  
  232. (defun vip-ctl-x (arg) "\
  233. Emulate C-x key in Emacs mode." (interactive "P") (byte-code "¡à¬√\"á" [arg nil vip-escape-to-emacs 24] 3))
  234.  
  235. (defun vip-ctl-h (arg) "\
  236. Emulate C-h key in Emacs mode." (interactive "P") (byte-code "¡à¬√\"á" [arg nil vip-escape-to-emacs 8] 3))
  237.  
  238. (defun vip-prefix-arg-value (char value com) "\
  239. Compute numeric prefix arg value.  Invoked by CHAR.  VALUE is the value
  240. obtained so far, and COM is the command part obtained so far." (byte-code "≈YÖ    ΔXÖ(«»    !É    Ç… \"≈Z\\âàrâàÇà    âà Ö6
  241. BâàÀUÖHÃ
  242. !àrâàÇ7àâá" [char value prefix-arg com unread-command-char 48 57 * numberp 0 10 85 vip-describe-arg] 6))
  243.  
  244. (defun vip-prefix-arg-com (char value com) "\
  245. Vi operator as prefix argument." (byte-code "¡ÖE
  246.  UÜE
  247. ÀUÜE
  248. ÃUÜE
  249. ÕUÜE
  250. ŒUÜE
  251. œUÜE
  252. –UÜE
  253. —UÜE
  254. “UÜE
  255. ”UÜE
  256. ‘UÖ˚ Éh
  257. —UÜU
  258. ‘UÖ[’÷!à
  259. Bâàƒâǘ
  260. ÕUÜq
  261. –UÉÇ
  262. âàrâàƒâǘ
  263. —UÉò◊r\\âàrâàƒâǘ
  264. ŒUܰ
  265. œUÉæ
  266. âàrâà
  267. UÖ∑
  268. Bâàƒâǘ
  269. ‘UÉrÿ
  270. X֜
  271. ŸXÜ€⁄
  272. XÖ€
  273. €XÉÂ
  274. âÇË’÷!àrâ)ǘ
  275. âàrâàÇ)à‹ !É% Bâà
  276. ›UÖfi!àrâàÇ à
  277. â    ÇÔ @“UÜ0 @”UÉ[ @ A Bâà
  278. “UÉNfl!ÇR‡!àƒâ*ÇÔ?Ée·Çgâàƒâà‚ „\"ÉĉÂB!ÇÔ‚ Ê\"Éê‰ÁB!ÇÔ‚ Ë\"ÉúÈ ÇÔ‚ Í\"ɨ‰ÎB!ÇÔ‚ Ï\"ɺ‰ŒB!ÇÔ‚ Ì\"ÉÉœB!ÇÔ‚ Ó\"É‹‰ÕB!ÇÔ‚ Ô\"Éω–B!ÇÔ’÷!á" [cont t char com nil reg vip-use-register prefix-arg value unread-command-char 99 100 121 33 60 62 61 35 114 82 34 error "" 128 65 122 49 57 atom 85 vip-describe-arg vip-region vip-Region 1 equal (99 . 99) vip-line 67 (100 . 100) 68 (100 . 121) vip-yank-defun (121 . 121) 89 (60 . 60) (62 . 62) (33 . 33) (61 . 61)] 24))
  279.  
  280. (defun vip-describe-arg (arg) (byte-code "√√ƒ
  281. !≈
  282. !âà?É%    ?ÉΔ«!Ç\"Δ»    \"Ç6    ?É1Δ…\"Ç6Δ     #*á" [val com arg nil vip-P-val vip-getcom message "Value is nil, and commmand is nil." "Value is nil, and command is %c." "Value is %d, and command is nil." "Value is %d, and command is %c."] 9))
  283.  
  284. (defun vip-digit-argument (arg) "\
  285. Begin numeric argument for the next command." (interactive "P") (byte-code "¡à√¡
  286. :É
  287. AÇ¡#á" [last-command-char nil arg vip-prefix-arg-value] 4))
  288.  
  289. (defun vip-command-argument (arg) "\
  290. Accept a motion command as an argument." (interactive "P") (byte-code "¿à¡¬√èá" [nil conditions (byte-code "ƒ    ?É ¬Ç\"    :É    @Ç\"≈    !É    Ç\"Δ«!    ?É+¬ÇB    :É5    AÇB≈    !É?¬ÇBΔ«!#á" [last-command-char arg nil t vip-prefix-arg-com numberp error "strange arg"] 8) ((quit (byte-code "¡âà¬√¡\"á" [vip-use-register nil signal quit] 3)))] 3))
  291.  
  292. (defun vip-p-val (arg) "\
  293. Get value part of prefix-argument ARG." (byte-code "?É    ¬Ç:É@?ɬÇ@Çá" [arg t 1] 1))
  294.  
  295. (defun vip-P-val (arg) "\
  296. Get value part of prefix-argument ARG." (byte-code ":É
  297. @Ç á" [arg t] 1))
  298.  
  299. (defun vip-getcom (arg) "\
  300. Get com part of prefix-argument ARG." (byte-code "?É    ¡Ç:ÉAÇ¡á" [arg nil t] 1))
  301.  
  302. (defun vip-getCom (arg) "\
  303. Get com part of prefix-argument ARG and modify it." (byte-code "√    !ƒ≈\"ÉΔÇ&ƒ«\"É»Ç&ƒ…\"É% Ç&)á" [com arg t vip-getcom equal 99 67 100 68 121 89] 6))
  304.  
  305. (defun vip-append-to-register (reg start end) "\
  306. Append region to text in register REG.
  307. START and END are buffer positions indicating what to append." (byte-code "√ƒ!Ü    ≈Δ    
  308. \"P\"á" [reg start end set-register get-register "" buffer-substring] 7))
  309.  
  310. (defun vip-execute-com (m-com val com) "\
  311. (M-COM VAL COM)  Execute command COM. The list (M-COM VAL COM) is set
  312. to vip-d-com for later use by vip-repeat" (byte-code "    
  313. Öµ
  314. ÕUÉŒ `\"ǵ
  315. Õ[UÉ!œ `\"ǵ
  316. –UÜ+
  317. –[UÉëä— !à“” `\"à    Öu‘    XÖF    ’XÉS÷    ” `ƒ$Çq◊    XÖ\\    ÿXÉjŸ    ⁄\\” `#Çqƒâà€‹!àƒâà›” `\")àfifl!à
  318. –UÉ几Ç鷠ǵ
  319. ‚UÉÓ    Ö—‘    XÖ§    ’XÉ∞÷     `ƒ$ÇÕ◊    XÖπ    ÿXÉΔŸ    ⁄\\ `#ÇÕƒâà€‹!àƒâà„=É›‰Çfiƒâà‰ `\"à„âǵ
  320. ÂUÉdä— !à“” `\"à    Ö;‘    XÖ     ’XÉ÷    ” `ƒ$Ç7◊    XÖ\"    ÿXÉ0Ÿ    ⁄\\” `#Ç7ƒâà€‹!àƒâàÊ=ÉG‰ÇHƒâà‰” `\"àÁ=Ö]Êâ)àˠǵ
  321. ÈUÉ¥    Ö§‘    XÖw    ’XÉÉ÷     `ƒ$dž◊    XÖå    ÿXÉôŸ    ⁄\\ `#džƒâà€‹!àƒâàƒâàÍ `\"à bǵ
  322. ÎUÉä— !à“” `\"à    Ö‘    XÖ“    ’XÉfl÷    ” `ƒ$Ç˝◊    XÖË    ÿXɈŸ    ⁄\\” `#Ç˝ƒâà€‹!àƒâàƒâàÍ” `\")à bǵ
  323. ÏUÜ
  324. Ï[UÉFä— !à“” `\"àÌ” `
  325. ÏUÉ>ÓÔ!â    Ç@    ≈$)ǵ
  326. UÉkä— !à“” `\"à” `VÖ`Ò àÚ” `ƒ#)ǵ
  327. ÛUÉãä— !à“” `\"àÙ” `
  328. [#)à bǵ
  329. ıUÉ™ä— !à“” `\"àÙ” `
  330. #)à bǵ
  331. ˆYÖµ˜
  332. ˆZ!à
  333. ÕUÜ…
  334. –UÜ…
  335. ÏUÉ—
  336. [Ç“
  337. Fâ )á" [reg vip-use-register com vip-com-point nil t last-command this-command m-com vip-last-shell-com vip-shift-width vip-d-com val 99 vip-change vip-change-subr 67 set-mark vip-enlarge-region mark 97 122 copy-to-register 65 90 vip-append-to-register 32 error "" delete-region open-line 1 vip-change-mode-to-insert yank 100 d-command kill-region 68 D-command vip-line back-to-indentation 121 copy-region-as-kill 89 33 shell-command-on-region vip-read-string "!" 61 exchange-point-and-mark indent-region 60 indent-rigidly 62 128 vip-special-prefix-com] 72))
  338.  
  339. (defun vip-repeat (arg) "\
  340. (ARG)  Re-excute last destructive command.  vip-d-com has the form
  341. (COM ARG CH REG), where COM is the command to be re-executed, ARG is the
  342. argument for COM, CH is a flag for repeat, and REG is optional and if exists
  343. is the name of the register for COM." (interactive "P") (byte-code "»à…=É
  344.   Ç?
  345. @À !
  346. AA@Ã
  347. 8 ?Ö(
  348. A@âà    ?Ö1ÕŒ!àâàœ    
  349. B\",á" [last-command m-com vip-d-com val arg com reg vip-use-register nil vip-undo vip-undo-more vip-P-val 3 error "No previous command to repeat." funcall] 7))
  350.  
  351. (defun vip-special-prefix-com (char) "\
  352. This command is invoked interactively by the key sequence #<char>" (byte-code "¬UÉ√    `^    `]\"ÇJƒUÉ\"≈    `^    `]\"ÇJΔUÉ1«    !à» ÇJ…UÉ@«    !à  ÇJÀUÖJà   `\"á" [char vip-com-point 99 downcase-region 67 upcase-region 103 set-mark vip-global-execute 113 vip-quote-region 115 spell-region] 9))
  353.  
  354. (defun vip-undo nil "\
  355. Undo previous change." (interactive) (byte-code "¡à¬√!àƒ à≈Δ!à«âá" [this-command nil message "undo!" undo-start undo-more 2 vip-undo] 5))
  356.  
  357. (defun vip-undo-more nil "\
  358. Continue undoing previous changes." (byte-code "¡¬!à√ƒ!à≈âá" [this-command message "undo more!" undo-more 1 vip-undo] 4))
  359.  
  360. (defun vip-string-tail (str) (byte-code "?Ü    ¬√\"ɡǃ¡Oá" [str nil string= "" 1] 4))
  361.  
  362. (defun vip-yank-defun nil (byte-code "¿ à¡`¬ \"á" [mark-defun copy-region-as-kill mark] 5))
  363.  
  364. (defun vip-enlarge-region (beg end) "\
  365. Enlarge region between BEG and END." (byte-code "    WÉbଠ   !Ç    bà¬!à√ àƒ àm?Ü#n?Ö)≈Δ!à√ à    VÖ5ƒ á" [beg end set-mark beginning-of-line exchange-point-and-mark next-line 1] 8))
  366.  
  367. (defun vip-global-execute nil "\
  368. Call last keyboad macro for each line in the region." (byte-code "`¿ VÖ    ¡ à¬ à√ à`¿ WÖ$ƒ≈!ଠà√ àÇá" [mark exchange-point-and-mark beginning-of-line call-last-kbd-macro forward-line 1] 10))
  369.  
  370. (defun vip-quote-region nil "\
  371. Quote region by inserting the user supplied string at the beginning of
  372. each line in the region." (byte-code "¬√ƒ\"!≈    Δ\"ÉÇ    )âà«`» \"à`» VÖ&… àcà  àÀÃ!à`» WÖ9nÖIcà  àÀÃ!àÇ1á" [vip-quote-string str vip-read-string format "quote string (default \"%s\"): " string= "" vip-enlarge-region mark exchange-point-and-mark beginning-of-line forward-line 1] 14))
  373.  
  374. (defun vip-end-with-a-newline-p (string) "\
  375. Check if the string ends with a newline." (byte-code "¬√\"Ü        GSHƒUá" [text string string= "" 10] 3))
  376.  
  377. (defun vip-read-string (prompt &optional init) (byte-code "√    !âàƒ    ≈Δ#àƒ    «»#àƒ    … #àÀÃÕŒèàâà
  378. )á" [save-minibuffer-local-map minibuffer-local-map str copy-keymap define-key "" backward-char "" backward-word "" exit-minibuffer nil conditions (byte-code "√    
  379. \"âá" [str prompt init read-string] 3) ((quit (byte-code "    âà√ƒ¬\"á" [minibuffer-local-map save-minibuffer-local-map nil signal quit] 3)))] 7))
  380.  
  381. (defun vip-repeat-insert-command nil "\
  382. This function is called when mode changes from insertion mode to
  383. vi command mode.  It will repeat the insertion command if original insertion
  384. command was invoked with argument > 1." (byte-code "    @    A@
  385. Ö
  386. ƒVÖ#
  387. S≈EâàΔ√!à
  388. ≈Eâ*á" [i-com vip-d-com val nil 1 114 vip-repeat] 4))
  389.  
  390. (defun vip-insert (arg) "\
  391. " (interactive "P") (byte-code "≈àΔ    !«    !»…Eâà
  392. É,  VÖ(À à SâàÇ)Ç.à*á" [val arg com vip-d-com count nil vip-p-val vip-getcom vip-insert 114 0 yank vip-change-mode-to-insert] 6))
  393.  
  394. (defun vip-append (arg) "\
  395. Append after point." (interactive "P") (byte-code "≈àΔ    !«    !»…Eâàl?Ö  àÀ
  396. …\"É7 ÃVÖ3Õ à SâàÇ\")Ç9Œ *á" [val arg com vip-d-com count nil vip-p-val vip-getcom vip-append 114 forward-char equal 0 yank vip-change-mode-to-insert] 8))
  397.  
  398. (defun vip-Append (arg) "\
  399. Append at end of line." (interactive "P") (byte-code "≈àΔ    !«    !»…Eâà  àÀ
  400. …\"É2 ÃVÖ.Õ à SâàÇ)Ç4Œ *á" [val arg com vip-d-com count nil vip-p-val vip-getcom vip-Append 114 end-of-line equal 0 yank vip-change-mode-to-insert] 8))
  401.  
  402. (defun vip-Insert (arg) "\
  403. Insert before first non-white." (interactive "P") (byte-code "≈àΔ    !«    !»…Eâà  àÀ
  404. …\"É2 ÃVÖ.Õ à SâàÇ)Ç4Œ *á" [val arg com vip-d-com count nil vip-p-val vip-getcom vip-Insert 114 back-to-indentation equal 0 yank vip-change-mode-to-insert] 8))
  405.  
  406. (defun vip-open-line (arg) "\
  407. Open line below." (interactive "P") (byte-code "«à»    !…    ! ÀEâààÕ
  408. À\"ÉA
  409. ŒVÖ=œ à–—!àÖ1 jà“ à
  410. SâàÇ)ÇRœ à–—!àÖO jà” )*á" [val arg com vip-d-com col count vip-open-with-indent nil vip-p-val vip-getcom vip-open-line 114 current-indentation equal 0 end-of-line newline 1 yank vip-change-mode-to-insert] 11))
  411.  
  412. (defun vip-Open-line (arg) "\
  413. Open line above." (interactive "P") (byte-code "«à»    !…    ! ÀEâààÕ
  414. À\"ÉA
  415. ŒVÖ=œ à–—!àÖ1 jà“ à
  416. SâàÇ)ÇRœ à–—!àÖO jà” )*á" [val arg com vip-d-com col count vip-open-with-indent nil vip-p-val vip-getcom vip-Open-line 114 current-indentation equal 0 beginning-of-line open-line 1 yank vip-change-mode-to-insert] 11))
  417.  
  418. (defun vip-open-line-at-point (arg) "\
  419. Open line at point." (interactive "P") (byte-code "≈àΔ    !«    !»…Eâà 
  420. …\"É3 ÀVÖ/ÃÕ!àŒ à SâàÇ)Ç9ÃÕ!àœ *á" [val arg com vip-d-com count nil vip-p-val vip-getcom vip-open-line-at-point 114 equal 0 open-line 1 yank vip-change-mode-to-insert] 8))
  421.  
  422. (defun vip-substitute (arg) "\
  423. Substitute characters." (interactive "P") (byte-code "ƒà≈    !Δ    !ä«`!à»!à…
  424.  \"É\"Àà`\"Ç'Õà`\")àŒ Eâ*á" [val arg com vip-d-com nil vip-p-val vip-getcom set-mark forward-char equal 114 vip-change-subr mark vip-change vip-substitute] 12))
  425.  
  426. (defun vip-substitute-line (arg) "\
  427. Substitute lines." (interactive "p") (byte-code "¡à¬√B!á" [arg nil vip-line 67] 3))
  428.  
  429. (defun vip-line (arg) (byte-code "    @    Aƒ `\"à≈S!àΔ«
  430. #*á" [val arg com vip-com-point move-marker next-line vip-execute-com vip-line] 6))
  431.  
  432. (defun vip-yank-line (arg) "\
  433. Yank ARG lines (in vi's sense)" (interactive "P") (byte-code "¬à√    !ƒ≈B!)á" [val arg nil vip-p-val vip-line 89] 4))
  434.  
  435. (defun vip-region (arg) (interactive "P") (byte-code "ƒà≈    !Δ    !« `\"à» à… 
  436. #*á" [val arg com vip-com-point nil vip-P-val vip-getcom move-marker exchange-point-and-mark vip-execute-com vip-region] 8))
  437.  
  438. (defun vip-Region (arg) (interactive "P") (byte-code "ƒà≈    !Δ    !« `\"à» à… 
  439. #*á" [val arg com vip-com-point nil vip-P-val vip-getCom move-marker exchange-point-and-mark vip-execute-com vip-Region] 8))
  440.  
  441. (defun vip-replace-char (arg) "\
  442. Replace the following ARG chars by the character read." (interactive "P") (byte-code "≈àΔ    !«    !»…Eâà À
  443. …\"É Çr\"*á" [val arg com vip-d-com vip-d-char nil vip-p-val vip-getcom vip-replace-char 114 vip-replace-char-subr equal] 6))
  444.  
  445. (defun vip-replace-char-subr (char arg) (byte-code "≈¡\"à âàΔVÉÇ[ ΔVÖ' cà SâàÇ)à«!á" [arg t vip-d-char char count delete-char 0 backward-char] 4))
  446.  
  447. (defun vip-replace-string nil "\
  448. Replace string.  If you supply null string as the string to be replaced,
  449. the query replace mode will toggle between string replace and regexp replace." (interactive) (byte-code "¬à¬√    É
  450. ƒÇ≈!âàΔ«\"É/    ?âà»…     É)ÀÇ*Ã\"!ÇH    É?Õ√…Œ\"!\"ÇHœ√…–\"!\")á" [str vip-re-replace nil vip-read-string "Replace regexp: " "Replace string: " string= "" message format "Replace mode changed to %s." "regexp replace" "string replace" replace-regexp "Replace regexp \"%s\" with: " replace-string "Replace \"%s\" with: "] 13))
  451.  
  452. (defun vip-forward-char (arg) "\
  453. Move point right ARG characters (left if ARG negative).On reaching end
  454. of buffer, stop and signal error." (interactive "P") (byte-code "ƒà≈    !Δ    !
  455. Ö« `\"à»!à
  456. Ö … 
  457. #*á" [val arg com vip-com-point nil vip-p-val vip-getcom move-marker forward-char vip-execute-com vip-forward-char] 8))
  458.  
  459. (defun vip-backward-char (arg) "\
  460. Move point left ARG characters (right if ARG negative).  On reaching
  461. beginning of buffer, stop and signal error." (interactive "P") (byte-code "ƒà≈    !Δ    !
  462. Ö« `\"à»!à
  463. Ö … 
  464. #*á" [val arg com vip-com-point nil vip-p-val vip-getcom move-marker backward-char vip-execute-com vip-backward-char] 8))
  465.  
  466. (defun vip-forward-word (arg) "\
  467. Forward word." (interactive "P") (byte-code "ƒà≈    !Δ    !
  468. Ö« `\"à»!à… !à
  469. ÖQ
  470. ÀUÜ)
  471. À[UÖ3ÃÕ!à»Õ!à
  472. ŒUÜ=
  473. œUÖKÃÕ!à»Õ!à…–!à—“
  474. #*á" [val arg com vip-com-point nil vip-p-val vip-getcom move-marker forward-word skip-chars-forward "     
  475. " 99 backward-word 1 100 121 "     " vip-execute-com vip-forward-word] 14))
  476.  
  477. (defun vip-end-of-word (arg) "\
  478. Move point to end of current word." (interactive "P") (byte-code "ƒà≈    !Δ    !
  479. Ö« `\"à» à…!à  à
  480. Ö)» àÀÃ
  481. #*á" [val arg com vip-com-point nil vip-p-val vip-getcom move-marker forward-char forward-word backward-char vip-execute-com vip-end-of-word] 11))
  482.  
  483. (defun vip-backward-word (arg) "\
  484. Backward word." (interactive "P") (byte-code "ƒà≈    !Δ    !
  485. Ö« `\"à»!à
  486. Ö … 
  487. #*á" [val arg com vip-com-point nil vip-p-val vip-getcom move-marker backward-word vip-execute-com vip-backward-word] 8))
  488.  
  489. (defun vip-forward-Word (arg) "\
  490. Forward word delimited by white character." (interactive "P") (byte-code "ƒàΔ    !«    !
  491. Ö» `\"à… ƒ≈$à
  492. ÖP
  493. ÀUÜ(
  494. À[UÖ2ÃÕ!àŒÕ!à
  495. œUÜ<
  496. –UÖJÃÕ!àŒÕ!à—“!à”‘
  497. #*á" [val arg com vip-com-point nil t vip-p-val vip-getcom move-marker re-search-forward "[^     
  498. ]*[     
  499. ]+" 99 backward-word 1 forward-word 100 121 skip-chars-forward "     " vip-execute-com vip-forward-Word] 13))
  500.  
  501. (defun vip-end-of-Word (arg) "\
  502. Move forward to end of word delimited by white character." (interactive "P") (byte-code "ƒàΔ    !«    !
  503. Ö» `\"à… à Àƒ≈$Ö!àà
  504. Ö.… àÕŒ
  505. #*á" [val arg com vip-com-point nil t vip-p-val vip-getcom move-marker forward-char re-search-forward "[^     
  506. ]+" backward-char vip-execute-com vip-end-of-Word] 11))
  507.  
  508. (defun vip-backward-Word (arg) "\
  509. Backward word delimited by white character." (interactive "P") (byte-code "ƒàΔ    !«    !
  510. Ö» `\"à… ƒ≈$É!À Ç#ebà
  511. Ö-ÃÕ
  512. #*á" [val arg com vip-com-point nil t vip-p-val vip-getcom move-marker re-search-backward "[     
  513. ]+[^     
  514. ]+" forward-char vip-execute-com vip-backward-Word] 9))
  515.  
  516. (defun vip-beginning-of-line (arg) "\
  517. Go to beginning of line." (interactive "P") (byte-code "ƒà≈    !Δ    !
  518. Ö« `\"à»!à
  519. Ö … 
  520. #*á" [val arg com vip-com-point nil vip-p-val vip-getcom move-marker beginning-of-line vip-execute-com vip-beginning-of-line] 8))
  521.  
  522. (defun vip-bol-and-skip-white (arg) "\
  523. Beginning of line at first non-white character." (interactive "P") (byte-code "ƒà≈    !Δ    !
  524. Ö« `\"à» à
  525. Ö… 
  526. #*á" [val arg com vip-com-point nil vip-p-val vip-getcom move-marker back-to-indentation vip-execute-com vip-bol-and-skip-white] 8))
  527.  
  528. (defun vip-goto-eol (arg) "\
  529. Go to end of line." (interactive "P") (byte-code "ƒà≈    !Δ    !
  530. Ö« `\"à»!à
  531. Ö … 
  532. #*á" [val arg com vip-com-point nil vip-p-val vip-getcom move-marker end-of-line vip-execute-com vip-goto-eol] 8))
  533.  
  534. (defun vip-next-line (arg) "\
  535. Go to next line." (interactive "P") (byte-code "≈àΔ    !«    !
  536. Ö» `\"à…!à âà
  537. Ö$ÀÃ
  538. #*á" [val arg com vip-com-point this-command nil vip-p-val vip-getCom move-marker next-line-internal next-line vip-execute-com vip-next-line] 8))
  539.  
  540. (defun vip-next-line-at-bol (arg) "\
  541. Next line at beginning of line." (interactive "P") (byte-code "ƒà≈    !Δ    !
  542. Ö« `\"à»!à… à
  543. Ö# À
  544. #*á" [val arg com vip-com-point nil vip-p-val vip-getCom move-marker next-line back-to-indentation vip-execute-com vip-next-line-at-bol] 9))
  545.  
  546. (defun vip-previous-line (arg) "\
  547. Go to previous line." (interactive "P") (byte-code "≈àΔ    !«    !
  548. Ö» `\"à…[!à âà
  549. Ö%ÀÃ
  550. #*á" [val arg com vip-com-point this-command nil vip-p-val vip-getCom move-marker next-line previous-line vip-execute-com vip-previous-line] 8))
  551.  
  552. (defun vip-previous-line-at-bol (arg) "\
  553. Previous line at beginning of line." (interactive "P") (byte-code "ƒà≈    !Δ    !
  554. Ö« `\"à»[!à… à
  555. Ö$ À
  556. #*á" [val arg com vip-com-point nil vip-p-val vip-getCom move-marker next-line back-to-indentation vip-execute-com vip-previous-line] 9))
  557.  
  558. (defun vip-change-to-eol (arg) "\
  559. Change to end of line." (interactive "P") (byte-code "¡à¬√B!á" [arg nil vip-goto-eol 99] 3))
  560.  
  561. (defun vip-kill-line (arg) "\
  562. Delete line." (interactive "P") (byte-code "¡à¬√B!á" [arg nil vip-goto-eol 100] 3))
  563.  
  564. (defun vip-goto-line (arg) "\
  565. Go to ARG's line.  Without ARG go to end of buffer." (interactive "P") (byte-code "ƒà≈    !Δ    !« `\"à»`!à?ÉdbÇ$ebà…S!à  à
  566. Ö1ÀÃ
  567. #*á" [val arg com vip-com-point nil vip-P-val vip-getCom move-marker set-mark forward-line back-to-indentation vip-execute-com vip-goto-line] 10))
  568.  
  569. (defun vip-find-char (arg char forward offset) "\
  570. Find ARG's occurence of CHAR on the current line.  If FORWARD then
  571. search is forward, otherwise backward.  OFFSET is used to adjust point
  572. after search." (byte-code "    ÉÇ
  573. [ƒäå«VÉ-»lÉ … !Ç!`ÀÃ!àÕ à`\"Ç>»nÉ8… !Ç9`Õ à`\"à«VÉKeTbÇMdbàƒŒœ
  574. !ƒ«$)à`âà«VÖg
  575. dUÜs«WÖs
  576. eUÖy… !))à
  577. «VÉêÉå–Çç—ÇöÉôÃÇö«\\b*á" [arg forward point case-fold-search nil char offset 0 narrow-to-region error "" next-line 1 beginning-of-line search-forward char-to-string -2 -1] 13))
  578.  
  579. (defun vip-find-char-forward (arg) "\
  580. Find char on the line.  If called interactively read the char to find
  581. from the terminal, and if called from vip-repeat, the char last used is
  582. used.  This behaviour is controlled by the sign of prefix numeric value." (interactive "P") (byte-code "«à     !À    !ÃVÉr≈«âÇ[âà
  583. Ö)Õ`\"àŒ     !ÃVÉ8 Ç:    ≈«$à[âà
  584. ÖT â    àœ à–—
  585. #*á" [val arg com vip-f-char vip-f-forward t vip-f-offset nil vip-com-point vip-F-char vip-p-val vip-getcom 0 move-marker vip-find-char forward-char vip-execute-com vip-find-char-forward] 10))
  586.  
  587. (defun vip-goto-char-forward (arg) "\
  588. Go up to char ARG forward on line." (interactive "P") (byte-code "…à     !À    !ÃVÉr≈≈âÇ[âà
  589. Ö)Õ`\"àŒ     !ÃVÉ8 Ç:≈≈$à[âà
  590. ÖT âàœ à–—
  591. #*á" [val arg com vip-f-char vip-f-forward t vip-f-offset vip-com-point vip-F-char nil vip-p-val vip-getcom 0 move-marker vip-find-char forward-char vip-execute-com vip-goto-char-forward] 10))
  592.  
  593. (defun vip-find-char-backward (arg) "\
  594. Find char ARG on line backward." (interactive "P") (byte-code "≈à…    !     !ÀVÉr≈≈âÇ[âà
  595. Ö)Ã`\"àÕ…    !ÀVÉ8 Ç:≈≈$à[âà
  596. ÖQ âàŒœ
  597. #*á" [val arg com vip-f-char vip-f-forward nil vip-f-offset vip-com-point vip-F-char vip-p-val vip-getcom 0 move-marker vip-find-char vip-execute-com vip-find-char-backward] 9))
  598.  
  599. (defun vip-goto-char-backward (arg) "\
  600. Go up to char ARG backward on line." (interactive "P") (byte-code "≈à     !À    !ÃVÉr≈«âÇ[âà
  601. Ö)Õ`\"àŒ     !ÃVÉ8 Ç:    ≈«$à[âà
  602. ÖQ â    àœ–
  603. #*á" [val arg com vip-f-char vip-f-forward nil vip-f-offset t vip-com-point vip-F-char vip-p-val vip-getcom 0 move-marker vip-find-char vip-execute-com vip-goto-char-backward] 9))
  604.  
  605. (defun vip-repeat-find (arg) "\
  606. Repeat previous find command." (interactive "P") (byte-code "«à»    !…    !
  607. Ö  `\"àÀ
  608. $à
  609. Ö+
  610. Ö%ààÕŒ
  611. #*á" [val arg com vip-com-point vip-f-char vip-f-forward vip-f-offset nil vip-p-val vip-getcom move-marker vip-find-char forward-char vip-execute-com vip-repeat-find] 9))
  612.  
  613. (defun vip-repeat-find-opposite (arg) "\
  614. Repeat previous find command in the opposite direction." (interactive "P") (byte-code "«à»    !…    !
  615. Ö  `\"àÀ
  616. ?$à
  617. Ö,
  618. Ö&ààÕŒ
  619. #*á" [val arg com vip-com-point vip-f-char vip-f-forward vip-f-offset nil vip-p-val vip-getcom move-marker vip-find-char forward-char vip-execute-com vip-repeat-find-opposite] 9))
  620.  
  621. (defun vip-other-window (arg) "\
  622. Switch to other window." (interactive "p") (byte-code "¬à√!à    ƒ=?Ü≈Δp!«\"Ü» á" [arg vip-current-mode nil other-window emacs-mode string= buffer-name " *Minibuf-1*" vip-change-mode-to-vi] 5))
  623.  
  624. (defun vip-window-top (arg) "\
  625. Go to home window line." (interactive "P") (byte-code "ƒà≈    !Δ    !
  626. Ö« `\"à»S!à
  627. Ö!… 
  628. #*á" [val arg com vip-com-point nil vip-p-val vip-getCom move-marker move-to-window-line vip-execute-com vip-window-top] 8))
  629.  
  630. (defun vip-window-middle (arg) "\
  631. Go to middle window line." (interactive "P") (byte-code "ƒà≈    !Δ    !
  632. Ö« `\"à»…  SÀ\"S\\!à
  633. Ö(ÃÕ
  634. #*á" [val arg com vip-com-point nil vip-p-val vip-getCom move-marker move-to-window-line / window-height 2 vip-execute-com vip-window-middle] 10))
  635.  
  636. (defun vip-window-bottom (arg) "\
  637. Go to last window line." (interactive "P") (byte-code "ƒà≈    !Δ    !
  638. Ö« `\"à»[!à
  639. Ö!… 
  640. #*á" [val arg com vip-com-point nil vip-p-val vip-getCom move-marker move-to-window-line vip-execute-com vip-window-bottom] 8))
  641.  
  642. (defun vip-line-to-top (arg) "\
  643. Put current line on the home line." (interactive "p") (byte-code "¡à¬S!á" [arg nil recenter] 2))
  644.  
  645. (defun vip-line-to-middle (arg) "\
  646. Put current line on the middle line." (interactive "p") (byte-code "¡à¬S√ƒ S≈\"\\!á" [arg nil recenter / window-height 2] 6))
  647.  
  648. (defun vip-line-to-bottom (arg) "\
  649. Put current line on the last line." (interactive "p") (byte-code "¡à¬√ TZ!á" [arg nil recenter window-height] 4))
  650.  
  651. (defun vip-paren-match (arg) "\
  652. Go to the matching parenthesis." (interactive "P") (byte-code "√à≈    !Δ    !É<    «VÜ    »WÉ… !Ç9dÀVÉ.ÃÕdŒ\"    \"Ç5ÕÃd    \"Œ\"bàœ ÇÖ–—!É`ÖJ“
  653. `\"à”»!àÉ[‘’√#Ç]÷ ÇÖ–◊!ÉÇÿ àÖq“
  654. `\"àŸ»!àÖ‘’√#ÇÖ…⁄!)á" [com arg vip-com-point nil t vip-getcom numberp 99 1 error "Prefix must be between 1 and 99." 80000 * / 100 back-to-indentation looking-at "[([{]" move-marker forward-sexp vip-execute-com vip-paren-match backward-char "[])}]" forward-char backward-sexp ""] 21))
  655.  
  656. (defun vip-forward-sentence (arg) "\
  657. Forward sentence." (interactive "P") (byte-code "ƒà≈    !Δ    !
  658. Ö« `\"à»!à
  659. Ö … ƒ
  660. #*á" [val arg com vip-com-point nil vip-p-val vip-getcom move-marker forward-sentence vip-execute-com vip-forward-sentence] 8))
  661.  
  662. (defun vip-backward-sentence (arg) "\
  663. Backward sentence." (interactive "P") (byte-code "ƒà≈    !Δ    !
  664. Ö« `\"à»!à
  665. Ö … ƒ
  666. #*á" [val arg com vip-com-point nil vip-p-val vip-getcom move-marker backward-sentence vip-execute-com vip-backward-sentence] 8))
  667.  
  668. (defun vip-forward-paragraph (arg) "\
  669. Forward paragraph." (interactive "P") (byte-code "ƒà≈    !Δ    !
  670. Ö« `\"à»!à
  671. Ö … ƒ
  672. #*á" [val arg com vip-com-point nil vip-p-val vip-getCom move-marker forward-paragraph vip-execute-com vip-forward-paragraph] 8))
  673.  
  674. (defun vip-backward-paragraph (arg) "\
  675. Backward paragraph." (interactive "P") (byte-code "ƒà≈    !Δ    !
  676. Ö« `\"à»!à
  677. Ö … ƒ
  678. #*á" [val arg com vip-com-point nil vip-p-val vip-getCom move-marker backward-paragraph vip-execute-com vip-backward-paragraph] 8))
  679.  
  680. (defun vip-scroll (arg) "\
  681. Scroll to next screen." (interactive "p") (byte-code "¡à¬VɬVÖ√ àSâàÇÇ-¬VÖ-ƒ àTâàÇá" [arg nil 0 scroll-up scroll-down] 5))
  682.  
  683. (defun vip-scroll-back (arg) "\
  684. Scroll to previous screen." (interactive "p") (byte-code "¡à¬[!á" [arg nil vip-scroll] 2))
  685.  
  686. (defun vip-scroll-down (arg) "\
  687. Scroll up half screen." (interactive "P") (byte-code "¡à?ɬ√ƒ ≈\"!Ǭ!á" [arg nil scroll-down / window-height 2] 5))
  688.  
  689. (defun vip-scroll-down-one (arg) "\
  690. Scroll up one line." (interactive "p") (byte-code "¡à¬!á" [arg nil scroll-down] 2))
  691.  
  692. (defun vip-scroll-up (arg) "\
  693. Scroll down half screen." (interactive "P") (byte-code "¡à?ɬ√ƒ ≈\"!Ǭ!á" [arg nil scroll-up / window-height 2] 5))
  694.  
  695. (defun vip-scroll-up-one (arg) "\
  696. Scroll down one line." (interactive "p") (byte-code "¡à¬!á" [arg nil scroll-up] 2))
  697.  
  698. (defun vip-buffer-in-two-windows nil "\
  699. Show current buffer in two windows." (interactive) (byte-code "¿à¡ à¬¿!á" [nil delete-other-windows split-window-vertically] 3))
  700.  
  701. (defun vip-search-forward (arg) "\
  702. Search a string forward.  ARG is used to find the ARG's occurence
  703. of the string.  Default is vanilla search.  Search mode can be toggled by
  704. giving null search string." (interactive "P") (byte-code "»à…    !     !ƒÀÉÃÇÕ!âàŒ
  705. œ\"É;?âà–—“É5”Ç6‘\"!ÇQ’
  706. ƒ#à
  707. ÖQ÷◊ \"àÿŸ
  708. #*á" [val arg com vip-s-forward t vip-s-string vip-re-search vip-com-point nil vip-P-val vip-getcom vip-read-string "RE-/" "/" string= "" message format "Search mode changed to %s search." "regular expression" "vanilla" vip-search move-marker mark vip-execute-com vip-search-next] 13))
  709.  
  710. (defun vip-search-backward (arg) "\
  711. Search a string backward.  ARG is used to find the ARG's occurence
  712. of the string.  Default is vanilla search.  Search mode can be toggled by
  713. giving null search string." (interactive "P") (byte-code "ƒà»    !…    !ƒ ÉÀÇÃ!âàÕ
  714. Œ\"É;?âàœ–—É5“Ç6”\"!ÇQ‘
  715. ƒ#à
  716. ÖQ’÷ \"à◊ÿ
  717. #*á" [val arg com vip-s-forward nil vip-s-string vip-re-search vip-com-point vip-P-val vip-getcom vip-read-string "RE-?" "?" string= "" message format "Search mode changed to %s search." "regular expression" "vanilla" vip-search move-marker mark vip-execute-com vip-search-next] 13))
  718.  
  719. (defun vip-search (string forward arg &optional no-offset init-point) "\
  720. (STRING FORWARD COUNT &optional NO-OFFSET) Search COUNT's occurrence of
  721. STRING.  Search will be forward if FORWARD, otherwise backward." (byte-code "À    !à   !Õ    !?
  722. ?    Ü`
  723. É(Œœ–èÇ,Œ—“è.á" [val arg com null-arg offset no-offset case-fold-search vip-case-fold-search start-point init-point forward vip-p-val vip-getcom vip-P-val conditions (byte-code "Öm?Ö Δ à    É«
  724. √√ $à»
  725. !Ç'…
  726. √√ $à 
  727. !àÀ
  728. !á" [offset vip-re-search string nil val start-point forward-char re-search-forward re-search-backward search-forward search-backward push-mark] 8) ((search-failed (byte-code "Ö    Éebà»
  729. … B≈%Ç\"bà ÀA\"á" [null-arg vip-search-wrap-around string forward com t start-point conditions vip-search 1 signal search-failed] 6))) (byte-code "É
  730. ≈    ¬¬ $ÇΔ    ¬¬ $à« !á" [vip-re-search string nil val start-point re-search-backward search-backward push-mark] 6) ((search-failed (byte-code "Ö    Édbà»
  731. … B≈%Ç\"bà ÀA\"á" [null-arg vip-search-wrap-around string forward com t start-point conditions vip-search 1 signal search-failed] 6)))] 9))
  732.  
  733. (defun vip-search-next (arg) "\
  734. Repeat previous search." (interactive "P") (byte-code "≈àΔ    !«    ! ?Ö»…!à      #à
  735. Ö\"ÀÃ
  736. #*á" [val arg com vip-s-string vip-s-forward nil vip-p-val vip-getcom error "No previous search string." vip-search vip-execute-com vip-search-next] 8))
  737.  
  738. (defun vip-search-Next (arg) "\
  739. Repeat previous search in the reverse direction." (interactive "P") (byte-code "≈àΔ    !«    ! ?Ö»…!à  ?    #à
  740. Ö#ÀÃ
  741. #*á" [val arg com vip-s-string vip-s-forward nil vip-p-val vip-getcom error "No previous search string." vip-search vip-execute-com vip-search-Next] 8))
  742.  
  743. (defun vip-switch-to-buffer nil "\
  744. Switch to buffer in the current window." (interactive) (byte-code "¡à¡¬√ƒ≈Δp!!\"!âà«!à» )á" [buffer nil read-buffer format "switch to buffer (%s): " buffer-name other-buffer switch-to-buffer vip-change-mode-to-vi] 7))
  745.  
  746. (defun vip-switch-to-buffer-other-window nil "\
  747. Switch to buffer in another window." (interactive) (byte-code "¡à¡¬√ƒ≈Δp!!\"!âà«!à» )á" [buffer nil read-buffer format "Switch to buffer (%s): " buffer-name other-buffer switch-to-buffer-other-window vip-change-mode-to-vi] 7))
  748.  
  749. (defun vip-kill-buffer nil "\
  750. Kill a buffer." (interactive) (byte-code "¬à¬¬√ƒ≈¡p!\"!âà    ?ÉpÇΔ    !âà?Ö)«»    \"à…!?Ü4 À!É=Ã!Ç@«Õ!*á" [buffer buffer-name nil read-buffer format "Kill buffer (%s): " get-buffer error "Buffer %s nonexistent." buffer-modified-p y-or-n-p "Buffer is modified, are you sure? " kill-buffer "Buffer not killed."] 10))
  751.  
  752. (defun vip-find-file nil "\
  753. Visit file in the current window." (interactive) (byte-code "¡à¡¬√!âàƒ≈!!àΔ )á" [file nil read-file-name "visit file: " switch-to-buffer find-file-noselect vip-change-mode-to-vi] 5))
  754.  
  755. (defun vip-find-file-other-window nil "\
  756. Visit file in another window." (interactive) (byte-code "¡à¡¬√!âàƒ≈!!àΔ )á" [file nil read-file-name "Visit file: " switch-to-buffer-other-window find-file-noselect vip-change-mode-to-vi] 5))
  757.  
  758. (defun vip-info-on-file nil "\
  759. Give information of the file associated to the current buffer." (interactive) (byte-code "¿à¡¬√ É√ Çƒ≈e`\"T≈ed\"T$á" [nil message "\"%s\" line %d of %d" buffer-file-name "" count-lines] 10))
  760.  
  761. (defun vip-yank (text) "\
  762. yank TEXT silently." (byte-code "ä¡`!àcଠ)à√ƒ!á" [text vip-push-mark-silent exchange-point-and-mark skip-chars-forward "     "] 4))
  763.  
  764. (defun vip-put-back (arg) "\
  765. Put back after point/below line." (interactive "P") (byte-code "Δà…    ! É#  XÖ ÀXÉ  Z 8Ç Ã !Ç% @
  766. ?ÖA É> ΔâàÕŒ
  767. \")ÇAÕœ!àΔâà–
  768. !ÉU—“!à” Çal?Ö\\m?Öa‘ à’Δ Fâà÷VÖÉ◊
  769. !àSâàÇn)*á" [val arg text vip-use-register kill-ring-yank-pointer reg nil vip-d-com count vip-p-val 49 57 get-register error "Nothing in register %c" "" vip-end-with-a-newline-p next-line 1 beginning-of-line forward-char vip-put-back 0 vip-yank] 12))
  770.  
  771. (defun vip-Put-back (arg) "\
  772. Put back at point/above line." (interactive "P") (byte-code "Δà…    ! É#  XÖ ÀXÉ  Z 8Ç Ã !Ç% @
  773. ?ÖA É> ΔâàÕŒ
  774. \")ÇAÕœ!àΔâà–
  775. !ÖN— à“Δ Fâà”VÖp‘
  776. !àSâàÇ[)*á" [val arg text vip-use-register kill-ring-yank-pointer reg nil vip-d-com count vip-p-val 49 57 get-register error "Nothing in register %c" "" vip-end-with-a-newline-p beginning-of-line vip-Put-back 0 vip-yank] 10))
  777.  
  778. (defun vip-delete-char (arg) "\
  779. Delete character." (interactive "P") (byte-code "√àΔ    !«√Eâà Ö6» XÖ …XÉ*  À\\``Z√$Ç2à ``Z√$à√âàÕ≈\")á" [val arg vip-d-com nil vip-use-register t vip-p-val vip-delete-char 65 90 vip-append-to-register 32 copy-to-register delete-char] 7))
  780.  
  781. (defun vip-delete-backward-char (arg) "\
  782. Delete previous character." (interactive "P") (byte-code "√àΔ    !«√Eâà Ö6» XÖ …XÉ*  À\\``\\√$Ç2à ``\\√$à√âàÕ≈\")á" [val arg vip-d-com nil vip-use-register t vip-p-val vip-delete-backward-char 65 90 vip-append-to-register 32 copy-to-register delete-backward-char] 7))
  783.  
  784. (defun vip-join-lines (arg) "\
  785. Join this line to next, if ARG is nil.  Otherwise, join ARG lines" (interactive "*P") (byte-code "√à≈    !Δ√Eâà?É«ÇS »VÖ<… àm?Ö3 «!àÀ``S\"ààà SâàÇ))á" [val arg vip-d-com nil count vip-P-val vip-join-lines 1 0 end-of-line forward-line delete-region fixup-whitespace] 8))
  786.  
  787. (defun vip-change (beg end) (byte-code "√ƒ≈Δ    
  788. \"\"!âà«    
  789. \"á" [c-string beg end vip-read-string format "%s => " buffer-substring vip-change-subr] 6))
  790.  
  791. (defun vip-change-subr (beg end) (byte-code "ÖΔ    
  792. √$à√âà«    
  793. \"à»âà
  794. cá" [vip-use-register beg end nil this-command c-string copy-to-register kill-region vip-change] 5))
  795.  
  796. (defun vip-query-replace nil "\
  797. Query replace.  If you supply null string as the string to be replaced,
  798. the query replace mode will toggle between string replace and regexp replace." (interactive) (byte-code "¬à¬√    É
  799. ƒÇ≈!âàΔ«\"É-    ?âà»…    É( Ç)À\"ÇF    É=Ã√ÕŒ\"!\"ÇFœ√Õ–\"!\")á" [str vip-re-query-replace nil vip-read-string "Query replace regexp: " "Query replace: " string= "" message "Query replace mode changed to %s." "regexp replace" "string replace" query-replace-regexp format "Query replace regexp \"%s\" with: " query-replace "Query replace \"%s\" with: "] 12))
  800.  
  801. (defun vip-mark-beginning-of-buffer nil (interactive) (byte-code "¿à¡`!àebଠà√ƒ!á" [nil set-mark exchange-point-and-mark message "mark set at the beginning of buffer"] 4))
  802.  
  803. (defun vip-mark-end-of-buffer nil (interactive) (byte-code "¿à¡`!àdbଠà√ƒ!á" [nil set-mark exchange-point-and-mark message "mark set at the end of buffer"] 4))
  804.  
  805. (defun vip-mark-point (char) (interactive "c") (byte-code "¬à√XÖ ƒXÉ≈√ΔZZ!ÇS«UÉ#» ÇS…UÉ.  ÇSÀUÉ9àÇSÕUÉEŒΔ!ÇSœUÉP– ÇS—“!á" [char t nil 97 122 point-to-register 1 60 vip-mark-beginning-of-buffer 62 vip-mark-end-of-buffer 46 push-mark 44 set-mark-command 68 mark-defun error ""] 8))
  806.  
  807. (defun vip-goto-mark (arg) "\
  808. Go to mark." (interactive "P") (byte-code "√àrƒ
  809. !≈    √#*á" [char com arg nil vip-getcom vip-goto-mark-subr] 5))
  810.  
  811. (defun vip-goto-mark-and-skip-white (arg) "\
  812. Go to mark and skip to first non-white on line." (interactive "P") (byte-code "ƒàr≈
  813. !Δ    √#*á" [char com arg t nil vip-getCom vip-goto-mark-subr] 5))
  814.  
  815. (defun vip-goto-mark-subr (char com skip-white) (byte-code "«XÖ    »XÉVp
  816. Ö… `\"à «ÀZZ!bà Ö&ààÕ à
  817. ÖRŒ    p\"ÉEœ É>–Ç?—≈
  818. #ÇR“    !à bàÕ à”‘!)ǰ ?Ö^’UÉy
  819. Öi… `\"à÷ à
  820. Övœ—≈
  821. #ǰ ÖÄ◊UÉû
  822. Öã… `\"à÷ ààà
  823. Öõœ–≈
  824. #ǰ”‘!á" [char buff com vip-com-point skip-white nil t 97 122 move-marker register-to-point 1 back-to-indentation vip-change-mode-to-vi equal vip-execute-com vip-goto-mark-and-skip-white vip-goto-mark switch-to-buffer error "" 96 exchange-point-and-mark 39] 19))
  825.  
  826. (defun vip-exchange-point-and-mark nil (interactive) (byte-code "¿à¡ à¬ á" [nil exchange-point-and-mark back-to-indentation] 3))
  827.  
  828. (defun vip-keyboard-quit nil "\
  829. Abort partially formed or running command." (interactive) (byte-code "¡à¡âଠá" [vip-use-register nil keyboard-quit] 2))
  830.  
  831. (defun vip-ctl-c-equivalent (arg) "\
  832. Emulate C-c in Emacs mode." (interactive "P") (byte-code "¡à¬√\"á" [arg nil vip-ctl-key-equivalent ""] 3))
  833.  
  834. (defun vip-ctl-x-equivalent (arg) "\
  835. Emulate C-x in Emacs mode." (interactive "P") (byte-code "¡à¬√\"á" [arg nil vip-ctl-key-equivalent ""] 3))
  836.  
  837. (defun vip-ctl-key-equivalent (key arg) (byte-code "rΔXÖ «XÖΔ»ZZâà
  838. âà…  ÀÃ
  839. Õ!##!)á" [char prefix-arg arg vip-emacs-local-map global-map key 65 90 1 command-execute vip-get-editor-command format "%s%s" char-to-string] 9))
  840.  
  841. (defun vip-delete-backward-word (arg) "\
  842. Delete previous word." (interactive "p") (byte-code "¡àä¬`!à√!àƒ`≈ \")á" [arg nil set-mark backward-word delete-region mark] 6))
  843.  
  844. (set (quote vip-mode-map) (make-keymap))
  845.  
  846. (define-key vip-mode-map "" (quote beginning-of-line))
  847.  
  848. (define-key vip-mode-map "" (quote vip-scroll-back))
  849.  
  850. (define-key vip-mode-map "" (quote vip-ctl-c))
  851.  
  852. (define-key vip-mode-map "" (quote vip-scroll-up))
  853.  
  854. (define-key vip-mode-map "" (quote vip-scroll-up-one))
  855.  
  856. (define-key vip-mode-map "" (quote vip-scroll))
  857.  
  858. (define-key vip-mode-map "" (quote vip-keyboard-quit))
  859.  
  860. (define-key vip-mode-map "" (quote help-command))
  861.  
  862. (define-key vip-mode-map "
  863. " (quote vip-scroll-back))
  864.  
  865. (define-key vip-mode-map "" (quote vip-other-window))
  866.  
  867. (define-key vip-mode-map "" (quote vip-open-line-at-point))
  868.  
  869. (define-key vip-mode-map "" (quote vip-scroll-down))
  870.  
  871. (define-key vip-mode-map "" (quote vip-ctl-x))
  872.  
  873. (define-key vip-mode-map "" (quote vip-scroll-down-one))
  874.  
  875. (define-key vip-mode-map "" (quote vip-change-mode-to-emacs))
  876.  
  877. (define-key vip-mode-map "" (quote vip-ESC))
  878.  
  879. (define-key vip-mode-map " " (quote vip-scroll))
  880.  
  881. (define-key vip-mode-map "!" (quote vip-command-argument))
  882.  
  883. (define-key vip-mode-map "\"" (quote vip-command-argument))
  884.  
  885. (define-key vip-mode-map "#" (quote vip-command-argument))
  886.  
  887. (define-key vip-mode-map "$" (quote vip-goto-eol))
  888.  
  889. (define-key vip-mode-map "%" (quote vip-paren-match))
  890.  
  891. (define-key vip-mode-map "&" (quote vip-nil))
  892.  
  893. (define-key vip-mode-map "'" (quote vip-goto-mark-and-skip-white))
  894.  
  895. (define-key vip-mode-map "(" (quote vip-backward-sentence))
  896.  
  897. (define-key vip-mode-map ")" (quote vip-forward-sentence))
  898.  
  899. (define-key vip-mode-map "*" (quote call-last-kbd-macro))
  900.  
  901. (define-key vip-mode-map "+" (quote vip-next-line-at-bol))
  902.  
  903. (define-key vip-mode-map "," (quote vip-repeat-find-opposite))
  904.  
  905. (define-key vip-mode-map "-" (quote vip-previous-line-at-bol))
  906.  
  907. (define-key vip-mode-map "." (quote vip-repeat))
  908.  
  909. (define-key vip-mode-map "/" (quote vip-search-forward))
  910.  
  911. (define-key vip-mode-map "0" (quote vip-beginning-of-line))
  912.  
  913. (define-key vip-mode-map "1" (quote vip-digit-argument))
  914.  
  915. (define-key vip-mode-map "2" (quote vip-digit-argument))
  916.  
  917. (define-key vip-mode-map "3" (quote vip-digit-argument))
  918.  
  919. (define-key vip-mode-map "4" (quote vip-digit-argument))
  920.  
  921. (define-key vip-mode-map "5" (quote vip-digit-argument))
  922.  
  923. (define-key vip-mode-map "6" (quote vip-digit-argument))
  924.  
  925. (define-key vip-mode-map "7" (quote vip-digit-argument))
  926.  
  927. (define-key vip-mode-map "8" (quote vip-digit-argument))
  928.  
  929. (define-key vip-mode-map "9" (quote vip-digit-argument))
  930.  
  931. (define-key vip-mode-map ":" (quote vip-ex))
  932.  
  933. (define-key vip-mode-map ";" (quote vip-repeat-find))
  934.  
  935. (define-key vip-mode-map "<" (quote vip-command-argument))
  936.  
  937. (define-key vip-mode-map "=" (quote vip-command-argument))
  938.  
  939. (define-key vip-mode-map ">" (quote vip-command-argument))
  940.  
  941. (define-key vip-mode-map "?" (quote vip-search-backward))
  942.  
  943. (define-key vip-mode-map "@" (quote vip-nil))
  944.  
  945. (define-key vip-mode-map "A" (quote vip-Append))
  946.  
  947. (define-key vip-mode-map "B" (quote vip-backward-Word))
  948.  
  949. (define-key vip-mode-map "C" (quote vip-ctl-c-equivalent))
  950.  
  951. (define-key vip-mode-map "D" (quote vip-kill-line))
  952.  
  953. (define-key vip-mode-map "E" (quote vip-end-of-Word))
  954.  
  955. (define-key vip-mode-map "F" (quote vip-find-char-backward))
  956.  
  957. (define-key vip-mode-map "G" (quote vip-goto-line))
  958.  
  959. (define-key vip-mode-map "H" (quote vip-window-top))
  960.  
  961. (define-key vip-mode-map "I" (quote vip-Insert))
  962.  
  963. (define-key vip-mode-map "J" (quote vip-join-lines))
  964.  
  965. (define-key vip-mode-map "K" (quote vip-kill-buffer))
  966.  
  967. (define-key vip-mode-map "L" (quote vip-window-bottom))
  968.  
  969. (define-key vip-mode-map "M" (quote vip-window-middle))
  970.  
  971. (define-key vip-mode-map "N" (quote vip-search-Next))
  972.  
  973. (define-key vip-mode-map "O" (quote vip-Open-line))
  974.  
  975. (define-key vip-mode-map "P" (quote vip-Put-back))
  976.  
  977. (define-key vip-mode-map "Q" (quote vip-query-replace))
  978.  
  979. (define-key vip-mode-map "R" (quote vip-replace-string))
  980.  
  981. (define-key vip-mode-map "S" (quote vip-switch-to-buffer-other-window))
  982.  
  983. (define-key vip-mode-map "T" (quote vip-goto-char-backward))
  984.  
  985. (define-key vip-mode-map "U" (quote vip-nil))
  986.  
  987. (define-key vip-mode-map "V" (quote vip-find-file-other-window))
  988.  
  989. (define-key vip-mode-map "W" (quote vip-forward-Word))
  990.  
  991. (define-key vip-mode-map "X" (quote vip-ctl-x-equivalent))
  992.  
  993. (define-key vip-mode-map "Y" (quote vip-yank-line))
  994.  
  995. (define-key vip-mode-map "ZZ" (quote save-buffers-kill-emacs))
  996.  
  997. (define-key vip-mode-map "[" (quote vip-nil))
  998.  
  999. (define-key vip-mode-map "\\" (quote vip-escape-to-emacs))
  1000.  
  1001. (define-key vip-mode-map "]" (quote vip-nil))
  1002.  
  1003. (define-key vip-mode-map "^" (quote vip-bol-and-skip-white))
  1004.  
  1005. (define-key vip-mode-map "_" (quote vip-nil))
  1006.  
  1007. (define-key vip-mode-map "`" (quote vip-goto-mark))
  1008.  
  1009. (define-key vip-mode-map "a" (quote vip-append))
  1010.  
  1011. (define-key vip-mode-map "b" (quote vip-backward-word))
  1012.  
  1013. (define-key vip-mode-map "c" (quote vip-command-argument))
  1014.  
  1015. (define-key vip-mode-map "d" (quote vip-command-argument))
  1016.  
  1017. (define-key vip-mode-map "e" (quote vip-end-of-word))
  1018.  
  1019. (define-key vip-mode-map "f" (quote vip-find-char-forward))
  1020.  
  1021. (define-key vip-mode-map "g" (quote vip-info-on-file))
  1022.  
  1023. (define-key vip-mode-map "h" (quote vip-backward-char))
  1024.  
  1025. (define-key vip-mode-map "i" (quote vip-insert))
  1026.  
  1027. (define-key vip-mode-map "j" (quote vip-next-line))
  1028.  
  1029. (define-key vip-mode-map "k" (quote vip-previous-line))
  1030.  
  1031. (define-key vip-mode-map "l" (quote vip-forward-char))
  1032.  
  1033. (define-key vip-mode-map "m" (quote vip-mark-point))
  1034.  
  1035. (define-key vip-mode-map "n" (quote vip-search-next))
  1036.  
  1037. (define-key vip-mode-map "o" (quote vip-open-line))
  1038.  
  1039. (define-key vip-mode-map "p" (quote vip-put-back))
  1040.  
  1041. (define-key vip-mode-map "q" (quote vip-nil))
  1042.  
  1043. (define-key vip-mode-map "r" (quote vip-replace-char))
  1044.  
  1045. (define-key vip-mode-map "s" (quote vip-switch-to-buffer))
  1046.  
  1047. (define-key vip-mode-map "t" (quote vip-goto-char-forward))
  1048.  
  1049. (define-key vip-mode-map "u" (quote vip-undo))
  1050.  
  1051. (define-key vip-mode-map "v" (quote vip-find-file))
  1052.  
  1053. (define-key vip-mode-map "w" (quote vip-forward-word))
  1054.  
  1055. (define-key vip-mode-map "x" (quote vip-delete-char))
  1056.  
  1057. (define-key vip-mode-map "y" (quote vip-command-argument))
  1058.  
  1059. (define-key vip-mode-map "zH" (quote vip-line-to-top))
  1060.  
  1061. (define-key vip-mode-map "zM" (quote vip-line-to-middle))
  1062.  
  1063. (define-key vip-mode-map "zL" (quote vip-line-to-bottom))
  1064.  
  1065. (define-key vip-mode-map "z
  1066. " (quote vip-line-to-top))
  1067.  
  1068. (define-key vip-mode-map "z." (quote vip-line-to-middle))
  1069.  
  1070. (define-key vip-mode-map "z-" (quote vip-line-to-bottom))
  1071.  
  1072. (define-key vip-mode-map "{" (quote vip-backward-paragraph))
  1073.  
  1074. (define-key vip-mode-map "|" (quote vip-goto-col))
  1075.  
  1076. (define-key vip-mode-map "}" (quote vip-forward-paragraph))
  1077.  
  1078. (define-key vip-mode-map "~" (quote vip-nil))
  1079.  
  1080. (define-key vip-mode-map "" (quote vip-delete-backward-char))
  1081.  
  1082. (defun vip-version nil (interactive) (byte-code "¿à¡¬!á" [nil message "VIP version 3.5 of September 15, 1987"] 2))
  1083.  
  1084. (defvar ex-token-type nil "\
  1085. type of token.  if non-nil, gives type of address.  if nil, it
  1086. is a command.")
  1087.  
  1088. (defvar ex-token nil "\
  1089. value of token.")
  1090.  
  1091. (defvar ex-addresses nil "\
  1092. list of ex addresses")
  1093.  
  1094. (defvar ex-flag nil "\
  1095. flag for ex flag")
  1096.  
  1097. (defvar ex-buffer nil "\
  1098. name of ex buffer")
  1099.  
  1100. (defvar ex-count nil "\
  1101. value of ex count")
  1102.  
  1103. (defvar ex-g-flag nil "\
  1104. flag for global command")
  1105.  
  1106. (defvar ex-g-variant nil "\
  1107. if t global command is executed on lines not matching ex-g-pat")
  1108.  
  1109. (defvar ex-reg-exp nil "\
  1110. save reg-exp used in substitute")
  1111.  
  1112. (defvar ex-repl nil "\
  1113. replace pattern for substitute")
  1114.  
  1115. (defvar ex-g-pat nil "\
  1116. pattern for global command")
  1117.  
  1118. (defvar ex-map (make-sparse-keymap) "\
  1119. save commnads for mapped keys")
  1120.  
  1121. (defvar ex-tag nil "\
  1122. save ex tag")
  1123.  
  1124. (defvar ex-file nil)
  1125.  
  1126. (defvar ex-variant nil)
  1127.  
  1128. (defvar ex-offset nil)
  1129.  
  1130. (defvar ex-append nil)
  1131.  
  1132. (defun vip-nil nil (interactive) (byte-code "¿à¡¬!á" [nil error ""] 2))
  1133.  
  1134. (defun vip-looking-back (str) "\
  1135. returns t if looking back reg-exp STR before point." (byte-code "ä√¡¬#)Ö`ƒ≈!Uá" [str nil t re-search-backward match-end 0] 4))
  1136.  
  1137. (defun vip-check-sub (str) "\
  1138. check if ex-token is an initial segment of STR" (byte-code "    G
  1139. GXÖƒ    
  1140. ≈O\"É
  1141. âÇΔâ)á" [length ex-token str ex-token-type string= 0 "non-command"] 5))
  1142.  
  1143. (defun vip-get-ex-com-subr nil "\
  1144. get a complete ex command" (byte-code "√`!àƒ≈!àΔâà«`» \"âà… à À!É; Ã!É)ÕŒ!Ç8 œ!É5Õ–!Ç8Õ—!Çx “!ÉG”âÇx ‘!É_ ’!ÉYÕ÷!Ç\\Õ◊!Çx ÿ!ÉkÕŸ!Çx ⁄!ÉÉ €!É}Õ€!ÇÄÕ‹!Çx ›!ÉèÕfi!Çx fl!ÉõÕ‡!Çx ·!ÉßÕ‚!Çx „!É≥Õ‰!Çx Â!ÉøÕÊ!Çx Á!É„ Ë!É—ÕË!LJ È!É›ÕÍ!LJÕÎ!Çx Ï!É˚ Ì!ÉıÕÓ!ǯÕÔ!Çx !ÉÕÒ!Çx Ú!É+ Û!ÉÕÙ!Ç( ı!É%Õˆ!Ç(Õ˜!Çx ¯!É7Õ˘!Çx ˙!É[ ˚!ÉIÕ¸!ÇX ˝!ÉUÕ˛!ÇXÕˇ!Çx Å@!É´ ÅA!ÉsÕÅB!Ç® ÅC!ÉÉÕÅD!Ç® ÅE!ÉìÕÅF!Ç® ÅG!É£ÕÅH!Ç®ÕÅI!Çx ÅJ!ÉÀ ÅK!É√ÕÅL!Ç»ÕÅJ!Çx ÅM!É˚ ÅN!É„ÕÅO!ǯ ÅP!ÉÛÕÅQ!ǯÕÅR!Çx ÅS!É+ ÅT!ÉÕÅU!Ç( ÅV!É#ÕÅW!Ç(ÕÅS!Çx ÅX!ÉK ÅY!ÉCÕÅY!ÇHÕÅZ!Çx Å[!É[ÕÅ\\!Çx Å]!ÉkÕÅ^!Çx Å_!ÖxÕÅ_!à… á" [ex-token-type ex-token t set-mark re-search-forward "[a-z][a-z]*" "command" buffer-substring mark exchange-point-and-mark looking-at "a" "ab" vip-check-sub "abbreviate" "ar" "args" "append" "[bh]" "non-command" "c" "co" "copy" "change" "d" "delete" "e" "ex" "edit" "f" "file" "g" "global" "i" "insert" "j" "join" "l" "list" "m" "map" "mar" "mark" "move" "n" "nu" "number" "next" "o" "open" "p" "pre" "preserve" "pu" "put" "print" "q" "quit" "r" "rec" "recover" "rew" "rewind" "read" "s" "se" "set" "sh" "shell" "so" "source" "st" "stop" "substitute" "t" "ta" "tag" "u" "una" "unabbreviate" "unm" "unmap" "undo" "v" "ve" "version" "vi" "visual" "w" "wq" "write" "x" "xit" "y" "yank" "z"] 96))
  1145.  
  1146. (defun vip-get-ex-token nil "\
  1147. get an ex-token which is either an address or a command.
  1148. a token has type (command, address, end-mark) and value." (byte-code "≈ãá" [ex-token-type ex-token t cont nil ((byte-code "≈qàΔ«!à»…!É âàÀg!âàÃÕ!Ç»Œ!É(œ Ç»–!É8ÃÕ!à—âÇ»“!Él”`!à‘’!à÷◊\"ÉQÿÇ]÷Ÿ\"É\\⁄Ç]€âà‹›`fi \"!âÇ»fl!É|ÃÕ!à‡âÇ»·!ÉåÃÕ!à‚âÇ»„!É≈»‰!Üõ»Â!ÉØÃÕ!àÊcàÁÕ!à◊âǬ»Ë!ÉøÃÕ!à◊âǬÈÍ!Ç»Î!ɲ»Ï!Ü‘»Ì!ÉËÃÕ!àÊcàÁÕ!àŸâÇ˚»Ó!ɯÃÕ!àŸâÇ˚ÈÍ!Ç»Ô!ÉGÃÕ!à”`!à¬l?Ö Ö)‘!àÒÚ!?Ö%ƒâàÇ)àÁÕ!à›`fi \"âà»Ô!Ö@ÃÕ!àÛâÇ»Ù!ÉíÃÕ!à”`!à¬l?Ö] ÖÅ‘ı!àÒˆ!?ÖnƒâàÁÕ!໘!?Ö}ÃÕ!àÇW)à¯âà›`Sfi \"âÇ»˘!É¢ÃÕ!à˙âÇ»˚!É≤ÃÕ!à¸âÇ»˝!É» âàÀg!âàÃÕ!Ç»˛!É˙ˇâàÃÕ!à»˛!É‚ƒâÇÛ»Œ!ÉÓgâÇÛÈÅ@!àÃÕ!Ç»˜!ÉÅAâàÅBâÇÈÅC!á" [ex-token-type ex-token t cont nil " *ex-working-space*" skip-chars-forward "     " looking-at "[k#]" "command" char-to-string forward-char 1 "[a-z]" vip-get-ex-com-subr "\\." "dot" "[0-9]" set-mark re-search-forward "[0-9]*" string= "plus" "add-number" "minus" "sub-number" "abs-number" string-to-int buffer-substring mark "\\$" "end" "%" "whole" "+" "+[-+]" "+[
  1149. |]" "1" backward-char "+[0-9]" error "Badly formed address" "-" "-[-+]" "-[
  1150. |]" "-[0-9]" "/" "[^/]*\\(/\\|
  1151. \\)" vip-looking-back "[^\\\\]\\(\\\\\\\\\\)*\\\\/" "search-forward" "\\?" "[^\\?]*\\(\\?\\|
  1152. \\)" "[^\\\\]\\(\\\\\\\\\\)*\\\\\\?" "
  1153. " "search-backward" "," "comma" ";" "semi-colon" "[!=><&~]" "'" "goto-mark" "Marks are ' and a-z" "end-mark" "goto" "illegal token"] 72))] 1))
  1154.  
  1155. (defun vip-ex (&optional string) "\
  1156. ex commands within VIP." (interactive) (byte-code "¬àÜ ¬¬âàÜÕŒ!¬«`œãà–â    à¬â
  1157. àÖı— à“    ”\"Ü>“    ‘\"É{
  1158. ÖL
  1159. 
  1160. Bâ
  1161. à“ ’\"É`÷¬!à¬âÇx“ ◊\"És÷«!à¬âÇxÿ àŸãÇÒ“    ⁄\"É瀋› \"!ÇÒ“    fi\"ɰde
  1162. BBâ
  1163. ÇÒ“    fl\"ɺ
  1164. ?É≤`Ç≥
  1165. 
  1166. Bâ
  1167. ÇÒ“    ‡\"ɇ
  1168. ÖÃ
  1169. âà
  1170. ?É÷`Ç◊
  1171. 
  1172. Bâ
  1173. ÇÒ·
  1174. \"  Ö â)àÇ),á" [string ex-g-flag nil ex-g-variant com-str address cont t dot ex-token-type ex-addresses ex-token ans vip-read-string ":" ((byte-code "¡¬!qà√ed\"àƒ≈\"àebá" [com-str get-buffer-create " *ex-working-space*" delete-region insert "
  1175. "] 5)) "" vip-get-ex-token string= "command" "end-mark" "global" ex-global "v" vip-execute-ex-command ((byte-code "√qàƒ≈!àΔ«!É»…!Ç\"Δ !É¡âÇ\"ÀÃ!á" [cont nil t " *ex-working-space*" skip-chars-forward "     " looking-at "|" forward-char 1 "
  1176. " error "Extra character at end of a command"] 6)) "non-command" error format "%s: Not an editor command" "whole" "comma" "semi-colon" vip-get-ex-address-subr] 19))
  1177.  
  1178. (defun vip-get-ex-pat nil "\
  1179. get a regular expression and set ex-variant if found" (byte-code "Δãá" [ex-g-variant ex-g-flag cont t nil ex-token ((byte-code "Δqà«»!à… !Ö?    ?âàÀÃ!à«»!à…Õ!ÉdÀÃ!àŒ`!à√l?Ö3
  1180. ÖHœ–!à—“!?ÖDƒâàÇ-)à” `UÉU‘Ç[’`S” \"âà÷Ã!Çgƒâá" [ex-g-variant ex-g-flag cont t nil ex-token " *ex-working-space*" skip-chars-forward "     " looking-at "!" forward-char 1 "/" set-mark re-search-forward "[^/]*\\(/\\|
  1181. \\)" vip-looking-back "[^\\\\]\\(\\\\\\\\\\)*\\\\/" mark "" buffer-substring backward-char] 15))] 1))
  1182.  
  1183. (defun vip-get-ex-command nil "\
  1184. get an ex command" (byte-code "√ãá" [ex-token-type ex-token t ((byte-code "√qàƒ≈!Ö Δ«!à»…!àƒ !É(À àÃÕ\"Ö%Œœ    \"Ç=ƒ–!É:—g!âàΔ«!Ç=Œ“!á" [ex-token-type ex-token t " *ex-working-space*" looking-at "/" forward-char 1 skip-chars-forward "     " "[a-z]" vip-get-ex-com-subr string= "non-command" error "%s: not an editor command" "[!=><&~]" char-to-string "Could not find an ex command"] 12))] 1))
  1185.  
  1186. (defun vip-get-ex-opt-gc nil "\
  1187. get an ex option g or c" (byte-code "√ãá" [ex-token t nil ((byte-code "√qàƒ≈!Ö Δ«!à»…!àƒ !É# âàΔ«!à¡Ç6ƒÀ!É5ÀâàΔ«!à¡Ç6¬á" [ex-token t nil " *ex-working-space*" looking-at "/" forward-char 1 skip-chars-forward "     " "g" "c"] 8))] 1))
  1188.  
  1189. (defun vip-default-ex-addresses (&optional whole-flag) "\
  1190. compute default addresses.  whole-flag means whole buffer." (byte-code "?É    Éde¬BBÇ``¬BBâÇ'A?Ö'@Bâá" [ex-addresses whole-flag nil] 3))
  1191.  
  1192. (defun vip-get-ex-address nil "\
  1193. get an ex-address as a marker and set ex-flag if a flag is found" (byte-code "» ¬…âà≈âà    ÖÄ  àÀÃ\"ÉAÀ Õ\"Ü.À Œ\"Ü.À œ\"É;¬âà≈âÇ>–—!Ç|À“\"ÉO≈âÇ|À”\"É]–‘!Ç|À’\"Ék–÷!Ç|◊» \"Ö{â)àÇ
  1194. à*á" [address cont t ex-token ex-flag nil ex-token-type ans point-marker "" vip-get-ex-token string= "command" "print" "list" "#" error "address expected" "end-mark" "whole" "a trailing address is expected" "comma" "Extra characters after an address" vip-get-ex-address-subr] 17))
  1195.  
  1196. (defun vip-get-ex-address-subr (old-address dot) "\
  1197. returns an address as a point" (byte-code "¡
  1198. âà« »\"É âÇ‚« …\"É:ä
  1199. bà 
  1200. ÀUÉ/
  1201. SÇ0
  1202. !ààâ)Ç‚« Õ\"ÉRä
  1203. bà 
  1204. [!ààâ)Ç‚« Œ\"Éväebà
  1205. ÀUÉiÀâÇr 
  1206. S!ààâ)Ç‚« œ\"ÉÑ– âÇ‚« —\"ÉèΔÇ‚« “\"ÉöΔÇ‚« ”\"ÉÆä‘Δ!ààâ)Ç‚« ’\"ɬ䑡!ààâ)Ç‚« ÷\"Ö‚ä
  1207. ?É‘◊ Ç‹ÿ
  1208. Ÿ⁄ZZ!bààâ)à)á" [address nil old-address dot ex-token-type ex-token t string= "dot" "add-number" forward-line 0 point-marker "sub-number" "abs-number" "end" point-max-marker "plus" "minus" "search-forward" ex-search-address "search-backward" "goto-mark" exchange-point-and-mark register-to-point 97 1] 26))
  1209.  
  1210. (defun ex-search-address (forward) "\
  1211. search pattern and set address" (byte-code "√ƒ\"É    ?É≈Δ!Ç    âÇâà
  1212. É*«»!à…!Ç1« !àÀ!á" [ex-token vip-s-string forward string= "" error "No previous search string" forward-line 1 re-search-forward -1 re-search-backward] 7))
  1213.  
  1214. (defun vip-get-ex-buffer nil "\
  1215. get a buffer name and set ex-count and ex-flag if found" (byte-code "¡âà¡âà¡âà≈ãá" [ex-buffer nil ex-count ex-flag t ((byte-code "ƒqà≈Δ!à«»!Ögâà… !à≈Δ!à«À!Ö4Ã`!àÕŒ!àœ–`— \"!âà≈Δ!à«“!ÖB√âà… !à«”!?ÖM‘’!á" [ex-buffer ex-count ex-flag t " *ex-working-space*" skip-chars-forward "     " looking-at "[a-zA-Z]" forward-char 1 "[0-9]" set-mark re-search-forward "[0-9][0-9]*" string-to-int buffer-substring mark "[pl#]" "[
  1216. |]" error "Illegal extra characters"] 16))] 2))
  1217.  
  1218. (defun vip-get-ex-count nil (byte-code "¡¡¡âà≈ãá" [ex-variant nil ex-count ex-flag t ((byte-code "ƒqà≈Δ!à«»!Ö¡âà… !à≈Δ!à«À!Ö4Ã`!àÕŒ!àœ–`— \"!âà≈Δ!à«“!ÖB¡âà… !à«”!?ÖM‘’!á" [ex-variant t ex-count ex-flag " *ex-working-space*" skip-chars-forward "     " looking-at "!" forward-char 1 "[0-9]" set-mark re-search-forward "[0-9][0-9]*" string-to-int buffer-substring mark "[pl#]" "[
  1219. |]" error "Illegal extra characters"] 16))] 2))
  1220.  
  1221. (defun vip-get-ex-file nil "\
  1222. get a file name and set ex-variant, ex-append and ex-offset if found" (byte-code "¡¡¡¡âàΔãá" [ex-file nil ex-variant ex-append ex-offset t ((byte-code "≈qàΔ«!à»…!Ö¡âà À!àΔ«!à»Ã!Ö,¡¡âà Õ!àΔ«!໌!ÖR À!àœ`!à–—!à“À!à”`‘ \"âà À!àΔ«!àœ`!à–—!à“À!à”`‘ \"âá" [ex-variant t ex-append ex-offset ex-file " *ex-working-space*" skip-chars-forward "     " looking-at "!" forward-char 1 ">>" 2 "+" set-mark re-search-forward "[     
  1223. ]" backward-char buffer-substring mark] 23))] 2))
  1224.  
  1225. (defun vip-execute-ex-command nil "\
  1226. execute ex command using the value of addresses." (byte-code "√ƒ\"É ≈ Ç?√Δ\"É«¡!Ç?√»\"É%… Ç?√ \"É1À Ç?√Ã\"É=Õ Ç?√Œ\"ÉJœŒ!Ç?√–\"ÉV— Ç?√“\"Éb— Ç?√”\"Én‘ Ç?√’\"É{«¬!Ç?√÷\"Éá◊ Ç?√ÿ\"É쟠Ç?√⁄\"Éü€ Ç?√‹\"É´› Ç?√fi\"É∑fl Ç?√‡\"É√· Ç?√‚\"Éœ„ Ç?√‰\"É‹«¡!Ç?√Â\"ÉËÊ Ç?√Á\"ÉÙË Ç?√È\"ÉÍ Ç?√Î\"É Ï Ç?√Ì\"ÉÀ Ç?√Ó\"É%Ô¡!Ç?√\"É2Ô¬!Ç?√Ò\"É>Ú Ç?√Û\"ÉJÙ Ç?√ı\"ÉVˆ Ç?√˜\"Écœ¯!Ç?√˘\"Épœ˙!Ç?√˚\"É}·¬!Ç?√¸\"Éã·¬¬\"Ç?√˝\"ÜØ√˛\"ÜØ√ˇ\"ÜØ√Å@\"ÜØ√ÅA\"É¡ÅBÅCÅD\"!Ç?√ÅE\"Ü!√ÅF\"Ü!√ÅG\"Ü!√ÅH\"Ü!√ÅI\"Ü!√ÅJ\"Ü!√ÅK\"Ü!√ÅL\"Ü!√ÅM\"Ü!√ÅN\"Ü!√ÅO\"É3ÅBÅCÅP\"!Ç?ÅBÅCÅQ\"!á" [ex-token nil t string= "goto" ex-goto "copy" ex-copy "delete" ex-delete "edit" ex-edit "file" vip-info-on-file "join" ex-line "k" ex-mark "mark" "map" ex-map "move" "put" ex-put "quit" ex-quit "read" ex-read "set" ex-set "shell" ex-shell "substitute" ex-substitute "stop" suspend-emacs "t" "tag" ex-tag "undo" vip-undo "unmap" ex-unmap "version" vip-version "visual" "write" ex-write "wq" "yank" ex-yank "!" ex-command "=" ex-line-no ">" "right" "<" "left" "&" "~" "append" "args" "change" "insert" "open" error format "%s: no such command from VIP" "abbreviate" "list" "next" "print" "preserve" "recover" "rewind" "source" "unabbreviate" "xit" "z" "%s: not implemented in VIP" "%s: Not an editor command"] 88))
  1227.  
  1228. (defun ex-goto nil "\
  1229. ex goto command" (byte-code "?Ö
  1230. `¡Bâà¬`!à@bà√ á" [ex-addresses nil push-mark beginning-of-line] 3))
  1231.  
  1232. (defun ex-copy (del-flag) "\
  1233. ex copy and move command.  DEL-FLAG means delete." (byte-code "… à  
  1234. @
  1235. A@    bàäÀ !àÃÕ `\"à É'Œ`Õ \"Ç,œ`Õ \"à
  1236. ÖT–ê— Ü?Ü?ÉH@ÇM“`Õ \"!ëà”‘’è)à÷UÉaebÇgbà◊ÿ!à@c+á" [address end ex-addresses beg del-flag ex-flag ex-g-flag ex-g-variant kill-ring-yank-pointer vip-default-ex-addresses vip-get-ex-address set-mark vip-enlarge-region mark kill-region copy-region-as-kill "*copy text*" princ buffer-substring nil (byte-code "¿¡!àä¬√!)á" [vip-read-string "[Hit return to continue] " kill-buffer "*copy text*"] 3) ((quit (byte-code "䡬!)à√ƒ¿\"á" [nil kill-buffer "*copy text*" signal quit] 4))) 0 forward-line 1] 15))
  1237.  
  1238. (defun ex-delete nil "\
  1239. ex delete" (byte-code "« à» à    @    A@
  1240. VÖ… !àäÀ
  1241. \"ààà É/Õ`!àŒ S!Ç2Õ!àÀ`œ \"à ÉU–ê—“`œ \"!ëà”‘’èàä÷–!)Ç~
  1242. Öx◊
  1243. XÖb
  1244. ÿXÉqŸ
  1245. ⁄\\`œ Δ$Çx€
  1246. `œ Δ$à‹`œ \")*á" [end ex-addresses beg ex-count ex-flag ex-buffer nil vip-default-ex-addresses vip-get-ex-buffer error "First address exceeds second" vip-enlarge-region exchange-point-and-mark set-mark forward-line mark " *delete text*" princ buffer-substring conditions (byte-code "¿¡!á" [vip-read-string "[Hit return to continue] "] 2) ((quit (byte-code "ä¿¡!)à¬√!á" [kill-buffer " *delete text*" error ""] 3))) kill-buffer 65 90 vip-append-to-register 32 copy-to-register delete-region] 22))
  1247.  
  1248. (defun ex-edit nil "\
  1249. ex-edit" (byte-code "≈ à?ÖΔ Ö    Ö«»!à… à 
  1250. P!qàÀ àebà Ö2ÃãàÕ bàŒ á" [ex-variant buffer-file-name default-directory ex-file ex-offset vip-get-ex-file buffer-modified-p error "No write since last change (:e! overrides)" vip-change-mode-to-emacs find-file-noselect vip-change-mode-to-vi ((byte-code "¡qà¬ed\"à√ƒ\"àebá" [ex-offset " *ex-working-space*" delete-region insert "
  1251. "] 4)) vip-get-ex-address beginning-of-line] 9))
  1252.  
  1253. (defun ex-global (variant) "\
  1254. ex global command" (byte-code "Ü    É—“!Ç
  1255. É√ƒâǃ√âà” à
  1256. ?Ö+—‘!à’
  1257. ÷\"ÉG?É?—◊!ÇDâÇN
  1258. 
  1259. âà?Ö[deDâà√ÿ√@A@
  1260.   
  1261.     
  1262.  VÖ{—Ÿ!àä⁄
  1263.  \"à€ àƒ‹ € à› àmÖöo?Ö†fifl!àÖØo?ÖØ`YÖ› à‡`!à· à‚„ ƒ#ÖÀÜ’    Ö’?ÖÍ· à
  1264. Tâ
  1265. à‹     Bâ    )à› àoÉ˙√âljÂ!à· àǰ*)àÊãà    Ö*    @bàÁ !à
  1266. Sâ
  1267. à    Aâ    àÇ
  1268. -á" [ex-g-flag ex-g-variant variant nil t ex-token vip-s-string ex-g-pat ex-addresses marks mark-count com-str end beg cont limit found error "Global within global not allowed" vip-get-ex-pat "Missing regular expression for global command" string= "" "No previous search string" 0 "First address exceeds second" vip-enlarge-region exchange-point-and-mark point-marker beginning-of-line backward-char 1 set-mark end-of-line re-search-backward mark forward-line -1 ((byte-code "¡qà¬`TdS\"âá" [com-str " *ex-working-space*" buffer-substring] 3)) vip-ex] 26))
  1269.  
  1270. (defun ex-line (com) "\
  1271. ex line commands.  COM is join, shift-right or shift-left." (byte-code "« à» à    @    A@…
  1272. VÖ À!àäÃ
  1273. \"àÕ à Ö-Œ`!àœ !à
  1274. ÉJ–ê—“`” \"!ëà‘’÷èàä◊–!)ÇQÿ`” #à`â)à SbàŸ +á" [end ex-addresses beg point ex-count ex-flag com vip-default-ex-addresses vip-get-ex-count nil error "First address exceeds second" vip-enlarge-region exchange-point-and-mark set-mark forward-line " *text*" princ buffer-substring mark conditions (byte-code "¡¬!à√`ƒ #á" [com vip-read-string "[Hit return to continue] " ex-line-subr mark] 6) ((quit (byte-code "¿ á" [ding] 2))) kill-buffer ex-line-subr beginning-of-line] 16))
  1275.  
  1276. (defun ex-line-subr (com beg end) (byte-code "≈Δ\"ÉA    
  1277. ^bàm?Ö`    
  1278. ]WÖ>« à`    
  1279. ]XÖ&m?Ö:»…!à ``S\"à ?Ö:À àÇ Çp≈Ã\"ÜL≈Õ\"ÖpŒ    
  1280. ^    
  1281. ]≈Ã\"Éa Çc [#à    
  1282. ]bà« àœ…!á" [com beg end ex-variant vip-shift-width string= "join" end-of-line forward-line 1 delete-region fixup-whitespace "right" "left" indent-rigidly forward-char] 13))
  1283.  
  1284. (defun ex-mark nil "\
  1285. ex mark" (byte-code "¬    ?Ö `¬Bâà√ãàä    @bàƒ≈ΔZZ!))á" [char ex-addresses nil ((byte-code "¡qà¬√!àƒ≈!É&gâàΔ«!à¬√!àƒ»!?Ö#… !Ç5ƒ»!É2…À!Ç5…Ã!á" [char " *ex-working-space*" skip-chars-forward "     " looking-at "[a-z]" forward-char 1 "[
  1286. |]" error "Extra characters at end of \"k\" command" "\"k\" requires a following letter" "Mark must specify a letter"] 10)) point-to-register 97 1] 4))
  1287.  
  1288. (defun ex-map nil "\
  1289. ex map" (byte-code "ƒƒ≈ãàΔ
  1290. \"?Ö«
  1291. Δ \"Ü»#à« … ÀÃÕŒ    œEEBD!#*á" [char string ex-map vip-mode-map nil ((byte-code "¬qà√ƒ!à≈g!âàΔ«!à√ƒ!à»…!Ö À!àÃ`!àÕ àŒ«!àœ– `\"âá" [char string " *ex-working-space*" skip-chars-forward "     " char-to-string forward-char 1 looking-at "[
  1292. |]" error "Missing rhs" set-mark end-of-buffer backward-char buffer-substring mark] 13)) lookup-key define-key vip-nil eval quote lambda (count) (interactive "p") execute-kbd-macro count] 14))
  1293.  
  1294. (defun ex-unmap nil "\
  1295. ex unmap" (byte-code "√ƒãà≈    \"?ÖΔ«!à»
  1296. ≈    \"#à»    √#)á" [char ex-map vip-mode-map nil ((byte-code "¡qà¬√!àƒg!âà≈Δ!à¬√!à«»!?Ö… !á" [char " *ex-working-space*" skip-chars-forward "     " char-to-string forward-char 1 looking-at "[
  1297. |]" error "Macro must be a character"] 7)) lookup-key error "That macro wasn't mapped" define-key] 8))
  1298.  
  1299. (defun ex-put nil "\
  1300. ex put" (byte-code "    ?É    `Ç     @ƒ à âàbà≈UÉ\"Δ«!Ç%»«!)á" [point ex-addresses vip-use-register ex-buffer vip-get-ex-buffer 0 vip-Put-back 1 vip-put-back] 4))
  1301.  
  1302. (defun ex-quit nil "\
  1303. ex quit" (byte-code "¬√ãàƒUÉ≈¡!ÇΔ )á" [char t nil ((byte-code "¡qà¬√!àgâá" [char " *ex-working-space*" skip-chars-forward "     "] 3)) 33 kill-emacs save-buffers-kill-emacs] 3))
  1304.  
  1305. (defun ex-read nil "\
  1306. ex read" (byte-code "    ?É    `Ç     @√√√bà«U?Ö»…!à  àÀãà
  1307. É1Ã Δ\"Ç4Õ
  1308. !,á" [point ex-addresses variant nil command file t 0 next-line 1 beginning-of-line ((byte-code "ƒqà≈Δ!à«»!É*¡âà… !à≈Δ!àÀ`!àààÕŒ `\"âÇ=À`!àœ–!à— !àÕ`Œ \"âá" [variant t command file " *ex-working-space*" skip-chars-forward "     " looking-at "!" forward-char 1 set-mark end-of-line buffer-substring mark re-search-forward "[     
  1309. ]" backward-char] 15)) shell-command insert-file] 5))
  1310.  
  1311. (defun ex-set nil (byte-code "¿¡¬√!¿ƒ≈!!E!á" [eval setq read-variable "Variable: " read-minibuffer "Value: "] 7))
  1312.  
  1313. (defun ex-shell nil "\
  1314. ex shell" (byte-code "¿ à¡ á" [vip-change-mode-to-emacs shell] 3))
  1315.  
  1316. (defun ex-substitute (&optional repeat r-flag) "\
  1317. ex substitute. if REPEAT use previous reg-exp which is ex-reg-exp or
  1318. vip-s-string" (byte-code "√√√√√É√âÇ‘ à?É3É)    Ç+
  1319.  âÇh’÷\"É@    ÇBâà    â
  1320. à‘ à?É`÷÷â Çhâ à◊ ÖÉ’ÿ\"É|ÃâÇÃâàÇiàŸ à
  1321. ÉÆäÖñ@bà⁄`!à€
  1322. S!à`‹ √BBâ)Çœ?Éø``√BBâÇœA?Öœ@Bâà@A@Ã√ä›\"àä`‹ ]bàfi )`‹ ^bà`WÖdfl à‡ âà· à
  1323. É?l?Ö‚Ã#Ö6 ?Ü(„‰!Ö2`âà    !àÇàfl àÊ Ç`‚Ã#ÖP ?ÜP„‰!ÖZ`âà    !àfl àÊ àÇ˚)),à
  1324. Ön
  1325. bà· à ÖyÁË!-á" [pat repl opt-g nil opt-c matched-pos repeat ex-token r-flag vip-s-string ex-reg-exp ex-repl t ex-count ex-addresses beg end cont eol-mark limit vip-get-ex-pat string= "" vip-get-ex-opt-gc "g" vip-get-ex-count set-mark forward-line mark vip-enlarge-region point-marker end-of-line dot-marker beginning-of-line re-search-forward y-or-n-p "Replace? " replace-match forward-char message "done"] 29))
  1326.  
  1327. (defun ex-tag nil "\
  1328. ex tag" (byte-code "¬√ãàƒ≈\"?ÖâàΔ à«»…è)á" [tag ex-tag nil ((byte-code "¡qà¬√!àƒ`!à¬≈!àΔ« `\"âá" [tag " *ex-working-space*" skip-chars-forward "     " set-mark "^ |    
  1329. " buffer-substring mark] 7)) string= "" vip-change-mode-to-emacs conditions (byte-code "√ƒ\"É≈    ¬\"ÇΔ    !à« á" [tag ex-tag t string= "" find-tag find-tag-other-window vip-change-mode-to-vi] 5) ((error (byte-code "¡ à¬!á" [conditions vip-change-mode-to-vi vip-message-conditions] 3)))] 5))
  1330.  
  1331. (defun ex-write (q-flag) "\
  1332. ex write" (byte-code "…¿!à  àÀ    Ã\"É
  1333. ?ÖÕŒ!à
  1334. âÇ\"œ    !âàÀ    ¬ \"?Ö4–    !Ö4 ?Ö=Õ—“    \"!à
  1335. @
  1336. A@ VÖPÕ”!àä‘ \"à’`÷     ¿%)*à
  1337. ?Öl    âàÖx◊ àÿp!á" [t ex-file buffer-file-name ex-variant end ex-addresses beg ex-append q-flag vip-default-ex-addresses vip-get-ex-file string= "" error "No file associated with this buffer" expand-file-name file-exists-p format "\"%s\" File exists - use w! to override" "First address exceeds second" vip-enlarge-region write-region mark delete-auto-save-file-if-necessary kill-buffer] 19))
  1338.  
  1339. (defun ex-yank nil "\
  1340. ex yank" (byte-code "… à  à    @    A@
  1341. VÖÀÃ!àäÕ
  1342. \"àŒ à Ü% Ö+Àœ!à
  1343. É;–`!à—
  1344. S!Ç>–!àÕ`“ \"àÖMÀ”!àÖ[‘`“ »$à’`“ \")*á" [end ex-addresses beg ex-g-flag ex-g-variant ex-count ex-flag ex-buffer nil vip-default-ex-addresses vip-get-ex-buffer error "First address exceeds second" vip-enlarge-region exchange-point-and-mark "Can't yank within global" set-mark forward-line mark "Extra chacters at end of command" copy-to-register copy-region-as-kill] 18))
  1345.  
  1346. (defun ex-command nil "\
  1347. execute shell command" (byte-code "≈Δãà    ?É«!Ç:    @    A@ ?Ö
  1348. âàä bà»
  1349. !à…`  \"àÀ`  ƒ$)à b*)á" [command ex-addresses end beg t nil ((byte-code "¡qà¬√!àƒ`!à≈ àΔ« `\"âá" [command " *ex-working-space*" skip-chars-forward "     " set-mark end-of-line buffer-substring mark] 7)) shell-command set-mark vip-enlarge-region mark shell-command-on-region] 10))
  1350.  
  1351. (defun ex-line-no nil "\
  1352. print line number" (byte-code "¡¬√e?É
  1353. dÇ@\"T\"á" [ex-addresses message "%d" count-lines] 5))
  1354.  
  1355. (if (file-exists-p "~/.vip") (load "~/.vip"))
  1356.