othree / yajs.vim

YAJS.vim: Yet Another JavaScript Syntax for Vim
http://www.vim.org/scripts/script.php?script_id=4974
Vim License
688 stars 41 forks source link

yajs.vim is screwing up my indenting #44

Closed ddevault closed 9 years ago

ddevault commented 9 years ago

My vimrc can be found here: https://gogs.sr.ht/sircmpwn/dotfiles/src/master/vim/vimrc

When I have yajs installed and I open the following document:

function foo(){
};

Pressing o from the first line will not indent into the function body as expected.

othree commented 9 years ago

HI

I try your vimrc and install all the plugins. But can't reproduce your issue.

ddevault commented 9 years ago

asciicast demonstrating the issue

othree commented 9 years ago

I am using 748. And It should indent for you. I will try latest Vim.

othree commented 9 years ago

769 is ok here. Would you possible to test on 7.4.769?

Not sure is OS affect this. I am using OSX.

ddevault commented 9 years ago

I'm on Linux, and I'm compiling 769 now to test with.

ddevault commented 9 years ago

Problem is still present with 769.

othree commented 9 years ago

https://gogs.sr.ht/sircmpwn/dotfiles/src/master/vim/vimrc#L96 Cause this. I tested on ubuntu. I think this only occurs on linux. And not related to yajs (I try uninstall it and it still happens.)

ddevault commented 9 years ago

Oh, I see. This must be the fault of my jsx plugin, then, rather than yajs. I'll report it to them, sorry to bother you.