diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2014-09-14 17:41:08 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2014-09-14 20:53:52 -0700 |
commit | 496dd3b312ba324e22d44e64972363d981d3b05e (patch) | |
tree | f24823bf52ee64d7944f6dd0db43e5bf442bd8c1 | |
parent | 12b489b79a6b7173a0892ffd9a22dad02b8c7929 (diff) |
Add catch /Vim:Interrupt/ to README.md
Seems to be necessary on some systems.
-rw-r--r-- | README.md | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -24,7 +24,11 @@ fzy can be integrated very simply in vim. There is also [fzy-vim](https://github ``` vim function! FzyCommand(choice_command, vim_command) - silent let output = system(a:choice_command . " | fzy ") + try + silent let output = system(a:choice_command . " | fzy ") + catch /Vim:Interrupt/ + " Swallow errors from ^C, allow redraw! below + endtry redraw! if v:shell_error == 0 && !empty(output) exec a:vim_command . ' ' . output |