From 8c8ed65d49d92ce1f0807287236d3d573f0ec98b Mon Sep 17 00:00:00 2001 From: Ciaran McCreesh Date: Fri, 14 Jan 2005 21:56:34 +0000 Subject: [PATCH] Update vimrc to only try to use ftplugins if we have a valid ftplugin directory (for livecds) Package-Manager: portage-2.0.51-r12 --- app-editors/vim-core/ChangeLog | 6 +++++- app-editors/vim-core/Manifest | 10 +++++----- app-editors/vim-core/files/vimrc | 7 +++++-- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/app-editors/vim-core/ChangeLog b/app-editors/vim-core/ChangeLog index 22232bc68bbd..aa2416105a43 100644 --- a/app-editors/vim-core/ChangeLog +++ b/app-editors/vim-core/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-editors/vim-core # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/vim-core/ChangeLog,v 1.124 2005/01/13 22:17:07 ciaranm Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/vim-core/ChangeLog,v 1.125 2005/01/14 21:56:34 ciaranm Exp $ + + 14 Jan 2005; Ciaran McCreesh files/vimrc: + Update vimrc to only try to use ftplugins if we have a valid ftplugin + directory (for livecds) *vim-core-7.0_alpha20050113 (13 Jan 2005) diff --git a/app-editors/vim-core/Manifest b/app-editors/vim-core/Manifest index b780dc0d7753..f9e44ae4349e 100644 --- a/app-editors/vim-core/Manifest +++ b/app-editors/vim-core/Manifest @@ -1,7 +1,7 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 c2b9fe6c521d8a744dbefda6e0d53618 ChangeLog 16271 +MD5 4b3b4fe971a258e31029b35cb3c78d8a ChangeLog 16435 MD5 6e286eb45f52f18b8ba6545bebe593a7 vim-core-6.3-r2.ebuild 904 MD5 551eaa8d97376e39b4f3b0823d43cc01 vim-core-6.3-r1.ebuild 937 MD5 37037241610822b80551fb3eba791b0f vim-core-7.0_alpha20050113.ebuild 838 @@ -11,7 +11,7 @@ MD5 f3583430b2f7b0686cafd606b08bf203 metadata.xml 156 MD5 91fd740a9f563391ade1337d53691bcf vim-core-6.3.ebuild 935 MD5 0559e12807c0742ed95a93dc0d9dc7fb files/digest-vim-core-7.0_alpha20050113 156 MD5 fe3a85b7f303db551bfc5984738e1dfb files/digest-vim-core-6.3-r3 348 -MD5 99fe423ce0bc7bf4f66d4f05c7d553ed files/vimrc 3737 +MD5 2ad354160ca3635ea115beb56e237e7c files/vimrc 3879 MD5 1c089e2955a0cc3a474e86a6ecfb0177 files/digest-vim-core-6.3-r2 348 MD5 c2d0302eae7fc80b2a1cb38ddab9d3d3 files/rphillips-invalcolorpatch.diff 722 MD5 f7046d975c3b2dd7a6e82e4287e6d3ab files/digest-vim-core-6.3 277 @@ -20,7 +20,7 @@ MD5 c8a344d069577df7e39c1f6592827642 files/digest-vim-core-6.3-r1 277 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) -iD8DBQFB5vOeLLFUmVNQ7rkRAid9AKCmohZZ/o2uQs2rSrQVTRFHuqoTOgCeI0RV -xO5g1nXYo3VenVXV8n9WkaE= -=ps+x +iD8DBQFB6EA+LLFUmVNQ7rkRAofXAKCXHeHyd436j2lyij1I/NelbKLqzwCgkpOf +pyBXxah1uSdEp8OCcrvPaUs= +=O+bJ -----END PGP SIGNATURE----- diff --git a/app-editors/vim-core/files/vimrc b/app-editors/vim-core/files/vimrc index ae3bc89d5826..c9c572608a74 100644 --- a/app-editors/vim-core/files/vimrc +++ b/app-editors/vim-core/files/vimrc @@ -58,8 +58,11 @@ if &term=="xterm" set ttymouse=xterm2 " only works for >=xfree86-3.3.3, should be okay endif -" Enable plugin-provided filetype settings -filetype plugin on +" Enable plugin-provided filetype settings, but only if the ftplugin +" directory exists (which it won't on livecds, for example). +if isdirectory(expand("$VIMRUNTIME/ftplugin")) + filetype plugin on +endif " Uncomment the next line (or copy to your ~/.vimrc) for plugin-provided " indent settings. Some people don't like these, so we won't turn them on by -- 2.26.2