From 6b47e20cdd778f656e671b68633086eafdcea12a Mon Sep 17 00:00:00 2001 From: Pavel Lutskov Date: Wed, 21 Apr 2021 13:01:11 +0200 Subject: [PATCH] Always attempt to use a relative filename --- plugin/settings.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugin/settings.vim b/plugin/settings.vim index 6b2fbd2..b15606b 100644 --- a/plugin/settings.vim +++ b/plugin/settings.vim @@ -174,6 +174,12 @@ augroup fuckingcomment augroup END " }}} +" Nice hack for project filenames +augroup relativize + autocmd! + autocmd FileReadPost,BufReadPost * cd . +augroup END + " For Terminal " {{{ if has('terminal')