What character is this?

26 views
Skip to first unread message

stosss

unread,
Apr 10, 2013, 3:16:45 PM4/10/13
to Vim Users
This single character unit is showing up in a text file ^F the cursor only stops on the ^ portion of it and never on the F portion. It shows up in the middle of words only.

What can I type in the search or search and replace so I can quickly find and remove all of them? Searching for ^F or ^ or F doesn't work. pressing CTRL f after / brought up the search history.

--
"In the days of ancient Rome when the republic was still a republic, Lucius Cassius, one of the city's most venerated consuls, famously coined the phrase cui bono.

It means As a benefit to whom?, and Lucius Cassius, inquisitive and analytical by nature, was always asking the question... whether he was investigating a crime or unraveling political corruption." - Simon Black

Like I have always said, "Follow the flow of the money it always reveals the truth."

Ben Fritz

unread,
Apr 10, 2013, 3:19:46 PM4/10/13
to vim...@googlegroups.com
On Wednesday, April 10, 2013 2:16:45 PM UTC-5, Jack Gates wrote:
> This single character unit is showing up in a text file ^F the cursor only stops on the ^ portion of it and never on the F portion. It shows up in the middle of words only.
>
> What can I type in the search or search and replace so I can quickly find and remove all of them? Searching for ^F or ^ or F doesn't work. pressing CTRL f after / brought up the search history.
>

You got close to it at the end there, this is a CTRL-F character.

On the command-line, to get a literal CTRL-F character, type CTRL-V followed by CTRL-F.

If you have CTRL-V mapped to a paste function, you can try CTRL-Q followed by CTRL-F instead.

stosss

unread,
Apr 10, 2013, 3:24:33 PM4/10/13
to Vim Users
Thanks Ben! That did the trick.

Christian Brabandt

unread,
Apr 10, 2013, 3:27:10 PM4/10/13
to Vim Users
Hi stosss!

On Mi, 10 Apr 2013, stosss wrote:

> This single character unit is showing up in a text file ^F the cursor only
> stops on the ^ portion of it and never on the F portion. It shows up in the
> middle of words only.
>
> What can I type in the search or search and replace so I can quickly find
> and remove all of them? Searching for ^F or ^ or F doesn't work. pressing
> CTRL f after / brought up the search history.

This is probably ctrl-f. if you want to search for it, you need to
insert it literally, e.g. type Ctrl-V Ctrl-F (see :h i_CTRL-V)

BTW: You can use the unicode.vim plugin, to find the name of a
character. E.g. Put the cursor on the char and enter :UnicodeName

regards,
Christian
--
Die Seele macht adlig, die sich aus jeder beliebigen Situation �ber
das Schicksal zu erheben vermag.
-- Lucius Annaeus Seneca (Briefe �ber Ethik)

Ben Fritz

unread,
Apr 10, 2013, 3:56:07 PM4/10/13
to vim...@googlegroups.com
On Wednesday, April 10, 2013 2:27:10 PM UTC-5, Christian Brabandt wrote:
>
> BTW: You can use the unicode.vim plugin, to find the name of a
> character. E.g. Put the cursor on the char and enter :UnicodeName

You might want to update the documentation at http://www.vim.org/scripts/script.php?script_id=2822 to mention :UnicodeName, I didn't realize this was a feature of the plugin when I was looking for a way to get the name and digraph of characters I already had. I ended up installing characterize instead ( http://www.vim.org/scripts/script.php?script_id=4410 ) which is actually a better match for me but others might miss the feature, too.

Christian Brabandt

unread,
Apr 10, 2013, 4:13:29 PM4/10/13
to vim...@googlegroups.com
Hi Ben!

On Mi, 10 Apr 2013, Ben Fritz wrote:

> You might want to update the documentation at
> http://www.vim.org/scripts/script.php?script_id=2822 to mention
> :UnicodeName, I didn't realize this was a feature of the plugin when I
> was looking for a way to get the name and digraph of characters I
> already had. I ended up installing characterize instead (
> http://www.vim.org/scripts/script.php?script_id=4410 ) which is
> actually a better match for me but others might miss the feature, too.

characterize doesn't work with combining chars.

regards,
Christian
--
Es ist nichts so allgemein, als falsche Worte in gutem Schein.
-- Sprichwort

Tony Mechelynck

unread,
Apr 10, 2013, 7:10:46 PM4/10/13
to vim...@googlegroups.com
On 10/04/13 21:27, Christian Brabandt wrote:
> Hi stosss!
>
> On Mi, 10 Apr 2013, stosss wrote:
>
>> This single character unit is showing up in a text file ^F the cursor only
>> stops on the ^ portion of it and never on the F portion. It shows up in the
>> middle of words only.
>>
>> What can I type in the search or search and replace so I can quickly find
>> and remove all of them? Searching for ^F or ^ or F doesn't work. pressing
>> CTRL f after / brought up the search history.
>
> This is probably ctrl-f. if you want to search for it, you need to
> insert it literally, e.g. type Ctrl-V Ctrl-F (see :h i_CTRL-V)
>
> BTW: You can use the unicode.vim plugin, to find the name of a
> character. E.g. Put the cursor on the char and enter :UnicodeName
>
> regards,
> Christian
>

ah, nice plugin; and the first time it fetches the UnicodeData.txt file
from the Unicode Consortium's site. :-)

After some playing with it, I notice that characters not in the list
(e.g. U+3102) give errors:

Error detected while processing function unicode#GetUniChar:
line 38:
E118: Too many arguments for function: add
line 47:
E684: list index out of range: 0
E116: invalid arguments for function printf("'%s' U+%04X %s %s %s",
glyph, values(dict)[0], keys(dict)[0], dchar, html))
E116: Invalid arguments for function add

All in all, I like it, in spite of these errors.


Best regards,
Tony.
--
Truth will be out this morning. (Which may really mess things up.)

Christian Brabandt

unread,
Apr 11, 2013, 1:40:58 AM4/11/13
to vim...@googlegroups.com
Hi Tony!

On Do, 11 Apr 2013, Tony Mechelynck wrote:

> ah, nice plugin; and the first time it fetches the UnicodeData.txt
> file from the Unicode Consortium's site. :-)
>
> After some playing with it, I notice that characters not in the list
> (e.g. U+3102) give errors:
>
> Error detected while processing function unicode#GetUniChar:
> line 38:
> E118: Too many arguments for function: add
> line 47:
> E684: list index out of range: 0
> E116: invalid arguments for function printf("'%s' U+%04X %s %s %s",
> glyph, values(dict)[0], keys(dict)[0], dchar, html))
> E116: Invalid arguments for function add
>
> All in all, I like it, in spite of these errors.

I think, this error is fixed in the latest development version on
github. Can you please try with that version? If you find more errors,
please tell me and I'll fix those.

regards,
Christian
--

Tony Mechelynck

unread,
Apr 11, 2013, 8:42:02 AM4/11/13
to vim...@googlegroups.com
After git clone, make vimball, updating manually (because I place that
plugin in $VIM/vimfiles, not ~/.vim), removing the BOM from the helpfile
(I have 'bomb' on by default and :helptags doesn't like it), ":helptags
$VIM/vimfiles/doc" and finally (very important) restarting Vim, the
error has disappeared: I get just "Character ' ' U+3102 not found" in
magenta on the message line (with a hollow box and subscript 3102
starting between the quotes and extending rightwards over U+).

*unicode.txt* A completion plugin for Unicode glyphs

Author: Christian Brabandt <c...@256bit.org>
Version: 0.17 Thu, 11 Apr 2013 14:17:13 +0200

Best regards,
Tony.
--
You can't judge a book by the way it wears its hair.

Christian Brabandt

unread,
Apr 11, 2013, 9:15:53 AM4/11/13
to vim...@googlegroups.com
Hi Tony!

On Do, 11 Apr 2013, Tony Mechelynck wrote:

> restarting Vim, the error has disappeared: I get just "Character ' '
> U+3102 not found" in magenta on the message line (with a hollow box
> and subscript 3102 starting between the quotes and extending
> rightwards over U+).

I believe, that is correct. There is no entry for U+3102 in
UnicodeData.txt so the plugin can't display more information.

regards,
Christian
--
Es sollten sich die leichenblassen Frauen das Haar nicht bleichen lassen.

Tony Mechelynck

unread,
Apr 11, 2013, 9:40:43 AM4/11/13
to vim...@googlegroups.com
On 11/04/13 15:15, Christian Brabandt wrote:
> Hi Tony!
>
> On Do, 11 Apr 2013, Tony Mechelynck wrote:
>
>> restarting Vim, the error has disappeared: I get just "Character ' '
>> U+3102 not found" in magenta on the message line (with a hollow box
>> and subscript 3102 starting between the quotes and extending
>> rightwards over U+).
>
> I believe, that is correct. There is no entry for U+3102 in
> UnicodeData.txt so the plugin can't display more information.
>
> regards,
> Christian
>
So do I. Thanks for the prompt reaction.

Best regards,
Tony.
--
Hackers do it with bugs.

Reply all
Reply to author
Forward
0 new messages