Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to display and search TAB character in VIM?

12,575 views
Skip to first unread message

linq936

unread,
Dec 5, 2007, 11:27:09 PM12/5/07
to
Hi,

Is there a handy command to display all the TAB characters in a file?
And for a large file, is there a way I can search it in VIM?

Thanks.

RalfB

unread,
Dec 6, 2007, 1:57:02 AM12/6/07
to

:set list

/\t

hth

Ralf

Tim Roberts

unread,
Dec 6, 2007, 2:33:31 AM12/6/07
to
linq936 <lin...@gmail.com> wrote:
>
>Is there a handy command to display all the TAB characters in a file?
>And for a large file, is there a way I can search it in VIM?

One easy way is ":set list". It also shows other control characters, but
it may be exactly what you need. Turn it off with ":set nolist".

If that doesn't do it, you can do / C-V C-I (slash control-V control-I) to
search for a tab character. If you have highlighting turned on, that will
highlight the blank spaces that contain a tab.
--
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.

0 new messages