editorconfig / editorconfig-vim

EditorConfig plugin for Vim
http://editorconfig.org
Other
3.14k stars 139 forks source link

Check `shell` before `:setlocal noshellslash` #45

Closed hail2u closed 9 years ago

hail2u commented 9 years ago

In Windows with set shell=sh, there is no need to optimize shellescape() behavior. So the plugin should check shell does not contain sh somewhere before setting noshelllslash.

Also note, checking only shell does not contain sh somewhere is mentioned in shellcmdflag section of Vim official doc.

This fixes #44.

xuhdev commented 9 years ago

Thanks!