Skip to content

Instantly share code, notes, and snippets.

@hfm
Created August 26, 2014 08:29
Show Gist options
  • Select an option

  • Save hfm/3020861700455794128a to your computer and use it in GitHub Desktop.

Select an option

Save hfm/3020861700455794128a to your computer and use it in GitHub Desktop.
NeoBundle 'Shougo/vimproc', {
\ 'build' : {
\ 'mac' : 'make -f make_mac.mak',
\ 'unix' : 'make -f make_unix.mak',
\ }}
NeoBundleLazy 'Shougo/neocomplete.vim', {
\ "autoload": {'insert': 1}}
NeoBundleLazy 'Shougo/neosnippet', {
\ 'autoload': {'insert': 1}}
NeoBundleLazy 'Shouge/neosnippet-snippets', {
\ 'autoload': {'insert': 1}}
@hfm

hfm commented Aug 26, 2014

Copy link
Copy Markdown
Author
imap <C-k> <Plug>(neosnippet_expand_or_jump)
smap <C-k> <Plug>(neosnippet_expand_or_jump)
xmap <C-k> <Plug>(neosnippet_expand_target)
imap <expr><TAB> pumvisible() ? "\<C-n>" : neosnippet#jumpable() ? "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"
smap <expr><TAB> neosnippet#jumpable() ? "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"

if has('conceal')
  set conceallevel=2 concealcursor=i
endif

@hfm

hfm commented Aug 26, 2014

Copy link
Copy Markdown
Author
let g:acp_enableAtStartup=0
let g:neocomplete#enable_at_startup=1
let g:neocomplete#enable_smart_case=1
let g:neocomplete#sources#syntax#min_keyword_length=3
let g:neocomplete#lock_buffer_name_pattern='\*ku\*'
inoremap <silent> <CR> <C-R>=<SID>my_cr_func()<CR>
function! s:my_cr_func()
  return pumvisible() ? neocomplete#close_popup() : "\<CR>"
endfunction
inoremap <expr><C-h> neocomplete#smart_close_popup()."\<C-h>"
inoremap <expr><BS>  neocomplete#smart_close_popup()."\<C-h>"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment