
原来make也有呼叫转移的功能...
:diffsplit {filename}
set diffopt=vertical
[c & ]c
:diffget
:diffput
:diffupdate
:help
using
声明扩展基类中函数的作用域.
Alt+F2: free the fish
Alt+F2: gegls from outer space
apt-get --help
=Game("StarWars")
binding "my-bindings"
{
bind "Return" { "insert-at-cursor" ("\n") }
bind "<ctrl>Return" { "message_send" () }
}
widget "*pidgin_conv_entry" binding "my-bindings"
let Tlist_Ctags_Cmd = 'D:\ctags\ctags.exe'3. 下载taglist, 放到$VIM/vim71/plugin中.
:Tlist
就可打开taglist.(set-fontset-font (frame-parameter nil 'font)
'unicode '("DejaVu Sans YuanTi" . "unicode-bmp"))
xiaogaozi@LAN:~$ java -version记下其中的版本号, 然后在Emacs中执行
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)
M-x costomize-variable <RET> jde-jdk-registry将其中的Version项修改为刚才记下的版本号就行了.
C-x C-f
C-x C-s
!
"保存所有缓冲区
C-x d
:e .
", 下面是一些常用命令:
^ | 访问目录的父目录 |
q | 退出缓冲 |
R | 重命名 |
D | 删除文件 |
C-x C-f | 创建文件 |
+ | 创建目录 |
g | 刷新缓冲所有文件 (这很有用, 当你新建了文件以后, 需要手动刷新) |
C-@
C-x <SPC>
, 但是因为这个组合键同GDB的设置断点的组合键冲突, 于是我稍微修改了一下:
;; Replace `C-@' to `C-^'. (global-set-key (kbd "C-^") 'set-mark-command)
M-w
M-w
来选定一行文本:
;; Make `M-w' can copy a line. (defun xiaogaozi-kill-ring-save (&optional n) "If region is active, copy region. Otherwise, copy line." (interactive "p") (if mark-active (kill-ring-save (region-beginning) (region-end)) (if (> n 0) (kill-ring-save (line-beginning-position) (line-end-position n)) (kill-ring-save (line-beginning-position n) (line-end-position))))) (global-set-key (kbd "M-w") 'xiaogaozi-kill-ring-save)
C-x h
C-w
C-y
C-/
C-x r k
C-x r y
C-x r t STRING <RET>
C-x r o
C-x r M-w
;; rect-mark.el ;; Support for marking a rectangle of text with highlighting. (define-key ctl-x-map "r\C-@" 'rm-set-mark) (define-key ctl-x-map [?r ?\C-\ ] 'rm-set-mark) (define-key ctl-x-map "r\C-x" 'rm-exchange-point-and-mark) (define-key ctl-x-map "r\C-w" 'rm-kill-region) (define-key ctl-x-map "r\M-w" 'rm-kill-ring-save) (define-key global-map [S-down-mouse-1] 'rm-mouse-drag-region) (autoload 'rm-set-mark "rect-mark" "Set mark for rectangle." t) (autoload 'rm-exchange-point-and-mark "rect-mark" "Exchange point and mark for rectangle." t) (autoload 'rm-kill-region "rect-mark" "Kill a rectangular region and save it in the kill ring." t) (autoload 'rm-kill-ring-save "rect-mark" "Copy a rectangular region to the kill ring." t) (autoload 'rm-mouse-drag-region "rect-mark" "Drag out a rectangular region with the mouse." t)
C-x r <SPC> X
C-x r j X
C-x r s X
C-x r i X
M-% STRING <RET> NEWSTRING <RET>
C-M-% REGEXP <RET> NEWSTRING <RET>
C-M-n
C-M-p
M-g M-g
M-;
C-M-\
"+x
"+y
"+gP
:ls
:buffer #
:bnext
:bprevious
:bfirst
:blast
:pwd
:cd 目录名
:e 文件名
:wa
:e .
gf
命令, Vim会寻找并打开文件, 如果该头文件不在此目录中, 则可以通过:set path+=目录名
的方式添加需要查找的路径.m{a-zA-Z}
'{a-zA-Z}
''
注意: 这是两个单引号"xy
"xp
:reg
=
替换块
CTRL-V
选定块后, 按c
输入替换文本, 然后<Esc>[[
& ]]
gd
$ cat httpd.conf
DocumentRoot 修改为网站的主目录
同时添加
<Directory "网站主目录">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Can't connect to MySQL server on 'localhost' (10061)在网上搜寻很久都没有找到解决办法, 最后干脆把MySQL重装了一遍, 结果这个错误神奇地消失了, 于是我觉得最好先安PHP, 再安MySQL.