Comments (6)
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.
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.
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.
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.
I have the same issue on Windows - setting the newline character to just "\n" works correctly.
from vimcmdline.
I changed it to "\n"
.
from vimcmdline.
Related Issues (20)
- session/line number not unique error, reproducible example HOT 6
- No such variable "s:ft", key not present in Dictionary: "python" HOT 7
- 117: Unknown function: VimCmdLineSendCmd HOT 2
- new feature: execute up to the current line HOT 2
- how to print the shape of a python numpy array HOT 2
- Hy support? HOT 3
- Python send paragraph sends extra blanks lines to repl HOT 5
- Would that be possible to have several cmdline_app per filetype and start interpreter differently per repl HOT 7
- Sending multiple lines freezes IPython with "%cpaste -q" HOT 11
- Toggle interpreter HOT 1
- [prolog] consult/1 file when opening REPL HOT 3
- Problems tmux and kitty as terminal HOT 7
- README does not make clear whether Tmux is required HOT 1
- error reported when import a module, but actually it works HOT 3
- new feature: send the whole file into python interpreter HOT 1
- Cannot start external terminal for python HOT 3
- b:cmdline_source_fun doesn't work for node HOT 3
- VIM help for plugin is missed HOT 5
- This is not an issue, but I think open the bash terminal whatever the filetype is be a good idea. HOT 2
- Does VCL allows me to use ssh? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vimcmdline.