Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save u1and0/10fe2dc415d1787b1b95d68e53d8abf1 to your computer and use it in GitHub Desktop.

Select an option

Save u1and0/10fe2dc415d1787b1b95d68e53d8abf1 to your computer and use it in GitHub Desktop.
%

:help :readしても見当たらなかったので。

:{range}readは現在ファイルの{range}行目に読み込む

正確には全行:readしてから:dで消す操作を行う。

:read ~/.zsh_history | .,$-10delete

現在行に読み込んだに対して、現在行から最終行までを削除する。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment