From 60860d82f38bfc8a70556ebd2151c3b9f4ef60ff Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sat, 26 Jan 2013 17:58:34 -0800 Subject: [PATCH] Adding shift-tab for prev completion too --- README.md | 2 +- autoload/youcompleteme.vim | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 553bf058..a1a1471c 100644 --- a/README.md +++ b/README.md @@ -229,7 +229,7 @@ TODO, still WIP - If the offered completions are too broad, keep typing characters; YCM will continue refining the offered completions based on your input. - Use the TAB key to accept a completion and continue pressing TAB to cycle - through the completions. Use Ctrl+TAB to cycle backwards. + through the completions. Use Ctrl+TAB (or Shift-TAB) to cycle backwards. ### Semantic Completion Engine Usage diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index 68dc02e7..a1de258f 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -63,8 +63,9 @@ function! youcompleteme#Enable() " typed-in text to that of the candidate completion. inoremap pumvisible() ? "\" : "\" - " This selects the previous candidate for ctrl-tab + " This selects the previous candidate for ctrl-tab or shift-tab inoremap pumvisible() ? "\" : "\" + inoremap pumvisible() ? "\" : "\" py import sys py import vim