mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-22 11:44:10 -05:00
Check for autochdir before attempting to load it
This commit is contained in:
parent
00f4f3d3e5
commit
def7fe0c76
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue