Questions tagged [multibyte]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers

multibyte characters unicode in neovim status line

I am trying to configure lualine plugin to display unicode of a multibyte character under the cursor. It is works fine for ASCII but not multibyte chars... Can anyone share a working lua function? ...
Malamoot's user avatar
1 vote
1 answer

convert byte index to character index

Some function in vim return a byte index instead of a character index (e.g. match()). If the matched string contains multibyte characters this byte index differs from the character index. Does vim ...
radlan's user avatar
  • 677
0 votes
1 answer

Get visually selected text - weird behavior when last selected char is multi-byte

I have made a simple function to echo the visually selected text. The function is simplistic as I am only interested in max one-line selection. The problem is, if the last character of the visual ...
skamsie's user avatar
  • 235
1 vote
3 answers

Easy way to get character before cursor character in insert mode?

I am trying to write a function for insert mode mapping in which I want to get the character before the cursor character. For texts that are purely ASCII, this is easy, since its byte index is the ...
jdhao's user avatar
  • 1,113
0 votes
1 answer

neovim switch keymapping

I am in the process of getting myself to start using neovim instead of vim/vi which has been favorite editor for over 30 years. For my current use, I need to set keymapping to type characters that ...
jayr's user avatar
  • 33
5 votes
0 answers

Space Error when typing Korean

when typing Korean, I quite frequently have a space error, and it seems happening randomly. Suppose I am trying to write the sentence "I do not know" in Korean. When I hit the space key ...
dy nobo's user avatar
  • 51
5 votes
2 answers

Reliably get the character at a byte index in a string

I'm doing some string processing in vimscript. I obtained a byte index for a character in the string and now want to obtain the character at that byte index. For single-byte charsets (like latin1) ...
Ralf's user avatar
  • 9,147
0 votes
1 answer

Why does backslash-escaping a CJK character cause a very-magic regex match to fail?

My understanding of very-magic regexes is that you can escape any character outside [A-Za-z0-9_] with a backslash to make it match literally. However, I don't see that behaviour with CJK characters. ...
cxw's user avatar
  • 974
2 votes
1 answer

How can I search for Unicode characters by hex code in very magic regexes in vimscript?

I am working on UTF-8 support for my editorconfig-core vimscript plugin. I have hit a strange snag. This is in official GVim 7.4 Win32. I would like to get this working on 7.4, rather than ...
cxw's user avatar
  • 974