今日の夕方今まで使ったSublimeからVimに乗り換えようとし、入門記事などを漁って基本的な操作方法は覚えました。
しかし、プラグインのインストールで幾つかコケたので質問させていただきます
-
Dein.vimでプラグイン管理するのがオススメとのことで導入してみました。早速CoffeeScritのコードに色をつけたくて、vim-coffee-scriptのインストールを試みました。
.vimrc
にdein#add(~~~)
などと記述し、:call dein#install()
をvimで実行するとインストールが無事完了したことを伝える文章が出てきたのでCoffeeScriptのコードをVimで開いてみたのですが色が付いておらず、白い文字のままです。 -
1の問題を後回しにしようと次はvim-pugをインストールしようと
dein#add(~~~)
の文章を書き、いざ:call dein#install()
を実行すると次は何故か「[dein] You may have used the wrong plugin name, or all of the plugins are already installed.」とエラーが出てしましました。 -
上の2点を解決しようと打開策を探しているとMacに標準で入ってるVimよりHomebrewでインストールしなおしたものの方が良い、との情報を得ました。なので
brew install vim
を実行してみたのですが以下のようなエラーを吐かれてしまいました
==> Installing dependencies for vim: perl, readline, libyaml, openssl, ruby, sqlite, gdbm, python ==> Installing vim dependency: perl ==> Downloading https://homebrew.bintray.com/bottles/perl-5.24.0_1.el_capitan.bo Warning: Failed to create the file Warning: /Users/user_name/Library/Caches/Homebrew/perl-5.24.0_1.el_capitan Warning: .bottle.1.tar.gz.incomplete: Permission denied curl: (23) Failed writing body (0 != 16024) Error: Failed to download resource "perl" Download failed: https://homebrew.bintray.com/bottles/perl-5.24.0_1.el_capitan.bottle.1.tar.gz Warning: Bottle installation failed: building from source. ==> Using the sandbox ==> Downloading http://www.cpan.org/src/5.0/perl-5.24.0.tar.xz Warning: Failed to create the file Warning: /Users/user_name/Library/Caches/Homebrew/perl-5.24.0.tar.xz.incom Warning: plete: Permission denied curl: (23) Failed writing body (0 != 1402) Trying a mirror... ==> Downloading https://mirrors.ocf.berkeley.edu/debian/pool/main/p/perl/perl_5. curl: (22) The requested URL returned error: 404 Not Found Error: Failed to download resource "perl" Download failed: https://mirrors.ocf.berkeley.edu/debian/pool/main/p/perl/perl_5.24.0.orig.tar.xz
こちらも必死に検索していたのですが解決策は見つからず.....。
VimやHomebrewに詳しい方々、ぜひご教授いただけると幸いです。
- 追記
2の時点での.vimrcです
vimのバージョンは7.3です
set nowrap set hlsearch set ignorecase set smartcase set autoindent set ruler set number set list set wildmenu set showcmd set listchars=tab:\ \ ,eol:¬ set shiftwidth=4 set softtabstop=4 set expandtab set tabstop=4 set smarttab set clipboard=unnamed if &compatible set nocompatible " Be iMproved endif set runtimepath+=/Users/ishizakatomoya/.vim/bundle/repos/github.com/Shougo/dein.vim if dein#load_state('/Users/ishizakatomoya/.vim/bundle') call dein#begin('/Users/ishizakatomoya/.vim/bundle') call dein#add('/Users/ishizakatomoya/.vim/bundle/repos/github.com/Shougo/dein.vim') call dein#add('Shougo/neosnippet.vim') call dein#add('Shougo/neosnippet-snippets') call dein#add('kchmck/vim-coffee-script') call dein#add('digitaltoad/vim-pug') call dein#add('Shougo/vimshell', { 'rev': '3787e5' }) call dein#end() call dein#save_state() endif filetype plugin indent on syntax enable if dein#check_install() call dein#install() endif au BufRead,BufNewFile,BufReadPre *.coffee set filetype=coffee syntax on
回答1件
あなたの回答
tips
プレビュー