Check for autochdir before attempting to load it

This commit is contained in:
Kevin MacMartin 2014-08-29 04:50:12 -04:00
parent 00f4f3d3e5
commit def7fe0c76

View file

@ -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)