Duplicating a block of lines using `YP` in visual mode isn't consistent with Vim
mattalxndr opened this issue · comments
Execute Vim Mode Plus: Clip Debug Info
(which write info to clipboard) then paste here.
debug info
{
"atom": "1.58.0",
"platform": "linux",
"release": "5.15.7-arch1-1",
"vmpVersion": "1.36.7",
"vmpConfig": {
"startInInsertMode": true
}
}
Steps to reproduce
-
Put this into a new buffer:
xxx ooo
-
Exit insert mode.
-
Put cursor on first line (
xxx
). -
Vj
to select both lines. -
YP
to duplicate the block of lines.
Expected
xxx
ooo
xxx
ooo
Actual Result
xxx
xxx
ooo
ooo
Read and check all "Checklist" below.
Checklist
You have to check all before open issue.
- Provide your environment info clipped by
Vim Mode Plus: Clip Debug Info
command. - Try with latest Atom and latest vim-mode-plus.
- Pick a descriptive and non-ambiguous subject
- Express "what" you want(feature? config option?, behavior change?) in short sentence(not long!).
- Contrast current behavior if you want to change current behavior, with sample text, operation(keystroke) and result.
- Include real use case so that maintainer can understand "why" you need help.
- Include Atom(
atom --version
), vim-mode-plus version, and OS version(e.g. macOS Sierra 10.12.3).
- Arch Linux, KDE Plasma 5 - If keybinding issue, Read this.
Here is the reason for inconsistency with pure Vim and you can disable it by unchecking StayOnYank
like the following gif on vmp package setting.
https://github.com/t9md/atom-vim-mode-plus/wiki/DifferencesFromPureVim#config-vmp-stayontransformstring-stayonyank-stayondelete
How can I make vmp behave as close to pure-vim's default as possible?
Thank you, very nice