mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-11-29 09:09:35 -05:00
Add additional checks for file/folder creation and use
This commit is contained in:
parent
def7fe0c76
commit
f67f016641
1 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
"INITIALIZE PLUGINS: {{{
|
"INITIALIZE PLUGINS: {{{
|
||||||
"create missing plugin config files and directories
|
"create missing plugin config files and directories
|
||||||
if !isdirectory(glob("~/.vim/tags_by_filetype"))|call mkdir(glob("~/.vim/tags_by_filetype"),'p')|endif
|
if exists('*mkdir')|if !isdirectory(glob("~/.vim/tags_by_filetype"))|call mkdir(glob("~/.vim/tags_by_filetype"),'p')|endif|endif
|
||||||
if !filereadable(glob("~/.vim/tags"))|new|silent e ~/.vim/tags|silent w|q|endif
|
if !filereadable(glob("~/.vim/tags"))|new|silent e ~/.vim/tags|silent w|q|endif
|
||||||
if !filereadable(glob("~/.vim/snippets.json"))|new|silent e ~/.vim/snippets.json|silent w|q|endif
|
if !filereadable(glob("~/.vim/snippets.json"))|new|silent e ~/.vim/snippets.json|silent w|q|endif
|
||||||
if !filereadable(glob("~/.vim/filetypes.vim"))|new|silent e ~/.vim/filetypes.vim|silent w|q|endif
|
if !filereadable(glob("~/.vim/filetypes.vim"))|new|silent e ~/.vim/filetypes.vim|silent w|q|endif
|
||||||
|
@ -24,9 +24,9 @@
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
"EASYTAGS: {{{
|
"EASYTAGS: {{{
|
||||||
let g:easytags_file='~/.vim/tags'
|
|
||||||
let g:easytags_suppress_ctags_warning=1
|
let g:easytags_suppress_ctags_warning=1
|
||||||
let g:easytags_by_filetype='~/.vim/tags_by_filetype'
|
if !filereadable(glob("~/.vim/tags"))|let g:easytags_file='~/.vim/tags'|endif
|
||||||
|
if !isdirectory(glob("~/.vim/tags_by_filetype"))|let g:easytags_by_filetype='~/.vim/tags_by_filetype'|endif
|
||||||
|
|
||||||
"prevent automatically generating the tagfile and syntax highlighting tags (default: 0)
|
"prevent automatically generating the tagfile and syntax highlighting tags (default: 0)
|
||||||
if !exists("g:disableautotags")
|
if !exists("g:disableautotags")
|
||||||
|
|
Loading…
Reference in a new issue