skk.vim icon indicating copy to clipboard operation
skk.vim copied to clipboard

s:ValidVarCharをsubstitute化

Open mattn opened this issue 15 years ago • 0 comments

高速化の為にsubstitute化したい。

substitute(a:str, '\([^\w]\)', '\="__".char2nr(submatch(1))."__"', 'g')

としたいが、どうやら文字単位でなくバイト単位で変数名を作っているらしい。根本から変えるか悩み中。

mattn avatar Feb 09 '10 10:02 mattn