Adding shift-tab for prev completion too

This commit is contained in:
Strahinja Val Markovic 2013-01-26 17:58:34 -08:00
parent a36f449baa
commit 60860d82f3
2 changed files with 3 additions and 2 deletions

View File

@ -229,7 +229,7 @@ TODO, still WIP
- If the offered completions are too broad, keep typing characters; YCM will - If the offered completions are too broad, keep typing characters; YCM will
continue refining the offered completions based on your input. continue refining the offered completions based on your input.
- Use the TAB key to accept a completion and continue pressing TAB to cycle - 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 ### Semantic Completion Engine Usage

View File

@ -63,8 +63,9 @@ function! youcompleteme#Enable()
" typed-in text to that of the candidate completion. " typed-in text to that of the candidate completion.
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
" This selects the previous candidate for ctrl-tab " This selects the previous candidate for ctrl-tab or shift-tab
inoremap <expr><C-TAB> pumvisible() ? "\<C-p>" : "\<TAB>" inoremap <expr><C-TAB> pumvisible() ? "\<C-p>" : "\<TAB>"
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<TAB>"
py import sys py import sys
py import vim py import vim