Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Customizing VI questions...

Status
Not open for further replies.

dmachado

Programmer
Mar 4, 2002
14
0
0
US
Hi -- couple of questions.
Firstly, I am running RedHat 7.2.
How can I save my custom VI settings like tabstops and such?
Secondly is there a command setting for converting tabs to spaces?
Thanks in advance for any help...
Don
 
either search for vimrc somewhere like /usr/share/vim/vimrc

you may not be using vim but i think it's similar for most. you will also be able to create a .vimrc in your home dir too.

to convert tabs to spaces...

:%s/<tab>/ /g

(replace <tab> with a real tab char)
this examples replaces tabs for one space.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top