JaredVogt / vimrc

CONFIG: my vimrc
0 stars 0 forks source link

Error grabbing font from inside .vimrc #29

Closed JaredVogt closed 8 years ago

JaredVogt commented 8 years ago
if empty(glob('~/Library/Fonts/Sauce_Code_Pro_Nerd_Font_Complete_Mono.ttf'))
  silent !curl -fLo ~/Library/Fonts/Sauce_Code_Pro_Nerd_Font_Complete_Mono.ttf https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/SourceCodePro/Regular/complete/Sauce%20Code%20Pro%20Nerd%20Font%20Complete%20Mono.ttf
endif

generates error:

Empty file name for '%' or '#', only works with ":p:h": WTF, can do this from shell, but fails when called inside .vimrc.

Workaround - failed cmd shows up when run vim - just copy and run directly in shell.

JaredVogt commented 8 years ago

solved!!! I had to escape all of the % in the url... https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/SourceCodePro/Regular/complete/Sauce\%20Code\%20Pro\%20Nerd\%20Font\%20Complete\%20Mono.ttf