Closed direvus closed 5 years ago
Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.
You should put that line in ~/.config/nvim/init.vim
instead of ~/.vimrc
because Oni uses neovim, or just source .vimrc
in init.vim
.
Ah thanks for explaining that @mnrce -- as you can probably tell, I'm new to using neovim since starting with Oni. As neovim is branded as a drop-in replacement for vim, I had assumed (naively as it turns out) that neovim would source my vimrc files.
Creating ~/.config/nvim/init.vim
with source ~/.vimrc
, as you suggest, solved my problem. That would also explain why my AutoCmds weren't working.
Sorry for the noise, closing this issue.
Oni Version: 0.3.6 Neovim Version (Linux only): Operating System: MacOS 10.13.6
Issue: I have the command
set foldmethod=indent
in my.vimrc
file, andoni.loadInitVim
set totrue
. However, when I open any file in Oni, there is no folding and:set foldmethod?
showsfoldmethod=manual
.If I then manually execute
:set foldmethod=indent
, the folding mode does get set correctly and the folding behaviour works exactly as expected. So there doesn't appear to be any problem with using Vim folding in Oni, it's just that this setting weirdly is not respected when importing vimrc.Note that I use the same .vimrc with command-line vim and MacVim clients, and the folding method setting has always worked correctly.
Expected behavior:
foldmethod
should be always set toindent
, per my vimrc.Actual behavior:
foldmethod
is set tomanual
.Steps to reproduce:
"oni.loadInitVim": true
in Oni's preferences config.tsx/configurationset foldmethod=indent
in~/.vimrc
:set foldmethod?
to confirm the foldmethod setting.