after playing around with my vimrc file I discovered this
this won't work
cd c:\myUsualFolder set encoding=utf-8
but this will:
set encoding=utf-8 cd c:\myUsualFolder
If I launch Vim from powershell/cmd from different folder than "myUsualFolder" with a file (e.g
gvim myfile.txt) it will open a empty buffer located in "myUsualFolder" (or if the file exist ther the wrong one). I tracked it down to the first line of my
If this line is removed everything works fine.
Does anyone has an idea how to keep the change directory part while opening the right file as well?
About my system: windows 10; vim version 8.0.586