diff options
-rw-r--r-- | doc/gentoo-syntax.txt | 8 | ||||
-rw-r--r-- | plugin/newebuild.vim | 9 |
2 files changed, 16 insertions, 1 deletions
diff --git a/doc/gentoo-syntax.txt b/doc/gentoo-syntax.txt index 21959c0..14834fb 100644 --- a/doc/gentoo-syntax.txt +++ b/doc/gentoo-syntax.txt @@ -241,6 +241,10 @@ Authors: Ciaran McCreesh <ciaranm at gentoo dot org> The ':NewEbuild' command can be used to manually create contents for a new ebuild or eclass file. + To disable the autogenerate functionality place into your .vimrc file: + + let g:ebuild_create_on_empty = 0 + New init.d Files *new-init.d* *:NewInitd* New init.d files will automatically have a skeleton content created @@ -268,6 +272,10 @@ Authors: Ciaran McCreesh <ciaranm at gentoo dot org> ============================================================================== 3. ChangeLog *gentoo-syntax-changelog* + 20050622 rphillips + * added g:ebuild_create_on_empty option to toggle new ebuild + creation on/off on a new ebuild. Fixes #96659 + 20050618 ka0ttic (Release) * Updated eutils, multilib, flag-o-matic, webapp, games eclass functions. diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim index 686a113..205e74a 100644 --- a/plugin/newebuild.vim +++ b/plugin/newebuild.vim @@ -134,10 +134,17 @@ endfun com! -nargs=0 NewEbuild call <SID>MakeNewEbuild() +if !exists("g:ebuild_create_on_empty") + " Enable autogeneration of ebuilds by default + let g:ebuild_create_on_empty = 1 +endif + augroup NewEbuild au! autocmd BufNewFile *.e{build,class} - \ call <SID>MakeNewEbuild() + \ if g:ebuild_create_on_empty | + \ call <SID>MakeNewEbuild() | + \ endif augroup END " vim: set et foldmethod=marker : " |