2021年1月12日火曜日

vimプラグイン 手動インストール 

 

vimのスニペット補完がしたいが


"以下いずれも NeoBundleでインストールできず

"neocomplcache のスニペット補完機能

"NeoBundle 'Shougo/neosnippet'

"NeoBundle 'Shougo/neosnippet-snippets'


~/.vim/neobundle/以下に上ファイルをダウンロード設置する。



vmのランタイムパスを通す。

.vimrcの記述

"neoshippetの補完

"*********************************************************************

set runtimepath+=~/.vim/bundle/neosnippet.vim-master/

set runtimepath+=~/.vim/bundle/neosnippet-snippets-master/

" Plugin key-mappings.

" Note: It must be "imap" and "smap".  It uses <Plug> mappings.

imap <C-k>     <Plug>(neosnippet_expand_or_jump)

smap <C-k>     <Plug>(neosnippet_expand_or_jump)

xmap <C-k>     <Plug>(neosnippet_expand_target)

"

" " SuperTab like snippets behavior.

" " Note: It must be "imap" and "smap".  It uses <Plug> mappings.

" "imap <expr><TAB>

" " \ pumvisible() ? "\<C-n>" :

" " \ neosnippet#expandable_or_jumpable() ?

" " \    "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"

smap <expr><TAB> neosnippet#expandable_or_jumpable() ?

\ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"

"

" " For conceal markers.

if has('conceal')

  set conceallevel=2 concealcursor=niv

  endif





0 件のコメント:

コメントを投稿

About

参加ユーザー

連絡フォーム

名前

メール *

メッセージ *

ページ

Featured Posts