t9md / atom-vim-mode-plus

vim-mode improved
https://atom.io/packages/vim-mode-plus
MIT License
1.4k stars 111 forks source link

Cursor ends up on the last line after a multiline yank #1122

Closed Yakimych closed 5 years ago

Yakimych commented 5 years ago

Execute Vim Mode Plus: Clip Debug Info(which write info to clipboard) then paste here.

Read and check all "Checklist" below.

Checklist

You have to check all before open issue.

{
  "atom": "1.38.2",
  "platform": "darwin",
  "release": "18.6.0",
  "vmpVersion": "1.36.0",
  "vmpConfig": {}
}

For example, if I were to duplicate the following function with VjjYP:

function sum(a, b) {
  return a + b;
}

I would get the following result:

function sum(a, b) {
  return a + b;
function sum(a, b) {
  return a + b;
}
}
Yakimych commented 5 years ago

Just saw that this is controllable via setting stayOnYank: false in the settings. Closing this.

t9md commented 5 years ago

Yes. This is intentional aggressive decision. You can see others here. https://github.com/t9md/atom-vim-mode-plus/wiki/DifferencesFromPureVim

Yakimych commented 5 years ago

Good stuff, thanks!