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

Multi-line edit starting with periods under the cursor breaks #131

Open
juicetin opened this issue Mar 14, 2017 · 2 comments
Open

Multi-line edit starting with periods under the cursor breaks #131

juicetin opened this issue Mar 14, 2017 · 2 comments

Comments

@juicetin
Copy link

juicetin commented Mar 14, 2017

Hi,

As stated in the title, multi-line edits starting with a period under the cursor doesn't work - instead of the usual behaviour (using visual mode, multi-line highlight, then shift+i), only the first line gets the edit, and it gets pushed to the left such that the original text stays in the same columns.

pangloss/vim-javascript is also being used at the same time - so I'm not sure if this issue may be a combination of these two plugins interacting (but disabling this one and leavin vim-javascript enabled doesn't reproduce the issue).

This behaviour occurs in *.js files using the let g:jsx_ext_required = 0 setting, as well as in *.jsx files, both inside and outside of JSX blocks in said file extensions.

@mxw
Copy link
Owner

mxw commented Jul 14, 2017

Are you using line-visual mode, or block-visual mode? I can't repro with the latter, and the former never does the thing you're describing.

@juicetin
Copy link
Author

Hi mxw,

It was in block-visual mode - particularly in the use case where I'm commenting out multiple lines each with leading periods (.). I'll do some further debugging especially around having different plugins enabled at the same time - I'll post back with new info when I have some.

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