Technology TidBits
Answers to various technical questions on php programming, mysql, linux, and many more categories.
Home
/
Programming
/
Vi
/ How do I set Tab stops in VI?
How do I set Tab stops in VI?
Last updated: 07/03/2009
Email Friendly Link
Print
Add comment
Rate it
Useful
Useless
Votes: 2
Comments: 1
To change tab stops in vi, just do the following in vi:
:set ts=3
Sets Tabs to 3 spaces. This is useful for indenting when programming, to keep spacing to a viewable amount.
Showing: 1-1 of 1
Comments:
10/31/2008
|
Pat
To make this change permanent do this:
edit the file ~/.exrc
then add or modify this line
set tabstop=3
this will make the tabstop value permenant.
Add comment:
Name:
Email:
Comment:
*
(Use BBcode - No HTML)
You
MUST
answer this simple math equation - to prevent spammers:
Other questions in this category:
How can I turn on line numbering in Vi?
How can I jump to a line in the vi editor?
How can I remove DOS linebreaks (^M) from my files?
How can I remove leading whitespace in all lines in a file using vi?
How can I delete a large chunk of text using vi?
How can I undo and redo changes in vi?
How can I search in the vi editor?
Powered by
KnowledgebasePublisher 1.1
Content provided by
Roberts WebForge, Inc.