gabrielelana / vim-markdown

Markdown for Vim: a complete environment to create Markdown files with a syntax highlight that doesn't suck!
MIT License
740 stars 59 forks source link

markdown.vim error if path contains spaces #28

Closed tuantda closed 9 years ago

tuantda commented 9 years ago

When I run gvim on windows 7, I get an error at line 64 of file ftplugin/markdown.vim.

Vim directory is placed in the user directory with spaces in the name and : p will error if there are spaces in the entire path.

After I refer in lervag/vimtex#9

I've modified the line 64 from

execute 'setlocal dictionary+=' . expand('<sfile>:p:h:h') . '/dict/emoticons.dict'

to

execute 'setlocal dictionary+=' . shellescape(expand('<sfile>:p:h:h')) . '/dict/emoticons.dict'

and plugin worked

You can modify this way or make some other change on your own.

Thanks!

gabrielelana commented 9 years ago

@tuantda thanks :wink: