Skip to content

Commit 51ce5f7

Browse files
committed
fix path
1 parent 5ba907d commit 51ce5f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/vim_commands_plugin.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ function! vim_commands_plugin#openCheatSheet()
77
let l:cheat_sheet = l:user_cheat_sheet
88
else
99
" plugin directory path
10-
let l:file_path = "$HOME/.vim/plugged/vim-commands/doc/vim-commands.md"
10+
let l:file_path = expand('$HOME/.vim/plugged/vim-commands/doc/vim-commands.md')
1111

1212
if filereadable(l:file_path)
1313
let l:cheat_sheet = l:file_path
1414
else
15-
let l:cheat_sheet = "$HOME/.vim/bundle/vim-commands/doc/vim-commands.md"
15+
let l:cheat_sheet = expand('$HOME/.vim/bundle/vim-commands/doc/vim-commands.md')
1616

1717
endif
1818

0 commit comments

Comments
 (0)