Skip to Content
Mastering Vim
book

Mastering Vim

by Ruslan Osipov
November 2018
Beginner
330 pages
7h 21m
English
Packt Publishing
Content preview from Mastering Vim

Command-line and ex modes

Command-line mode is entered by typing a colon (:) or when searching for text with / or ?, and allows you to input a command until you hit Enter. Command-line mode provides some useful shortcuts:

  • The up and down arrows (or Ctrl + p and Ctrl + n) let you traverse command history one by one
  • Ctrl + b and Ctrl + e let you go to the beginning and the end of the line respectively
  • The Shift or Ctrl keys combined with left or right arrows allows you to move by words

A highly useful shortcut is Ctrl + f, which opens an editable command-line window with a history of the commands you ran:

For editing purposes, it's a regular ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Vim

Mastering Vim

Damian Conway
Vim Masterclass

Vim Masterclass

Jason Cannon
Modern Vim

Modern Vim

Drew Neil

Publisher Resources

ISBN: 9781789341096Supplemental Content