GNU Info

Info Node: (vip)Other Vi Commands

(vip)Other Vi Commands


Next: Commands in Insert Mode Prev: Repeating and Undoing Modifications Up: Vi Commands
Enter node , (file) or (file)node

Other Vi Commands
=================

   Miscellaneous Vi commands are collected here.

`Z Z'
     Exit Emacs.  If modified buffers exist, you will be asked whether
     you wish to save them or not (`save-buffers-kill-emacs').

`! MOTION-COMMAND FORMAT-COMMAND'
`N ! ! FORMAT-COMMAND'
     The region determined by the motion command MOTION-COMMAND will be
     given to the shell command FORMAT-COMMAND and the region will be
     replaced by its output.  If a count is given, it will be passed to
     MOTION-COMMAND.  For example, `3!Gsort' will sort the region
     between point and the 3rd line.  If `!' is used instead of
     MOTION-COMMAND then N lines will be processed by FORMAT-COMMAND
     (`vip-command-argument').

`J'
     Join two lines.  Given count, join that many lines.  A space will
     be inserted at each junction (`vip-join-lines').

`< MOTION-COMMAND'
`N < <'
     Shift region determined by the motion command MOTION-COMMAND to
     left by SHIFT-WIDTH (default is 8).  If `<' is used instead of
     MOTION-COMMAND then shift N lines
     (`vip-command-argument').

`> MOTION-COMMAND'
`N > >'
     Shift region determined by the motion command MOTION-COMMAND to
     right by SHIFT-WIDTH (default is 8).  If `<' is used instead of
     MOTION-COMMAND then shift N lines
     (`vip-command-argument').

`= MOTION-COMMAND'
     Indent region determined by the motion command MOTION-COMMAND.  If
     `=' is used instead of MOTION-COMMAND then indent N lines
     (`vip-command-argument').

`*'
     Call last remembered keyboard macro.

`#'
     A new vi operator. Note: New Commands, for more details.

   The following keys are reserved for future extensions, and currently
assigned to a function that just beeps (`vip-nil').

     &, @, U, [, ], _, q, ~

   VIP uses a special local keymap to interpret key strokes you enter
in vi mode.  The following keys are bound to NIL in the keymap.
Therefore, these keys are interpreted by the global keymap of Emacs.
We give below a short description of the functions bound to these keys
in the global keymap.  See GNU Emacs Manual for details.

`C-@'
     Set mark and push previous mark on mark ring (`set-mark-command').

`TAB'
     Indent line for current major mode (`indent-for-tab-command').

`C-j'
     Insert a newline, then indent according to mode
     (`newline-and-indent').

`C-k'
     Kill the rest of the current line; before a newline, kill the
     newline.  With a numeric argument, kill that many lines from
     point.  Negative arguments kill lines backward (`kill-line').

`C-l'
     Clear the screen and reprint everything (`recenter').

`N C-p'
     Move cursor vertically up N lines (`previous-line').

`C-q'
     Read next input character and insert it.  Useful for inserting
     control characters
     (`quoted-insert').

`C-r'
     Search backward incrementally (`isearch-backward').

`C-s'
     Search forward incrementally (`isearch-forward').

`N C-t'
     Interchange characters around point, moving forward one character.
     With count N, take character before point and drag it forward
     past N other characters.  If no argument and at end of line, the
     previous two characters are exchanged (`transpose-chars').

`N C-v'
     Scroll text upward N lines.  If N is not given, scroll near full
     screen (`scroll-up').

`C-w'
     Kill between point and mark.  The text is save in the kill ring.
     The command `P' or `p' can retrieve it from kill ring
     (`kill-region').


automatically generated by info2www version 1.2.2.9