How to setup Vim so you can f.e mouse click in the middle of new opened empty Vim window and place cursor exactly there ( f.e line 23 char 49), instead of line 1 char 1 because?

Is there better way than filling lines with spaces?

1 Answer 1

  1. To enable mouse support in Vim :set mouse=a

  2. To allow cursor to be positioned (also by mouse clicks) anywhere inside existing line :set virtualedit=all

  3. To add 22 new empty lines right below current cursor position 22oEsc

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.