segfault at hasno.info
Mon Apr 17 09:46:12 EDT 2006
Nikolai Weibull wrote:
> Actually, this isn't the right solution I think. The whole cWORD
> problem happens whenever a symbol is preceded by whitespace, not only
> when at the beginning of a line. One solution that works is calling
> VIM::command('normal! h') if the string is empty and then expanding.
> That way the cursor will be over the dot in ":x." and it will expand
> to the correct string. I really think that this should be fixed
> inside Vim instead, but Bram can't replicate our issue, so perhaps
> there something more to it than a simple bug in expand().
I thought a little more about the problem, and I still don't want to
move the cursor. I believe using the ruby-side buffer stuff we can get
the current cursor position so we could provide the same functionality
that cWORD was providing.
sic transit gloria et adulescentia
blog | http://blog.hasno.info/blog
wiki | http://wiki.hasno.info
More information about the vim-ruby-devel