Vim Tips Wiki
Advertisement

Use this page to discuss script 2822 unicode: enhancements for using Unicode and digraphs

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

Feature request[]

It would be nice if the Unicode character category was included in the :UnicodeName routine.

Just before added the UnicodeData.vim entry to the list:

if val[2] !=? ''
    let Name = Name. ' ('. val[2]. ')'
endif

Why? Some programming languages, like C++, allow identifier characters based on the Unicode character category.

For those who need this a lot, here is a handy :UnicodeName mapping in one's .vimrc file:

:nmap gu :UnicodeName<CR>

Hi, please note, I usually do not watch this page, so it may be better to create feature requests in the upstream repository https://github.com/chrisbra/unicode.vim

I have now included your suggestions: https://github.com/chrisbra/unicode.vim/commit/176963d8e43dd54ff1582cb2374e731b51a7f5d5

Thanks, chrisbra Chrisbra (talk) 15:53, 5 May 2022 (UTC)

Comments[]

Advertisement