Mercurial > vim-crosoft
comparison plugin/vimcrosoft.vim @ 13:dce01b0e9982
Add usual vim plugin loading protection
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 29 Aug 2023 12:51:25 -0700 |
parents | 1639be0967d6 |
children |
comparison
equal
deleted
inserted
replaced
12:1639be0967d6 | 13:dce01b0e9982 |
---|---|
1 " vimcrosoft.vim - A wrapper for Visual Studio solutions | 1 " vimcrosoft.vim - A wrapper for Visual Studio solutions |
2 " Maintainer: Ludovic Chabant <https://ludovic.chabant.com> | 2 " Maintainer: Ludovic Chabant <https://ludovic.chabant.com> |
3 | 3 |
4 " Globals {{{ | 4 " Globals {{{ |
5 | 5 |
6 if (&cp || get(g:, 'vimcrosoft_dont_load', 0)) | 6 if exists('g:loaded_vimcrosoft') || &cp |
7 finish | |
8 endif | |
9 let g:loaded_vimcrosoft = 1 | |
10 | |
11 if get(g:, 'vimcrosoft_dont_load', 0) | |
7 finish | 12 finish |
8 endif | 13 endif |
9 | 14 |
10 let g:vimcrosoft_trace = get(g:, 'vimcrosoft_trace', 0) | 15 let g:vimcrosoft_trace = get(g:, 'vimcrosoft_trace', 0) |
11 | 16 |
73 " Initialization {{{ | 78 " Initialization {{{ |
74 | 79 |
75 call vimcrosoft#init() | 80 call vimcrosoft#init() |
76 | 81 |
77 " }}} | 82 " }}} |
83 |