@curry박준규
@lionhairdino 종료 코드(Exit code)가 0이 아닐 때는 실패하는 방식이 없나요? Emacs는 그런 식으로 도니 Vim에도 있을법 한데...
@ailrunAilrun (UTC-5/-4)
@lionhairdino Vim에 그런 방식은 없는 것 같습니다. 대신
v:shell_error
를 검사해서 종료 코드가 0이 아닐 때는 명령을 실행하지 않는 코드를 작성하거나 autocmd
를 사용하면 된다고 하네요.(ChatGPT가)
한편 종료 코드를 확인하는 방법을 처음 알았습니다.
echo $?
If you have a fediverse account, you can quote this note from your own instance. Search https://hackers.pub/ap/notes/01963a11-7826-782a-90fa-0c20fd4dc2c9 on your instance and quote it. (Note that quoting is not supported in Mastodon.)