Prevent vim from changing folders when opening files

I just upgraded my MacVim to 7.3 and with it now changes directories to any file that I am currently editing. I use PeepOpen, so it is incredibly annoying cd back to the project directory every time I want to edit a new file.

+3
source share
2 answers

Change your $ HOME / vimrc and add this line:

set noautochdir

Make sure autochdir is not reset in this or any other configuration file.

+7
source

I understand that this question was asked a long time ago, but if someone else came across this, this is the correct answer:

MacVim 7.3 pwd , . Snapshot 55, pwd . ( 7.3):

http://github.com/b4winckler/macvim/wiki/ChangeLog

: "autochdir" , PeepOpen.

+3

Source: https://habr.com/ru/post/1762726/


All Articles