# forward-word(2)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

forward-word - Move the cursor to the next word
backward-word - Move the cursor to the previous word

## SYNOPSIS

n forward-word (esc f)
n backward-word (esc b)

## DESCRIPTION

forward-word places the cursor at the end of the nth word from the current position; the default is 1.

backward-word places the cursor at the beginning of the nth previous word, default 1.

## NOTES

Words are distinguished by non-alphanumeric characters and need not be white space such as spaces and tabs.

A character is considered to be part of a word if it is in the $buffer-mask(5) character set. The default setting for $buffer-mask is "`luh`" which gives a word character set of the alphanumeric characters, i.e. `0`-`9`, `A`-`Z`, `a`-`z`, this may be changed by setting the $buffer-mask variable. The character sets (including 4 user character sets `1`-`4`) may be altered by using the command set-char-mask(2).

## SEE ALSO

backward-line(2), backward-paragraph(2), forward-line(2), forward-paragraph(2), Locale Support, $buffer-mask(5), set-char-mask(2).

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>