Thursday, December 15, 2011

Re: Find non-printing characters

On Dec 15, 1:15 pm, Graham Lawrence <gl00...@gmail.com> wrote:
> How can I find non-printing characters in a text?  I do not know which
> specific characters I'm looking for, only that two different such exist.  I
> have tried /Ctrl+V Ctrl+A thru Z to no avail.  Others that I found visually
> appeared in vim as ~V ~W etc, but /~ would not go to any of them so the
> tilde must designate tokens for something else.  As the text was derived
> from html, I suspect what I'm looking for are those curly opening and
> closing double-quotes.

Search for all chars NOT space to tilde
/[^ -~]\+

--OR--

Search for all chars NOT space to tilde and NOT tab
/[^ -~\t]\+

-Bill

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: