Help us understand the problem. What is going on with this article?

.vimrcが再読込できない

More than 3 years have passed since last update.

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

hiraok
凡人
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away