summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAron Griffis <agriffis@gentoo.org>2001-10-19 19:03:36 +0000
committerAron Griffis <agriffis@gentoo.org>2001-10-19 19:03:36 +0000
commitc5b2cfa0a731fefd7de0ba5294168339a3d1553d (patch)
treef473678cf77d8350430848290a929c58e682939c /app-doc
parentrc5/rc6 support. winbind is inclulded in samba-2.2.2 so maybe this package ca... (diff)
downloadhistorical-c5b2cfa0a731fefd7de0ba5294168339a3d1553d.tar.gz
historical-c5b2cfa0a731fefd7de0ba5294168339a3d1553d.tar.bz2
historical-c5b2cfa0a731fefd7de0ba5294168339a3d1553d.zip
Added snippet for setting up Vim.
Diffstat (limited to 'app-doc')
-rwxr-xr-xapp-doc/gentoo-web/files/xml/gentoo-howto.xml19
1 files changed, 14 insertions, 5 deletions
diff --git a/app-doc/gentoo-web/files/xml/gentoo-howto.xml b/app-doc/gentoo-web/files/xml/gentoo-howto.xml
index 0760b3b74163..861212ed7140 100755
--- a/app-doc/gentoo-web/files/xml/gentoo-howto.xml
+++ b/app-doc/gentoo-web/files/xml/gentoo-howto.xml
@@ -307,10 +307,19 @@ variable settings. The variables you can set are:</p>
<section>
<title>Rules for writing an ebuild File</title>
-<body><p>Since ebuild files are really just shell scripts, you should use your editor's
-shell-script mode for editing them. You should use proper indentation, using only tab characters --
-no spaces. Make sure you set up your editor to put tabstops at 4 spaces. Always make sure you use braces around your environment variables; e.g. <c>${P}</c> instead of just <c>$P</c>.</p>
-<p>TODO: add stuff about emacs &amp; vi.</p></body>
+<body><p>Since ebuild files are really just shell scripts, you should
+use your editor's shell-script mode for editing them. You should use
+proper indentation, using only tab characters -- no spaces. Make sure
+you set up your editor to put tabstops at 4 spaces. Always make sure
+you use braces around your environment variables; e.g. <c>${P}</c>
+instead of just <c>$P</c>.</p>
+<p>If you're using Vim, you can put the following snippet at the bottom of your .vimrc to make sure you're using the right settings when editing anything Gentoo-related.</p>
+<pre>
+if (getcwd() =~ 'gentoo-x86\|gentoo-src\|portage')
+ set tabstop=4 shiftwidth=4 noexpandtab
+endif
+</pre>
+<p>TODO: add stuff about emacs.</p></body>
</section>
<section>
@@ -318,7 +327,7 @@ no spaces. Make sure you set up your editor to put tabstops at 4 spaces. Always
<body>
-<p>The purpose of USE variables is to allow you to configure Portage to gobally
+<p>The purpose of USE variables is to allow you to configure Portage to globally
and automatically enable or disable certain <e>optional build-time</e>
features. Here's an example. Let's say you're a GNOME fan, and you'd like any
ebuild that has the option of compiling-in optional GNOME support to do