changeset 0:7bb5f650cfb7

Initial Commit
author Luka Sitas <lsitas@avatarasoftware.com>
date Tue, 10 Mar 2026 20:28:16 -0400
parents
children 7c5bd18befd2
files README.md autoload/core.vim doc/core.txt plugin/core.vim
diffstat 4 files changed, 67 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /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'
+
--- /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
--- /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.
--- /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()