I have tried most of the available online instructions on remapping my <Tab> key in my vimrc file but none of them have any effect. If I run :map! <Tab> ᐅ directly from command entry it'll work, but not from vimrc.
When I run :verbose imap <Tab> I get the following.
i <Tab> * pumvisible() ? "\<C-N>" : "\<Tab>"
Last set from ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim
Looking at the source code I see a variable of key is present which maps it to <Tab> if it's not in completion mode. How can I set what the *<Tab> key is when not in completion mode for YouCompleteMe?*
If what you want is inserting the ᐅ symbol when the completion menu is not visible, adding these lines to your vimrc should do the trick:
let g:ycm_key_list_select_completion = ['<Down>'] " Remove <Tab> from the list of keys mapped by YCM.
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "ᐅ"
Thank you! That works!
Most helpful comment
If what you want is inserting the
ᐅsymbol when the completion menu is not visible, adding these lines to your vimrc should do the trick: