How do I run vim with file.txt and screen center at line 100?
Basically I would like to use zz
mapping when starting Vim.
This does not work: vim -c "zz" file.txt +100
zz
is a normal mode command, so use :normal
:
vim "+normal zz" file.txt +100
vim -c "normal zz" file.txt +100
Another option would be to run multiple commands in one line
vim README.md +"56;norm zz"