Show More
@@ -29,10 +29,10 b'' | |||
|
29 | 29 | " completes. This allows various actions to only be taken by functions after |
|
30 | 30 | " system initialization. |
|
31 | 31 | |
|
32 | if exists("loaded_hgcommand") | |
|
32 | if exists("g:loaded_hgcommand") | |
|
33 | 33 | finish |
|
34 | 34 | endif |
|
35 | let loaded_hgcommand = 1 | |
|
35 | let g:loaded_hgcommand = 1 | |
|
36 | 36 | |
|
37 | 37 | " store 'compatible' settings |
|
38 | 38 | let s:save_cpo = &cpo |
@@ -45,7 +45,7 b' function! s:HGCleanupOnFailure(err)' | |||
|
45 | 45 | echohl WarningMsg |
|
46 | 46 | echomsg s:script_name . ":" a:err "Plugin not loaded" |
|
47 | 47 | echohl None |
|
48 | let loaded_hgcommand = "no" | |
|
48 | let g:loaded_hgcommand = "no" | |
|
49 | 49 | unlet s:save_cpo s:script_name |
|
50 | 50 | endfunction |
|
51 | 51 | |
@@ -566,11 +566,11 b' function! s:HGInstallDocumentation(full_' | |||
|
566 | 566 | 1 |
|
567 | 567 | " Delete from first line to a line starts with |
|
568 | 568 | " === START_DOC |
|
569 | silent 1,/^=\{3,}\s\+START_DOC\C/ d | |
|
569 | silent 1,/^=\{3,}\s\+START_DOC\C/ delete _ | |
|
570 | 570 | " Delete from a line starts with |
|
571 | 571 | " === END_DOC |
|
572 | 572 | " to the end of the documents: |
|
573 | silent /^=\{3,}\s\+END_DOC\C/,$ d | |
|
573 | silent /^=\{3,}\s\+END_DOC\C/,$ delete _ | |
|
574 | 574 | |
|
575 | 575 | " Add modeline for help doc: the modeline string is mangled intentionally |
|
576 | 576 | " to avoid it be recognized by VIM: |
@@ -1048,7 +1048,7 b' com! HGDisableBufferSetup call HGDisable' | |||
|
1048 | 1048 | com! HGEnableBufferSetup call HGEnableBufferSetup() |
|
1049 | 1049 | |
|
1050 | 1050 | " Allow reloading hgcommand.vim |
|
1051 | com! HGReload unlet! loaded_hgcommand | runtime plugin/hgcommand.vim | |
|
1051 | com! HGReload unlet! g:loaded_hgcommand | runtime plugin/hgcommand.vim | |
|
1052 | 1052 | |
|
1053 | 1053 | " Section: Plugin command mappings {{{1 |
|
1054 | 1054 | nnoremap <silent> <Plug>HGAdd :HGAdd<CR> |
@@ -1200,7 +1200,7 b' delfunction <SID>HGFlexiMkdir' | |||
|
1200 | 1200 | delfunction <SID>HGCleanupOnFailure |
|
1201 | 1201 | unlet s:script_version s:script_name |
|
1202 | 1202 | |
|
1203 | let loaded_hgcommand=2 | |
|
1203 | let g:loaded_hgcommand=2 | |
|
1204 | 1204 | silent do HGCommand User HGPluginFinish |
|
1205 | 1205 | |
|
1206 | 1206 | let &cpo = s:save_cpo |
General Comments 0
You need to be logged in to leave comments.
Login now