Skip to content

Commit f3641f9

Browse files
committed
use local resource file instead remote
1 parent 8bc82d1 commit f3641f9

File tree

4 files changed

+94
-2
lines changed

4 files changed

+94
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
坚持以热爱祖国为荣、以危害祖国为耻,以服务人民为荣、以背离人民为耻,以崇尚科学为荣、以愚昧无知为耻,以辛勤劳动为荣、以好逸恶劳为耻,以团结互助为荣、以损人利己为耻,以诚实守信为荣、以见利忘义为耻,以遵纪守法为荣、以违法乱纪为耻,以艰苦奋斗为荣、以骄奢淫逸为耻。 以下是中青网的翻译版本 Eight Do's and Eight Don'ts Love, do not harm the motherland. Serve, don't disserve the people. Uphold science; don't be ignorant and unenlightened. Work hard; don't be lazy and hate work. Be united and help each other; don't gain benefits at the expense of others. Be honest and trustworthy, not profit-mongering at the expense of your values. Be disciplined and law-abiding instead of chaotic and lawless. Know plain living and hard struggle; do not wallow in luxuries and pleasures. 以下是新华网的翻译: Eight Honors,Eight Disgraces -- Love the country; do it no harm. -- Serve the people; do no disservice. -- Follow science; discard ignorance. -- Be diligent; not indolent. -- Be united, help each other; make no gains at other's expense. -- Be honest and trustworthy; do not spend ethics for profits. -- Be disciplined and law-abiding; not chaotic and lawless. -- Live plainly, struggle hard; do not wallow in luxuries and pleasures. 以下是欧美同学会网站的翻译: Take the eight glorious merits against eight shameful behaviors 1‘Love our motherland 'as glory;   ‘jeopardise her’as shame. 2‘Serve for the people ’as glory;   ‘err from them’as shame. 3‘Advocate science’as glory;   ‘The ignorant ’as shame. 4 ‘The laborious ’as glory;   ‘love ease and hate work’as shame. 5‘Unite and help each other’as glory;   ‘harm others to benefit oneself’as shame. 6‘Be honest to keep faith’as glory;   ‘forget justice to seek for benefit’ as shame. 7‘Abide by the law and discipline’as glory;   ‘disobey the law and discipline’as shame. 8‘Fight against everything hard and bitter’as glory;   ‘the extravagant and dissipated’as shame.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
* 中文内容
2+
3+
以 热爱祖国 为 荣
4+
以 危害祖国 为 耻
5+
以 服务人民 为 荣
6+
以 背离人民 为 耻
7+
以 崇尚科学 为 荣
8+
以 愚昧无知 为 耻
9+
以 辛勤劳动 为 荣
10+
以 好逸恶劳 为 耻
11+
以 团结互助 为 荣
12+
以 损人利己 为 耻
13+
以 诚实守信 为 荣
14+
以 见利忘义 为 耻
15+
以 遵纪守法 为 荣
16+
以 违法乱纪 为 耻
17+
以 艰苦奋斗 为 荣
18+
以 骄奢淫逸 为 耻
19+
20+
* 英文内容
21+
2.1 以下是中青网的翻译
22+
Eight Dos and Eight Don'ts
23+
Love, do not harm the motherland.
24+
Serve, don't disserve the people.
25+
Uphold science; don't be ignorant and unenlightened.
26+
Work hard; don't be lazy and hate work.
27+
Be united and help each other; don't gain benefits at the expense of others.
28+
Be honest and trustworthy, not profit-mongering at the expense of your values.
29+
Be disciplined and law-abiding instead of chaotic and lawless.
30+
Know plain living and hard struggle; do not wallow in luxuries and pleasures.
31+
32+
2.2 以下是新华网的翻译
33+
Eight Honors,Eight Disgraces
34+
-- Love the country; do it no harm.
35+
-- Serve the people; do no disservice.
36+
-- Follow science; discard ignorance.
37+
-- Be diligent; not indolent.
38+
-- Be united, help each other; make no gains at other's expense.
39+
-- Be honest and trustworthy; do not spend ethics for profits.
40+
-- Be disciplined and law-abiding; not chaotic and lawless.
41+
-- Live plainly, struggle hard; do not wallow in luxuries and pleasures.
42+
43+
44+
2.3 以下是欧美同学会网站的翻译
45+
Take the eight glorious merits against eight shameful behaviors
46+
1 'Love our motherland' as glory;   'jeopardise her' as shame.
47+
2 'Serve for the people' as glory;   'err from them' as shame.
48+
3 'Advocate science' as glory;   'The ignorant ' as shame.
49+
4 'The laborious' as glory;   'love ease and hate work' as shame.
50+
5 'Unite and help each other' as glory;   'harm others to benefit oneself'as shame.
51+
6 'Be honest to keep faith'as glory;   'forget justice to seek for benefit' as shame.
52+
7 'Abide by the law and discipline'as glory;   'disobey the law and discipline' as shame.
53+
8 'Fight against everything hard and bitter' as glory;   'the extravagant and dissipated' as shame.
54+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
set fdc=2
2+
set lsp=5
3+
syn keyword k1 以 为
4+
syn keyword k2 荣 glory
5+
syn keyword k3 耻 shame
6+
syn match k4 " \W\{4} "
7+
syn match k5 "'.\{-}'"
8+
9+
syn match zhead "^*.\+"
10+
syn match zhead2 "^\d\(\.\d\)\=\s\+.*"
11+
syn match ztxt1 "`1"
12+
hi zhead guifg=green gui=bold
13+
hi ztxt1 guifg=red guibg=red
14+
hi link zhead2 zhead
15+
16+
hi k1 guifg=lightblue
17+
hi k2 guibg=red gui=bold
18+
hi k3 guifg=yellow
19+
hi k4 guifg=lightgreen
20+
hi link k5 k4
21+
22+
hi zhead guifg=green gui=bold
23+
hi ztxt1 guifg=red guibg=red
24+
hi link zhead2 zhead
25+
26+
set fdm=expr
27+
set foldexpr=Myindent(v:lnum)
28+
func! Myindent(lnum)
29+
let s:a=strlen(matchstr(getline(v:lnum), '^\*\+\s\+\|^\d\(\.\d\)\=\s\+'))
30+
if s:a == 4
31+
return '>2'
32+
elseif s:a == 2
33+
return '>1'
34+
else
35+
return '='
36+
endif
37+
endf

forwarded-articles/editor-for-mortal.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132

133133
### 3.4 准备并打开范例文件
134134

135-
简化起见,请[下载`test.txt`](http://www.pconline.com.cn/pcedu/soft/gj/photo/0609/pic/test.txt)并保存为`d:\test.txt`。然后,在`Vim`中输入半条命令`:tabnew d:\t`,输到这里后不要回车,按一下`tab``Vim`会自动补全为`test.txt`的。如果不对,再按几次`tab`,直到正确为止。然后回车。
135+
简化起见,请[下载`test.txt`](editor-for-mortal-images/test.txt)并保存为`d:\test.txt`。然后,在`Vim`中输入半条命令`:tabnew d:\t`,输到这里后不要回车,按一下`tab``Vim`会自动补全为`test.txt`的。如果不对,再按几次`tab`,直到正确为止。然后回车。
136136
![](editor-for-mortal-images/060928_v15.png)
137137

138138
你会看到`Vim`打开了`test.txt`,并且是以多页签(`tab page`)的方式。你可以点击各页签在打开的文件中间切换(高手有更方便的键盘命令做法)。在`Vim6.3`中,还没有此功能。当然了,这并不意味着`Vim`的用户没办法享受多页签的便利,下载一个插件后——`Vim`有上千个插件——就可以了。面对多页签风格的流行(`IE6` => `Maxthon` => `IE7`),`Vim7.0`也新增了此功能。
@@ -261,7 +261,7 @@
261261

262262
此部分讲起来太复杂。如果你有其他编辑器如`UltraEdit`基础,会有助于你理解。但`Vim`在此方面的强大灵活,`UltraEdit`是难忘其项背的。
263263

264-
仍然是我们编辑的原文件,为简化计,请[下载`test2.txt`](http://www.pconline.com.cn/pcedu/soft/gj/photo/0610/acc/test2.txt)[下载`tx1.vim`](http://www.pconline.com.cn/pcedu/soft/gj/photo/0610/acc/tx1.vim)并保存在`d:\program files\Vim\Vimfiles\syntax\tx1.vim`
264+
仍然是我们编辑的原文件,为简化计,请[下载`test2.txt`](editor-for-mortal-images/test2.txt)[下载`tx1.vim`](editor-for-mortal-images/tx1.vim)并保存在`d:\program files\Vim\Vimfiles\syntax\tx1.vim`
265265
`Vim`打开(比如要打开`d:\test2.txt`,请在`Vim``:tabnew d:\test2.txt`)它。平平无奇是吗?这是因为`Vim`并不知道这个文件要加亮。键入一个命令`:setf tx1`,这就相当于告诉`Vim`此文件的类型是`tx1`,所以就按照刚下载的`tx1.vim`进行高亮和折叠。
266266
![](editor-for-mortal-images/061008_v5.png)
267267

0 commit comments

Comments
 (0)