From a435a9aed0abbcf2821f812d2f7dd8dd3b97e360 Mon Sep 17 00:00:00 2001 From: Thiago Alves Date: Sun, 15 Jul 2012 14:11:18 -0500 Subject: [PATCH] Define and default behavior for pumvisible() --- plugin/AutoClose.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugin/AutoClose.vim b/plugin/AutoClose.vim index 9a2c40c..063a0f2 100644 --- a/plugin/AutoClose.vim +++ b/plugin/AutoClose.vim @@ -369,7 +369,7 @@ function! s:DefineVariables() \ 'AutoCloseSmartQuote': 1, \ 'AutoCloseOn': 1, \ 'AutoCloseSelectionWrapPrefix': 'a', - \ 'AutoClosePumvisible': {}, + \ 'AutoClosePumvisible': {"ENTER": "\", "ESC": "\"}, \ 'AutoCloseExpandEnterOn': "{", \ 'AutoCloseExpandSpace': 1, \ } @@ -379,9 +379,15 @@ function! s:DefineVariables() " Movement keys used in the menu get mapped to themselves " (Up/Down/PageUp/PageDown). for key in s:movementKeys + if key == 'ENTER' || key == 'ESC' + continue + endif let defaults['AutoClosePumvisible'][key] = '' endfor for key in s:pumMovementKeys + if key == 'ENTER' || key == 'ESC' + continue + endif let defaults['AutoClosePumvisible'][key] = '<'.key.'>' endfor