From d4c2b886db4da85be87986e1aa9e49d1732100a6 Mon Sep 17 00:00:00 2001 From: Arne Schauf Date: Thu, 2 Jun 2016 11:17:58 +0200 Subject: [PATCH] fix autochdir in vim --- vimrc | 1 + 1 file changed, 1 insertion(+) diff --git a/vimrc b/vimrc index db7f0bf..798b666 100644 --- a/vimrc +++ b/vimrc @@ -24,6 +24,7 @@ set nostartofline " don't move the coursor to the beginning of the line set foldmethod=marker " fold by marker set scrolloff=11 " minimum lines to the screens end set autochdir " always be in the right directory +autocmd BufEnter * silent! lcd %:p:h " hack for autochdir set pastetoggle= " toggle paste "" persistent undo and backup