atom / vim-mode

Next generation vim support for atom
MIT License
1.72k stars 253 forks source link

ctrl-e should copy from line below #875

Closed wbolster closed 9 years ago

wbolster commented 9 years ago

the insert mode ctrl-y command, which is implemented, copies characters from the line above. ctrl-e should do the same for line below.

wbolster commented 9 years ago

it looks like this has deliberately been disabled in 3e556fb648263a9b7dab62dcc2e951d85a1df791, stating "disabled for compatibility with the common binding for going to the end of the line" somewhere in a code comment. i'm not sure where "common binding" comes from, but this is certainly not normal vim behaviour, and i expect vim-mode to work like vim itself.

maxbrunsfeld commented 9 years ago

Yeah, vim-mode is built to work like Atom in insert mode. If you want to override Atom's own key-bindings in insert mode, everything is all set up for you to do so. The command is: vim-mode:copy-from-line-below.

wbolster commented 9 years ago

the whole point of vim-mode is that it acts like vim! using ctrl-e for jumping to the end of the line is actually an emacs binding (and atom apparently), but the point is, well, it's kinda obvious, vim is not emacs...

casimir commented 9 years ago

Actually <C-E> exists in Vim but for a completely different thing (see help here). Not that <C-Y> is also the opposite.

maxbrunsfeld commented 9 years ago

Yeah @casimir the binding you mentioned is for normal mode. This issue is talking about this one, for insert mode.

wbolster commented 9 years ago

i still fail to understand the reason for deviating from normal vim behaviour. why is ctrl-e special in insert mode?