We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90220a9 commit 5ba907dCopy full SHA for 5ba907d
autoload/vim_commands_plugin.vim
@@ -7,10 +7,15 @@ function! vim_commands_plugin#openCheatSheet()
7
let l:cheat_sheet = l:user_cheat_sheet
8
else
9
" plugin directory path
10
- let l:cheat_sheet = "$HOME/.vim/plugged/vim-commands/doc/vim-commands.md"
11
- if !filereadable(l:cheat_sheet)
+ let l:file_path = "$HOME/.vim/plugged/vim-commands/doc/vim-commands.md"
+
12
+ if filereadable(l:file_path)
13
+ let l:cheat_sheet = l:file_path
14
+ else
15
let l:cheat_sheet = "$HOME/.vim/bundle/vim-commands/doc/vim-commands.md"
16
17
endif
18
19
20
21
" Open the markdown file in a new buffer
0 commit comments