onivim / oni

Oni: Modern Modal Editing - powered by Neovim
https://www.onivim.io
MIT License
11.35k stars 300 forks source link

exe "source" calls not executed in oni #2518

Open cookiengineer opened 6 years ago

cookiengineer commented 6 years ago

Oni Version: 0.3.6 Neovim Version (Linux only): 0.3.6-2 (AUR) Operating System: Arch Linux / GNOME

Issue:

I think I found a problem where I'm unsure whether or not it is related to neovim or oni itself. With one of the latest updates (~3 months not updated on this machine, now it's broken everywhere I updated to 0.3.6) oni does not load my vimrc files properly anymore.

Inside my .vimrc / .nvimrc (both are symlinks to the actual file) I have something like an "index" structure where only my plugins and the standard stuff is set, it makes use of split(globpath()) in order to load external files via exe 'source' 'path-to-file'.

My complete .vimrc is available here, all files are commited in their current state, so a 1:1 copy can be reproduced by just cloning this repo into ~/.vim and by symlinking the vimrc/nvimrc afterwards: https://github.com/cookiengineer/.vim/blob/master/.vimrc

If you just use a single exe 'source' 'whatever.vim' call and inside it you set something different, e.g. set listchars and set list in there, it will be totally ignored by oni while not being ignored by vim.

Please note that in my case the ~/.vim folder is also a symlink, I don't know whether that's causing the issue or not (but will verify and update this issue afterwards with results).

Expected behavior:

exe 'source' 'path/to/file.vim' calls should work

CrossR commented 6 years ago

Have you managed to check this with symlinks? I use a similar layout and have had no issues (https://github.com/CrossR/dotfiles/blob/master/neovim/.config/nvim/init.vim), so its possible that is the cause, but I wouldn't expect so if nvim/vim works fine with it.