Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Embed vim settings in source code

  • vim:

In a C file:

/*
  vim:sw=4:
*/

In a Perl file

# vim:expandtab
# vim:tabstop=4

In a JavaScript file

// vim:expandtab
// vim:tabstop=4

modline turns this feature on

modlines sets the number of lines to check

  • set modline}
  • set modlines}
:set modline
:set modlines=10