Domanda

I am using gvim 7.3 on Windows to edit a German document; enc is utf8. There are words containing an "SZ", say großer. When my cursor is on g, and I press w, I expect the cursor to jump to the next word. Unfortunately vim seems to consider ß to be the border of the word and jumps to it. Anyway to tell vim it should consider ß a normal letter?

ä,ö,ü are not a problem, they are recognized correctly.

È stato utile?

Soluzione

Word boundaries depend on the value of the iskeyword option. The default value on UNIX-y systems is @,48-57,_,192-255 which includes ß (#223 IIRC). Make sure you run Vim in "no compatible" mode to have the correct default value. Having a ~/.vimrc, even an empty one, should be enough.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top