8
4
I'm using MacVim with spf13 and when I use w
to move a word forward, dots are seen as part of the word.
myObject.myMethod()
^ ^ ^
| | |
cursor | |
| |
where I want to go |
|
where I'm actually moved
Is there a setting for this?
Follow-up:
I noticed that vim only behaved like this with some files. For fileA.coffee
moving forward skips the dots, but for fileB.coffee
it does not. Is this set on file level somehow?
However, on the files that skips the dot (fileA
) doing :set iskeyword-=.
as suggested by Heptite works.
:set iskeyword-=.
worked. Though, I posted a follow-up question.. – Cotten – 2014-04-14T07:29:11.1803@Cotten: As my answer says, though apparently not clearly enough, yes this option can be and probably has been set on a per-buffer level, likely by a system syntax highlighting script, or a filetype plugin. The "
:verbose set iskeyword?
" command in my answer will tell you which sourced script set it. – Heptite – 2014-04-14T21:57:15.990@Heptitie thanks for clarification around per-buffer level and it probably being set by a script or plugin! – Cotten – 2014-04-15T08:13:10.850