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