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>
This commit is contained in:
Kevin Lo 2015-06-08 01:43:23 +00:00
parent d32f41a1d9
commit 6a6089b8b1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=388825
3 changed files with 38 additions and 3 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= auto-tw-l10n
PORTVERSION= 1.14
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= chinese
MASTER_SITES= LOCAL/sunpoet

View file

@ -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

View file

@ -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