vim-pandoc-legacy icon indicating copy to clipboard operation
vim-pandoc-legacy copied to clipboard

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

Open pengyu opened this issue 13 years ago • 2 comments

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.

pengyu avatar Jun 17 '12 17:06 pengyu

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.

dsanson avatar Dec 15 '12 18:12 dsanson

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+=$

pengyu avatar Dec 30 '12 03:12 pengyu