The University of Queensland Homepage
School of ITEE ITEE Main Website

 Tabstops in vi

Tabstops in vi

When using vi on c/c++ files, it is useful to be able to set the tab stops to something smaller than 8. This can be done on a file by file basis with this command:
:set tabstop=4
or permanently by creating a file ~/.exrc with this content:
set tabstop=4