Skip to content

How to reverse Tab and Tab-Shift for keyword completion? #6

@dpc

Description

@dpc

It seems that "keyword" completion is cycling from the bottom to up in my Vim. I was able to fix it with:

diff --git a/autoload/CleverTab.vim b/autoload/CleverTab.vim
index 612bbb0..781761e 100644
--- a/autoload/CleverTab.vim
+++ b/autoload/CleverTab.vim
@@ -54,7 +54,7 @@ function! CleverTab#Complete(type)

   elseif a:type == 'keyword' && !pumvisible() && !g:CleverTab#cursor_moved && !g:CleverTab#stop
     echom "Keyword Complete"
-    let g:CleverTab#next_step_direction="P"
+    let g:CleverTab#next_step_direction="N"
     let g:CleverTab#eat_next=1
     return "\<C-P>"

but do I need to manually alter this plugin to have that behaviour? Is there a reason why default is bottom-up?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions