Читать книгу Linux Bible - Christopher Negus - Страница 154

Skipping around in the file

Оглавление

Besides the few movement commands described earlier, there are other ways of moving around a vi file. To try these out, open a large file that you can't damage too much. (Try copying /var/log/messages to /tmp and opening it in vi.) Here are some movement commands that you can use:

 Ctrl+f: Pages ahead one page at a time.

 Ctrl+b: Pages back one page at a time.

 Ctrl+d: Pages ahead one-half page at a time.

 Ctrl+u: Pages back one-half page at a time.

 G: Goes to the last line of the file.

 1G: Goes to the first line of the file.

 35G: Goes to any line number (35, in this case).

Linux Bible

Подняться наверх