Adding shift-tab for prev completion too
This commit is contained in:
parent
a36f449baa
commit
60860d82f3
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user