" NOTE: neovim uses ShaDa (SHAred DAta) format for viminfo and swap, and uses a
" different version of undo file, so these types of files when created by
" vim cannot be used with neovim, and the 'viminfofile', 'directory', and
-" 'undodir' directories cannot be shared.
-" NOTE: neovim has a nice default for these directories and files so
-" customizing them is not necessary for it.
+" 'undodir' directories cannot be shared. since neovim has a nice default
+" for these directories and files, customizing them is not necessary.
if !has('nvim')
" viminfo
- " NOTE: 'viminfofile' is a deprecated alias for 'shada' in neovim
execute 'set viminfofile='.x.'/.viminfo'
" swap
" should be default disabled but just in case
set nomodelineexpr
+"" enable editorconfig parsing for new buffers
+let g:EditorConfig_enable_for_new_buf = 1
+
"" indent
" always use shiftwidth instead of tabsize
set smarttab
autocmd FileType javascript set softtabstop=2 shiftwidth=2 expandtab
autocmd FileType json set softtabstop=2 shiftwidth=2 expandtab
autocmd FileType html set softtabstop=2 shiftwidth=2 expandtab
-let g:EditorConfig_enable_for_new_buf = 1
"" syntax
autocmd Syntax php syn clear phpHereDoc phpNowDoc