aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2015-06-08 09:43:23 +0800
committerkevlo <kevlo@FreeBSD.org>2015-06-08 09:43:23 +0800
commit01184e2f0ced24414577f3ef9d07df7e66a106b8 (patch)
tree1581f814f42f311ec9414cdf3f4796df89d423ed /chinese
parent2a935adfcee718054326b79793703e5470a961ae (diff)
downloadfreebsd-ports-graphics-01184e2f0ced24414577f3ef9d07df7e66a106b8.tar.gz
freebsd-ports-graphics-01184e2f0ced24414577f3ef9d07df7e66a106b8.tar.zst
freebsd-ports-graphics-01184e2f0ced24414577f3ef9d07df7e66a106b8.zip
Set vim's default encoding to utf-8 [1].
While here, put "exec startlxde" in dot.xinitrc. PR: 200657 [1] Submitted by: Ray-Cherng Yu <raycherng at gmail dot com>
Diffstat (limited to 'chinese')
-rw-r--r--chinese/auto-tw-l10n/Makefile2
-rw-r--r--chinese/auto-tw-l10n/files/patch-dot.vimrc26
-rw-r--r--chinese/auto-tw-l10n/files/patch-dot.xinitrc13
3 files changed, 38 insertions, 3 deletions
diff --git a/chinese/auto-tw-l10n/Makefile b/chinese/auto-tw-l10n/Makefile
index 270fd17ceb2..00d094d9c34 100644
--- a/chinese/auto-tw-l10n/Makefile
+++ b/chinese/auto-tw-l10n/Makefile
@@ -3,7 +3,7 @@
PORTNAME= auto-tw-l10n
PORTVERSION= 1.14
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= chinese
MASTER_SITES= LOCAL/sunpoet
diff --git a/chinese/auto-tw-l10n/files/patch-dot.vimrc b/chinese/auto-tw-l10n/files/patch-dot.vimrc
new file mode 100644
index 00000000000..f5d07cb2648
--- /dev/null
+++ b/chinese/auto-tw-l10n/files/patch-dot.vimrc
@@ -0,0 +1,26 @@
+--- dot.vimrc.orig 2015-06-08 09:31:24.632410000 +0800
++++ dot.vimrc 2015-06-08 09:32:26.848032000 +0800
+@@ -84,21 +84,11 @@
+ "-------------------------------------
+ " Vim locale
+ "-------------------------------------
+-"set enc=big5
+-"set fileencoding=big5
++set enc=utf-8
++set fileencoding=utf-8
+ set hls
+ set sw=2
+ set background=dark
+-set fileencoding=big5
+-
+-if exists("&encoding")
+- set fileencodings=ucs-bom,utf-8,japan,big5,prc
+- if has("gui_running")
+- set encoding=utf-8
+- else
+- set encoding=big5
+- endif
+-endif
+
+ set langmenu=none
+ syntax on
diff --git a/chinese/auto-tw-l10n/files/patch-dot.xinitrc b/chinese/auto-tw-l10n/files/patch-dot.xinitrc
index a8f365d4949..030f48bfa5d 100644
--- a/chinese/auto-tw-l10n/files/patch-dot.xinitrc
+++ b/chinese/auto-tw-l10n/files/patch-dot.xinitrc
@@ -1,5 +1,5 @@
---- dot.xinitrc.orig 2015-03-10 22:38:42.063200000 +0800
-+++ dot.xinitrc 2015-03-10 22:38:50.506224000 +0800
+--- dot.xinitrc.orig 2011-07-13 21:26:12.000000000 +0800
++++ dot.xinitrc 2015-06-08 09:29:10.373614000 +0800
@@ -1,6 +1,3 @@
-# KDE4
-#export PATH=/usr/local/kde4/bin:$PATH
@@ -7,3 +7,12 @@
export TERM=xterm
export XMODIFIERS='@im=xcin'
+@@ -36,7 +33,7 @@
+ #exec afterstep
+ #exec e16
+ #exec gnome-session
+-#exec startkde
++#exec startlxde
+ #exec wmaker
+ #exec startxfce4
+ #exec startkde4