Programming

Vim Settings: seeing tabs and setting them to 4 characters

A simple set of Vim commands to display tabs when I code, and to make sure that all tabs are 4 characters long:

:set list 
# This command displays tab characters
:set listchars=tab:>.
# This defines how the tab character should be displayed 
# We use a more than sign ('>') for the first character, 
# then dots for the remaining ones
:set tabstop=4
# Makes the tab indentation 4 characters long
Advertisements
Standard