Questions tagged [unicode]

Question about using Unicode character set, how to insert them, how to display them and general use of the UTF8 encoding.

Filter by
Sorted by
Tagged with
1
vote
0answers
59 views

Open file with Esperanto characters `Ĝ` and `ĝ` in gVim

I have an Autohotkey script to write Esperanto characters. It has the form AppsKey & G:: if GetKeyState("Shift", "P") send Ĝ else send ĝ return Notepad has no problem with ...
13
votes
1answer
2k views

Can't map German 'umlaut' keys in .vimrc

I'm trying to find a way to map German umlaut keys (Ä,ä,Ö,ö,Ü,ü). A simple shortcut like this won't work: inoremap <c-ö> <Esc> Nothing happens when I hit ctrl+ö. Does anyone know a ...
14
votes
1answer
2k views

Not able to type Unicode with Gvim and VIM on Windows 7

I want to type in different languages using (g)Vim. But when I switch to another language using language bar (Devanagari or Hindi characters), and type anything, (g)vim displays ??? ??. What I tried:...
4
votes
1answer
2k views

Why do symbols look ugly in gvim?

I'm on Windows 7 with Vim 7.4, and Unicode symbols with the Hack font look awful. Am I missing a setting somewhere? Is there a way to improve this? For reference, this is gvim: and this is atom: I'...
4
votes
3answers
550 views

How can a character be inserted during an edit session by its Unicode numeric value?

I'm trying to set up a plugin to enable indentation guides, following an answer to this question. The plugin is Yggdroot/indentLine. It has instructions to set up a custom glyph to be shown instead of ...
9
votes
2answers
764 views

Vim does not take umlauts as word characters

When I write a German text containing something like abücd for instance and to a dw in front, it will only delete the ab since it does not interpret ü as a word character. When I edit ...
5
votes
2answers
634 views

Is there a version of "strpart" that is aware of characters, rather than bytes

According to :help strpart(), the parameters start and len are bytes, not characters, so that returns a string of 2 characters, starting with the letter Beth. What I'd like to have is a function, ...
1
vote
1answer
525 views

Using digraph mode to insert special key codes

I've always thought about digraph mode as a way to quickly insert unicode special or unusual chars into the buffer without copy-pasting things around or changing keyboard layout system-wide. So to ...
2
votes
0answers
631 views

Editing files containing Devanagari script

Editing files containing Devanagari script (or other Indian scripts) in vim doesn't work out of the box. I have not found a satisfactory solution for it yet and would like to hear if anybody else has.
28
votes
1answer
9k views

Can I search for a Unicode combining character in Vim?

I have a file with the character ã (lowercase a + combining tilde). Encoding and fileencoding are both utf-8. ga shows <a> 97, hex 61, octal 141 <~> 771, Hex 0303, Octal 1403 (but ...
4
votes
1answer
50 views

How to make many definitions available as some kind of mode

I've written a vim script that inserts unicode mathematical notation into what I'm editing. It's basically a few hundred lines of code that look like :map! \bbq ℚ. Sometimes I want to enable all of ...
4
votes
1answer
258 views

How to use a UTF8 character as part of the iskeyword setting?

I would like to be able to add the ’ character to iskeyword setting. I'm currently using this: " Count ’ as a part of words like I’m and you’re¬ au FileType plaintex,context,tex,latex,mail,markdown,...
1
vote
1answer
358 views

Macvim - CJK-specific font settings?

Currently in my MacVim, the English font (Source Code Pro Light) is fine, but the Chinese font is being rendered in a very ugly manner. Is there any way to specify what font to use/fontsize for CJK ...
3
votes
2answers
231 views

Is there something similar to g8 but shows the values according to the file encoding

I am looking for a g8 equivalent that prints the hex values of the character under the cursor according to the file encoding of the file loaded in a buffer rather than assuming it's utf-8. Is there ...
2
votes
1answer
461 views

Digraph for the "bullet" (8226 hex 2022) [duplicate]

I am looking for a digraph to enter the bullet symbol • (Unicode 8226, hex 2022), but it seems there is none. So, in absence of such a digraph, is there an alternative way to enter the bullet easily?
9
votes
1answer
3k views

How to translate Unicode escape sequences to the Unicode character?

I have a file with a lot of characters represented like this: \u05E2. (These are the actual characters in the file: backslash, lowercase u, and four hexadecimal digits.) Due to that, the file is ...
33
votes
5answers
10k views

What is the easiest way to insert Unicode characters into a document?

When writing documents occasionally I want to insert Unicode characters into the text. Sometimes I know the character code and sometimes I look it up on the web. Currently I go to insert mode and ...
42
votes
7answers
9k views

What is the easiest way to insert en dash in Vim?

To insert an en dash, I use ^v u 2014 which is seven keypresses. Is there an easier way? (I was looking at digraphs and didn't find en dash there.)
49
votes
1answer
11k views

See the Unicode code point of the current character

How can I see the Unicode code point of the character where the cursor is? For example, if my cursor is on a ⌘ character, I'd like Vim to tell me that it is U+2318. Alternative information, such as ...

1
2