Skip to content

"e" cursor movement command is better move the cursor to right before the end $ in $xxx$? #59

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

Open
pengyu opened this issue Jun 17, 2012 · 2 comments

Comments

@pengyu
Copy link

pengyu commented Jun 17, 2012

In a .tex file, "e" moves cursor to the last "x" in $xxx$. In pandoc file, "e" moves to the last $ instead, I think that this should be change to be consistent with what is in .tex file.

@dsanson
Copy link

dsanson commented Dec 15, 2012

I am not seeing the behavior you describe. For me, "e" moves the cursor to the last "x" in $xxx$, just as you describe, and "E" moves to the "$". I don't know what controls this behavior: presumably it has to do with what characters vim takes to be part of "words" and what characters it takes to be punctuation. Digging in the vim helpfiles suggests iskeyword might be responsible, but for me, set iskeyword? indicates that my settings are the default settings whether I am in latex or pandoc.

@pengyu
Copy link
Author

pengyu commented Dec 30, 2012

I searched my vim files. I think that the intruding command is from vim-javascript. After I remove this vim plugin, then I see the behavior that you saw. So I guess this should be a bug of vim-javascript? But why vim-javascript is loaded, is it loaded in vim-pandoc?

git://github.com/pangloss/vim-javascript.git

bundle-available/vim-javascript/syntax/javascript.vim
28:setlocal iskeyword+=$

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

No branches or pull requests

2 participants