:nmap ,s :source $VIM/_vimrc "执行(载入)vimrc配置
:nmap ,v :e $VIM/_vimrc "编辑vimrc配置
------------------------------------------------------------------------------
#VISUAL MODE Mappings
:vmap sb "zdi<c-r></c-r>z<esc></esc> : wrap around VISUALLY selected Text
:vmap st "zdiz ?><esc></esc> : wrap around VISUALLY selected Text
------------------------------------------------------------------------------
:ls : 列出 buffers
:cd .. : 当前目录到上级目录
------------------------------------------------------------------------------
# Great
guu : 将当前行小写
gUU : 将当前行大写
gf : 当开光标下所以文件名的文件
ga : 显示ascii码和十六进制,八进制
------------------------------------------------------------------------------
# Markers & moving about
'. : 跳到最后修改行
`. : 跳到最后修改准确位置
<c-o></c-o> :ju(mps)
:help jump-motions //跳转帮助,有点意思要看看
------------------------------------------------------------------------------
# Abbreviations & maps
:map <f7></f7> :'a,'bw! c:/aaa/x
:map <f8></f8> :r c:/aaa/x
:map <f9></f9> :w<cr></cr>:!c:/php/php.exe %<cr></cr>
:map <f11></f11> :.w! c:/aaa/xr<cr></cr>
:map <f12></f12> :r c:/aaa/xr<cr></cr>
:ab php : 列出以php开头的缩写
:map , : 列出以,开头的缩写
------------------------------------------------------------------------------
# List your Registers
:reg : 显示所有register的内容
"1p.... : 粘贴1号register中的内容
------------------------------------------------------------------------------
# Get output from other commands
:r!ls.exe : 读取ls.exe命令的输出,并插入到光标位置
!!date : same thing
:%!sort -u : 使用外部命令过滤编辑的内容
------------------------------------------------------------------------------
# 记录 (BEST TIP of ALL) 没用过,好像很有用
qq # record to q
your commands
q
@q to execute
@@ to Repeat
------------------------------------------------------------------------------
# 用大写字母可以追加到命名register
# 复制5行,再追加5行
"a5yy
10j
"A5yy