Git Product home page Git Product logo

Comments (4)

jalvesaq avatar jalvesaq commented on September 16, 2024

commentstring is already set by the ftplugin/r.vim that ships with Vim/Neovim. See:
https://github.com/vim/vim/blob/master/runtime/ftplugin/r.vim
https://github.com/neovim/neovim/blob/master/runtime/ftplugin/r.vim

Moreover, I believe that:

  • we don't need equalprg because indent/r.vim does the job;
  • we don't need makeprg because R is interpreted and not compiled.

Perhaps makeprg could be Rscript\ % or R\ CMD\ BATCH\ %.

from nvim-r.

schoettl avatar schoettl commented on September 16, 2024

I see -- the ftplugins are the right place for this. Thank you. I still wonder why commentstring is not automatically set for my *.R files in my vim and nvim...

from nvim-r.

jalvesaq avatar jalvesaq commented on September 16, 2024

On Ubuntu 16.04, it is set automatically in both Vim and Neovim. My vimrc for Vim is:

set nocompatible
call plug#begin('~/.config/nvim/plugged')
Plug 'jalvesaq/Nvim-R'
call plug#end()
filetype plugin indent on
syntax on
let R_tmux_split = 1

Perhaps you have something in your vimrc or in ~/.vim/after/ftplugin/r.vim or somewhere else preventing commentstring of being set.

from nvim-r.

schoettl avatar schoettl commented on September 16, 2024

Thank you for you help. Hmm, I can't find the problem. I never change thecommentstring in my vimrc (except to fix the problem), I have no other plugins related to R, and I have exactly the r.vim files (which you mentioned) installed with vim/neovim. (And I also have nocompatible, filetype plugin indent on and syntax.)

Well, it works with my autocmd workaround. Thanks for this great plugin!

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.