Git Product home page Git Product logo

Comments (12)

jalvesaq avatar jalvesaq commented on September 16, 2024

I have just tested, and R_assign works in both Vim and Neovim on Linux.

from nvim-r.

thejmazz avatar thejmazz commented on September 16, 2024

I'm on OSX. Hm, correct me if I'm wrong, but should

:echo $R_assign

print anything, if I have not assigned it in .vimrc or by command?

from nvim-r.

jalvesaq avatar jalvesaq commented on September 16, 2024

The $ prefix is for environment variables, but R_assign is a Vim's global variable. You should put in your vimrc:

let R_assign = 0

And you can check in Vim:

:echo R_assign

Please, in Normal mode Vim do:

:help R_assign

from nvim-r.

thejmazz avatar thejmazz commented on September 16, 2024

Oh, I didn't realize about the $.

Yes, I've done this before, but a_ still turns into a <-:
vim-r

Also:
screen shot 2016-03-23 at 1 07 55 pm

from nvim-r.

jalvesaq avatar jalvesaq commented on September 16, 2024

It looks like Nvim-R is not installed, but the animated gif is too fast and I don't know how to stop it. I couldn't see the vimrc carefully.

from nvim-r.

jalvesaq avatar jalvesaq commented on September 16, 2024

The name of the plugin is Nvim-R now. See: jcfaria/Vim-R-plugin#204

from nvim-r.

jalvesaq avatar jalvesaq commented on September 16, 2024

Try this:

Plugin 'jalvesaq/Nvim-R'

from nvim-r.

thejmazz avatar thejmazz commented on September 16, 2024

Okay yeah, I guess it is b/c I was using Vim-R. I'll need to update my Vim as I'm on 7.4.1553 atm.

(I also made the gif slower but its clear the problem was I using Vim-R anyways)

from nvim-r.

denilson-melo avatar denilson-melo commented on September 16, 2024

Just had this. Solved by clearing ~/.vim/views/ folder

from nvim-r.

jsr-p avatar jsr-p commented on September 16, 2024

For neovim you would write the following in your config (using Lazy.nvim):

{
    'jalvesaq/Nvim-R',
    lazy = false,
    config = function()
      vim.g.R_assign = 0
    end
  }

from nvim-r.

jalvesaq avatar jalvesaq commented on September 16, 2024

In lazy.nvim, init is run before config and should be used for Vim plugins that rely on global variables:

{
    'jalvesaq/Nvim-R',
    lazy = false,
    init = function()
      vim.g.R_assign = 0
    end
  }

Specifically for R_assign, config should also work because I included a workaround in Nvim-R.

Please, see also: https://github.com/jalvesaq/Nvim-R/discussions

from nvim-r.

jsr-p avatar jsr-p commented on September 16, 2024

I see, thank you; config also worked, but I'll use the stricter one 😄

from nvim-r.

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.