Skip to content

Instantly share code, notes, and snippets.

@alpaca-tc
Created January 13, 2013 00:50
Show Gist options
  • Save alpaca-tc/4521428 to your computer and use it in GitHub Desktop.
Save alpaca-tc/4521428 to your computer and use it in GitHub Desktop.
"------------------------------------
" neocomplcache
"------------------------------------
" 補完・履歴 neocomplcache "{{{
set infercase
"----------------------------------------
" neocomplcache
let g:neocomplcache_enable_at_startup = 1
" default config"{{{
let g:neocomplcache_force_overwrite_completefunc = 1
let g:neocomplcache#sources#rsense#home_directory = expand('~/.bundle/rsense-0.3')
let g:neocomplcache_enable_camel_case_completion = 1
let g:neocomplcache_enable_underbar_completion = 1
let g:neocomplcache_skip_auto_completion_time = '0.3'
"}}}
" keymap {{{
imap <expr><C-g> neocomplcache#undo_completion()
imap <expr><CR> neocomplcache#smart_close_popup() . "<CR>" . "<Plug>DiscretionaryEnd"
imap <silent><expr><S-TAB> pumvisible() ? "\<C-P>" : "\<S-TAB>"
" imap <silent><expr><TAB> pumvisible() ? "\<C-N>" : "\<TAB>"
imap <expr><TAB> neosnippet#expandable() ? "\<Plug>(neosnippet_jump_or_expand)" : pumvisible() ? "\<C-n>" : "\<TAB>"
" }}}
"}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment