8000 Adapt to local virtualedit by tomtomjhj · Pull Request #176 · machakann/vim-sandwich · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Adapt to local virtualedit #176

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
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tomtomjhj
Copy link
Contributor

Problem:
virtualedit can be window-local since Vim 8.2.3227 and 8.2.3280. So, if sandwich is invoked in a window with local virtualedit set, the option restoration logic globally applies that window's local virtualedit to other windows (see :h global-local).

Solution:
Use setlocal and &l:.

Problem:
virtualedit can be window-local since Vim 8.2.3227 and 8.2.3280.
So, if sandwich is invoked in a window with local virtualedit set,
the option restoration logic globally applies that window's local
virtualedit to other windows (see :h global-local).

Solution:
Use setlocal and &l:.
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

Successfully merging this pull request may close these issues.

1 participant
0