Server IP : 111.118.215.189 / Your IP : 18.221.20.252 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/emulation/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:11:00 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/emulation/vip.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (custom-declare-group 'vip nil "A VI Package for GNU Emacs." :prefix "vip-" :group 'emulations) #@51 Local map used in Emacs mode. (Buffer-specific.) (defvar vip-emacs-local-map nil (#$ . 652)) #@60 Local map used in insert command mode. (Buffer-specific.) (defvar vip-insert-local-map nil (#$ . 752)) (byte-code "\300\301!\210\300\302!\207" [make-variable-buffer-local vip-emacs-local-map vip-insert-local-map] 2) #@56 Remember insert point as a marker. (Buffer-specific.) (defvar vip-insert-point nil (#$ . 975)) (byte-code "\300\301\302 \"\210\303\301!\207" [set-default vip-insert-point make-marker make-variable-buffer-local] 3) #@53 Remember com point as a marker. (Buffer-specific.) (defvar vip-com-point nil (#$ . 1196)) (byte-code "\300\301\302 \"\210\303\301!\207" [set-default vip-com-point make-marker make-variable-buffer-local] 3) #@63 Current mode. One of `emacs-mode', `vi-mode', `insert-mode'. (defvar vip-current-mode nil (#$ . 1409)) (byte-code "\300\301!\210\302\301\303\"\207" [make-variable-buffer-local vip-current-mode set-default emacs-mode] 3) #@68 Value of mode-line-buffer-identification in Emacs mode within vip. (defvar vip-emacs-mode-line-buffer-identification nil (#$ . 1636)) (byte-code "\300\301!\210\302\301\303\"\207" [make-variable-buffer-local vip-emacs-mode-line-buffer-identification set-default ("Emacs: %17b")] 3) #@84 vip-current-major-mode is the major-mode vi considers it is now. (buffer specific) (defvar vip-current-major-mode nil (#$ . 1923)) (make-variable-buffer-local 'vip-current-major-mode) #@43 Last shell command executed by ! command. (defvar vip-last-shell-com nil (#$ . 2113)) #@54 Name of register to store deleted or yanked strings. (defvar vip-use-register nil (#$ . 2205)) #@76 How to reexecute last destructive command. Value is list (M-COM VAL COM). (defvar vip-d-com nil (#$ . 2306)) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\313\306\307&\207" [custom-declare-variable vip-shift-width 8 "The number of columns shifted by > and < command." :type integer :group vip vip-re-replace nil "If t then do regexp replace, if nil then do string replace." boolean] 8) #@49 The character remembered by the vi "r" command. (defvar vip-d-char nil (#$ . 2725)) #@25 For use by ";" command. (defvar vip-f-char nil (#$ . 2815)) #@25 For use by "." command. (defvar vip-F-char nil (#$ . 2881)) #@25 For use by ";" command. (defvar vip-f-forward nil (#$ . 2947)) #@25 For use by ";" command. (defvar vip-f-offset nil (#$ . 3016)) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\311\312\304\305\306\307&\207" [custom-declare-variable vip-search-wrap-around t "If t, search wraps around." :type boolean :group vip vip-re-search nil "If t, search is reg-exp search, otherwise vanilla search."] 8) #@25 Last vip search string. (defvar vip-s-string nil (#$ . 3360)) #@26 If t, search is forward. (defvar vip-s-forward nil (#$ . 3428)) (byte-code "\300\301\302\303\304\305\306\307&\210\300\310\302\311\304\305\306\307&\210\300\312\302\313\304\305\306\307&\210\300\314\302\315\304\305\306\307&\207" [custom-declare-variable vip-case-fold-search nil "If t, search ignores cases." :type boolean :group vip vip-re-query-replace "If t then do regexp replace, if nil then do string replace." vip-open-with-indent "If t, indent when open a new line." vip-help-in-insert-mode "If t then C-h is bound to help-command in insert mode.\nIf nil then it is bound to `delete-backward-char'."] 8) #@45 String inserted at the beginning of region. (defvar vip-quote-string "> " (#$ . 4047)) (defvar vip-tags-file-name "TAGS") (defvar vip-inhibit-startup-message nil) #@40 Filename used as startup file for vip. (defvar vip-startup-file (convert-standard-filename "~/.vip") (#$ . 4216)) (defvar vip-mode-map (byte-code "\301 \302\303\304#\210\302\305\306#\210\302\307\310#\210\302\311\312#\210\302\313\314#\210\302\315\316#\210\302\317\320#\210\302\321\322#\210\302\323\306#\210\302\324\325#\210\302\326\327#\210\302\330\331#\210\302\332\333#\210\302\334\335#\210\302\336\337#\210\302\340\341#\210\302\342\316#\210\302\343\344#\210\302\345\344#\210\302\346\344#\210\302\347\350#\210\302\351\352#\210\302\353\354#\210\302\355\356#\210\302\357\360#\210\302\361\362#\210\302\363\364#\210\302\365\366#\210\302\367\370#\210\302\371\372#\210\302\373\374#\210\302\375\376#\210\302\377\201@ #\210\302\201A \201B #\210\302\201C \201B #\210\302\201D \201B #\210\302\201E \201B #\210\302\201F \201B #\210\302\201G \201B #\210\302\201H \201B #\210\302\201I \201B #\210\302\201J \201B #\210\302\201K \201L #\210\302\201M \201N #\210\302\201O \344#\210\302\201P \344#\210\302\201Q \344#\210\302\201R \201S #\210\302\201T \354#\210\302\201U \201V #\210\302\201W \201X #\210\302\201Y \201Z #\210\302\201[ \201\\ #\210\302\201] \201^ #\210\302\201_ \201` #\210\302\201a \201b #\210\302\201c \201d #\210\302\201e \201f #\210\302\201g \201h #\210\302\201i \201j #\210\302\201k \201l #\210\302\201m \201n #\210\302\201o \201p #\210\302\201q \201r #\210\302\201s \201t #\210\302\201u \201v #\210\302\201w \201x #\210\302\201y \201z #\210\302\201{ \201| #\210\302\201} \354#\210\302\201~ \201 #\210\302\201\200 \201\201 #\210\302\201\202 \201\203 #\210\302\201\204 \201\205 #\210\302\201\206 \201\207 #\210\302\201\210 \354#\210\302\201\211 \201\212 #\210\302\201\213 \354#\210\302\201\214 \201\215 #\210\302\201\216 \354#\210\302\201\217 \201\220 #\210\302\201\221 \201\222 #\210\302\201\223 \201\224 #\210\302\201\225 \344#\210\302\201\226 \344#\210\302\201\227 \201\230 #\210\302\201\231 \201\232 #\210\302\201\233 \201\234 #\210\302\201\235 \201\236 #\210\302\201\237 \201\240 #\210\302\201\241 \201\242 #\210\302\201\243 \201\244 #\210\302\201\245 \201\246 #\210\302\201\247 \201\250 #\210\302\201\251 \201\252 #\210\302\201\253 \201\254 #\210\302\201\255 \201\256 #\210\302\201\257 \354#\210\302\201\260 \201\261 #\210\302\201\262 \201\263 #\210\302\201\264 \201\265 #\210\302\201\266 \201\267 #\210\302\201\270 \201\271 #\210\302\201\272 \201\273 #\210\302\201\274 \201\275 #\210\302\201\276 \344#\210\302\201\277 \201\300 #\210\302\201\301 \201\302 #\210\302\201\303 \201\304 #\210\302\201\305 \201\300 #\210\302\201\306 \201\302 #\210\302\201\307 \201\304 #\210\302\201\310 \201\311 #\210\302\201\312 \201\313 #\210\302\201\314 \201\315 #\210\302\201\316 \354#\210\302\201\317 \201\320 #\210)\207" [map make-keymap define-key "" beginning-of-line "" vip-scroll-back "" vip-ctl-c "" vip-scroll-up "" vip-scroll-up-one "" vip-scroll "" vip-keyboard-quit "" help-command " " "" vip-other-window "" vip-open-line-at-point "" vip-scroll-down "" vip-ctl-x "" vip-scroll-down-one "" vip-change-mode-to-emacs "" vip-ESC " " "!" vip-command-argument "\"" "#" "$" vip-goto-eol "%" vip-paren-match "&" vip-nil "'" vip-goto-mark-and-skip-white "(" vip-backward-sentence ")" vip-forward-sentence "*" call-last-kbd-macro "+" vip-next-line-at-bol "," vip-repeat-find-opposite "-" vip-previous-line-at-bol "." vip-repeat "/" vip-search-forward "0" vip-beginning-of-line "1" vip-digit-argument "2" "3" "4" "5" "6" "7" "8" "9" ":" vip-ex ";" vip-repeat-find "<" "=" ">" "?" vip-search-backward "@" "A" vip-Append "B" vip-backward-Word "C" vip-ctl-c-equivalent "D" vip-kill-line "E" vip-end-of-Word "F" vip-find-char-backward "G" vip-goto-line "H" vip-window-top "I" vip-Insert "J" vip-join-lines "K" vip-kill-buffer "L" vip-window-bottom "M" vip-window-middle "N" vip-search-Next "O" vip-Open-line "P" vip-Put-back "Q" vip-query-replace "R" vip-replace-string "S" vip-switch-to-buffer-other-window "T" vip-goto-char-backward "U" "V" vip-find-file-other-window "W" vip-forward-Word "X" vip-ctl-x-equivalent "Y" vip-yank-line "ZZ" save-buffers-kill-emacs "[" "\\" vip-escape-to-emacs "]" "^" vip-bol-and-skip-white "_" "`" vip-goto-mark "a" vip-append "b" vip-backward-word "c" "d" "e" vip-end-of-word "f" vip-find-char-forward "g" vip-info-on-file "h" vip-backward-char "i" vip-insert "j" vip-next-line "k" vip-previous-line "l" vip-forward-char "m" vip-mark-point "n" vip-search-next "o" vip-open-line "p" vip-put-back "q" "r" vip-replace-char "s" vip-switch-to-buffer "t" vip-goto-char-forward "u" vip-undo "v" vip-find-file "w" vip-forward-word "x" vip-delete-char "y" "zH" vip-line-to-top "zM" vip-line-to-middle "zL" vip-line-to-bottom "z " "z." "z-" "{" vip-backward-paragraph "|" vip-goto-col "}" vip-forward-paragraph "~" "" vip-delete-backward-char] 4)) (defalias 'vip-version #[nil "\300\301!\207" [message "VIP version 3.5 of September 15, 1987"] 2 nil nil]) #@66 Set up bindings for C-x 7 and C-z that are useful for VIP users. (defalias 'vip-setup #[nil "\301\302\303#\210\304\305\306\"\207" [ctl-x-map define-key "7" vip-buffer-in-two-windows global-set-key "" vip-change-mode-to-vi] 4 (#$ . 9223)]) #@40 (COUNT BODY) Execute BODY COUNT times. (defalias 'vip-loop '(macro . #[(count body) "\302\300DC\303\304 \305BBBE\207" [count body let while (> count 0) ((setq count (1- count)))] 6 (#$ . 9470)])) #@86 Set mark at LOCATION (point, by default) and push old mark on mark ring. No message. (defalias 'vip-push-mark-silent #[(&optional location) "\303\304!\203# \305\306 !B\211G V\203# \233@\307\211\223\210 S\233\307\241\210\310\n\206) `!\207" [mark-ring mark-ring-max location mark t copy-marker mark-marker nil set-mark] 4 (#$ . 9673)]) #@21 Go to ARG's column. (defalias 'vip-goto-col #[(arg) "\304!\305!\212\306\210\niTV\203 \307\310!\210) \203! `\306\223\210\311 \210\nSu\210 \2051 \312\313\n #*\207" [arg com val vip-com-point vip-p-val vip-getcom nil error "" beginning-of-line vip-execute-com vip-goto-col] 4 (#$ . 10018) "P"]) (defalias 'vip-copy-keymap #[(map) "\204 \301 \207\302!\207" [map make-sparse-keymap copy-keymap] 2]) #@71 Change mode to NEW-MODE---either emacs-mode, vi-mode, or insert-mode. (defalias 'vip-change-mode #[(new-mode) " =\206\233 \306=\2034 \307=\203 \310`\n\"\210\311 \210\202( \312 \f\313\312 !\314\315!\210\316!\210\202\227 \307=\203\211 \n`\317\223\210 \320=\203S \312 \f\313\312 !\202X \313!\314\321!\210\316!\210\322\323\324#\210\322\325\326#\210\322\327 \203| \330\202} \331#\210\322\332\333#\210\202\227 \320=\203\227 \314\334!\210\316!\210\335 \207" [new-mode vip-current-mode vip-insert-point vip-emacs-local-map mode-line-buffer-identification vip-emacs-mode-line-buffer-identification vi-mode insert-mode vip-copy-region-as-kill vip-repeat-insert-command current-local-map vip-copy-keymap vip-change-mode-line "Vi: " use-local-map nil emacs-mode "Insert" define-key "" vip-change-mode-to-vi "" vip-ESC "" help-command delete-backward-char "" vip-delete-backward-word "Emacs:" force-mode-line-update vip-insert-local-map vip-mode-map vip-help-in-insert-mode] 4 (#$ . 10428)]) #@74 If BEG and END do not belong to the same buffer, it copies empty region. (defalias 'vip-copy-region-as-kill #[(beg end) "\300\301\302\217\207" [nil (copy-region-as-kill beg end) ((error (byte-code "\301\211\"\207" [beg copy-region-as-kill] 3)))] 3 (#$ . 11452)]) #@117 Assuming that the mode line format contains the string "Emacs:", this function replaces the string by "Vi: " etc. (defalias 'vip-change-mode-line #[(string) "\303\230\203\n \202 \304PC\211\207" [string vip-emacs-mode-line-buffer-identification mode-line-buffer-identification "Emacs:" " %17b"] 2 (#$ . 11723)]) #@30 Turn on VIP emulation of VI. (defalias 'vip-mode #[nil "\204? \302\303!\210\304 \210\305c\210eb\210\306\307!\2035 r\310\311 !!q\210db\210\312c\210\313 \210\314p!\210)\315\316!\210\317\320!\210\314p!\210\315\321!\210\322\323 \207" [vip-inhibit-startup-message vip-startup-file switch-to-buffer "VIP Startup Message" erase-buffer "VIP is a Vi emulation package for GNU Emacs. VIP provides most Vi commands\nincluding Ex commands. VIP is however different from Vi in several points.\nYou can get more information on VIP by:\n 1. Typing `M-x info' and selecting menu item \"vip\".\n 2. Typing `C-h k' followed by a key whose description you want.\n 3. Printing VIP manual which can be found as GNU/man/vip.texinfo\n 4. Printing VIP Reference Card which can be found as GNU/etc/vipcard.tex\n\nThis startup message appears whenever you load VIP unless you type `y' now.\nType `n' to quit this window for now.\n" y-or-n-p "Inhibit VIP startup message? " find-file-noselect substitute-in-file-name "\n(setq vip-inhibit-startup-message t)\n" save-buffer kill-buffer message "VIP startup message inhibited." sit-for 2 "" t vip-change-mode-to-vi] 3 (#$ . 12047) nil]) #@25 Change mode to vi mode. (defalias 'vip-change-mode-to-vi #[nil "\300\301!\207" [vip-change-mode vi-mode] 2 (#$ . 13230) nil]) #@29 Change mode to insert mode. (defalias 'vip-change-mode-to-insert #[nil "\300\301!\207" [vip-change-mode insert-mode] 2 (#$ . 13362) nil]) #@28 Change mode to Emacs mode. (defalias 'vip-change-mode-to-emacs #[nil "\300\301!\207" [vip-change-mode emacs-mode] 2 (#$ . 13506) nil]) #@178 Escape to Emacs mode for one Emacs command. ARG is used as the prefix value for the executed command. If EVENTS is a list of events, which become the beginning of the command. (defalias 'vip-escape-to-emacs #[(arg &optional events) "\306\211\307 \203 \310!\210\311\216\312\313\306!\211!)\314\n \"\210\306\211 +\207" [old-map key com events unread-command-events arg nil current-local-map use-local-map ((use-local-map old-map)) key-binding read-key-sequence command-execute prefix-arg vip-emacs-local-map] 3 (#$ . 13648) "P"]) #@32 Print CONDITIONS as a message. (defalias 'vip-message-conditions #[(conditions) "@A \204 \303\304\n\"\210\202 \303\305\n\306 !#\210\307 *\207" [conditions msg case message "%s" "%s %s" prin1-to-string ding] 5 (#$ . 14198)]) #@32 Emulate ESC key in Emacs mode. (defalias 'vip-ESC #[(arg) "\301\302\"\207" [arg vip-escape-to-emacs (27)] 3 (#$ . 14434) "P"]) #@32 Emulate C-c key in Emacs mode. (defalias 'vip-ctl-c #[(arg) "\301\302\"\207" [arg vip-escape-to-emacs (3)] 3 (#$ . 14568) "P"]) #@32 Emulate C-x key in Emacs mode. (defalias 'vip-ctl-x #[(arg) "\301\302\"\207" [arg vip-escape-to-emacs (24)] 3 (#$ . 14703) "P"]) #@32 Emulate C-h key in Emacs mode. (defalias 'vip-ctl-h #[(arg) "\301\302\"\207" [arg vip-escape-to-emacs (8)] 3 (#$ . 14839) "P"]) #@135 Compute numeric prefix arg value. Invoked by CHAR. VALUE is the value obtained so far, and COM is the command part obtained so far. (defalias 'vip-prefix-arg-value #[(char value com) "\305Y\203$ \306X\203$ \247\203 \202 \307\310_\305Z\\\311 \211\202 \203. \nB\312U\203? \313\n!\210\311 \211\202/ C\211\207" [char value prefix-arg com unread-command-events 48 57 0 10 read-char 85 vip-describe-arg] 4 (#$ . 14975)]) #@33 Vi operator as prefix argument. (defalias 'vip-prefix-arg-com #[(char value com) "\306\203\353 \307U\204H \310U\204H \311U\204H \312U\204H \313U\204H \314U\204H \315U\204H \316U\204H \317U\204H \320U\204H \321U\203\353 \n\203f \316U\204X \321U\203\\ \322\323!\210 \nB\324\211\202 \312U\204r \315U\203} \325 \324\211\202 \316U\203\221 \326\325 \\\325 \324\211\202 \313U\204\235 \314U\203\262 \325 \n U\203\254 \nB\324\211\202 \321U\203\343 \325 \327X\203\307 \330X\204\323 \331X\203\330 \332X\203\330 \202\334 \322\323!\210\325 )\202 \325 \202 )\n:\204 \nB- \333U\203\334-!\210\325 \211\202\367 C\211.\207\n@\317U\204\n@\320U\203@\n@\nA \nB- \317U\2035\335-!\210\202:\336-!\210\324\211-*\207 \204H\337\202I \324-\n\340\232\203Y\341 \342B!\207\n\343\232\203e\341 \344B!\207\n\345\232\203n\346 \207\n\347\232\203z\341 \350B!\207\n\351\232\203\206\341 \313B!\207\n\352\232\203\222\341 \314B!\207\n\353\232\203\236\341 \312B!\207\n\354\232\203\252\341 \315B!\207\322\323!\207" [cont char com reg vip-use-register value t 99 100 121 33 60 62 61 35 114 82 34 error "" nil read-char 128 65 122 49 57 85 vip-describe-arg vip-region vip-Region 1 (99 . 99) vip-line 67 (100 . 100) 68 (100 . 121) vip-yank-defun (121 . 121) 89 (60 . 60) (62 . 62) (33 . 33) (61 . 61) prefix-arg unread-command-events] 4 (#$ . 15417)]) (defalias 'vip-describe-arg #[(arg) "\303\211\304\n!\305\n! \204! \204 \306\307!\2021 \306\310\"\2021 \204, \306\311 \"\2021 \306\312 #*\207" [com val arg nil vip-P-val vip-getcom message "Value is nil, and command is nil." "Value is nil, and command is %c." "Value is %d, and command is nil." "Value is %d, and command is %c."] 4]) #@46 Begin numeric argument for the next command. (defalias 'vip-digit-argument #[(arg) "\302\303 :\205\n A#\207" [last-command-event arg vip-prefix-arg-value nil] 4 (#$ . 17156) "P"]) #@41 Accept a motion command as an argument. (defalias 'vip-command-argument #[(arg) "\300\301\302\217\207" [conditions (byte-code "\302 \204\n \303\202 :\203 @\202 \247\203 \202 \304\305! \204( \303\202>