4

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,textile,text set iskeyword+=’

Unfortunately, I'm getting and invalid keyword argument for this on my version of vim. I believe I'm using the latest vim for my system:

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar 25 2015 19:31:37)
MacOS X (unix) version
Included patches: 1-622
Compiled by Homebrew

Should I be specifying this differently? Is it possible to add UTF8 characters to the iskeyword setting?

200_success
  • 9,549
  • 5
  • 51
  • 64
Aaron Massey
  • 171
  • 8

1 Answers1

3

:help 'iskeyword' points to :help 'isfname' which says:

only the characters up to 255 are specified with this option

Since (U+2019) is not part of the ASCII (0-127) or Extended ASCII (128-255) tables you can't add it or remove it from 'iskeyword'.

Which is a good thing because it is used as an apostrophe and thus can't be considered part of a word.

romainl
  • 40,486
  • 5
  • 85
  • 117