From def7fe0c762c63e2f03179f8fc5e3593648cdd2d Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Fri, 29 Aug 2014 04:50:12 -0400 Subject: [PATCH] Check for autochdir before attempting to load it --- vim/config/settings.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vim/config/settings.vim b/vim/config/settings.vim index 5a765d9..f8c384a 100644 --- a/vim/config/settings.vim +++ b/vim/config/settings.vim @@ -76,7 +76,6 @@ "}}} "BEHAVIOUR: {{{ - set autochdir "change to a file's directory when it's opened set history=250 "size of the undo history set whichwrap=b,s,<,>,[,] "scrolling left/right off current line wraps to the next/previous set smarttab expandtab autoindent tabstop=4 shiftwidth=4 "configure tabs @@ -84,6 +83,9 @@ set timeout timeoutlen=1000 "how long before timing out for mappings set ttimeout ttimeoutlen=100 "how long before timing out for terminal key codes + "change to a file's directory when it's opened + if exists("+autochdir")|set autochdir|endif + "enable the auto-creation of missing folders in a save path if !exists('*s:MakeNewDir') function s:MakeNewDir(fullpath, buf)