fzy
terminal fuzzy finder picker
git clone https://9o.is/git/fzy.git
commit d67d524f2eb193e2d8ef7cf1287350d8147b87c6 parent 8f2cbd148124b253b8b5a1e863525c7761a3e7ba Author: John Hawthorn <john.hawthorn@gmail.com> Date: Sun, 14 Sep 2014 17:41:08 -0700 Add catch /Vim:Interrupt/ to README.md Seems to be necessary on some systems. Diffstat:
| M | README.md | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md @@ -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