[pacman-dev] [PATCH 1/2] Change Vim modeline in prototypes from "ts=2 sw=2 et" to "noet"

Jason St. John jstjohn at purdue.edu
Fri Nov 16 18:06:15 EST 2012


From: "Jason St. John" <jstjohn at purdue.edu>

It makes little sense to "force" users to replace tabs with spaces, with
a width of 2. These settings should be configured by the user in their
own ~/.vimrc.

Bluewind stated on IRC that removing "et" is a bad idea and that it
would be better to just turn that setting off with "noet". By "forcing"
the use of tabs, this supports better compatibility between various user
preferences because the width of tabs/indents is, and should be, an
editor setting.

Signed-off-by: Jason St. John <jstjohn at purdue.edu>
---
 proto/PKGBUILD-split.proto | 2 ++
 proto/PKGBUILD.proto       | 2 +-
 proto/proto.install        | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/proto/PKGBUILD-split.proto b/proto/PKGBUILD-split.proto
index f873db6..41ee26e 100644
--- a/proto/PKGBUILD-split.proto
+++ b/proto/PKGBUILD-split.proto
@@ -70,3 +70,5 @@ package_pkg2() {
   cd "$srcdir/$pkgbase-$pkgver"
   make DESTDIR="$pkgdir/" install-pkg2
 }
+
+# vim:set noet:
diff --git a/proto/PKGBUILD.proto b/proto/PKGBUILD.proto
index 98172d8..d0d0412 100644
--- a/proto/PKGBUILD.proto
+++ b/proto/PKGBUILD.proto
@@ -44,4 +44,4 @@ package() {
   make DESTDIR="$pkgdir/" install
 }
 
-# vim:set ts=2 sw=2 et:
+# vim:set noet:
diff --git a/proto/proto.install b/proto/proto.install
index 2a8993d..3234bea 100644
--- a/proto/proto.install
+++ b/proto/proto.install
@@ -34,4 +34,4 @@
   # do something here
 #}
 
-# vim:set ts=2 sw=2 et:
+# vim:set noet:
-- 
1.8.0



More information about the pacman-dev mailing list