File: vi.el.html

This file is obsolete. Consider using viper instead.

Originally written by : seismo!wucs!nz@rsch.wisc.edu (Neal Ziring) Extensively redesigned and rewritten by wu@crys.wisc.edu (Felix S.T. Wu) Last revision: 01/07/87 Wed (for GNU Emacs 18.33)

INSTALLATION PROCEDURE:
1) Add a global key binding for command "vi-mode" (I use ESC ESC instead of
   the single ESC used in real "vi", so I can access other ESC prefixed emacs
   commands while I'm in "vi"), say, by putting the following line in your
   ".emacs" file:
   (define-key global-map "\\e\\e" 'vi-mode) ;quick switch into vi-mode
2) If you wish you can define "find-file-hook" to enter "vi" automatically
   after a file is loaded into the buffer. For example, I defined it as:
   (setq find-file-hook (list
                          (function (lambda ()
                              (if (not (or (eq major-mode 'Info-mode)
                                             (eq major-mode 'vi-mode)))
                                  (vi-mode))))))
3) In your init file you can define the command "vi-mode" to be "autoload"
   or you can execute the "load" command to load "vi" directly.
4) Read the comments for command "vi-mode" before you start using it.

COULD DO
1). A general 'define-operator' function to replace current hack
2). In operator handling, should allow other point moving Emacs commands (such as ESC <, ESC >) to be used as arguments.

Defined variables (18)

vi-com-mapKeymap used in Evi’s command state
vi-ins-lengthLength of last insertion.
vi-ins-overwrt-pT if last insertion was a replace actually.
vi-ins-pointLast insertion point. Should use ‘mark’ instead.
vi-ins-prefix-codeCode to be eval’ed before (redo-)insertion begins.
vi-ins-repetitionThe repetition required for last insertion.
vi-insert-stateNon-nil if it is in insert state.
vi-last-change-commandSave commands for redoing last changes. Each command is in (FUNC . ARGS)
vi-last-find-charSave last direction, char and upto-flag used for char finding.
vi-last-shell-commandSave last shell command given for "!" operator.
vi-mark-alistAlist of (NAME . MARK), marks are local to each buffer.
vi-mode-old-local-mapSave the local-map used before entering vi-mode.
vi-mode-old-major-modeSave the major-mode before entering vi-mode.
vi-mode-old-mode-nameSave the mode-name before entering vi-mode.
vi-scroll-amountDefault amount of lines for scrolling (used by "^D"/"^U").
vi-search-last-commandSave last search command for possible redo.
vi-shift-widthShift amount for "<"/">" operators.
vi-tilde-mapKeymap used for C-x ~ prefix key. Link to various major modes.

Defined functions (106)

vi-abort-ins()
vi-adjust-window(ARG POSITION)
vi-append-at-end-of-line(ARG)
vi-ask-for-info(CHAR)
vi-back-to-old-mode()
vi-backward-blank-delimited-word(COUNT)
vi-backward-find-char(COUNT CHAR)
vi-backward-kill-line()
vi-backward-upto-char(COUNT CHAR)
vi-backward-windowful(COUNT)
vi-beginning-of-buffer()
vi-call-named-change-or-macro(COUNT CHAR)
vi-change-case(ARG)
vi-change-rest-of-line(ARG)
vi-char-argument(ARG)
vi-debugging(ARG)
vi-delete-op(MOTION-COMMAND ARG)
vi-digit-argument(ARG)
vi-ding()
vi-do-old-mode-C-c-command(ARG)
vi-effective-range(MOTION-COMMAND ARG)
vi-end-of-blank-delimited-word(COUNT)
vi-end-of-insert-state()
vi-end-of-word(COUNT)
vi-ex-cmd()
vi-execute-op(OP-CHAR MOTION-COMMAND ARG)
vi-expose-line-above(COUNT)
vi-expose-line-below(COUNT)
vi-find-char(ARG COUNT)
vi-find-matching-paren()
vi-first-redo-insertion(BEGIN END &optional OVERWRITE-P PREFIX-CODE)
vi-forward-blank-delimited-word(COUNT)
vi-forward-find-char(COUNT CHAR)
vi-forward-upto-char(COUNT CHAR)
vi-forward-windowful(COUNT)
vi-forward-word(COUNT)
vi-get-mark(CHAR)
vi-goto-char-mark(CHAR)
vi-goto-column(COL)
vi-goto-command-state(&optional FROM-INSERT-STATE-P)
vi-goto-insert-state(REPETITION &optional PREFIX-CODE DO-IT-NOW-P)
vi-goto-line(ARG)
vi-goto-line-mark(CHAR)
vi-goto-mark(MARK-CHAR &optional LINE-FLAG)
vi-home-window-line(ARG)
vi-indent-op(MOTION-COMMAND ARG)
vi-insert-after(ARG)
vi-insert-before(ARG)
vi-insert-before-first-nonwhite(ARG)
vi-isearch-backward(ARG)
vi-isearch-forward(ARG)
vi-join-lines(ARG)
vi-kill-char(COUNT)
vi-kill-line(ARG)
vi-kill-region(START END)
vi-last-window-line(ARG)
vi-locate-def()
vi-mark-lines(NUM)
vi-mark-region(ARG REGION)
vi-middle-window-line()
vi-mode()
vi-mode-setup()
vi-more-redo-insertion(STR &optional OVERWRITE-P PREFIX-CODE)
vi-name-last-change-or-macro(ARG CHAR)
vi-narrow-op(MOTION-COMMAND ARG)
vi-next-line(COUNT)
vi-next-line-first-nonwhite(COUNT)
vi-open-above(ARG)
vi-open-below(ARG)
vi-operator(ARG)
vi-prefix-char-value(ARG)
vi-prefix-numeric-value(ARG)
vi-previous-line-first-nonwhite(COUNT)
vi-put-after(ARG)
vi-put-before(ARG &optional AFTER-P)
vi-query-replace(ARG)
vi-quote-words(ARG CHAR)
vi-raw-numeric-prefix(ARG)
vi-readonly-mode()
vi-redo-last-change-command(COUNT &optional COMMAND)
vi-repeat-command-of(COMMAND)
vi-repeat-last-find-char(COUNT &optional FIND-ARG)
vi-repeat-last-search(ARG &optional SEARCH-COMMAND SEARCH-STRING)
vi-replace(ARG)
vi-replace-1-char(COUNT CHAR)
vi-replace-chars(ARG)
vi-reverse-last-find-char(COUNT &optional FIND-ARG)
vi-reverse-last-search(ARG &optional SEARCH-COMMAND SEARCH-STRING)
vi-save-all-and-exit()
vi-scroll-down-window(COUNT)
vi-scroll-up-window(COUNT)
vi-search-backward(ARG STRING)
vi-search-forward(ARG STRING)
vi-set-last-change-command(FUN &rest ARGS)
vi-set-mark(CHAR)
vi-shell-op(MOTION-COMMAND ARG &optional SHELL-COMMAND)
vi-shift-op(MOTION-COMMAND ARG AMOUNT)
vi-split-open-line(ARG)
vi-string-end-with-nl-p(STRING)
vi-substitute-chars(COUNT)
vi-substitute-lines(COUNT)
vi-switch-mode(ARG MODE-CHAR)
vi-transpose-objects(ARG UNIT)
vi-verify-spelling(ARG UNIT)
vi-yank-line(ARG)
vi-yank-op(MOTION-COMMAND ARG)

Defined faces (0)