27.6 Character ranges
To match "a", "b" or "c" you could use "/a\|b\|c". When you want to match all
letters from "a" to "z" this gets very long. There is a shorter method: >
/[a-z]
The [] construct matches a single character. Inside you specify which
characters to match. You can include a list of characters, like this: >
/[0123456789abcdef]
This will match any of the characters included. For consecutive characters
you can specify the range. "0-3" stands for "0123". "w-z" stands for "wxyz".
Thus the same command as above can be shortened to: >
/[0-9a-f]
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 4 2013 17:42:55)
Заплатки: 1-779, 781-1087
Скомпилирован <volkerdi@slackware.com>