Skip to main content
8 events
when toggle format what by license comment
Jul 4, 2017 at 19:21 comment added John P I'm using Zsh; trap '...' exit fails but trap '...' EXIT appears to work. I don't know much about trapping, but my general approach for temporary files is to use mktmp [--suffix=...]. Also, vim <outfile> -c '...' >/dev/tty runs as normal until the file is loaded, then executes the given command chain, including :wq if you want to skip the editing phase. I also used set | grep -a EXIT and found signals=(EXIT ... DEBUG).
May 10, 2016 at 23:49 comment added Mike S Nice answer. This one directly addresses the user's question, and offers a quick and elegant solution: redirect vim to /dev/tty! Simple!
May 10, 2016 at 23:24 history edited John1024 CC BY-SA 3.0
added 179 characters in body
May 10, 2016 at 22:23 history edited John1024 CC BY-SA 3.0
added 151 characters in body
May 10, 2016 at 22:15 history edited John1024 CC BY-SA 3.0
deleted 8 characters in body
May 10, 2016 at 22:09 history edited John1024 CC BY-SA 3.0
added 329 characters in body
May 10, 2016 at 22:04 history edited John1024 CC BY-SA 3.0
added 329 characters in body
May 10, 2016 at 21:58 history answered John1024 CC BY-SA 3.0