Skip to content
Snippets Groups Projects
Commit 19adac1d authored by Jerome Reybert's avatar Jerome Reybert
Browse files

plugin/magit.vim: escape vimagit path to solve space issue fix #89

parent 36c277ea
Branches
Tags
No related merge requests found
...@@ -15,7 +15,8 @@ let g:vimagit_version = [1, 6, 0] ...@@ -15,7 +15,8 @@ let g:vimagit_version = [1, 6, 0]
" source common file. variables in common file are shared with plugin and " source common file. variables in common file are shared with plugin and
" syntax files " syntax files
execute 'source ' . resolve(expand('<sfile>:p:h')) . '/../common/magit_common.vim' let g:vimagit_path = fnameescape(resolve(expand('<sfile>:p:h')))
execute 'source ' . g:vimagit_path . '/../common/magit_common.vim'
" these mappings are broadly applied, for all vim buffers " these mappings are broadly applied, for all vim buffers
let g:magit_show_magit_mapping = get(g:, 'magit_show_magit_mapping', '<leader>M' ) let g:magit_show_magit_mapping = get(g:, 'magit_show_magit_mapping', '<leader>M' )
......
...@@ -2,7 +2,8 @@ if exists("b:current_syntax") ...@@ -2,7 +2,8 @@ if exists("b:current_syntax")
finish finish
endif endif
execute 'source ' . resolve(expand('<sfile>:p:h')) . '/../common/magit_common.vim' let s:vimagit_path = fnameescape(resolve(expand('<sfile>:p:h')))
execute 'source ' . s:vimagit_path . '/../common/magit_common.vim'
syn case match syn case match
syn sync minlines=50 syn sync minlines=50
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment