LoginSignup
5
1

More than 5 years have passed since last update.

.vimrcが再読込できない

Posted at

vimでsource ~/.vimrc やると以下のエラーが起こったためメモ

-bash:  Note: Skip initialization for vim-tiny or vim-small.
if 0 | endif

if &compatible
  set nocompatible               : command not found
-bash: endif: command not found
-bash:  Required:
set runtimepath+=~/.vim/bundle/neobundle.vim/

: No such file or directory
-bash: /Users/Username/.vimrc: line 12: syntax error near unexpected token `('
-bash: /Users/Username/.vimrc: line 12: `call neobundle#begin(expand('~/.vim/bundle'))'

NeoBundleの設定をいれているがsourceできない。。いろいろ調べ尽くしたけど
そもそもvimはvimが起動した時に再読込するのでsourceは必要ないらしい

参考

http://stackoverflow.com/questions/8457599/warning-message-when-sourcing-vimrc
http://tabunmuri.hatenablog.com/entry/2014/09/12/zsh%E3%81%A7source_.vimrc%E3%81%97%E3%81%A6%E3%81%AF%E3%81%84%E3%81%91%E3%81%AA%E3%81%84%E3%82%89%E3%81%97%E3%81%84%E3%80%82

5
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1