LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Replacing Tabs (^T) with spaces.... (https://www.linuxquestions.org/questions/linux-newbie-8/replacing-tabs-%5Et-with-spaces-639490/)

visitnag 05-02-2008 08:02 PM

Replacing Tabs (^T) with spaces....
 
Hi,

I am using vi editor in RHEL4.0. Can anybody help me how to replace Ctrl-T(Tab) with spaces or something else. When i searched to find Tab spaces (/^T) it is not giving any results. Also guide me how to replace various Ctrl-Characters.

Thank you one and all!!

Tinkster 05-02-2008 08:23 PM

:s%/Ctrl-v<TAB>/ /g


Cheers,
Tink

jsurles 05-02-2008 09:14 PM

Quote:

Originally Posted by Tinkster (Post 3140568)
:s%/Ctrl-v<TAB>/ /g

Wow, I never knew you could do the CTRL-V thing.. I woulda done:

Code:

:s%/CTRL-I/ /g

visitnag 05-04-2008 03:30 AM

Thank you very much


All times are GMT -5. The time now is 05:14 PM.