Created
March 9, 2023 07:13
-
-
Save zhouyijiaren/bad144e38d662592203105f1f2997971 to your computer and use it in GitHub Desktop.
shell控制vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# shell 脚本自动写入vim | |
# TODO 后续可以自动做vimgolf | |
vim -n -E test_test.test << EOF | |
i | |
zhouxiang | |
. | |
^[ | |
:wq | |
EOF | |
cat test_test.test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment