LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-02-2008, 09:02 PM   #1
visitnag
Member
 
Registered: Mar 2008
Posts: 147

Rep: Reputation: 15
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!!
 
Old 05-02-2008, 09:23 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
:s%/Ctrl-v<TAB>/ /g


Cheers,
Tink
 
Old 05-02-2008, 10:14 PM   #3
jsurles
Member
 
Registered: Feb 2007
Location: Katy, TX
Distribution: gentoo, slackware, centos, ESX, gnu/linux
Posts: 33

Rep: Reputation: 15
Quote:
Originally Posted by Tinkster View Post
:s%/Ctrl-v<TAB>/ /g
Wow, I never knew you could do the CTRL-V thing.. I woulda done:

Code:
:s%/CTRL-I/ /g
 
Old 05-04-2008, 04:30 AM   #4
visitnag
Member
 
Registered: Mar 2008
Posts: 147

Original Poster
Rep: Reputation: 15
Thank you very much
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacing spaces with a : xjlittle Programming 1 02-12-2007 09:42 AM
tabs to spaces in emacs, not working in tcl mode ratm1286 Linux - Software 3 05-08-2005 06:15 PM
replacing all spaces in filenames of a directory merlin23 Linux - Newbie 1 01-11-2005 08:52 AM
emacs - convert auto indent tabs to spaces? BrianK Linux - General 1 04-15-2004 11:14 PM
mp3 files - replacing blank spaces with _ script? mymojo Linux - Newbie 4 12-08-2003 04:33 AM


All times are GMT -5. The time now is 10:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration