Skip to content

Instantly share code, notes, and snippets.

@qickstarter
Created August 30, 2012 08:57
Show Gist options
  • Save qickstarter/3524489 to your computer and use it in GitHub Desktop.
Save qickstarter/3524489 to your computer and use it in GitHub Desktop.
" keymap"{{{
" Plugin key-mappings.
imap <C-F> <Plug>(neocomplcache_snippets_expand)
smap <C-F> <Plug>(neocomplcache_snippets_expand)
imap <C-U> <Esc>:Unite snippet<CR>
inoremap <expr><C-g> neocomplcache#undo_completion()
" inoremap <expr><C-L> neocomplcache#complete_common_string()
if has('conceal')
set conceallevel=2 concealcursor=i
endif
imap <expr><TAB> neocomplcache#sources#snippets_complete#expandable() ?
\"\<Plug>(neocomplcache_snippets_expand)" : pumvisible() ? "\<C-n>" : "\<TAB>"
" snippetの編集
nmap <Space>e :<C-U>NeoComplCacheEditSnippets<CR>
au BufRead,BufNewFile *.snip set filetype=snippet
if !exists('g:neocomplcache_auto_completion_start_length')
inoremap <silent><expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
" inoremap <expr><C-h> neocomplcache#smart_close_popup()."\<C-h>"
inoremap <silent><expr><BS> neocomplcache#smart_close_popup()."\<C-h>"
" inoremap <expr><C-y> neocomplcache#close_popup()
" inoremap <expr><C-e> neocomplcache#cancel_popup()
inoremap <silent><CR> <C-R>=neocomplcache#smart_close_popup()<CR><CR>
endif
"}}}
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment