Mercurial > vim_plugins > core
comparison plugin/core.vim @ 1:7c5bd18befd2 default tip
Some basic usage
| author | Luka Sitas <lsitas@avatarasoftware.com> |
|---|---|
| date | Tue, 10 Mar 2026 21:31:17 -0400 |
| parents | 7bb5f650cfb7 |
| children |
comparison
equal
deleted
inserted
replaced
| 0:7bb5f650cfb7 | 1:7c5bd18befd2 |
|---|---|
| 1 " plugin/core.vim | 1 " plugin/core.vim |
| 2 " Basic plugin entry point | 2 " Basic plugin entry point |
| 3 | |
| 4 if exists('g:loaded_core') | |
| 5 finish | |
| 6 endif | |
| 7 let g:loaded_core = 1 | |
| 8 | |
| 9 " Default configuration option | |
| 10 if !exists('g:core_greeting') | |
| 11 let g:core_greeting = 'Hello from core!' | |
| 12 endif | |
| 13 | |
| 14 " Command that calls an autoloaded function | |
| 15 command! CoreGreet call core#greet() |
