ä»ãã¦ããneocomplcache + neosnippetã®è¨å®ã®èªåçãããã
â»ãã®è¨äºã®æå¾ã®è¨å®ããããã¨ã«ãã£ã¦ä»¥ä¸ãå®ç¾ãã¾ãã
- neocomplcacheã®åºãè£å®åè£ãTABã§éãããShift + TABã§æ»ãã
- å ¥åããæåã«å¯¾ãã¦Snippetã®åè£ãããå ´åã¯Ctrl+kã§å±éã§ããï¼TABãæ¼ããã¨ãã¯ã¹ã«ã¼ãã¦ä¸ã®åè£ã«ç§»ãï¼
- Snippetå±éå¾ã¯TABã使ã£ã¦æ¬¡ã®å ¥åã¿ã°ã¸ã¸ã£ã³ãã§ãã
- Snippetå±éä¸ã«ããã¦ãä¸åº¦ã¤ã³ãµã¼ãã¢ã¼ãããæãã¦ããã
- ç¹ã«ç§»åããã¿ã°ããªãå ´åã¯ãã¤ã³ãµã¼ãã¢ã¼ãæã«å ¥åããTABã¯æ®éã«ã¤ã³ãã³ããæ¿å ¥ããããã®TABã¨ãã¦æ¯ãèã
neosnippet#expandable() の仕様が変わってた - 永遠に未完成
ã§ããããã«neosnippetã®é¢æ°ã®ä»æ§ãå¤ãã£ã¦ãããã
Vimのsnippetについてあまり知らなかったので設定してみたら便利過ぎてつらい - 僕の車輪の再発明
ã«ããè¨å®ãæ¸ãæãã¾ããã
ã¾ãæ¬å®¶ã®READMEããã§ã«ä»¥ä¸ã®ããã«ä¿®æ£ããã¦ããããã§ãã
Shougo/neosnippet · GitHub
" Plugin key-mappings. imap <C-k> <Plug>(neosnippet_expand_or_jump) smap <C-k> <Plug>(neosnippet_expand_or_jump) " SuperTab like snippets behavior. imap <expr><TAB> neosnippet#expandable() <Bar><bar> neosnippet#jumpable() ? "\<Plug>(neosnippet_expand_or_jump)" : pumvisible() ? "\<C-n>" : "\<TAB>" smap <expr><TAB> neosnippet#expandable() <Bar><bar> neosnippet#jumpable() ? "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>" " For snippet_complete marker. if has('conceal') set conceallevel=2 concealcursor=i endif
ã§ããããããæ¬é¡ãªã®ã§ããèªåã¨ãã¦ã¯ãneocomplcacheã«é¢ãã¦ä»¥ä¸ã®ãããªè¨å®ããã¦ãã¾ããã
" <TAB>: completion. inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<S-TAB>"
ã¤ã¾ãè£å®åè£ãåºã¦ããã¨ãã«TABãæ¼ããã¨ã«ãã£ã¦æ¬¡ã®åè£ã®é¸æãã§ããã¨ããæãã§ãã
ã§ããã®ããã«ãã¦ããå ´åã¯ã以ä¸ã®ããã«Snippetã®åè£ãããã¨ãåºã¦ããä¸çªæåã®åè£ããããªãå±éãã¦ãã¾ããã¨ã«ãªãã¾ãã
ãããé¿ããã«ã¯Ctrl+nã§ç§»åããããã«ããªãã¨ãããªãã®ã§ãããæ£ç´ããã©ãã§ãã
ä»ã¾ã§ã®ç¨ã«TABã«ãã£ã¦ä¸ä¸ã®ç§»åãè¡ãããã
ã¨ãããã¨ã§ãneosnippetã®è¨å®ã以ä¸ã®ããã«ä¿®æ£ãã¾ããã
" <TAB>: completion. " inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<S-TAB>" " Plugin key-mappings. imap <C-k> <Plug>(neosnippet_expand_or_jump) smap <C-k> <Plug>(neosnippet_expand_or_jump) " SuperTab like snippets behavior. imap <expr><TAB> neosnippet#jumpable() ? "\<Plug>(neosnippet_expand_or_jump)" : pumvisible() ? "\<C-n>" : "\<TAB>" smap <expr><TAB> neosnippet#jumpable() ? "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>" " For snippet_complete marker. if has('conceal') set conceallevel=2 concealcursor=i endif
ãããããã¨ã«ãã£ã¦ãsnippetã®åè£éãTABã§ç§»åããå±éãããå ´åã¯Ctrl+kã§å±éããã¹ããããã®ã¸ã£ã³ãã¯TABã§ç§»åã§ããããã«ãªãã¾ããã
追è¨ï¼2013/06/02ï¼
ããããã°æªå
¥åã®ã¿ã°ãããç¶æ
ã§ãneoconã®è£å®åè£ãåºã¦ãã¨ãã«
" <TAB>: completion. " inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<S-TAB>" " Plugin key-mappings. imap <C-k> <Plug>(neosnippet_expand_or_jump) smap <C-k> <Plug>(neosnippet_expand_or_jump) " SuperTab like snippets behavior. " imap <expr><TAB> neosnippet#jumpable() ? "\<Plug>(neosnippet_expand_or_jump)" : pumvisible() ? "\<C-n>" : "\<TAB>" 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>" " For snippet_complete marker. if has('conceal') set conceallevel=2 concealcursor=i endif