Giter Site home page Giter Site logo

Comments (6)

jalvesaq avatar jalvesaq commented on September 28, 2024

I'm sorry, but I don't use Julia, and don't have it installed. Perhaps someone else can help fixing this issue, but looking at ftplugin/julia_cmdline.vim we can see:

let b:cmdline_nl = "\r\n"

You could try changing it to either "\n" or "\r". However, it would be better to test the change on different platforms (Windows, Linux, Mac OS X).

If you look at /usr/local/share/nvim/runtime/filetype.vim, you will see that .jl is associated with lisp. So, you could put in your vimrc:

autocmd BufNewFile,BufRead *.jl set ft=julia

from vimcmdline.

dm319 avatar dm319 commented on September 28, 2024

Ah, yes that fixes it!

let b:cmdline_nl = "\n"

is a solution on my linux system, though I'm aware that '\n' is the unix line-ending. I think '\r\n' is a Windows line-ending?

I don't seem to have this problem with your other excellent plug-in nvim-R.

Also thanks for pointing out language issue. julia-vim must do this implicitly, so I'll leave it on.

from vimcmdline.

jalvesaq avatar jalvesaq commented on September 28, 2024

I use R frequently, and sometimes I test Nvim-R on Windows.
I will change the newline to \n unless Vim/Neovim is running on Windows. I will change it on Windows too if someone reports an issue.
Thanks!

from vimcmdline.

dm319 avatar dm319 commented on September 28, 2024

Brilliant thanks! This plugin has made Julia far more pleasant to use. I'm also a heavy R user, so it's nice to be able to use Julia in the way I use R (mostly!). Thanks again.

from vimcmdline.

adrianadermon avatar adrianadermon commented on September 28, 2024

I have the same issue on Windows - setting the newline character to just "\n" works correctly.

from vimcmdline.

jalvesaq avatar jalvesaq commented on September 28, 2024

I changed it to "\n".

from vimcmdline.

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.