dein.vimとjedi-vimとvim-clangを入れたものの、
プラグインの管理方法や設定についてあまりよく理解できていません。
・dein.vimの導入方法や
・jedi-vimのおすすめの設定
・vim-clangのおすすめの設定
・各設定値の意味
・その他便利なプラグインなど
についてまとまっているサイトなどを教えてください。
現在は「dein.vim」をインストールし、下記を「.vimrc」に追記し、
プラグインをtoml?で管理する設定を追加し、
「jedi-vim」「vim-clang」を追加し終えた(?)状況です。
(が、vim-clangは動いていないっぽいです。)
■jedi-vimについて
jedi-vimをインストールし、
import os os.
[.]でたくさんの候補が出てきますが、
候補を読み込む時間が長くて、不便な気がしています。
[Ctrl]+[Space]を入力したときのみ補完、など色々な設定が考えられると思いますが、
みなさんはどのようにしていますでしょうか。
■vim-clangについて(動いてない?)
clang-3.8のみインストールした状況です。
clang-3.8を入れると、[Ctrl]+[p]を入力すれば、候補が出るようになりましたが、
jedi-vimのように、[.]で候補が出たり、[Ctrl]+[Space]で候補が出たりしない状態です。
cloud@dev-Ubuntu1604:~$ which clang-3.8 clang-format-3.8 /usr/bin/clang-3.8 cloud@dev-Ubuntu1604:~$ clang-3.8 --version | head -1 clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final)
■dein.vimについて
追加した設定としては、「.vimrc」に
" Plugin toml config
" Read toml and cache
を追記し、「.cache/dein/dein.toml」に
repo = 'Shougo/dein.vim'
を追記し、「.cache/dein/dein_lazy.toml」に
repo = 'davidhalter/jedi-vim'
repo = 'justmao945/vim-clang'
を追記していて、他は特に変更してないです。
cloud@dev-Ubuntu1604:~$ vim --version | head -1 VIM - Vi IMproved 8.1 (2018 May 18, compiled Aug 8 2018 13:08:47) cloud@dev-Ubuntu1604:~$ cat ~/.vimrc "文字コードをUFT-8に設定 set encoding=utf-8 set fileencodings=iso-2022-jp,euc-jp,sjis,utf-8 set fileformats=unix,dos,mac "不可視文字を可視化(タブが__」と表示される) set list set listchars=tab:»-,trail:-,eol:↓,extends:»,precedes:«,nbsp:% set tabstop=4 set expandtab set autoindent set shiftwidth=4 " "カラースキームの変更 colorscheme molokai set t_Co=256 set number syntax on set backspace=indent,eol,start set clipboard=unnamed,autoselect "dein Scripts----------------------------- if &compatible set nocompatible " Be iMproved endif " Required: set runtimepath+=/home/cloud/.cache/dein/repos/github.com/Shougo/dein.vim " Required: if dein#load_state('/home/cloud/.cache/dein') call dein#begin('/home/cloud/.cache/dein') "================================================================== " Plugin toml config let g:rc_dir = expand('/home/cloud/.cache/dein') let s:toml = g:rc_dir . '/dein.toml' let s:lazy_toml = g:rc_dir . '/dein_lazy.toml' " Read toml and cache call dein#load_toml(s:toml, {'lazy': 0}) call dein#load_toml(s:lazy_toml, {'lazy': 1}) "================================================================== " Let dein manage dein " Required: call dein#add('/home/cloud/.cache/dein/repos/github.com/Shougo/dein.vim') " Add or remove your plugins here: call dein#add('Shougo/neosnippet.vim') call dein#add('Shougo/neosnippet-snippets') " You can specify revision/branch/tag. call dein#add('Shougo/deol.nvim', { 'rev': '01203d4c9' }) " Required: call dein#end() call dein#save_state() endif " Required: filetype plugin indent on syntax enable " If you want to install not installed plugins on startup. if dein#check_install() call dein#install() endif cloud@dev-Ubuntu1604:~$ cat .cache/dein/dein.toml [[plugins]] repo = 'Shougo/dein.vim' cloud@dev-Ubuntu1604:~$ cat .cache/dein/dein_lazy.toml [[plugins]] repo = 'davidhalter/jedi-vim' on_ft = 'python' [[plugins]] repo = 'justmao945/vim-clang' filetypes = ['c', 'cpp']
あなたの回答
tips
プレビュー