misfo / jim

Vim mode for Ace (Github & Cloud9's editor)
http://misfo.github.com/jim
MIT License
65 stars 3 forks source link

Navigation/selection for international characters (e.g. Icelandic) #31

Open torfason opened 4 years ago

torfason commented 4 years ago

I'm a pretty heavy user of Ace with vim mode in RStudio, which looks like it is based on jim. I like it very much, but I´m running into some issues with international characters. They seem to be treated as word boundaries by the vim commands. In Ace itself, they are handled correctly, which is why I am reporting this here.

Reproducible example:

Enter the following text in a vim-enabled Ace editor such as http://misfo.github.io/jim/

abcædef another word
abcþdef another word
abcödef another word
  1. Double-click on the first word in each line to observe that core Ace treats international characters (here æ, þ, ö) as part of the first word, in that the whole word is selected.
  2. Go to the start of any of the lines and type vw, cw, dw, w, or b to observe that these commands incorrectly treat the international characters as word boundaries.