Skip to content

Commit 90220a9

Browse files
committed
fix path
1 parent 189ab2d commit 90220a9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

autoload/vim_commands_plugin.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ function! vim_commands_plugin#openCheatSheet()
77
let l:cheat_sheet = l:user_cheat_sheet
88
else
99
" plugin directory path
10-
let l:cheat_sheet = expand("<sfile>:h:h") . "/vim-commands/doc/vim-commands.md"
10+
let l:cheat_sheet = "$HOME/.vim/plugged/vim-commands/doc/vim-commands.md"
11+
if !filereadable(l:cheat_sheet)
12+
let l:cheat_sheet = "$HOME/.vim/bundle/vim-commands/doc/vim-commands.md"
13+
endif
1114
endif
1215

1316
" Open the markdown file in a new buffer

0 commit comments

Comments
 (0)