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

bug(paste): Makes character-wise paste VIM-like. #194

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wesalvaro
Copy link

Currently, when pasting character-wise, the selection is kept at the beginning. In VIM, the behavior is placing the cursor at the end of the pasted content.

Example of current behavior:
d_o_g - Denotes the cursor is under the letter "o" in "dog".
d>og< - Denotes the selection is "og" in "dog".

>something< - Let's yank(y) this selection "something".
_s_omething - Place the cursor over "s"

Put(p) in Sublime result:
s_s_omethingomething

Put(p) in VIM result:
ssomethin_g_omething

This minor change fixes Sublime's character-wise put to behave like VIM's.

Currently, when pasting character-wise, the selection is kept at the beginning. In VIM, the behavior is placing the cursor at the end of the pasted content.
Example of current behavior:
  d_o_g - Denotes the cursor is under the letter "o" in "dog".
  d>og< - Denotes the selection is "og" in "dog".
  
  >something< - Let's yank(y) this selection "something".
  _s_omething - Place the cursor over "s"

  Put(p) in Sublime result:
  s_s_omethingomething

  Put(p) in VIM result:
  ssomethin_g_omething

This minor change fixes Sublime's character-wise put to behave like VIM's.
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