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