Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interference when inserting parenthesis in Julia code #25

Open
dm3 opened this issue Jan 29, 2018 · 2 comments
Open

Interference when inserting parenthesis in Julia code #25

dm3 opened this issue Jan 29, 2018 · 2 comments

Comments

@dm3
Copy link

dm3 commented Jan 29, 2018

I'm writing Julia using the Julia-vim plugin. When I also have Vim-Sexp loaded, any parenthesis or bracket (([{) inserted in a Julia (*.jl) file is autoindented by one space - a space is inserted before the parenthesis right after it's typed. Commenting Vim-Sexp out makes the issue go away.

I understand the description is light on details and the problem might as well be in the Julia-Vim plugin rather than Vim-Sexp. However, I think this issue might be helpful to anyone who runs into the same problem. Maybe someone will actually be able to figure it out!

@dm3
Copy link
Author

dm3 commented Jan 29, 2018

Actually, setting

let g:sexp_filetypes = 'clojure'

helps with the issue. Thus, the default value of let g:sexp_filetypes = 'clojure,scheme,lisp,timl' must be somehow confusing Julia with one of the scheme/lisp/timl filetypes. Not sure how this is happening though...

@brothert
Copy link

Unfortunately Julia's extension .jl conflicts with librep Lisp's, so Vim sets filetype "lisp" which makes vim-sexp correctly add several insert mode mappings.

Overriding the wrong filetype for .jl with an autocommand in .vimrc or ~/.vim/ftdetect etc. does not seem work.
let g:sexp_filetypes = 'clojure,scheme,timl'
might be the best preliminary solution for now if you don't write Lisp code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants