1

I am using the Vim extension for VSCode. I like to keep my cursor aligned in the middle of the screen. It's why i remapped a few keys to perform automatically zz after the commands. How is it possible with the easymotion feature ? I would like to be directly centered whenever i move to another word. Thanks !

I tried to browse the internet but found nothing... I do not want to press zz after each move.

romainl
  • 186,200
  • 21
  • 280
  • 313
accoumar
  • 21
  • 3

2 Answers2

1

i found solutions for vim, see Center cursor position after search in Vim or VIM: center screen position on current line after jumping to a mark. But I can not translate it for vscode vim.

accoumar
  • 21
  • 3
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Aug 05 '23 at 18:55
0

For those interested, the answer is related to vscode directly, by setting: "editor.cursorSurroundingLines": 100,

accoumar
  • 21
  • 3
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Aug 10 '23 at 21:45