Loading ...
Sorry, an error occurred while loading the content.
 

Re: NeoComplCache plugin set map to select from popup

Expand Messages
  • stardiviner
    = On [2011-11-27 13:06:55 +0900]: ... I have found out the problem, I set complete= w,b,t... in vimrc, when I comment this line. Then NeoComplCache can work
    Message 1 of 9 , Nov 28, 2011
      => On [2011-11-27 13:06:55 +0900]:
      matsushita shougo Said:
      > HI, I'm the author of neocomplcache.
      >
      > > I set NeoComplCache in my vimrc like this.
      > > All of those are from help file of NeoComplCache.
      > > I want to map <C-n>,<C-p> or <C-j>,<C-k> to select complete item from popup.
      > > Does anybody knows how to set this ?
      > > By the way, if you have good hints on my NeoComplCache setting. plese tell me.
      > > I will apperciate it.
      > > ( I know this setting is long, you can jump to map setting directly. )
      > ...
      > >
      > >
      > >        " Plugin key-mappings.
      > >        " <CR>: close popup and save indent.
      > >        inoremap <expr><CR>  neocomplcache#close_popup() . "\<CR>"
      > >        " <TAB>: completion.
      > >        inoremap <expr><TAB>  pumvisible() ? "\<C-n>" : "\<TAB>"
      > >        " <C-h>, <BS>: close popup and delete backword char.
      > >        inoremap <expr><C-h> neocomplcache#smart_close_popup()."\<C-h>"
      > >        inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>"
      > >        inoremap <expr><C-y>  neocomplcache#close_popup()
      > >        inoremap <expr><C-e>  neocomplcache#cancel_popup()
      > >        inoremap <expr><C-g>  neocomplcache#undo_completion()
      > >        " FIXME use <C-n>, <C-p> or <C-j>, <C-k> to select from popup.
      > >
      >
      > What's your problem?
      > <C-n> and <C-p> are default mappings to select from popup.
      I have found out the problem,
      I set complete="w,b,t..." in vimrc, when I comment this line.
      Then NeoComplCache can work with <C-n>,<C-p> now.
      > <C-j> and <C-k> are not but you can mapping easily.
      >
      > inoremap <expr><C-j> "\<C-n>" : "\<C-j>"
      > inoremap <expr><C-k> "\<C-p>" : "\<C-k>"
      >
      > --
      > You received this message from the "vim_use" maillist.
      > Do not top-post! Type your reply below the text you are replying to.
      > For more information, visit http://www.vim.org/maillist.php

      --
      >> stardiviner << =>GPG: 5D9F64D8 Twitter: @numbchild
      http://stardiviner.dyndns-blog.com/author.html
    Your message has been successfully submitted and would be delivered to recipients shortly.