This section gives details of commands used to move the current point (indicated by the cursor) around the buffer.
The use of prefix arguments with this set of commands can be very useful, as they allow you to get where you want to go faster. In general, using a negative prefix argument repeats these commands a certain number of times in the opposite logical direction. For example, the command
Ctrl+U 10 Ctrl+B
moves the cursor 10 characters backwards, but the command
Ctrl+U -10 Ctrl+B
moves the cursor 10 characters
forward
.
Some movement commands may behave slightly differently in different modes as delimiter characters may vary.
Arguments: None
Key sequence:
Ctrl+F
or Right Arrow on some keyboards
Moves the current point forward one character.
Arguments: None
Key sequence:
Ctrl+B
or Left Arrow on some keyboards
Moves the current point backward one character.
Arguments: None
Key sequence:
Meta+F
Moves the current point forward one word.
Arguments: None
Key sequence:
Meta+B
Moves the current point backward one word.
Arguments: None
Key sequence:
Ctrl+A
Moves the current point to the beginning of the current line.
Arguments: None
Key sequence:
Ctrl+E
Moves the current point to the end of the current line.
Arguments: None
Key sequence:
Ctrl+N
or Down Arrow on some keyboards
Moves the current point down one line. If that would be after the end of the line, the current point is moved to the end of the line instead.
Arguments: None
Key sequence:
Ctrl+P
or Up Arrow on some keyboards
Moves the current point up one line. If that would be after the end of the line, the current point is moved to the end of the line instead.
Arguments:
number
Key sequence: None
Moves to the line numbered number .
Arguments: None.
Key sequence: None
Prints in the Echo Area the line number of the current point.
Arguments: None
Key sequence:
Meta+E
Moves the current point to the end of the current sentence. If the current point is already at the end of a sentence, it is moved to the end of the next sentence.
Arguments: None
Key sequence:
Meta+A
Moves the current point to the start of the current sentence. If the current point is already at the start of a sentence, it is moved to the beginning of the previous sentence.
Arguments: None
Key sequence:
Meta+]
Moves the current point to the end of the current paragraph. If the current point is already at the end of a paragraph, then it is moved to the end of the next paragraph.
Arguments: None
Key sequence:
Meta+[
Moves the current point to the start of the current paragraph. If the current point is already at the start of a paragraph, then it is moved to the beginning of the previous paragraph.
Arguments: None
Key sequence:
Ctrl+V
editor:scroll-window-down-command
p
&optional
window
Changes the text that is being displayed to be one screenful forward, minus scroll-overlap. If the current point is no longer included in the new text, it is moved to the start of the line nearest to the centre of the window.
A prefix argument causes the current screen to be scrolled up the number of lines specified and that number of new lines are shown at the bottom of the window.
The argument window is the name of the window to be scrolled. The default is the current window.
Arguments: None
Key sequence:
Meta+V
editor:scroll-window-up-command
p
&optional
window
Changes the text that is being displayed to be one screenful back, minus scroll-overlap. If the current point is no longer included in the new text, it is moved to the start of the line nearest to the centre of the window.
A prefix argument causes the current screen to be scrolled down the number of lines specified and that number of new lines are shown at the top of the window.
The argument window is the name of the window to be scrolled. The default is the current window.
Determines the number of lines of overlap when Scroll Window Down and Scroll Window Up are used with no prefix argument.
Arguments: None
Key sequence: None
Moves the current line to the top of the window.
Arguments: None
Key sequence: None
Moves the current point to the start of the first line currently displayed in the window.
Arguments: None
Key sequence: None
Moves the current point to the start of the last line that is currently displayed in the window.
Arguments: None
Key sequence:
Meta+Shift+R
Without a prefix argument, moves the current point to the start of the center line in the window.
With a positive (negative) integer prefix argument p , moves the point to the start of the p th line from the top (bottom) of the window.
Arguments: None
Key sequence:
Meta+Shift+<
Moves the current point to the beginning of the current buffer.
Arguments: None
Key sequence:
Meta+Shift+>
Moves the current point to the end of the current buffer.
Arguments: None
Key sequence: None
Skips to the next non-whitespace character if the current character is a whitespace character (for example,
Space
,
Tab
or newline).
Arguments: None
Key sequence:
Ctrl+X =
Displays in the echo area the character under the point and the column of the point. Also available via the function:
editor:what-cursor-position-command.
Arguments: None
Key sequence: None
Displays in the echo area the position of the current point in terms of characters in the buffer, as a fraction of current point position over total buffer length.
Arguments:
point
Key sequence: None
Moves the current point to point , where point is a character position in the current buffer.