Created
August 30, 2012 08:57
-
-
Save qickstarter/3524489 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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