Skip to content

Commit 9681184

Browse files
committed
correct path plugin
1 parent 846ad57 commit 9681184

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

autoload/vim_commands_plugin.vim

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ function! vim_commands_plugin#openCheatSheet()
66
if filereadable(l:user_cheat_sheet)
77
let l:cheat_sheet = l:user_cheat_sheet
88
else
9-
" get the plugin directory path
10-
let l:plugin_dir = expand('<sfile>:p:h:h')
11-
" Construct the path to the cheat sheet
12-
let l:cheat_sheet = l:plugin_dir . '/doc/vim-commands.md'
9+
" plugin directory path
10+
let l:cheat_sheet = '$HOME/.vim/plugged/vim-commands/doc/vim-commands.md'
1311
endif
1412

1513
" Open the markdown file in a new buffer

0 commit comments

Comments
 (0)