Giter VIP home page Giter VIP logo

Comments (5)

jalvesaq avatar jalvesaq commented on July 22, 2024

I can't reproduce the bug. When I press * over my.var it's highlighted as a whole, as expected. Could you please try again with the following simple vimrc:

set nocompatible
syntax enable
filetype plugin on
filetype indent on
set hlsearch

from vim-r-plugin.

svenski avatar svenski commented on July 22, 2024

Still the same behaviour. Did I mention this must be in an r-chunk in an .Rmd file?

If it is of any help, although I suspect not, I run VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 4 2012 04:22:36) on Ubuntu precise.

from vim-r-plugin.

svenski avatar svenski commented on July 22, 2024

Also tried to remove all other vim plugins with the same effect for RMD files. The plugin version I'm using is: 0.9.9.2. Updated today but had the same behaviour in the previous version I had from mid last year.

from vim-r-plugin.

jalvesaq avatar jalvesaq commented on July 22, 2024

I still cannot reproduce the bug. The Vim variable that controls the affected behavior is 'iskeyword'. Perhaps you have this variable set somewhere. If not, we have to wait until somebody finds what's causing the bug. Here, the output of

:set iskeyword?

is

iskeyword=@,48-57,_,.

Note the dot at as the last keyword element.

from vim-r-plugin.

svenski avatar svenski commented on July 22, 2024

Thanks, that helped me track down the issue. Turns out it was a line in my .vimrc: "syntax on". If I set the iskeyword for rmd files before this it was reset. If I set the iskeyword after the "syntax on" line it worked as expected.
Again thanks for the help.

from vim-r-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.