Thanks, Efraim.

I have tried that, for example in my .vimrc I have:

set iskeyword+=.

Then when I open a R file typing :set iskeyword results in:

iskeyword=@,48-57,_,.

and it still doesn't work. Also, oddly when a $ is included in the
language (i.e. var$item) it treats it as a word (even though it's not
in 'iskeyword')

Any ideas?

Thanks,

Harold

On Wed, Mar 14, 2012 at 5:10 AM, Efraim Yawitz <[email protected]> wrote:
>
>
> On Wed, Mar 14, 2012 at 12:51 AM, Harold Pimentel <[email protected]>
> wrote:
>>
>> Hi all,
>>
>> The behavior I'm looking for is to be able to treat words separated by '.'
>> as different words (as understood by the motion 'w') in the R language.
>>
>> For example, let '|' denote the cursor position:
>>
>> |x.bar
>>
>> Now you hit 'w'
>>
>> x|.bar
>>
>> And so forth.
>>
>> Also, there are existing syntax rules for the language (I'm using
>> vim-r-plugin). Is there a way I can augment the existing rules without
>> touching that code (put something in my .vimrc or
>> ~/.vim/bundles/myRchanges/r.vim when using pathogen)?
>>
>> Sorry, I'm sure this has been asked many times before.
>>
>>
>
> I think you have to start with :help iskeyword (although I find it a bit
> confusing, myself).
>
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to