Browse Source

add tab neocon

raa0121 12 years ago
parent
commit
18ad383236
1 changed files with 4 additions and 2 deletions
  1. 4 2
      .vimrc

+ 4 - 2
.vimrc

@@ -94,9 +94,7 @@ if has('vim_starting')
   call neobundle#rc(expand('~/.bundle'))
 endif
 
-NeoBundle 'gmarik/vundle'
 
-"NeoBundle 'git://github.com/Shougo/clang_complete.git'
 NeoBundle 'git://github.com/Shougo/echodoc.git'
 NeoBundle 'git://github.com/Shougo/neocomplcache.git'
 NeoBundle 'git://github.com/Shougo/neobundle.vim.git'
@@ -140,6 +138,10 @@ nnoremap <silent> ,ss <S-v>:VimShellSendString<CR>
 
 let g:neocomplcache_enable_at_startup = 1
 
+"tabで補完候補の選択を行う
+inoremap <expr><TAB> pumvisible() ? "\<Down>" : "\<TAB>"
+inoremap <expr><S-TAB> pumvisible() ? "\<Up>" : "\<S-TAB>"
+
 let g:netrw_nogx = 1 " disable netrw's gx mapping.
 nmap gx <Plug>(openbrowser-smart-search)
 vmap gx <Plug>(openbrowser-smart-search)