VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
13.91k stars 1.32k forks source link

Add `zs` and `ze` mappings to roadmap #4487

Open ktr opened 4 years ago

ktr commented 4 years ago

Is your feature request related to a problem? Please describe. In vim, I often use g$ without word-wrap enabled to go to the end of the screen and then use zs or ze to send the current cursor position to the beginning or end of the line, respectively.

Describe the solution you'd like zs will scroll the window (horizontally) so that the current cursor position is moved to the far left/beginning of the screen. ze does the opposite (sends the current cursor position to the end of the screen).

Describe alternatives you've considered I'm not aware of any alternatives.

Additional context In vim, if my cursor is at the end of the line: image

I can then hit zs and the screen will look like the following: image

If the cursor is instead in the following position: image

I can hit ze and the screen will look like the following: image

Implementing these (or at least adding them to the roadmap) would make this extension more consistent with vim.

J-Fields commented 4 years ago

scroll the window (horizontally)

This currently isn't possible with VSCode's API