Skip to content

Instantly share code, notes, and snippets.

@zhouyijiaren
Created March 9, 2023 07:13
Show Gist options
  • Save zhouyijiaren/bad144e38d662592203105f1f2997971 to your computer and use it in GitHub Desktop.
Save zhouyijiaren/bad144e38d662592203105f1f2997971 to your computer and use it in GitHub Desktop.
shell控制vim
#! /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