www.delorie.com/gnu/docs/emacs/vip_36.html   search  
 
Buy the book!


VIP

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.9.4 Change Commands

Most commonly used change command takes the following form.

c motion-command
Replace the content of the region determined by the motion command motion-command by the text you type. If the motion command is a point command then you will type the text into minibuffer, and if the motion command is a line command then the region will be deleted first and you can insert the text in insert mode.
For example, if point is at the beginning of a word `foo' and you wish to change it to `bar', you can type c w. Then, as w is a point command, you will get the prompt `foo =>' in the minibuffer, for which you can type b a r RET to complete the change command.

c c
Change a line. Given a count, that many lines are changed.
c r
Change current region.
c R
Expand current region and change it.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 2003   by The Free Software Foundation     Updated Jun 2003