# HG changeset patch # User Luka Sitas # Date 1773188896 14400 # Node ID 7bb5f650cfb7fe79ec97dc395f288eb67d6764d9 Initial Commit diff -r 000000000000 -r 7bb5f650cfb7 README.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.md Tue Mar 10 20:28:16 2026 -0400 @@ -0,0 +1,20 @@ +*core.txt* Simple example Vim plugin + +#INTRODUCTION + +core is a minimal example plugin. + +#USAGE + + :CoreGreet + Echo a greeting message. You can customize it with + g:core_greeting: + + > let g:core_greeting = 'Hi there!' + +#INSTALLATION + +Using vim-plug add the following: + +Plug '/home/lsitas/repos/vim_plugins/core' + diff -r 000000000000 -r 7bb5f650cfb7 autoload/core.vim --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/autoload/core.vim Tue Mar 10 20:28:16 2026 -0400 @@ -0,0 +1,10 @@ +" autoload/core.vim +" Functions are loaded on demand + +if exists('*core#greet') + finish +endif + +function! core#greet() abort + echo g:core_greeting +endfunction diff -r 000000000000 -r 7bb5f650cfb7 doc/core.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/core.txt Tue Mar 10 20:28:16 2026 -0400 @@ -0,0 +1,22 @@ +*core.txt* Simple example Vim plugin + +INTRODUCTION *core* + +core is a minimal example plugin. + +USAGE *core-usage* + + :CoreGreet + Echo a greeting message. You can customize it with + g:core_greeting: + + > let g:core_greeting = 'Hi there!' + +INSTALLATION *core-install* + +Using vim-plug add the following: + +Plug '/home/lsitas/repos/vim_plugins/core' + + +*core* Main help entry for this plugin. diff -r 000000000000 -r 7bb5f650cfb7 plugin/core.vim --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plugin/core.vim Tue Mar 10 20:28:16 2026 -0400 @@ -0,0 +1,15 @@ +" plugin/core.vim +" Basic plugin entry point + +if exists('g:loaded_core') + finish +endif +let g:loaded_core = 1 + +" Default configuration option +if !exists('g:core_greeting') + let g:core_greeting = 'Hello from core!' +endif + +" Command that calls an autoloaded function +command! CoreGreet call core#greet()