diff --git a/pyvim/key_bindings.py b/pyvim/key_bindings.py index 9d3945c..c873bbb 100644 --- a/pyvim/key_bindings.py +++ b/pyvim/key_bindings.py @@ -482,11 +482,10 @@ def enter_command_mode(event): """ editor.enter_command_mode() - @kb.add('tab', filter=vi_insert_mode & ~has_focus(editor.command_buffer) & whitespace_before_cursor_on_line) + @kb.add('tab', filter=vi_insert_mode) def autocomplete_or_indent(event): """ - When the 'tab' key is pressed with only whitespace character before the - cursor, do autocompletion. Otherwise, insert indentation. + Insert tab key """ b = event.app.current_buffer if b.expand_tab: