ivaneeo's blog

自由的力量,自由的生活。

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  669 Posts :: 0 Stories :: 64 Comments :: 0 Trackbacks

#

前面说过,大部分的 Emacs 命令都可以指定重复次数,这其中也包括输入字符的
命令。重复执行输入字符的命令实际上就是输入多个一样的字符。

>>  试试 C-u 8 *,这将会插入 ********。
posted @ 2005-11-08 13:37 ivaneeo 阅读(232) | 评论 (0)编辑 收藏

Emacs 可以有多个窗格,每个窗格都显示不同的文字。我们后面再介绍怎么对付
多个窗格,现在先让我们先搞明白如何关掉多余的窗格。其实也很简单:

        C-x 1   只保留一个窗格(也就是关掉其他所有的窗格)。

也就是先按 CONTROL-x 然后再按 1。C-x 1 会保留光标所在的窗格,并将其扩大
到整个屏幕,同时关掉所有其它的窗格。

>> 把光标移到本行然后输入 C-u 0 C-l。

>> 输入 CONTROL-h k CONTROL-f。观察当一个新窗格出现时当前窗格(用来显示
   CONTROL-f 命令的文档)是如何缩小的。

>> 输入 C-x 1 关掉文档窗格。
posted @ 2005-11-08 13:34 ivaneeo 阅读(225) | 评论 (0)编辑 收藏

退出emacs: C-x C-z(这里C是Control键).

最小化emacs:C-z
------------------------------------------------------------------------------------------
以下命令在翻页浏览时相当有用:

        C-v     向前移动一屏
        M-v     向后移动一屏
        C-l     重绘屏幕,并将光标所在行置于屏幕的中央
                (注意是 CONTROL-L,不是 CONTROL-1)

>> 找到光标,留意其附近的文字,然后输入 C-l。
   找找光标在哪里,你会发现其附近的文字并没有变化。

如果你的键盘上有 PageUp 和 PageDn,也可以用这两个键来滚屏。不过使用
C-v 和 M-v 的效率要更高一些。
-------------------------------------------------------------------------------------------
整屏的移动很有用,但是如何在文字中精确定位呢?

有几种方式可以选择。用方向键当然可以,不过更有效率的方法是保持双手位于
主键盘区,然后使用 C-p 、 C-b 、 C-f 和 C-n 这四个命令。它们的功能和方
向键是一样的,如下图所示:

                             上一行 C-p
                                  :
                                  :
            向左移 C-b .... 目前光标位置 .... 向右移 C-f
                                  :
                                  :
                             下一行 C-n

>> 用 C-n 或 C-p 将光标移到上图的中央。
   按 C-l,整幅图会被显示在屏幕的中央。
---------------------------------------------------------------------------------------------
这里对简单的光标移动命令做一个总结,其中也包括了整词和整句的移动:

        C-f     向右移动一个字符
        C-b     向左移动一个字符

        M-f     向右移动一个词【中文是移动到下一个标点符号】
        M-b     向左移动一个词【中文是移动到上一个标点符号】

        C-n     移动到下一行
        C-p     移动到上一行

        C-a     移动到行首
        C-e     移动到行尾

        M-a     移动到句首
        M-e     移动到句尾

>> 把上面所有的命令都练习几次,这些可都是最常用的命令。
----------------------------------------------------------------------------------------------
这里还要介绍两个重要的光标移动命令:M-< (META 小于号)可以将光标移动到
所有文字的最开头;M-> (META 大于号)可以将光标移动到所有文字的最末尾。

注意,在大部分键盘上,小于号(<)需要用上档键(Shift)来输入,所以在这
些键盘上你应该用 Shift 键来输入 M-<,如果不按 Shift 键,你输入的会是
M-comma(META 逗号)。

>> 试一试 M-< ,移到本快速指南的最开始。
   然后再按几次 C-v 回到这里。

>> 试一试 M-> ,移到本快速指南的最末尾。
   然后再按几次 M-v 回到这里。
-------------------------------------------------------------------------------------------------
大部份的 Emacs 命令接受数字参数,并且对于多数命令而言,这些数字参数的作
用是指定命令的重复次数。为一个命令指定数字参数(也就是重复次数)的方法
是:先输入 C-u,然后输入数字作为参数,最后再输入命令。如果你有META (或
EDIT 或 ALT)键,那么还有另一种办法:按住 META 键不动,然后输入数字。不
过我们还是建议你用 C-u,因为它在任何终端机上都能用。这种数字参数也称为
“前缀参数”,意思是说这个参数是先于使用它的命令而输入的。

举例来说, C-u 8 C-f 会向前移动 8 个字符。

>> 为 C-n 或者 C-p 指定一个数字参数,这样你可以只用一个命令就把光标移动
   到本行的附近。

虽然大部份命令用数字参数来作为其重复次数,但是也有些命令例外,它们将数
字参数另做它用。比如有些命令(目前还没学到)仅仅将前缀参数作为一个标
志——只要有一个前缀参数出现,不管其值为何,命令的功能都会改变。

而 C-v 和 M-v 则属于另一种类型的例外。当给定一个参数时,它们将滚动你指
定的“行数”,而不是“屏数”。举例来说,C-u 8 C-v 将屏幕向下滚动 8 行,
而不是 8 屏。

>> 现在试试看,输入 C-u 8 C-v。

这个命令应该已经将文字向上滚动了 8 行。如果你想将它再次地向下滚动,你可
以给定一个参数然后执行 M-v。
------------------------------------------------------------------------------------------------
如果 Emacs 对你的命令失去响应,你可以很安全地用 C-g 来终止这个命令。
C-g 也可以被用来终止一个执行过久的命令。

C-g 还可以被来取消数字参数和那些输入到一半的命令。

>> 输入 C-u 100 设定一个值为 100 的数字参数,然后按 C-g。
   现在再按 C-f,光标应该只会移动一个字符,因为你已经用 C-g 取消了参数。

如果你不小心按了一下 <ESC>,你也可以用 C-g 来取消它。

-------------------------------------------------------------------------------------------------
有一些 Emacs 命令被“禁用”了,以避免初学者在不了解其确切功能的情况下误
用这些命令,造成麻烦。

如果你用到了一个被禁用的命令,Emacs 会显示一个提示消息,告诉你这个命令
到底是干什么的,询问你是否要继续,并在得到你的肯定之后再执行这命令。

你要是真的想执行被禁用的命令,那么在 Emacs 询问你的时候应该按空格。一般
来说,如果你不想执行,按“n”就行了。

>> 试试 C-x C-l (这是一个被禁用的命令)
   然后用 n 来回答问题。
posted @ 2005-11-08 10:45 ivaneeo 阅读(291) | 评论 (0)编辑 收藏

安装xpdf,并且安装xpdf-chinese-simplified和xpdf-chinese-traditional。
把/etc/xpdf/xpdfrc文件,考到$HOME目录改名为.xpdfrc。
posted @ 2005-11-08 09:20 ivaneeo 阅读(853) | 评论 (0)编辑 收藏

首先要安装yuanti字体。
修改/etc/fonts/font.conf文件,改为:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>
 
<!--
   DO NOT EDIT THIS FILE.
   IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
   LOCAL CHANGES BELONG IN 'local.conf'.
 
   The intent of this standard configuration file is to be adequate for
   most environments.  If you have a reasonably normal environment and
   have found problems with this configuration, they are probably
   things that others will also want fixed.  Please submit any
   problems to the fontconfig bugzilla system located at fontconfig.org
 
   Note that the normal 'make install' procedure for fontconfig is to
   replace any existing fonts.conf file with the new version.  Place
   any local customizations in local.conf which this file references.
 
   Keith Packard
-->
 
   <dir>/usr/share/fonts</dir>
   <dir>/usr/X11R6/lib/X11/fonts/Type1</dir> <dir>/usr/local/share/fonts</dir>
   <dir>~/.fonts</dir>
 
<!--
  Accept deprecated 'mono' alias, replacing it with 'monospace'
-->
   <match target="pattern">
      <test qual="any" name="family">
         <string>mono</string>
      </test>
      <edit name="family" mode="assign">
         <string>monospace</string>
      </edit>
   </match>
 
<!--
  Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
-->
   <match target="pattern">
      <test qual="any" name="family">
         <string>sans serif</string>
      </test>
      <edit name="family" mode="assign">
         <string>sans-serif</string>
      </edit>
   </match>
 
<!--
  Accept deprecated 'sans' alias, replacing it with 'sans-serif'
-->
   <match target="pattern">
      <test qual="any" name="family">
         <string>sans</string>
      </test>
      <edit name="family" mode="assign">
         <string>sans-serif</string>
      </edit>
   </match>
 
<!--
  Mark common families with their generics so we'll get
  something reasonable
-->
 
<!--
  Serif faces
 -->
   <alias>
      <family>Bitstream Vera Serif</family>
      <family>Vera Sans YuanTi</family>                        <!--  added by lifesinger-->
      <family>Times</family>
      <family>Times New Roman</family>
      <family>Nimbus Roman No9 L</family>
      <family>Luxi Serif</family>
      <family>Kochi Mincho</family>
      <family>AR PL SungtiL GB</family>
      <family>AR PL Mingti2L Big5</family>
      <family>Baekmuk Batang</family>
      <family>FreeSerif</family>
      <default><family>serif</family></default>
   </alias>
<!--
  Sans-serif faces
 -->
   <alias>
      <family>Bitstream Vera Sans</family>
      <family>Vera Sans YuanTi</family>                        <!--  added by lifesinger-->
      <family>Helvetica</family>
      <family>Arial</family>
      <family>Verdana</family>
      <family>Nimbus Sans L</family>
      <family>Luxi Sans</family>
      <family>Kochi Gothic</family>
      <family>AR PL KaitiM GB</family>
      <family>AR PL KaitiM Big5</family>
      <family>Baekmuk Dotum</family>
      <family>SimSun</family>
      <family>FreeSans</family>
      <default><family>sans-serif</family></default>
   </alias>
<!--
  Monospace faces
 -->
    <alias>
      <family>Bitstream Vera Sans Mono</family>
      <family>Vera Sans YuanTi Mono</family>                        <!--  added by lifesinger-->
      <family>Courier</family>
      <family>Courier New</family>
      <family>Andale Mono</family>
      <family>Luxi Mono</family>
      <family>Nimbus Mono L</family>
      <family>SimSun</family>
      <family>FreeMono</family>
      <default><family>monospace</family></default>
   </alias>
<!--
  If the font still has no generic name, add sans-serif
 -->
   <match target="pattern">
      <test qual="all" name="family" compare="not_eq">
         <string>sans-serif</string>
      </test>
      <test qual="all" name="family" compare="not_eq">
         <string>serif</string>
      </test>
      <test qual="all" name="family" compare="not_eq">
         <string>monospace</string>
      </test>
      <edit name="family" mode="append_last">
         <string>sans-serif</string>
      </edit>
   </match>      
   
<!--
  Some Asian fonts misadvertise themselves as monospaced when
  in fact they are dual-spaced (half and full).  This makes
  FreeType very confused as it forces all widths to match.
  Undo this magic by disabling the width forcing code -->
   <match target="font">
      <test name="family"><string>GulimChe</string></test>
      <edit name="globaladvance"><bool>false</bool></edit>
   </match>
   
   <match target="font">
      <test name="family"><string>DotumChe</string></test>
      <edit name="globaladvance"><bool>false</bool></edit>
   </match>
 
   <match target="font">
      <test name="family"><string>BatangChe</string></test>
      <edit name="globaladvance"><bool>false</bool></edit>
   </match>
 
   <match target="font">
      <test name="family"><string>GungsuhChe</string></test>
      <edit name="globaladvance"><bool>false</bool></edit>
   </match>
 
<!--
   The Bitstream Vera fonts have GASP entries suggesting that hinting be
   disabled below 8 ppem, but FreeType ignores those, preferring to use
   the data found in the instructed hints.  The initial Vera release
   didn't include the right instructions in the 'prep' table. Fix this
   by disabling hinting manually at smaller sizes (< 8ppem)
 -->
   
   <match target="font">
      <test name="family">
         <string>Bitstream Vera Sans</string>
      </test>
      <test name="pixelsize" compare="less">
         <double>7.5</double>
      </test>
      <edit name="hinting">
         <bool>false</bool>
      </edit>     
   </match>
   
   <match target="font">
      <test name="family">
         <string>Bitstream Vera Serif</string>
      </test>
      <test name="pixelsize" compare="less">
         <double>7.5</double>
      </test>
      <edit name="hinting">
         <bool>false</bool>
      </edit>
   </match>
   
   <match target="font">
      <test name="family">
         <string>Bitstream Vera Sans Mono</string>
      </test>
      <test name="pixelsize" compare="less">
         <double>7.5</double>
      </test>
      <edit name="hinting">
         <bool>false</bool>
      </edit>
   </match>
   
<!--
  Load local system customization file
 
   <include ignore_missing="yes">local.conf</include>
-->
 
<!--
  Load per-user customization file
 
   <include ignore_missing="yes">~/.fonts.conf</include>
-->
 
<!--
  Alias well known font names to available TrueType fonts
-->
   <alias>
      <family>Times</family>
      <accept><family>Times New Roman</family></accept>
   </alias>
   <alias>
      <family>Helvetica</family>
      <accept><family>Verdana</family></accept>
   </alias>
   <alias>
      <family>Arial</family>
      <accept><family>Verdana</family></accept>
   </alias>
   <alias>
      <family>Courier</family>
      <accept><family>Courier New</family></accept>
   </alias>
 
<!--
 Check user preference to avoid bitmap fonts and replace
 bitmap face names with equivalent scalable fonts
 -->
 
   <match target="pattern">
           <test name="prefer_outline">
                   <bool>true</bool>
           </test>
           <test name="family">
                   <string>Helvetica</string>
           </test>
           <edit name="family" mode="prepend" binding="same">
                   <string>Arial</string>
           </edit>
   </match>
 
   <match target="pattern">
           <test name="prefer_outline">
                   <bool>true</bool>
           </test>
           <test name="family">
                   <string>Times</string>
           </test>
           <edit name="family" mode="prepend" binding="same">
                   <string>Times New Roman</string>
           </edit>
   </match>
<!--
  Provide required aliases for standard names
-->
   <alias>
      <family>serif</family>
      <prefer>
         <family>Bitstream Vera Serif</family>
         <family>Vera Sans YuanTi</family>                        <!--  added by lifesinger-->
         <family>Times New Roman</family>
         <family>Nimbus Roman No9 L</family>
         <family>Luxi Serif</family>
         <family>Times</family>
         <family>Frank Ruehl</family>
         <family>Kochi Mincho</family>
         <family>AR PL SungtiL GB</family>
         <family>AR PL Mingti2L Big5</family>
         <family>Baekmuk Batang</family>
         <family>FreeSerif</family>
      </prefer>
   </alias>
   <alias>
      <family>sans-serif</family>
      <prefer>
         <family>Bitstream Vera Sans</family>
         <family>Vera Sans YuanTi</family>                        <!--  added by lifesinger-->
         <family>Verdana</family>
         <family>Nimbus Sans L</family>
         <family>Luxi Sans</family>
         <family>Arial</family>
         <family>Helvetica</family>
         <family>Nachlieli</family>
         <family>Kochi Gothic</family>
         <family>AR PL KaitiM GB</family>
         <family>AR PL KaitiM Big5</family>
         <family>Baekmuk Dotum</family>
         <family>SimSun</family>
         <family>FreeSans</family>
      </prefer>
   </alias>
   <alias>
      <family>monospace</family>
      <prefer>
         <family>Bitstream Vera Sans Mono</family>
         <family>Vera Sans YuanTi Mono</family>                        <!--  added by lifesinger-->
         <family>Andale Mono</family>
         <family>Courier New</family>
         <family>Luxi Mono</family>
         <family>Nimbus Mono L</family>
         <family>Miriam Mono</family>
         <family>Kochi Gothic</family>
         <family>AR PL KaitiM GB</family>
         <family>Baekmuk Dotum</family>
         <family>FreeMono</family>
      </prefer>
   </alias>
 
<!--
 Artificial oblique for fonts without an italic or oblique version
 -->
 
   <match target="font">
      <!-- check to see if the font is roman -->
      <test name="slant">
         <const>roman</const>
      </test>
      <!-- check to see if the pattern requested non-roman -->
      <test target="pattern" name="slant" compare="not_eq">
         <const>roman</const>
      </test>
      <!-- multiply the matrix to slant the font -->
      <edit name="matrix" mode="assign">
         <times>
            <name>matrix</name>
            <matrix><double>1</double><double>0.2</double>
               <double>0</double><double>1</double>
            </matrix>
         </times>
      </edit>
      <!-- pretend the font is oblique now -->
      <edit name="slant" mode="assign">
         <const>oblique</const>
      </edit>
   </match>
 
   <config>
<!--
  These are the default Unicode chars that are expected to be blank
  in fonts.  All other blank chars are assumed to be broken and
  won't appear in the resulting charsets
 -->
      <blank>
         <int>0x0020</int>   <!-- SPACE -->
         <int>0x00a0</int>   <!-- NO-BREAK SPACE -->
         <int>0x00ad</int>   <!-- SOFT HYPHEN -->
         <int>0x115f</int>   <!-- HANGUL CHOSEONG FILLER -->
         <int>0x1160</int>   <!-- HANGUL JUNGSEONG FILLER -->
         <int>0x1680</int>   <!-- OGHAM SPACE MARK -->
         <int>0x2000</int>   <!-- EN QUAD -->
         <int>0x2001</int>   <!-- EM QUAD -->
         <int>0x2002</int>   <!-- EN SPACE -->
         <int>0x2003</int>   <!-- EM SPACE -->
         <int>0x2004</int>   <!-- THREE-PER-EM SPACE -->
         <int>0x2005</int>   <!-- FOUR-PER-EM SPACE -->
         <int>0x2006</int>   <!-- SIX-PER-EM SPACE -->
         <int>0x2007</int>   <!-- FIGURE SPACE -->
         <int>0x2008</int>   <!-- PUNCTUATION SPACE -->
         <int>0x2009</int>   <!-- THIN SPACE -->
         <int>0x200a</int>   <!-- HAIR SPACE -->
         <int>0x200b</int>   <!-- ZERO WIDTH SPACE -->
         <int>0x200c</int>   <!-- ZERO WIDTH NON-JOINER -->
         <int>0x200d</int>   <!-- ZERO WIDTH JOINER -->
         <int>0x200e</int>   <!-- LEFT-TO-RIGHT MARK -->
         <int>0x200f</int>   <!-- RIGHT-TO-LEFT MARK -->
         <int>0x2028</int>   <!-- LINE SEPARATOR -->
         <int>0x2029</int>   <!-- PARAGRAPH SEPARATOR -->
         <int>0x202a</int>   <!-- LEFT-TO-RIGHT EMBEDDING -->
         <int>0x202b</int>   <!-- RIGHT-TO-LEFT EMBEDDING -->
         <int>0x202c</int>   <!-- POP DIRECTIONAL FORMATTING -->
         <int>0x202d</int>   <!-- LEFT-TO-RIGHT OVERRIDE -->
         <int>0x202e</int>   <!-- RIGHT-TO-LEFT OVERRIDE -->
         <int>0x202f</int>   <!-- NARROW NO-BREAK SPACE -->
         <int>0x205f</int>   <!-- MEDIUM MATHEMATICAL SPACE -->
         <int>0x2060</int>   <!-- WORD JOINER -->
         <int>0x2061</int>   <!-- FUNCTION APPLICATION -->
         <int>0x2062</int>   <!-- INVISIBLE TIMES -->
         <int>0x2063</int>   <!-- INVISIBLE SEPARATOR -->
         <int>0x206A</int>   <!-- INHIBIT SYMMETRIC SWAPPING -->
         <int>0x206B</int>   <!-- ACTIVATE SYMMETRIC SWAPPING -->
         <int>0x206C</int>   <!-- INHIBIT ARABIC FORM SHAPING -->
         <int>0x206D</int>   <!-- ACTIVATE ARABIC FORM SHAPING -->
         <int>0x206E</int>   <!-- NATIONAL DIGIT SHAPES -->
         <int>0x206F</int>   <!-- NOMINAL DIGIT SHAPES -->
         <int>0x3000</int>   <!-- IDEOGRAPHIC SPACE -->
         <int>0x3164</int>   <!-- HANGUL FILLER -->
         <int>0xfeff</int>   <!-- ZERO WIDTH NO-BREAK SPACE -->
         <int>0xffa0</int>   <!-- HALFWIDTH HANGUL FILLER -->
         <int>0xfff9</int>   <!-- INTERLINEAR ANNOTATION ANCHOR -->
         <int>0xfffa</int>   <!-- INTERLINEAR ANNOTATION SEPARATOR -->
         <int>0xfffb</int>   <!-- INTERLINEAR ANNOTATION TERMINATOR -->
      </blank>
<!--
  Rescan configuration every 30 seconds when FcFontSetList is called
 -->
      <rescan>
         <int>30</int>
      </rescan>
   </config>
 
 
<!--  字体替代法 -->
   <!-- 代替SimSun的粗体
<match target="pattern">
   <test  name="family"><string>SimSun</string></test>
   <test name="weight" compare="more_eq"><const>bold</const></test>
   <edit name="family" mode="assign"><string>VeraSansYuanTi-Bold</string></edit>
</match>
-->
 
<!-- 关闭SimSun的AA
<match target="font">
   <test qual="any" name="family"><string>SimSun</string> </test>
   <edit name="antialias" mode="assign"><bool>false</bool></edit>
</match>
-->
 
<!-- 关闭SimSun粗体的AA
<match target="font">
   <test qual="any" name="family"><string>VeraSansYuanTi-Bold</string> </test>
   <edit name="antialias" mode="assign"><bool>false</bool></edit>
</match>
-->
 
 
<!-- 修改ttf字体法 -->
 
   <!-- Mac OS X 效果 -->
<match target="font">
   <test name="family"><string>Vera Sans YuanTi</string></test>
   <edit name="globaladvance"><bool>false</bool></edit>
</match>
 
<match target="font">
   <test name="family"><string>Vera Sans YuanTi Mono</string></test>
   <edit name="globaladvance"><bool>false</bool></edit>
</match>
 
<match target="font">
   <edit name="antialias" mode="assign"><bool>true</bool></edit>
   <edit name="hinting" mode="assign"><bool>false</bool></edit>
   <edit name="autohint" mode="assign"><bool>false</bool></edit>
   <edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
   <edit name="rh_prefer_bitmaps" mode="assign"><bool>false</bool></edit>
</match>
 
 
   <!-- Win XP 效果
<match target="font">
   <test name="family"><string>Vera Sans YuanTi</string></test>
   <edit name="globaladvance"><bool>false</bool></edit>
</match>
 
<match target="font">
   <test name="family"><string>Vera Sans YuanTi Mono</string></test>
   <edit name="globaladvance"><bool>false</bool></edit>
</match>
 
<match target="font">
   <test qual="any" name="family"><string>Vera Sans YuanTi</string></test>
   <edit name="antialias" mode="assign"><bool>true</bool></edit>
   <edit name="hinting" mode="assign"><bool>false</bool></edit>
   <edit name="autohint" mode="assign"><bool>false</bool></edit>
   <edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
   <edit name="rh_prefer_bitmaps" mode="assign"><bool>false</bool></edit>
</match>
 
<match target="font">
   <test qual="any" name="family"><string>Vera Sans YuanTi</string></test>
   <test compare="more_eq" name="pixelsize" qual="any" ><double>12</double></test>
   <test compare="less_eq" name="pixelsize" qual="any" ><double>16</double></test>
   <edit name="antialias" mode="assign"><bool>false</bool></edit>
   <edit name="hinting" mode="assign"><bool>true</bool></edit>
   <edit name="autohint" mode="assign"><bool>false</bool></edit>
   <edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
   <edit name="rh_prefer_bitmaps" mode="assign"><bool>true</bool></edit>
</match>
 
<match target="font">
   <test qual="any" name="family"><string>Vera Sans YuanTi Mono</string></test>
   <edit name="antialias" mode="assign"><bool>true</bool></edit>
   <edit name="hinting" mode="assign"><bool>false</bool></edit>
   <edit name="autohint" mode="assign"><bool>false</bool></edit>
   <edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
   <edit name="rh_prefer_bitmaps" mode="assign"><bool>false</bool></edit>
</match>
 
<match target="font">
   <test qual="any" name="family"><string>Vera Sans YuanTi Mono</string></test>
   <test compare="more_eq" name="pixelsize" qual="any" ><double>12</double></test>
   <test compare="less_eq" name="pixelsize" qual="any" ><double>16</double></test>
   <edit name="antialias" mode="assign"><bool>false</bool></edit>
   <edit name="hinting" mode="assign"><bool>true</bool></edit>
   <edit name="autohint" mode="assign"><bool>false</bool></edit>
   <edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
   <edit name="rh_prefer_bitmaps" mode="assign"><bool>true</bool></edit>
</match>
 
-->
</fontconfig>
 

posted @ 2005-11-08 09:08 ivaneeo 阅读(1317) | 评论 (0)编辑 收藏

对于":substitute"命令和很多其它的":"命令, 可以指使它们作用于
一 些 行 上, 这 叫 命 令 的 作 用 范 围 . 作 用 范 围 的 最 简 单 形 式 是 两 个 以 数 字 表
示的行号. 如下:
    :1,5s/this/that/g
  该 命 令 将 对 第1到 第5行 的 文 本 执 行 替 换 操 作. 也 包 括 第1行 和 第5行.
这样的作用范围总是放在命令的最开始

单个的数字指示命令将只作用于由该数字指定的行上:
    :54s/President/Fool/

   有 一 个 命 令 在 你 不 指 定 作 用 范 围 时 默 认 是 对 整 个 文 件 进 行 操 作. 要 使
它 们 只 作 用 于 当 前 行 上, 可 以 在 命 令 前 放 一 个"."1 . ":write"就 是 这 种
命 令 的 典 型. 不 指 定 作 用 范 围 , 它 将 写 入 整 个 缓 冲 区 的 内 容 . 下 面 的 命
令使它只把当前行写入指定文件:
    :.write otherfile

第 一 行 的 行 号 一 定 是1. 但 是 最 后 一 行 呢? "$"用 于 代 表 最 后 一 行.
比如, 下面命令替换当前行到最后一行中所有的yes为no:
    :.,$s/yes/no/
所以, 前面用到的"%"范围指定符号, 实际上等价于"1,$".

posted @ 2005-11-07 22:04 ivaneeo 阅读(187) | 评论 (0)编辑 收藏

复制文本到内存中:
"vy
其中v是特殊技法,可能是a-z其中一个。

粘贴文本:
"vp
posted @ 2005-11-07 11:41 ivaneeo 阅读(232) | 评论 (0)编辑 收藏

" vim not vi
set nocompatible

" save cmd history
set history=50

" show line number
set number

" show cursor position
set ruler

" show enter cmd
set showcmd

" show find word when enter search word
" hightlight search
set incsearch
set hlsearch

"set enter ">" width
set shiftwidth=4

" set enter <TAB> width
set softtabstop=4

" plugin on depend on filetype
filetype plugin on

syntax on

" let enter h,j,k,l can goto
" next line
set whichwrap=b,s,<,>,[,]

" show all list,eg. >-----
set list

" define list char
set listchars=tab:>-,eol:-

" define a word is consist
" of...
set iskeyword+=-

" cmd windows width
set cmdheight=2
"
" color scheme
colorscheme evening

" bachup file
set backup

" a line width
" set textwidth=80

" enter %,add <>
set mps+=<:>

" autoindent
set autoindent

posted @ 2005-11-07 11:37 ivaneeo 阅读(264) | 评论 (0)编辑 收藏

1 CLUB997 http://64.236.34.196:80/stream/1074
2 Groove salad http://64.236.34.196:80/stream/1018
3 Digitally Imported http://64.236.34.196:80/stream/1003
4 HitzRadio.com http://64.236.34.196:80/stream/1038
5 SKY.FM http://64.236.34.196:80/stream/1010
6 Digitally Imported & Eurodance http://64.236.34.196:80/stream/1024
7 SKY.FM dancerock http://64.236.34.196:80/stream/1014
posted @ 2005-11-06 11:25 ivaneeo 阅读(257) | 评论 (0)编辑 收藏

$gcc -o bifurcation bifurcation.c -L/usr/X11R6/lib -lX11
posted @ 2005-11-05 14:33 ivaneeo 阅读(536) | 评论 (0)编辑 收藏

仅列出标题
共67页: First 上一页 33 34 35 36 37 38 39 40 41 下一页 Last