I'm trying to disable autochdir
in nvim
by adding the following in init.vim
:
set autochdir!
but when I start nvim
, I check the value of this option by echo &autochdir
and find it equals to 1
.
I though it may be overwritten by Python filetype
as mentioned these two posts (Why is “set noexpandtab” in my ~/.vimrc ignored when I open a file? and Vim displaying incorrect indentation).So I tried adding the following to my vimrc
:
augroup python
autocmd!
autocmd FileType python set autochdir!
augroup end
but it doesn't solve the problem.
Why is this option overwritten and how can I force it?