gawel/oh-my-vim — Issue #2: setup script adds wrong lines to vimrc
Author: mattoufoutu
Created: 2011-12-12 11:46:26+00:00
State: open

When installing oh-my-vim, the setup script adds lines to the vimrc, but it adds

```viml
let g:ohmyvim="/path/to/setup.py"
```

instead of

```viml
let g:ohmyvim="/path/to/oh-my-vim"
```

This is because `Manager.__init__()` uses `sys.argv[0]` to determine the path to the oh-my-vim script, but when ran from the setup script, this gives the path of the setup.py.

As this initialization occurs anyway when the `oh-my-vim` command is used the first time, a solution could be to simply remove this step from the setup script.